From 67f2dc887d1d856ee7f190429a65bb9b564ebaef Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 22 Sep 1998 08:12:17 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'ACE-4_5_41'. --- ACE.DSW | 1217 - STL/ACE_Changes | 53 - STL/readme2.stl | 272 - TAO/BUG-REPORT-FORM | 39 - TAO/Benchmark/Marshal_Test/Orbix/Makefile | 75 - TAO/Benchmark/Marshal_Test/Orbix/client.cpp | 16 - TAO/Benchmark/Marshal_Test/Orbix/marshal.h | 1326 - TAO/Benchmark/Marshal_Test/Orbix/marshal.idl | 90 - .../Marshal_Test/Orbix/orbix_marshal_client.cpp | 1338 - .../Marshal_Test/Orbix/orbix_marshal_client.h | 125 - .../Marshal_Test/Orbix/orbix_marshal_client.i | 23 - .../Marshal_Test/Orbix/orbix_marshal_impl.cpp | 313 - .../Marshal_Test/Orbix/orbix_marshal_impl.h | 191 - .../Marshal_Test/Orbix/orbix_marshal_impl.i | 29 - .../Marshal_Test/Orbix/orbix_marshal_server.cpp | 97 - .../Marshal_Test/Orbix/orbix_marshal_server.h | 59 - .../Marshal_Test/Orbix/orbix_marshal_server.i | 28 - TAO/Benchmark/Marshal_Test/Orbix/run_client | 23 - TAO/Benchmark/Marshal_Test/Orbix/run_dsi | 4 - TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server | 1 - TAO/Benchmark/Marshal_Test/Orbix/run_ssi | 4 - TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server | 1 - TAO/Benchmark/Marshal_Test/Orbix/server.cpp | 16 - TAO/Benchmark/Marshal_Test/TAO/Makefile | 64 - TAO/Benchmark/Marshal_Test/TAO/client.cpp | 16 - TAO/Benchmark/Marshal_Test/TAO/marshal.idl | 91 - TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp | 589 - TAO/Benchmark/Marshal_Test/TAO/marshalC.h | 196 - TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp | 172 - TAO/Benchmark/Marshal_Test/TAO/marshalS.h | 110 - TAO/Benchmark/Marshal_Test/TAO/server.cpp | 16 - .../Marshal_Test/TAO/tao_marshal_client.cpp | 1428 - .../Marshal_Test/TAO/tao_marshal_client.h | 126 - .../Marshal_Test/TAO/tao_marshal_client.i | 23 - .../Marshal_Test/TAO/tao_marshal_impl.cpp | 654 - TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h | 192 - TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i | 23 - .../Marshal_Test/TAO/tao_marshal_server.cpp | 114 - .../Marshal_Test/TAO/tao_marshal_server.h | 59 - .../Marshal_Test/TAO/tao_marshal_server.i | 28 - TAO/Benchmark/Marshal_Test/VisiBroker/Makefile | 64 - TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp | 16 - TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl | 91 - TAO/Benchmark/Marshal_Test/VisiBroker/run_client | 23 - TAO/Benchmark/Marshal_Test/VisiBroker/run_server | 1 - TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp | 16 - .../VisiBroker/visi_marshal_client.cpp | 1348 - .../Marshal_Test/VisiBroker/visi_marshal_client.h | 142 - .../Marshal_Test/VisiBroker/visi_marshal_client.i | 23 - .../Marshal_Test/VisiBroker/visi_marshal_impl.cpp | 333 - .../Marshal_Test/VisiBroker/visi_marshal_impl.h | 179 - .../Marshal_Test/VisiBroker/visi_marshal_impl.i | 30 - .../VisiBroker/visi_marshal_server.cpp | 90 - .../Marshal_Test/VisiBroker/visi_marshal_server.h | 60 - .../Marshal_Test/VisiBroker/visi_marshal_server.i | 28 - TAO/Benchmark/benchmark/Makefile | 125 - TAO/Benchmark/benchmark/driver.cpp | 60 - TAO/Benchmark/benchmark/driver.h | 56 - TAO/Benchmark/benchmark/marshal_options.cpp | 282 - TAO/Benchmark/benchmark/marshal_options.h | 209 - TAO/Benchmark/benchmark/marshal_options.i | 235 - TAO/Benchmark/benchmark/marshal_proxy.cpp | 23 - TAO/Benchmark/benchmark/marshal_proxy.h | 48 - TAO/Benchmark/benchmark/marshal_proxy.i | 12 - TAO/Benchmark/benchmark/marshal_results.cpp | 36 - TAO/Benchmark/benchmark/marshal_results.h | 72 - TAO/Benchmark/benchmark/marshal_results.i | 61 - TAO/COPYING | 40 - TAO/COPYING.sun | 67 - TAO/ChangeLog-97 | 6672 ---- TAO/ChangeLog-98a | 11670 ------- TAO/ChangeLog-98c | 8169 ----- TAO/IIOP/Build/default.bld | 16 - TAO/IIOP/Build/tao.bld | 53 - TAO/IIOP/Makefile | 27 - TAO/IIOP/docs/us/codecounts/align.hh.cccc | 29 - TAO/IIOP/docs/us/codecounts/any.cpp.cccc | 41 - TAO/IIOP/docs/us/codecounts/any.hh.cccc | 27 - TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc | 36 - TAO/IIOP/docs/us/codecounts/cdr.hh.cccc | 26 - TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc | 38 - TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc | 27 - TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc | 32 - TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc | 59 - TAO/IIOP/docs/us/codecounts/debug.cpp.cccc | 39 - TAO/IIOP/docs/us/codecounts/debug.hh.cccc | 29 - TAO/IIOP/docs/us/codecounts/except.cpp.cccc | 53 - TAO/IIOP/docs/us/codecounts/except.hh.cccc | 37 - TAO/IIOP/docs/us/codecounts/generate | 24 - TAO/IIOP/docs/us/codecounts/giop.cpp.cccc | 50 - TAO/IIOP/docs/us/codecounts/giop.hh.cccc | 27 - TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc | 34 - TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc | 35 - TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc | 28 - TAO/IIOP/docs/us/codecounts/initguid.h.cccc | 25 - TAO/IIOP/docs/us/codecounts/interp.cpp.cccc | 40 - TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc | 26 - TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc | 30 - TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc | 40 - TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc | 37 - TAO/IIOP/docs/us/codecounts/objbase.h.cccc | 37 - TAO/IIOP/docs/us/codecounts/object.cpp.cccc | 55 - TAO/IIOP/docs/us/codecounts/object.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/orb.hh.cccc | 33 - TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc | 26 - TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc | 41 - TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/principa.cpp.cccc | 33 - TAO/IIOP/docs/us/codecounts/principa.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/request.cpp.cccc | 36 - TAO/IIOP/docs/us/codecounts/request.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/roa.cpp.cccc | 43 - TAO/IIOP/docs/us/codecounts/roa.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/roa.i.cccc | 35 - TAO/IIOP/docs/us/codecounts/sequence.hh.cccc | 26 - TAO/IIOP/docs/us/codecounts/stub.hh.cccc | 32 - TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc | 39 - TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc | 35 - TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc | 25 - TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc | 29 - TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc | 68 - TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc | 51 - TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc | 31 - TAO/IIOP/docs/us/codecounts/thread.hh.cccc | 35 - TAO/IIOP/docs/us/codecounts/toa.cpp.cccc | 27 - TAO/IIOP/docs/us/codecounts/toa.hh.cccc | 30 - TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc | 41 - TAO/IIOP/docs/us/codecounts/typecode.hh.cccc | 36 - TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc | 33 - TAO/IIOP/docs/us/codecounts/xdr.hh.cccc | 27 - TAO/IIOP/docs/us/plan.html | 29 - TAO/IIOP/docs/us/server | 5 - TAO/IIOP/test/Build/clnt.bld | 8 - TAO/IIOP/test/Build/default.bld | 19 - TAO/IIOP/test/Build/svr.bld | 8 - TAO/IIOP/test/Makefile | 121 - TAO/IIOP/test/Orbeline/base_server/Makefile | 19 - .../test/Orbeline/base_server/Profile_Timer.cpp | 131 - TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h | 62 - TAO/IIOP/test/Orbeline/base_server/cubit.idl | 42 - TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp | 50 - TAO/IIOP/test/Orbeline/base_server/cubit_impl.h | 35 - TAO/IIOP/test/Orbeline/base_server/server.cpp | 54 - TAO/IIOP/test/Orbeline/base_server/stdmk | 36 - TAO/IIOP/test/Orbeline/client/Makefile | 19 - TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp | 131 - TAO/IIOP/test/Orbeline/client/Profile_Timer.h | 62 - TAO/IIOP/test/Orbeline/client/client.cpp | 234 - TAO/IIOP/test/Orbeline/client/cubit.idl | 42 - TAO/IIOP/test/Orbeline/client/stdmk | 36 - TAO/IIOP/test/Orbix/Makefile | 28 - TAO/IIOP/test/Orbix/base_server/Makefile | 89 - TAO/IIOP/test/Orbix/base_server/cubit.h | 729 - TAO/IIOP/test/Orbix/base_server/cubit.idl | 42 - TAO/IIOP/test/Orbix/base_server/cubitC.cpp | 561 - TAO/IIOP/test/Orbix/base_server/cubitC.h | 345 - TAO/IIOP/test/Orbix/base_server/cubitS.cpp | 230 - TAO/IIOP/test/Orbix/base_server/cubitS.h | 120 - TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp | 50 - TAO/IIOP/test/Orbix/base_server/cubit_impl.h | 29 - TAO/IIOP/test/Orbix/base_server/server.cpp | 44 - TAO/IIOP/test/Orbix/base_server/tpr.cpp | 30 - TAO/IIOP/test/Orbix/base_server/tpr.h | 12 - TAO/IIOP/test/Orbix/client/Makefile | 89 - TAO/IIOP/test/Orbix/client/client.cpp | 236 - TAO/IIOP/test/Orbix/client/cubit.h | 729 - TAO/IIOP/test/Orbix/client/cubit.idl | 42 - TAO/IIOP/test/Orbix/client/cubitC.cpp | 561 - TAO/IIOP/test/Orbix/factory_client/Makefile | 77 - TAO/IIOP/test/Orbix/factory_client/client.cpp | 239 - TAO/IIOP/test/Orbix/factory_client/cubit.h | 1113 - TAO/IIOP/test/Orbix/factory_client/cubit.hh | 1111 - TAO/IIOP/test/Orbix/factory_client/cubit.idl | 48 - TAO/IIOP/test/Orbix/factory_client/cubitC.cpp | 714 - TAO/IIOP/test/Orbix/factory_client/cubitS.cpp | 286 - TAO/IIOP/test/Orbix/orb.mk | 146 - TAO/IIOP/test/Orbix/tpool/Makefile | 89 - TAO/IIOP/test/Orbix/tpool/cubit.h | 729 - TAO/IIOP/test/Orbix/tpool/cubit.idl | 42 - TAO/IIOP/test/Orbix/tpool/cubitC.cpp | 561 - TAO/IIOP/test/Orbix/tpool/cubitS.cpp | 230 - TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp | 50 - TAO/IIOP/test/Orbix/tpool/cubit_impl.h | 29 - TAO/IIOP/test/Orbix/tpool/server.cpp | 50 - TAO/IIOP/test/Orbix/tpool/tpool.cpp | 46 - TAO/IIOP/test/Orbix/tpool/tpool.h | 17 - TAO/IIOP/test/Orbix/tpr/Makefile | 89 - TAO/IIOP/test/Orbix/tpr/cubit.h | 729 - TAO/IIOP/test/Orbix/tpr/cubit.idl | 42 - TAO/IIOP/test/Orbix/tpr/cubitC.cpp | 561 - TAO/IIOP/test/Orbix/tpr/cubitC.h | 345 - TAO/IIOP/test/Orbix/tpr/cubitS.cpp | 230 - TAO/IIOP/test/Orbix/tpr/cubitS.h | 120 - TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp | 50 - TAO/IIOP/test/Orbix/tpr/cubit_impl.h | 29 - TAO/IIOP/test/Orbix/tpr/server.cpp | 44 - TAO/IIOP/test/Orbix/tpr/tpr.cpp | 30 - TAO/IIOP/test/Orbix/tpr/tpr.h | 12 - TAO/IIOP/test/Orbix/tps/Makefile | 349 - TAO/IIOP/test/Orbix/tps/cubit.h | 1113 - TAO/IIOP/test/Orbix/tps/cubit.idl | 48 - TAO/IIOP/test/Orbix/tps/cubitC.cpp | 714 - TAO/IIOP/test/Orbix/tps/cubitS.cpp | 286 - TAO/IIOP/test/Orbix/tps/cubit_impl.cpp | 85 - TAO/IIOP/test/Orbix/tps/cubit_impl.h | 48 - TAO/IIOP/test/Orbix/tps/server.cpp | 44 - TAO/IIOP/test/Orbix/tps/tps.cpp | 30 - TAO/IIOP/test/Orbix/tps/tps.h | 13 - TAO/IIOP/test/clnt.cpp | 512 - TAO/IIOP/test/cubit.cpp | 579 - TAO/IIOP/test/cubit.h | 108 - TAO/IIOP/test/cubit.idl | 42 - TAO/IIOP/test/cubitC.cpp | 385 - TAO/IIOP/test/cubitC.h | 104 - TAO/IIOP/test/cubitS.cpp | 236 - TAO/IIOP/test/cubitS.h | 84 - TAO/IIOP/test/cubit_i.cpp | 95 - TAO/IIOP/test/cubit_i.h | 56 - TAO/IIOP/test/method_db.i | 69 - TAO/IIOP/test/results/Orbix | 133 - TAO/IIOP/test/results/TAO | 92 - TAO/IIOP/test/results/Visibroker | 79 - TAO/IIOP/test/results/orbs.xls | Bin 26624 -> 0 bytes TAO/IIOP/test/svr.cpp | 216 - TAO/IIOP/test/test.mak | 463 - TAO/IIOP/test/test.mdp | Bin 43008 -> 0 bytes TAO/IIOP/test/test1.cpp | 393 - TAO/IIOP/test/test1.h | 126 - TAO/IIOP/test/test1.idl | 80 - TAO/IIOP/test/test1_clnt.cpp | 640 - TAO/IIOP/test/test1_svr.cpp | 673 - TAO/IIOP/test/tnf/Orbix.svr.summary | 32 - TAO/IIOP/test/tnf/clnt.summary | 43 - TAO/IIOP/test/tnf/svr.summary | 49 - TAO/IIOP/tests/Cubit/Build/clnt.bld | 8 - TAO/IIOP/tests/Cubit/Build/default.bld | 19 - TAO/IIOP/tests/Cubit/Build/svr.bld | 8 - TAO/IIOP/tests/Cubit/Orbix/Makefile | 28 - TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp | 561 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h | 345 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp | 230 - TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h | 120 - .../tests/Cubit/Orbix/base_server/cubit_impl.cpp | 50 - .../tests/Cubit/Orbix/base_server/cubit_impl.h | 29 - TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp | 44 - TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp | 30 - TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h | 12 - TAO/IIOP/tests/Cubit/Orbix/client/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/client/client.cpp | 236 - TAO/IIOP/tests/Cubit/Orbix/client/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp | 561 - TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile | 77 - .../tests/Cubit/Orbix/factory_client/client.cpp | 239 - TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h | 1113 - TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh | 1111 - .../tests/Cubit/Orbix/factory_client/cubit.idl | 48 - .../tests/Cubit/Orbix/factory_client/cubitC.cpp | 714 - .../tests/Cubit/Orbix/factory_client/cubitS.cpp | 286 - TAO/IIOP/tests/Cubit/Orbix/orb.mk | 146 - TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp | 561 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp | 230 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp | 50 - TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h | 29 - TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp | 50 - TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp | 46 - TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h | 17 - TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile | 89 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h | 729 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl | 42 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp | 561 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h | 345 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp | 230 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h | 120 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp | 50 - TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h | 29 - TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp | 44 - TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp | 30 - TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h | 12 - TAO/IIOP/tests/Cubit/Orbix/tps/Makefile | 349 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h | 1113 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl | 48 - TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp | 714 - TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp | 286 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp | 85 - TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h | 48 - TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp | 30 - TAO/IIOP/tests/Cubit/Orbix/tps/tps.h | 13 - TAO/IIOP/tests/Cubit/README | 7 - TAO/IIOP/tests/Cubit/TAO/Makefile | 121 - TAO/IIOP/tests/Cubit/TAO/clnt.cpp | 512 - TAO/IIOP/tests/Cubit/TAO/cubit.cpp | 579 - TAO/IIOP/tests/Cubit/TAO/cubit.h | 108 - TAO/IIOP/tests/Cubit/TAO/cubit.idl | 42 - TAO/IIOP/tests/Cubit/TAO/cubitC.cpp | 385 - TAO/IIOP/tests/Cubit/TAO/cubitC.h | 104 - TAO/IIOP/tests/Cubit/TAO/cubitS.cpp | 236 - TAO/IIOP/tests/Cubit/TAO/cubitS.h | 84 - TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp | 95 - TAO/IIOP/tests/Cubit/TAO/cubit_i.h | 56 - TAO/IIOP/tests/Cubit/TAO/method_db.i | 69 - TAO/IIOP/tests/Cubit/TAO/svr.cpp | 216 - TAO/IIOP/tests/Cubit/TAO/test.mak | 463 - TAO/IIOP/tests/Cubit/TAO/test.mdp | Bin 43008 -> 0 bytes TAO/IIOP/tests/Cubit/TAO/test1.cpp | 393 - TAO/IIOP/tests/Cubit/TAO/test1.h | 126 - TAO/IIOP/tests/Cubit/TAO/test1.idl | 80 - TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp | 682 - TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp | 694 - .../tests/Cubit/VisiBroker/base_server/Makefile | 19 - .../Cubit/VisiBroker/base_server/Profile_Timer.cpp | 131 - .../Cubit/VisiBroker/base_server/Profile_Timer.h | 62 - .../tests/Cubit/VisiBroker/base_server/cubit.idl | 42 - .../Cubit/VisiBroker/base_server/cubit_impl.cpp | 50 - .../Cubit/VisiBroker/base_server/cubit_impl.h | 35 - .../tests/Cubit/VisiBroker/base_server/server.cpp | 54 - TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk | 36 - TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile | 19 - .../Cubit/VisiBroker/client/Profile_Timer.cpp | 131 - .../tests/Cubit/VisiBroker/client/Profile_Timer.h | 62 - TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp | 234 - TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl | 42 - TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk | 36 - TAO/IIOP/tests/Cubit/results/Orbix | 133 - TAO/IIOP/tests/Cubit/results/TAO | 92 - TAO/IIOP/tests/Cubit/results/Visibroker | 79 - TAO/IIOP/tests/Cubit/results/orbs.xls | Bin 26624 -> 0 bytes TAO/IIOP/tests/Thruput_test/Makefile | 53 - TAO/IIOP/tests/Thruput_test/README | 50 - TAO/IIOP/tests/Thruput_test/client.cpp | 340 - TAO/IIOP/tests/Thruput_test/run | 1 - TAO/IIOP/tests/Thruput_test/run_client | 25 - TAO/IIOP/tests/Thruput_test/run_server | 10 - TAO/IIOP/tests/Thruput_test/run_test | 32 - TAO/IIOP/tests/Thruput_test/server.cpp | 228 - TAO/IIOP/tests/Thruput_test/ttcp.idl | 34 - TAO/IIOP/tests/Thruput_test/ttcpC.cpp | 1009 - TAO/IIOP/tests/Thruput_test/ttcpC.h | 229 - TAO/IIOP/tests/Thruput_test/ttcpS.cpp | 325 - TAO/IIOP/tests/Thruput_test/ttcpS.h | 70 - TAO/IIOP/tests/Thruput_test/ttcp_decl.h | 153 - TAO/IIOP/tests/Thruput_test/ttcp_i.cpp | 92 - TAO/IIOP/tests/Thruput_test/ttcp_i.h | 52 - TAO/IIOP/tests/Thruput_test/utils.cpp | 563 - TAO/LICENSE.sun | 64 - TAO/Makefile | 107 - TAO/README | 70 - TAO/README.sun | 256 - TAO/TAO-INSTALL.html | 289 - TAO/TAO-inheritance.pdf.gz | Bin 12009 -> 0 bytes TAO/TAO-inheritance.ps.gz | Bin 11651 -> 0 bytes TAO/TAOACE.dsw | 131 - TAO/TAOACE_Static.dsw | 122 - TAO/TAO_IDL/ANNOUNCEMENT | 131 - TAO/TAO_IDL/CHANGES | 122 - TAO/TAO_IDL/INSTALL.sun | 241 - TAO/TAO_IDL/Makefile | 8567 ----- TAO/TAO_IDL/README.sun | 245 - TAO/TAO_IDL/TAO_IDL4.mak | 17876 ---------- TAO/TAO_IDL/TAO_IDL4.mdp | Bin 73216 -> 0 bytes TAO/TAO_IDL/ast/ast_argument.cpp | 156 - TAO/TAO_IDL/ast/ast_array.cpp | 191 - TAO/TAO_IDL/ast/ast_attribute.cpp | 136 - TAO/TAO_IDL/ast/ast_check.cpp | 142 - TAO/TAO_IDL/ast/ast_concrete_type.cpp | 108 - TAO/TAO_IDL/ast/ast_constant.cpp | 214 - TAO/TAO_IDL/ast/ast_decl.cpp | 316 - TAO/TAO_IDL/ast/ast_enum.cpp | 257 - TAO/TAO_IDL/ast/ast_enum_val.cpp | 121 - TAO/TAO_IDL/ast/ast_exception.cpp | 308 - TAO/TAO_IDL/ast/ast_expression.cpp | 1601 - TAO/TAO_IDL/ast/ast_field.cpp | 155 - TAO/TAO_IDL/ast/ast_generator.cpp | 417 - TAO/TAO_IDL/ast/ast_interface.cpp | 607 - TAO/TAO_IDL/ast/ast_interface_fwd.cpp | 149 - TAO/TAO_IDL/ast/ast_module.cpp | 594 - TAO/TAO_IDL/ast/ast_native.cpp | 35 - TAO/TAO_IDL/ast/ast_operation.cpp | 330 - TAO/TAO_IDL/ast/ast_predefined_type.cpp | 132 - TAO/TAO_IDL/ast/ast_recursive.cpp | 169 - TAO/TAO_IDL/ast/ast_redef.cpp | 110 - TAO/TAO_IDL/ast/ast_root.cpp | 168 - TAO/TAO_IDL/ast/ast_sequence.cpp | 145 - TAO/TAO_IDL/ast/ast_string.cpp | 155 - TAO/TAO_IDL/ast/ast_structure.cpp | 313 - TAO/TAO_IDL/ast/ast_type.cpp | 107 - TAO/TAO_IDL/ast/ast_typedef.cpp | 133 - TAO/TAO_IDL/ast/ast_union.cpp | 557 - TAO/TAO_IDL/ast/ast_union_branch.cpp | 133 - TAO/TAO_IDL/ast/ast_union_label.cpp | 137 - TAO/TAO_IDL/be/be_args.cpp | 109 - TAO/TAO_IDL/be/be_argument.cpp | 53 - TAO/TAO_IDL/be/be_array.cpp | 1114 - TAO/TAO_IDL/be/be_attribute.cpp | 51 - TAO/TAO_IDL/be/be_codegen.cpp | 730 - TAO/TAO_IDL/be/be_constant.cpp | 95 - TAO/TAO_IDL/be/be_decl.cpp | 679 - TAO/TAO_IDL/be/be_enum.cpp | 188 - TAO/TAO_IDL/be/be_enum_val.cpp | 83 - TAO/TAO_IDL/be/be_exception.cpp | 189 - TAO/TAO_IDL/be/be_expression.cpp | 84 - TAO/TAO_IDL/be/be_factory.cpp | 49 - TAO/TAO_IDL/be/be_field.cpp | 111 - TAO/TAO_IDL/be/be_generator.cpp | 415 - TAO/TAO_IDL/be/be_helper.cpp | 330 - TAO/TAO_IDL/be/be_init.cpp | 101 - TAO/TAO_IDL/be/be_interface.cpp | 1862 - TAO/TAO_IDL/be/be_interface_fwd.cpp | 518 - TAO/TAO_IDL/be/be_interpretive.cpp | 426 - TAO/TAO_IDL/be/be_module.cpp | 58 - TAO/TAO_IDL/be/be_native.cpp | 61 - TAO/TAO_IDL/be/be_operation.cpp | 166 - TAO/TAO_IDL/be/be_predefined_type.cpp | 468 - TAO/TAO_IDL/be/be_produce.cpp | 217 - TAO/TAO_IDL/be/be_root.cpp | 97 - TAO/TAO_IDL/be/be_scope.cpp | 149 - TAO/TAO_IDL/be/be_sequence.cpp | 445 - TAO/TAO_IDL/be/be_string.cpp | 122 - TAO/TAO_IDL/be/be_structure.cpp | 720 - TAO/TAO_IDL/be/be_sunsoft.cpp | 116 - TAO/TAO_IDL/be/be_type.cpp | 283 - TAO/TAO_IDL/be/be_typedef.cpp | 190 - TAO/TAO_IDL/be/be_union.cpp | 788 - TAO/TAO_IDL/be/be_union_branch.cpp | 123 - TAO/TAO_IDL/be/be_union_label.cpp | 28 - TAO/TAO_IDL/be/be_visitor.cpp | 168 - TAO/TAO_IDL/be/be_visitor_argument.cpp | 39 - TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp | 314 - TAO/TAO_IDL/be/be_visitor_argument/argument.cpp | 85 - TAO/TAO_IDL/be/be_visitor_argument/docall_cs.cpp | 318 - TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp | 305 - .../be/be_visitor_argument/post_docall_cs.cpp | 143 - .../be/be_visitor_argument/post_marshal_ss.cpp | 259 - .../be/be_visitor_argument/post_upcall_ss.cpp | 272 - .../be/be_visitor_argument/pre_docall_cs.cpp | 395 - .../be/be_visitor_argument/pre_upcall_ss.cpp | 269 - TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp | 309 - TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp | 428 - TAO/TAO_IDL/be/be_visitor_array.cpp | 38 - TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp | 64 - TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp | 107 - TAO/TAO_IDL/be/be_visitor_array/array.cpp | 151 - TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp | 218 - TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp | 134 - TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp | 208 - TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp | 63 - TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp | 531 - TAO/TAO_IDL/be/be_visitor_attribute.cpp | 31 - TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp | 193 - TAO/TAO_IDL/be/be_visitor_constant.cpp | 32 - TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp | 76 - TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp | 136 - TAO/TAO_IDL/be/be_visitor_context.cpp | 514 - TAO/TAO_IDL/be/be_visitor_decl.cpp | 40 - TAO/TAO_IDL/be/be_visitor_enum.cpp | 36 - TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp | 63 - TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp | 83 - TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp | 63 - TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp | 77 - TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp | 111 - TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp | 71 - TAO/TAO_IDL/be/be_visitor_exception.cpp | 40 - TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp | 102 - TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp | 145 - TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp | 77 - TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp | 168 - .../be/be_visitor_exception/ctor_assign.cpp | 310 - TAO/TAO_IDL/be/be_visitor_exception/exception.cpp | 107 - .../be/be_visitor_exception/exception_ch.cpp | 143 - .../be/be_visitor_exception/exception_ci.cpp | 69 - .../be/be_visitor_exception/exception_cs.cpp | 210 - .../be/be_visitor_exception/exception_ctor.cpp | 302 - TAO/TAO_IDL/be/be_visitor_field.cpp | 34 - TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp | 294 - TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp | 699 - TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp | 455 - TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp | 223 - TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp | 285 - TAO/TAO_IDL/be/be_visitor_interface.cpp | 43 - TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp | 73 - TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp | 116 - TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp | 77 - TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp | 104 - .../be/be_visitor_interface/collocated_sh.cpp | 140 - .../be/be_visitor_interface/collocated_ss.cpp | 136 - TAO/TAO_IDL/be/be_visitor_interface/interface.cpp | 663 - .../be/be_visitor_interface/interface_ch.cpp | 223 - .../be/be_visitor_interface/interface_ci.cpp | 104 - .../be/be_visitor_interface/interface_cs.cpp | 185 - .../be/be_visitor_interface/interface_sh.cpp | 225 - .../be/be_visitor_interface/interface_si.cpp | 110 - .../be/be_visitor_interface/interface_ss.cpp | 342 - TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp | 168 - TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp | 211 - TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp | 32 - .../be_visitor_interface_fwd/interface_fwd_ch.cpp | 96 - .../be_visitor_interface_fwd/interface_fwd_ci.cpp | 81 - TAO/TAO_IDL/be/be_visitor_module.cpp | 35 - TAO/TAO_IDL/be/be_visitor_module/any_op.cpp | 56 - TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp | 56 - TAO/TAO_IDL/be/be_visitor_module/module.cpp | 624 - TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp | 80 - TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp | 83 - TAO/TAO_IDL/be/be_visitor_operation.cpp | 51 - TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp | 179 - TAO/TAO_IDL/be/be_visitor_operation/argument.cpp | 185 - .../be/be_visitor_operation/collocated_sh.cpp | 124 - .../be/be_visitor_operation/collocated_ss.cpp | 165 - .../be/be_visitor_operation/exceptlist_cs.cpp | 96 - .../be/be_visitor_operation/operation_ch.cpp | 122 - .../be/be_visitor_operation/operation_cs.cpp | 492 - .../be/be_visitor_operation/operation_sh.cpp | 148 - .../be/be_visitor_operation/operation_ss.cpp | 499 - TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp | 259 - .../be/be_visitor_operation/rettype_assign_ss.cpp | 168 - .../be/be_visitor_operation/rettype_docall_cs.cpp | 172 - .../be/be_visitor_operation/rettype_marshal_ss.cpp | 181 - .../rettype_post_docall_cs.cpp | 84 - .../rettype_post_upcall_ss.cpp | 113 - .../be_visitor_operation/rettype_pre_docall_cs.cpp | 174 - .../be/be_visitor_operation/rettype_return_cs.cpp | 160 - .../be/be_visitor_operation/rettype_vardecl_cs.cpp | 231 - .../be/be_visitor_operation/rettype_vardecl_ss.cpp | 238 - TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp | 121 - TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp | 158 - TAO/TAO_IDL/be/be_visitor_root.cpp | 36 - TAO/TAO_IDL/be/be_visitor_root/any_op.cpp | 56 - TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp | 57 - TAO/TAO_IDL/be/be_visitor_root/root.cpp | 834 - TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp | 59 - TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp | 58 - TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp | 58 - TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp | 70 - TAO/TAO_IDL/be/be_visitor_root/root_si.cpp | 68 - TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp | 69 - TAO/TAO_IDL/be/be_visitor_scope.cpp | 120 - TAO/TAO_IDL/be/be_visitor_sequence.cpp | 43 - TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp | 66 - TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp | 113 - TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp | 154 - TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp | 65 - TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp | 522 - TAO/TAO_IDL/be/be_visitor_sequence/elemtype.cpp | 244 - .../gen_bounded_obj_sequence_ch.cpp | 287 - .../gen_bounded_sequence_ch.cpp | 272 - .../gen_bounded_str_sequence_ch.cpp | 233 - .../be_visitor_sequence/gen_object_manager_ch.cpp | 219 - .../gen_unbounded_obj_sequence_ch.cpp | 288 - .../gen_unbounded_sequence_ch.cpp | 315 - .../be/be_visitor_sequence/sequence_base.cpp | 141 - TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp | 627 - TAO/TAO_IDL/be/be_visitor_sequence/sequence_ci.cpp | 474 - TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp | 283 - TAO/TAO_IDL/be/be_visitor_structure.cpp | 38 - TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp | 102 - TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp | 146 - TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp | 77 - TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp | 128 - TAO/TAO_IDL/be/be_visitor_structure/structure.cpp | 107 - .../be/be_visitor_structure/structure_ch.cpp | 117 - .../be/be_visitor_structure/structure_ci.cpp | 74 - .../be/be_visitor_structure/structure_cs.cpp | 77 - TAO/TAO_IDL/be/be_visitor_typecode.cpp | 32 - .../be/be_visitor_typecode/typecode_decl.cpp | 119 - .../be/be_visitor_typecode/typecode_defn.cpp | 226 - TAO/TAO_IDL/be/be_visitor_typedef.cpp | 38 - TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp | 293 - TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp | 294 - TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp | 292 - TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp | 294 - TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp | 485 - TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp | 456 - TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp | 285 - TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp | 148 - TAO/TAO_IDL/be/be_visitor_union.cpp | 41 - TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp | 102 - TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp | 144 - TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp | 77 - TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp | 137 - .../be/be_visitor_union/discriminant_ch.cpp | 142 - .../be/be_visitor_union/discriminant_ci.cpp | 136 - .../be/be_visitor_union/discriminant_cs.cpp | 88 - TAO/TAO_IDL/be/be_visitor_union/union.cpp | 119 - TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp | 220 - TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp | 159 - TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp | 235 - TAO/TAO_IDL/be/be_visitor_union_branch.cpp | 38 - .../be/be_visitor_union_branch/cdr_op_ch.cpp | 295 - .../be/be_visitor_union_branch/cdr_op_cs.cpp | 645 - .../be/be_visitor_union_branch/private_ch.cpp | 408 - .../be_visitor_union_branch/public_access_cs.cpp | 384 - .../be_visitor_union_branch/public_assign_cs.cpp | 595 - .../be/be_visitor_union_branch/public_ch.cpp | 620 - .../be/be_visitor_union_branch/public_ci.cpp | 1100 - .../be/be_visitor_union_branch/public_cs.cpp | 189 - .../be/be_visitor_union_branch/public_reset_cs.cpp | 356 - TAO/TAO_IDL/be_include/be.h | 126 - TAO/TAO_IDL/be_include/be_argument.h | 49 - TAO/TAO_IDL/be_include/be_array.h | 100 - TAO/TAO_IDL/be_include/be_attribute.h | 48 - TAO/TAO_IDL/be_include/be_codegen.h | 584 - TAO/TAO_IDL/be_include/be_constant.h | 56 - TAO/TAO_IDL/be_include/be_decl.h | 184 - TAO/TAO_IDL/be_include/be_enum.h | 75 - TAO/TAO_IDL/be_include/be_enum_val.h | 55 - TAO/TAO_IDL/be_include/be_exception.h | 57 - TAO/TAO_IDL/be_include/be_expression.h | 48 - TAO/TAO_IDL/be_include/be_factory.h | 72 - TAO/TAO_IDL/be_include/be_field.h | 58 - TAO/TAO_IDL/be_include/be_generator.h | 166 - TAO/TAO_IDL/be_include/be_helper.h | 194 - TAO/TAO_IDL/be_include/be_interface.h | 227 - TAO/TAO_IDL/be_include/be_interface_fwd.h | 72 - TAO/TAO_IDL/be_include/be_interpretive.h | 40 - TAO/TAO_IDL/be_include/be_module.h | 56 - TAO/TAO_IDL/be_include/be_native.h | 55 - TAO/TAO_IDL/be_include/be_operation.h | 78 - TAO/TAO_IDL/be_include/be_predefined_type.h | 79 - TAO/TAO_IDL/be_include/be_root.h | 58 - TAO/TAO_IDL/be_include/be_scope.h | 76 - TAO/TAO_IDL/be_include/be_sequence.h | 111 - TAO/TAO_IDL/be_include/be_state.h | 296 - TAO/TAO_IDL/be_include/be_string.h | 67 - TAO/TAO_IDL/be_include/be_structure.h | 91 - TAO/TAO_IDL/be_include/be_sunsoft.h | 47 - TAO/TAO_IDL/be_include/be_type.h | 95 - TAO/TAO_IDL/be_include/be_typedef.h | 73 - TAO/TAO_IDL/be_include/be_union.h | 99 - TAO/TAO_IDL/be_include/be_union_branch.h | 58 - TAO/TAO_IDL/be_include/be_union_label.h | 19 - TAO/TAO_IDL/be_include/be_visitor.h | 157 - TAO/TAO_IDL/be_include/be_visitor_argument.h | 38 - .../be_include/be_visitor_argument/arglist.h | 88 - .../be_include/be_visitor_argument/argument.h | 59 - .../be_include/be_visitor_argument/docall_cs.h | 81 - .../be_include/be_visitor_argument/marshal_ss.h | 81 - .../be_visitor_argument/post_docall_cs.h | 59 - .../be_visitor_argument/post_marshal_ss.h | 81 - .../be_visitor_argument/post_upcall_ss.h | 82 - .../be_include/be_visitor_argument/pre_docall_cs.h | 81 - .../be_include/be_visitor_argument/pre_upcall_ss.h | 81 - .../be_include/be_visitor_argument/upcall_ss.h | 81 - .../be_include/be_visitor_argument/vardecl_ss.h | 81 - TAO/TAO_IDL/be_include/be_visitor_array.h | 36 - .../be_include/be_visitor_array/any_op_ch.h | 52 - .../be_include/be_visitor_array/any_op_cs.h | 52 - TAO/TAO_IDL/be_include/be_visitor_array/array.h | 84 - TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h | 49 - TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h | 49 - TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h | 49 - .../be_include/be_visitor_array/cdr_op_ch.h | 52 - .../be_include/be_visitor_array/cdr_op_cs.h | 86 - TAO/TAO_IDL/be_include/be_visitor_attribute.h | 29 - .../be_include/be_visitor_attribute/attribute.h | 52 - TAO/TAO_IDL/be_include/be_visitor_constant.h | 30 - .../be_include/be_visitor_constant/constant_ch.h | 47 - .../be_include/be_visitor_constant/constant_cs.h | 54 - TAO/TAO_IDL/be_include/be_visitor_context.h | 249 - TAO/TAO_IDL/be_include/be_visitor_decl.h | 52 - TAO/TAO_IDL/be_include/be_visitor_enum.h | 34 - TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h | 47 - TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h | 47 - TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h | 47 - TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h | 47 - TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h | 56 - TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h | 47 - TAO/TAO_IDL/be_include/be_visitor_exception.h | 38 - .../be_include/be_visitor_exception/any_op_ch.h | 51 - .../be_include/be_visitor_exception/any_op_cs.h | 51 - .../be_include/be_visitor_exception/cdr_op_ch.h | 50 - .../be_include/be_visitor_exception/cdr_op_cs.h | 52 - TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h | 83 - .../be_include/be_visitor_exception/ctor_assign.h | 81 - .../be_include/be_visitor_exception/exception.h | 52 - .../be_include/be_visitor_exception/exception_ch.h | 48 - .../be_include/be_visitor_exception/exception_ci.h | 48 - .../be_include/be_visitor_exception/exception_cs.h | 48 - .../be_visitor_exception/exception_ctor.h | 83 - TAO/TAO_IDL/be_include/be_visitor_field.h | 32 - .../be_include/be_visitor_field/cdr_op_ch.h | 66 - .../be_include/be_visitor_field/cdr_op_cs.h | 78 - TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h | 78 - TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h | 65 - TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h | 68 - TAO/TAO_IDL/be_include/be_visitor_interface.h | 42 - .../be_include/be_visitor_interface/any_op_ch.h | 47 - .../be_include/be_visitor_interface/any_op_cs.h | 47 - .../be_include/be_visitor_interface/cdr_op_ch.h | 50 - .../be_include/be_visitor_interface/cdr_op_cs.h | 50 - .../be_visitor_interface/collocated_sh.h | 42 - .../be_visitor_interface/collocated_ss.h | 42 - .../be_include/be_visitor_interface/interface.h | 91 - .../be_include/be_visitor_interface/interface_ch.h | 50 - .../be_include/be_visitor_interface/interface_ci.h | 47 - .../be_include/be_visitor_interface/interface_cs.h | 46 - .../be_include/be_visitor_interface/interface_sh.h | 46 - .../be_include/be_visitor_interface/interface_si.h | 46 - .../be_include/be_visitor_interface/interface_ss.h | 46 - .../be_include/be_visitor_interface/tie_sh.h | 51 - .../be_include/be_visitor_interface/tie_si.h | 52 - TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h | 31 - .../be_visitor_interface_fwd/interface_fwd_ch.h | 47 - .../be_visitor_interface_fwd/interface_fwd_ci.h | 47 - TAO/TAO_IDL/be_include/be_visitor_module.h | 36 - TAO/TAO_IDL/be_include/be_visitor_module/any_op.h | 49 - TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h | 49 - TAO/TAO_IDL/be_include/be_visitor_module/module.h | 74 - .../be_include/be_visitor_module/module_ch.h | 48 - .../be_include/be_visitor_module/module_sh.h | 48 - TAO/TAO_IDL/be_include/be_visitor_operation.h | 50 - .../be_include/be_visitor_operation/arglist.h | 54 - .../be_include/be_visitor_operation/argument.h | 57 - .../be_visitor_operation/collocated_sh.h | 52 - .../be_visitor_operation/collocated_ss.h | 52 - .../be_visitor_operation/exceptlist_cs.h | 52 - .../be_include/be_visitor_operation/operation_ch.h | 50 - .../be_include/be_visitor_operation/operation_cs.h | 55 - .../be_include/be_visitor_operation/operation_sh.h | 50 - .../be_include/be_visitor_operation/operation_ss.h | 55 - .../be_include/be_visitor_operation/rettype.h | 81 - .../be_visitor_operation/rettype_assign_ss.h | 80 - .../be_visitor_operation/rettype_docall_cs.h | 79 - .../be_visitor_operation/rettype_marshal_ss.h | 79 - .../be_visitor_operation/rettype_post_docall_cs.h | 54 - .../be_visitor_operation/rettype_post_upcall_ss.h | 79 - .../be_visitor_operation/rettype_pre_docall_cs.h | 73 - .../be_visitor_operation/rettype_return_cs.h | 78 - .../be_visitor_operation/rettype_vardecl_cs.h | 78 - .../be_visitor_operation/rettype_vardecl_ss.h | 79 - .../be_include/be_visitor_operation/tie_sh.h | 50 - .../be_include/be_visitor_operation/tie_si.h | 50 - TAO/TAO_IDL/be_include/be_visitor_root.h | 38 - TAO/TAO_IDL/be_include/be_visitor_root/any_op.h | 49 - TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h | 49 - TAO/TAO_IDL/be_include/be_visitor_root/root.h | 81 - TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h | 48 - TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h | 48 - TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h | 48 - TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h | 48 - TAO/TAO_IDL/be_include/be_visitor_root/root_si.h | 48 - TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h | 48 - TAO/TAO_IDL/be_include/be_visitor_scope.h | 53 - TAO/TAO_IDL/be_include/be_visitor_sequence.h | 24 - .../be_include/be_visitor_sequence/any_op_ch.h | 49 - .../be_include/be_visitor_sequence/any_op_cs.h | 49 - .../be_include/be_visitor_sequence/buffer_type.h | 63 - .../be_include/be_visitor_sequence/cdr_op_ch.h | 50 - .../be_include/be_visitor_sequence/cdr_op_cs.h | 86 - .../be_include/be_visitor_sequence/elemtype.h | 66 - .../be_include/be_visitor_sequence/sequence_base.h | 69 - .../be_include/be_visitor_sequence/sequence_ch.h | 78 - .../be_include/be_visitor_sequence/sequence_ci.h | 55 - .../be_include/be_visitor_sequence/sequence_cs.h | 51 - TAO/TAO_IDL/be_include/be_visitor_structure.h | 39 - .../be_include/be_visitor_structure/any_op_ch.h | 52 - .../be_include/be_visitor_structure/any_op_cs.h | 52 - .../be_include/be_visitor_structure/cdr_op_ch.h | 50 - .../be_include/be_visitor_structure/cdr_op_cs.h | 53 - .../be_include/be_visitor_structure/structure.h | 52 - .../be_include/be_visitor_structure/structure_ch.h | 48 - .../be_include/be_visitor_structure/structure_ci.h | 48 - .../be_include/be_visitor_structure/structure_cs.h | 48 - TAO/TAO_IDL/be_include/be_visitor_typecode.h | 31 - .../be_include/be_visitor_typecode/typecode_decl.h | 74 - .../be_include/be_visitor_typecode/typecode_defn.h | 82 - TAO/TAO_IDL/be_include/be_visitor_typedef.h | 39 - .../be_include/be_visitor_typedef/any_op_ch.h | 69 - .../be_include/be_visitor_typedef/any_op_cs.h | 69 - .../be_include/be_visitor_typedef/cdr_op_ch.h | 69 - .../be_include/be_visitor_typedef/cdr_op_cs.h | 69 - .../be_include/be_visitor_typedef/typedef.h | 72 - .../be_include/be_visitor_typedef/typedef_ch.h | 76 - .../be_include/be_visitor_typedef/typedef_ci.h | 65 - .../be_include/be_visitor_typedef/typedef_cs.h | 50 - TAO/TAO_IDL/be_include/be_visitor_union.h | 42 - .../be_include/be_visitor_union/any_op_ch.h | 52 - .../be_include/be_visitor_union/any_op_cs.h | 52 - .../be_include/be_visitor_union/cdr_op_ch.h | 50 - .../be_include/be_visitor_union/cdr_op_cs.h | 53 - .../be_include/be_visitor_union/discriminant_ch.h | 55 - .../be_include/be_visitor_union/discriminant_ci.h | 55 - .../be_include/be_visitor_union/discriminant_cs.h | 51 - TAO/TAO_IDL/be_include/be_visitor_union/union.h | 52 - TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h | 48 - TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h | 48 - TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h | 48 - TAO/TAO_IDL/be_include/be_visitor_union_branch.h | 36 - .../be_include/be_visitor_union_branch/cdr_op_ch.h | 66 - .../be_include/be_visitor_union_branch/cdr_op_cs.h | 78 - .../be_visitor_union_branch/private_ch.h | 82 - .../be_visitor_union_branch/public_access_cs.h | 80 - .../be_visitor_union_branch/public_assign_cs.h | 81 - .../be_include/be_visitor_union_branch/public_ch.h | 82 - .../be_include/be_visitor_union_branch/public_ci.h | 81 - .../be_include/be_visitor_union_branch/public_cs.h | 69 - .../be_visitor_union_branch/public_reset_cs.h | 81 - TAO/TAO_IDL/docs/ANNOUNCEMENT | 131 - TAO/TAO_IDL/docs/BUG_REPORT | 144 - TAO/TAO_IDL/docs/CHANGES | 122 - TAO/TAO_IDL/docs/CLI | 187 - TAO/TAO_IDL/docs/COPYRIGHT | 57 - TAO/TAO_IDL/docs/INSTALL | 229 - TAO/TAO_IDL/docs/PROBLEMS | 132 - TAO/TAO_IDL/docs/README | 233 - TAO/TAO_IDL/docs/ROADMAP | 126 - TAO/TAO_IDL/docs/WRITING_A_BE | 1350 - TAO/TAO_IDL/driver/drv_args.cpp | 551 - TAO/TAO_IDL/driver/drv_fork.cpp | 129 - TAO/TAO_IDL/driver/drv_init.cpp | 123 - TAO/TAO_IDL/driver/drv_link.cpp | 140 - TAO/TAO_IDL/driver/drv_preproc.cpp | 479 - TAO/TAO_IDL/driver/drv_private.cpp | 83 - TAO/TAO_IDL/fe/fe_declarator.cpp | 161 - TAO/TAO_IDL/fe/fe_extern.cpp | 126 - TAO/TAO_IDL/fe/fe_init.cpp | 371 - TAO/TAO_IDL/fe/fe_interface_header.cpp | 284 - TAO/TAO_IDL/fe/fe_lookup.cpp | 166 - TAO/TAO_IDL/fe/fe_private.cpp | 82 - TAO/TAO_IDL/fe/idl.ll | 552 - TAO/TAO_IDL/fe/idl.yy | 2300 -- TAO/TAO_IDL/fe/keywords.dat | 75 - TAO/TAO_IDL/fe/lex.yy.cpp | 2488 -- TAO/TAO_IDL/fe/y.tab.cpp | 3309 -- TAO/TAO_IDL/fe/y.tab.cpp.diff | 123 - TAO/TAO_IDL/fe/y.tab.h | 77 - TAO/TAO_IDL/idl_make_vars | 62 - TAO/TAO_IDL/idl_specs/array.idl | 39 - TAO/TAO_IDL/idl_specs/constant.idl | 31 - TAO/TAO_IDL/idl_specs/dif2.idl | 50 - TAO/TAO_IDL/idl_specs/inherit.idl | 19 - TAO/TAO_IDL/idl_specs/module.idl | 22 - TAO/TAO_IDL/idl_specs/primtypes.idl | 25 - TAO/TAO_IDL/idl_specs/sequence.idl | 27 - TAO/TAO_IDL/idl_specs/simple.idl | 18 - TAO/TAO_IDL/idl_specs/simple2.idl | 28 - TAO/TAO_IDL/idl_specs/struct.idl | 54 - TAO/TAO_IDL/idl_specs/union.idl | 28 - TAO/TAO_IDL/idl_specs/union2.idl | 23 - TAO/TAO_IDL/include/ast.h | 120 - TAO/TAO_IDL/include/ast_argument.h | 115 - TAO/TAO_IDL/include/ast_array.h | 117 - TAO/TAO_IDL/include/ast_attribute.h | 109 - TAO/TAO_IDL/include/ast_concrete_type.h | 95 - TAO/TAO_IDL/include/ast_constant.h | 117 - TAO/TAO_IDL/include/ast_decl.h | 190 - TAO/TAO_IDL/include/ast_enum.h | 115 - TAO/TAO_IDL/include/ast_enum_val.h | 99 - TAO/TAO_IDL/include/ast_exception.h | 118 - TAO/TAO_IDL/include/ast_expression.h | 231 - TAO/TAO_IDL/include/ast_extern.h | 93 - TAO/TAO_IDL/include/ast_field.h | 119 - TAO/TAO_IDL/include/ast_generator.h | 219 - TAO/TAO_IDL/include/ast_interface.h | 147 - TAO/TAO_IDL/include/ast_interface_fwd.h | 106 - TAO/TAO_IDL/include/ast_module.h | 121 - TAO/TAO_IDL/include/ast_native.h | 38 - TAO/TAO_IDL/include/ast_operation.h | 139 - TAO/TAO_IDL/include/ast_predefined_type.h | 127 - TAO/TAO_IDL/include/ast_root.h | 107 - TAO/TAO_IDL/include/ast_sequence.h | 108 - TAO/TAO_IDL/include/ast_string.h | 108 - TAO/TAO_IDL/include/ast_structure.h | 118 - TAO/TAO_IDL/include/ast_type.h | 101 - TAO/TAO_IDL/include/ast_typedef.h | 105 - TAO/TAO_IDL/include/ast_union.h | 143 - TAO/TAO_IDL/include/ast_union_branch.h | 109 - TAO/TAO_IDL/include/ast_union_label.h | 110 - TAO/TAO_IDL/include/be_extern.h | 82 - TAO/TAO_IDL/include/drv_extern.h | 87 - TAO/TAO_IDL/include/drv_link.h | 124 - TAO/TAO_IDL/include/drv_private.h | 83 - TAO/TAO_IDL/include/fe_declarator.h | 113 - TAO/TAO_IDL/include/fe_extern.h | 109 - TAO/TAO_IDL/include/fe_interface_header.h | 109 - TAO/TAO_IDL/include/fe_private.h | 107 - TAO/TAO_IDL/include/global_extern.h | 80 - TAO/TAO_IDL/include/idl.h | 97 - TAO/TAO_IDL/include/idl_bool.h | 94 - TAO/TAO_IDL/include/idl_defines.h | 84 - TAO/TAO_IDL/include/idl_extern.h | 81 - TAO/TAO_IDL/include/idl_fwd.h | 148 - TAO/TAO_IDL/include/idl_global.h | 529 - TAO/TAO_IDL/include/idl_narrow.h | 264 - TAO/TAO_IDL/include/intlmacros.h | 87 - TAO/TAO_IDL/include/nr_extern.h | 76 - TAO/TAO_IDL/include/util.h | 87 - TAO/TAO_IDL/include/utl_decllist.h | 121 - TAO/TAO_IDL/include/utl_err.h | 183 - TAO/TAO_IDL/include/utl_error.h | 183 - TAO/TAO_IDL/include/utl_exceptlist.h | 121 - TAO/TAO_IDL/include/utl_exprlist.h | 121 - TAO/TAO_IDL/include/utl_identifier.h | 113 - TAO/TAO_IDL/include/utl_idlist.h | 147 - TAO/TAO_IDL/include/utl_indenter.h | 117 - TAO/TAO_IDL/include/utl_labellist.h | 121 - TAO/TAO_IDL/include/utl_list.h | 150 - TAO/TAO_IDL/include/utl_namelist.h | 121 - TAO/TAO_IDL/include/utl_scope.h | 292 - TAO/TAO_IDL/include/utl_scoped_name.h | 82 - TAO/TAO_IDL/include/utl_stack.h | 150 - TAO/TAO_IDL/include/utl_string.h | 143 - TAO/TAO_IDL/include/utl_strlist.h | 135 - TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h | 100 - TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h | 108 - TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h | 101 - TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h | 100 - TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h | 96 - TAO/TAO_IDL/include/utl_tmpl/utl_list.h | 140 - TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h | 98 - TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h | 104 - TAO/TAO_IDL/narrow/narrow.cpp | 141 - TAO/TAO_IDL/tao_idl.cpp | 261 - TAO/TAO_IDL/tao_idl.dsp | 33940 ------------------- TAO/TAO_IDL/tao_idl.dsw | 41 - TAO/TAO_IDL/tao_idl_static.dsp | 1047 - TAO/TAO_IDL/util/utl_decllist.cpp | 149 - TAO/TAO_IDL/util/utl_err.cpp | 706 - TAO/TAO_IDL/util/utl_error.cpp | 706 - TAO/TAO_IDL/util/utl_exceptlist.cpp | 147 - TAO/TAO_IDL/util/utl_exprlist.cpp | 147 - TAO/TAO_IDL/util/utl_global.cpp | 951 - TAO/TAO_IDL/util/utl_identifier.cpp | 124 - TAO/TAO_IDL/util/utl_idlist.cpp | 191 - TAO/TAO_IDL/util/utl_indenter.cpp | 135 - TAO/TAO_IDL/util/utl_labellist.cpp | 147 - TAO/TAO_IDL/util/utl_list.cpp | 199 - TAO/TAO_IDL/util/utl_namelist.cpp | 147 - TAO/TAO_IDL/util/utl_scope.cpp | 1208 - TAO/TAO_IDL/util/utl_stack.cpp | 258 - TAO/TAO_IDL/util/utl_string.cpp | 214 - TAO/TAO_IDL/util/utl_strlist.cpp | 198 - TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp | 107 - TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp | 106 - TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp | 106 - TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp | 139 - TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp | 106 - TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp | 213 - TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp | 108 - TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp | 141 - TAO/VERSION | 5 - TAO/announcement | 61 - TAO/docs/DIFFERENCES | 360 - TAO/docs/HISTORY | 44 - TAO/docs/Options.html | 308 - TAO/docs/REFERENCES | 91 - TAO/docs/compiler.html | 235 - TAO/docs/components.html | 44 - TAO/docs/configurations.html | 567 - TAO/docs/forwarding.html | 111 - TAO/docs/implrepo.html | 677 - TAO/docs/index.html | 50 - TAO/docs/leader_follower.html | 60 - TAO/docs/locate_request.html | 56 - TAO/docs/orbsvcs.html | 181 - TAO/docs/poa_migration.html | 69 - TAO/docs/reactivator.html | 21 - TAO/docs/releasenotes.html | 26 - TAO/docs/releasenotes/TODO.html | 1086 - TAO/docs/releasenotes/ec.html | 242 - TAO/docs/releasenotes/index.html | 763 - TAO/docs/releasenotes/orbcore.html | 513 - TAO/docs/releasenotes/trader.html | 1053 - TAO/examples/Makefile | 26 - TAO/examples/POA/DSI/DSI.DSW | 41 - TAO/examples/POA/DSI/Database.idl | 73 - TAO/examples/POA/DSI/Database_i.cpp | 325 - TAO/examples/POA/DSI/Database_i.h | 116 - TAO/examples/POA/DSI/Makefile | 60 - TAO/examples/POA/DSI/README | 5 - TAO/examples/POA/DSI/client.cpp | 169 - TAO/examples/POA/DSI/client.dsp | 209 - TAO/examples/POA/DSI/run_test.pl | 21 - TAO/examples/POA/DSI/server.cpp | 234 - TAO/examples/POA/DSI/server.dsp | 206 - .../POA/Default_Servant/Default_Servant.dsw | 41 - TAO/examples/POA/Default_Servant/File.idl | 52 - TAO/examples/POA/Default_Servant/File_i.cpp | 223 - TAO/examples/POA/Default_Servant/File_i.h | 89 - TAO/examples/POA/Default_Servant/Makefile | 60 - TAO/examples/POA/Default_Servant/README | 45 - TAO/examples/POA/Default_Servant/client.cpp | 175 - TAO/examples/POA/Default_Servant/client.dsp | 210 - TAO/examples/POA/Default_Servant/run_test.pl | 21 - TAO/examples/POA/Default_Servant/server.cpp | 235 - TAO/examples/POA/Default_Servant/server.dsp | 218 - TAO/examples/POA/Default_Servant/svc.conf | 49 - TAO/examples/POA/Default_Servant/test | 1 - .../Alt_Resources/Alt_Resource_Factory.dsp | 63 - .../Alt_Resources/Alt_Resource_Factory.dsw | 29 - .../Alt_Resources/Alt_Resource_Factory.h | 32 - .../POA/Explicit_Activation/Alt_Resources/README | 14 - .../Alt_Resources/Resource_Factory.cpp | 26 - .../Alt_Resources/Resource_Factory.h | 25 - .../Explicit_Activation/Explicit_Activation.dsw | 29 - TAO/examples/POA/Explicit_Activation/Makefile | 44 - TAO/examples/POA/Explicit_Activation/README | 48 - .../POA/Explicit_Activation/alternate.conf | 5 - TAO/examples/POA/Explicit_Activation/run_test.pl | 69 - TAO/examples/POA/Explicit_Activation/server.cpp | 383 - TAO/examples/POA/Explicit_Activation/server.dsp | 100 - TAO/examples/POA/FindPOA/FindPOA.cpp | 179 - TAO/examples/POA/FindPOA/FindPOA.dsp | 99 - TAO/examples/POA/FindPOA/FindPOA.dsw | 29 - TAO/examples/POA/FindPOA/Makefile | 271 - TAO/examples/POA/FindPOA/README | 52 - TAO/examples/POA/Forwarding/Foo.idl | 19 - TAO/examples/POA/Forwarding/Forwarding.dsw | 41 - TAO/examples/POA/Forwarding/Makefile | 63 - TAO/examples/POA/Forwarding/MyFooServant.cpp | 142 - TAO/examples/POA/Forwarding/MyFooServant.h | 84 - TAO/examples/POA/Forwarding/README | 55 - TAO/examples/POA/Forwarding/Servant_Locator.cpp | 117 - TAO/examples/POA/Forwarding/Servant_Locator.h | 74 - TAO/examples/POA/Forwarding/client.cpp | 200 - TAO/examples/POA/Forwarding/client.dsp | 210 - TAO/examples/POA/Forwarding/server.cpp | 560 - TAO/examples/POA/Forwarding/server.dsp | 226 - TAO/examples/POA/Forwarding/svc.conf | 49 - TAO/examples/POA/Generic_Servant/Foo.idl | 23 - .../POA/Generic_Servant/Generic_Servant.dsw | 41 - TAO/examples/POA/Generic_Servant/Makefile | 77 - TAO/examples/POA/Generic_Servant/MyFooServant.cpp | 58 - TAO/examples/POA/Generic_Servant/MyFooServant.h | 55 - TAO/examples/POA/Generic_Servant/README | 24 - TAO/examples/POA/Generic_Servant/client.cpp | 241 - TAO/examples/POA/Generic_Servant/client.dsp | 201 - .../POA/Generic_Servant/generic_servant_export.h | 31 - TAO/examples/POA/Generic_Servant/server.dsp | 215 - TAO/examples/POA/Makefile | 38 - TAO/examples/POA/NewPOA/Makefile | 271 - TAO/examples/POA/NewPOA/NewPOA.cpp | 193 - TAO/examples/POA/NewPOA/NewPOA.dsp | 99 - TAO/examples/POA/NewPOA/NewPOA.dsw | 29 - TAO/examples/POA/NewPOA/README | 15 - TAO/examples/POA/On_Demand_Activation/Makefile | 276 - .../On_Demand_Activation/On_Demand_Activation.dsw | 29 - TAO/examples/POA/On_Demand_Activation/README | 99 - .../POA/On_Demand_Activation/Servant_Activator.cpp | 71 - .../POA/On_Demand_Activation/Servant_Activator.h | 45 - .../POA/On_Demand_Activation/Servant_Locator.cpp | 81 - .../POA/On_Demand_Activation/Servant_Locator.h | 53 - TAO/examples/POA/On_Demand_Activation/run_test.pl | 65 - TAO/examples/POA/On_Demand_Activation/server.cpp | 374 - TAO/examples/POA/On_Demand_Activation/server.dsp | 119 - TAO/examples/POA/On_Demand_Activation/svc.conf | 49 - TAO/examples/POA/README | 58 - TAO/examples/POA/RootPOA/Makefile | 270 - TAO/examples/POA/RootPOA/README | 11 - TAO/examples/POA/RootPOA/RootPOA.cpp | 75 - TAO/examples/POA/RootPOA/RootPOA.dsp | 99 - TAO/examples/POA/RootPOA/RootPOA.dsw | 29 - TAO/examples/POA/TIE/Foo.idl | 30 - TAO/examples/POA/TIE/Foo_i.cpp | 99 - TAO/examples/POA/TIE/Foo_i.h | 108 - TAO/examples/POA/TIE/Makefile | 71 - TAO/examples/POA/TIE/TIE.dsw | 41 - TAO/examples/POA/TIE/client.cpp | 229 - TAO/examples/POA/TIE/client.dsp | 210 - TAO/examples/POA/TIE/server.cpp | 306 - TAO/examples/POA/TIE/server.dsp | 218 - TAO/examples/POA/locking/Makefile | 271 - TAO/examples/POA/locking/locking.cpp | 168 - TAO/examples/POA/locking/locking.dsp | 99 - TAO/examples/POA/locking/locking.dsw | 29 - TAO/examples/Quoter/Factory_Finder.cpp | 228 - TAO/examples/Quoter/Factory_Finder.dsp | 227 - TAO/examples/Quoter/Factory_Finder.h | 61 - TAO/examples/Quoter/Factory_Finder_i.cpp | 120 - TAO/examples/Quoter/Factory_Finder_i.h | 38 - TAO/examples/Quoter/Generic_Factory.cpp | 282 - TAO/examples/Quoter/Generic_Factory.dsp | 227 - TAO/examples/Quoter/Generic_Factory.h | 65 - TAO/examples/Quoter/Generic_Factory_i.cpp | 198 - TAO/examples/Quoter/Generic_Factory_i.h | 52 - TAO/examples/Quoter/Makefile | 108 - TAO/examples/Quoter/Quoter.dsw | 65 - TAO/examples/Quoter/Quoter.idl | 133 - TAO/examples/Quoter/Quoter_i.cpp | 348 - TAO/examples/Quoter/Quoter_i.h | 108 - TAO/examples/Quoter/README | 122 - TAO/examples/Quoter/client.conf | 49 - TAO/examples/Quoter/client.cpp | 415 - TAO/examples/Quoter/client.dsp | 219 - TAO/examples/Quoter/client.h | 112 - TAO/examples/Quoter/run_test.pl | 243 - TAO/examples/Quoter/server.conf | 49 - TAO/examples/Quoter/server.cpp | 271 - TAO/examples/Quoter/server.dsp | 228 - TAO/examples/Quoter/server.h | 83 - TAO/examples/Quoter/svc.conf | 49 - TAO/examples/Quoter/testall.pl | 206 - TAO/examples/README | 22 - TAO/examples/Simple/Makefile | 26 - TAO/examples/Simple/README | 28 - TAO/examples/Simple/bank/AccountManager_i.cpp | 154 - TAO/examples/Simple/bank/AccountManager_i.h | 89 - TAO/examples/Simple/bank/Account_i.cpp | 73 - TAO/examples/Simple/bank/Account_i.h | 77 - TAO/examples/Simple/bank/Bank.idl | 59 - TAO/examples/Simple/bank/Client_i.cpp | 378 - TAO/examples/Simple/bank/Client_i.h | 132 - TAO/examples/Simple/bank/Makefile | 1977 -- TAO/examples/Simple/bank/README | 48 - TAO/examples/Simple/bank/Server_i.cpp | 183 - TAO/examples/Simple/bank/Server_i.h | 86 - TAO/examples/Simple/bank/client.cpp | 21 - TAO/examples/Simple/bank/run_test.pl | 23 - TAO/examples/Simple/bank/server.cpp | 42 - TAO/examples/Simple/chat/Broadcaster.idl | 34 - TAO/examples/Simple/chat/Broadcaster_i.cpp | 174 - TAO/examples/Simple/chat/Broadcaster_i.h | 91 - TAO/examples/Simple/chat/Client_i.cpp | 249 - TAO/examples/Simple/chat/Makefile | 88 - TAO/examples/Simple/chat/README | 34 - TAO/examples/Simple/chat/Receiver.idl | 15 - TAO/examples/Simple/chat/Receiver_i.cpp | 50 - TAO/examples/Simple/chat/Receiver_i.h | 57 - TAO/examples/Simple/chat/Server.h | 18 - TAO/examples/Simple/chat/Server_i.cpp | 118 - TAO/examples/Simple/chat/Server_i.h | 67 - TAO/examples/Simple/chat/client.cpp | 40 - TAO/examples/Simple/chat/server.cpp | 45 - TAO/examples/Simple/echo/Client_i.cpp | 262 - TAO/examples/Simple/echo/Client_i.h | 95 - TAO/examples/Simple/echo/Echo.dsw | 41 - TAO/examples/Simple/echo/Echo.idl | 20 - TAO/examples/Simple/echo/Echo_i.cpp | 83 - TAO/examples/Simple/echo/Echo_i.h | 58 - TAO/examples/Simple/echo/Makefile | 83 - TAO/examples/Simple/echo/README | 53 - TAO/examples/Simple/echo/Server_i.cpp | 174 - TAO/examples/Simple/echo/Server_i.h | 82 - TAO/examples/Simple/echo/client.cpp | 21 - TAO/examples/Simple/echo/client.dsp | 181 - TAO/examples/Simple/echo/run_test.pl | 18 - TAO/examples/Simple/echo/server.cpp | 41 - TAO/examples/Simple/echo/server.dsp | 189 - TAO/examples/Simple/grid/Client_i.cpp | 242 - TAO/examples/Simple/grid/Client_i.h | 93 - TAO/examples/Simple/grid/Grid.dsw | 41 - TAO/examples/Simple/grid/Grid.idl | 53 - TAO/examples/Simple/grid/Grid_i.cpp | 184 - TAO/examples/Simple/grid/Grid_i.h | 112 - TAO/examples/Simple/grid/Makefile | 83 - TAO/examples/Simple/grid/Server_i.cpp | 114 - TAO/examples/Simple/grid/Server_i.h | 63 - TAO/examples/Simple/grid/client.cpp | 20 - TAO/examples/Simple/grid/client.dsp | 201 - TAO/examples/Simple/grid/run_test.pl | 23 - TAO/examples/Simple/grid/server.cpp | 40 - TAO/examples/Simple/grid/server.dsp | 205 - TAO/examples/Simple/time/Client_i.cpp | 198 - TAO/examples/Simple/time/Client_i.h | 79 - TAO/examples/Simple/time/Makefile | 83 - TAO/examples/Simple/time/README | 54 - TAO/examples/Simple/time/Server_i.cpp | 120 - TAO/examples/Simple/time/Server_i.h | 65 - TAO/examples/Simple/time/Time.dsw | 65 - TAO/examples/Simple/time/Time.idl | 15 - TAO/examples/Simple/time/Time_i.cpp | 48 - TAO/examples/Simple/time/Time_i.h | 56 - TAO/examples/Simple/time/client.cpp | 22 - TAO/examples/Simple/time/client.dsp | 1127 - TAO/examples/Simple/time/client_static.dsp | 211 - TAO/examples/Simple/time/run_test.pl | 23 - TAO/examples/Simple/time/server.cpp | 42 - TAO/examples/Simple/time/server.dsp | 1151 - TAO/examples/Simple/time/server_static.dsp | 218 - .../Simulator/DOVEBrowser/AnswerEvent.java | 23 - .../Simulator/DOVEBrowser/AnswerListener.java | 18 - .../Simulator/DOVEBrowser/DOVEBrowser.html | 30 - .../Simulator/DOVEBrowser/DOVEBrowser.java | 47 - .../Simulator/DOVEBrowser/DOVEBrowserApplet.java | 49 - .../Simulator/DOVEBrowser/DataHandler.java | 34 - TAO/examples/Simulator/DOVEBrowser/DemoCore.java | 154 - .../Simulator/DOVEBrowser/DemoObservable.java | 19 - .../Simulator/DOVEBrowser/DoubleVisComp.java | 206 - TAO/examples/Simulator/DOVEBrowser/Makefile | 106 - TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java | 112 - .../Simulator/DOVEBrowser/NavWeapDataHandler.java | 220 - .../Simulator/DOVEBrowser/NavigationVisComp.java | 350 - .../Simulator/DOVEBrowser/ObservablesDialog.java | 90 - TAO/examples/Simulator/DOVEBrowser/Properties.java | 22 - .../Simulator/DOVEBrowser/PushConsumer.java | 191 - .../Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 | 179 - .../Simulator/DOVEBrowser/PushConsumerFactory.java | 181 - .../DOVEBrowser/PushConsumerFactory.java.JDK1.2 | 180 - TAO/examples/Simulator/DOVEBrowser/Queue.java | 190 - TAO/examples/Simulator/DOVEBrowser/VisComp.java | 19 - .../Simulator/DOVEBrowser/VisCompFactory.java | 48 - .../Simulator/DOVEBrowser/WeaponsVisComp.java | 144 - TAO/examples/Simulator/DOVEBrowser/make.bat | 45 - TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp | 216 - TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h | 63 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp | 419 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp | 102 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw | 53 - TAO/examples/Simulator/DOVEMIB/DOVEMIB.h | 62 - TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp | 177 - TAO/examples/Simulator/DOVEMIB/Makefile | 1239 - TAO/examples/Simulator/DOVEMIB/Node.cpp | 219 - TAO/examples/Simulator/DOVEMIB/Node.h | 185 - TAO/examples/Simulator/DOVEMIB/NodeVisitor.h | 39 - TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp | 159 - TAO/examples/Simulator/DOVEMIB/PrintVisitor.h | 51 - TAO/examples/Simulator/DOVEMIB/TestClient.dsp | 167 - TAO/examples/Simulator/DOVEMIB/any_test.idl | 11 - TAO/examples/Simulator/DOVEMIB/any_test_i.cpp | 64 - TAO/examples/Simulator/DOVEMIB/any_test_i.h | 42 - TAO/examples/Simulator/DOVEMIB/clnt.cpp | 184 - TAO/examples/Simulator/DOVEMIB/clnt.h | 62 - TAO/examples/Simulator/DOVEMIB/svc.conf | 49 - TAO/examples/Simulator/DOVEMIB/svr.cpp | 168 - .../Simulator/Event_Supplier/DOVE_Supplier.cpp | 238 - .../Simulator/Event_Supplier/DOVE_Supplier.h | 81 - TAO/examples/Simulator/Event_Supplier/EDF.dat | 72 - .../Simulator/Event_Supplier/Event_Con.cpp | 376 - TAO/examples/Simulator/Event_Supplier/Event_Con.h | 66 - .../Simulator/Event_Supplier/Event_Sup.cpp | 466 - .../Simulator/Event_Supplier/Event_Sup.dsp | 160 - .../Simulator/Event_Supplier/Event_Sup.dsw | 29 - TAO/examples/Simulator/Event_Supplier/Event_Sup.h | 79 - TAO/examples/Simulator/Event_Supplier/MLF.dat | 72 - TAO/examples/Simulator/Event_Supplier/MUF.dat | 72 - TAO/examples/Simulator/Event_Supplier/Makefile | 1303 - TAO/examples/Simulator/Event_Supplier/RMS.dat | 72 - TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat | 72 - TAO/examples/Simulator/Event_Supplier/svc.conf | 49 - TAO/examples/Simulator/Makefile | 23 - TAO/examples/Simulator/NavWeap.idl | 54 - TAO/examples/Simulator/README | 179 - TAO/examples/TAO_Examples.dsw | 293 - .../Concurrency_Service/Concurrency_Service.cpp | 222 - .../Concurrency_Service/Concurrency_Service.dsp | 104 - .../Concurrency_Service/Concurrency_Service.dsw | 29 - .../Concurrency_Service/Concurrency_Service.h | 101 - TAO/orbsvcs/Concurrency_Service/Makefile | 299 - TAO/orbsvcs/Concurrency_Service/README | 129 - TAO/orbsvcs/Concurrency_Service/svc.conf | 49 - TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp | 101 - TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp | 100 - TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw | 29 - TAO/orbsvcs/Dump_Schedule/Makefile | 285 - TAO/orbsvcs/Dump_Schedule/svc.conf | 49 - TAO/orbsvcs/Event_Service/Event_Service.cpp | 198 - TAO/orbsvcs/Event_Service/Event_Service.dsp | 148 - TAO/orbsvcs/Event_Service/Event_Service.dsw | 29 - TAO/orbsvcs/Event_Service/Makefile | 350 - TAO/orbsvcs/Event_Service/svc.conf | 7 - .../LifeCycle_Service/Criteria_Evaluator.cpp | 89 - TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h | 58 - TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp | 255 - TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h | 52 - .../LifeCycle_Service/LifeCycle_Service.dsp | 135 - .../LifeCycle_Service/LifeCycle_Service.dsw | 29 - .../LifeCycle_Service/Life_Cycle_Service.cpp | 224 - TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h | 64 - .../LifeCycle_Service/Life_Cycle_Service_i.cpp | 168 - .../LifeCycle_Service/Life_Cycle_Service_i.h | 63 - TAO/orbsvcs/LifeCycle_Service/Makefile | 1065 - TAO/orbsvcs/LifeCycle_Service/svc.conf | 49 - TAO/orbsvcs/Logging_Service/Logging_Service.cpp | 43 - TAO/orbsvcs/Logging_Service/Logging_Service_i.cpp | 136 - TAO/orbsvcs/Logging_Service/Logging_Service_i.h | 97 - TAO/orbsvcs/Logging_Service/Makefile | 554 - TAO/orbsvcs/Makefile | 31 - TAO/orbsvcs/Naming_Service/Makefile | 290 - TAO/orbsvcs/Naming_Service/Naming_Service.cpp | 178 - TAO/orbsvcs/Naming_Service/Naming_Service.dsp | 445 - TAO/orbsvcs/Naming_Service/Naming_Service.dsw | 29 - TAO/orbsvcs/Naming_Service/Naming_Service.h | 67 - TAO/orbsvcs/Naming_Service/README | 76 - TAO/orbsvcs/Naming_Service/svc.conf | 49 - TAO/orbsvcs/Scheduling_Service/Makefile | 300 - .../Scheduling_Service/Scheduling_Service.cpp | 119 - .../Scheduling_Service/Scheduling_Service.dsp | 113 - .../Scheduling_Service/Scheduling_Service.dsw | 29 - TAO/orbsvcs/Scheduling_Service/svc.conf | 49 - TAO/orbsvcs/Trading_Service/Makefile | 292 - TAO/orbsvcs/Trading_Service/README | 10 - TAO/orbsvcs/Trading_Service/Trading_Service.cpp | 375 - TAO/orbsvcs/Trading_Service/Trading_Service.dsp | 104 - TAO/orbsvcs/Trading_Service/Trading_Service.dsw | 29 - TAO/orbsvcs/Trading_Service/Trading_Service.h | 99 - TAO/orbsvcs/Trading_Service/svc.conf | 49 - TAO/orbsvcs/default.bld | 44 - TAO/orbsvcs/orbsvcs.dsw | 134 - TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp | 857 - TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h | 488 - TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp | 356 - TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h | 155 - TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp | 604 - TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h | 216 - TAO/orbsvcs/orbsvcs/AV/README | 28 - TAO/orbsvcs/orbsvcs/AVStreams.idl | 532 - TAO/orbsvcs/orbsvcs/AVStreams_Full.idl | 250 - TAO/orbsvcs/orbsvcs/Channel_Clients.cpp | 5 - TAO/orbsvcs/orbsvcs/Channel_Clients.h | 26 - TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp | 33 - TAO/orbsvcs/orbsvcs/Channel_Clients_T.h | 93 - TAO/orbsvcs/orbsvcs/Channel_Clients_T.i | 17 - TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp | 240 - TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h | 135 - TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp | 341 - TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h | 169 - .../orbsvcs/Concurrency/CC_LockSetFactory.cpp | 62 - .../orbsvcs/Concurrency/CC_LockSetFactory.h | 55 - .../orbsvcs/Concurrency/Concurrency_Utils.cpp | 96 - .../orbsvcs/Concurrency/Concurrency_Utils.h | 65 - TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl | 196 - TAO/orbsvcs/orbsvcs/CosLifeCycle.idl | 121 - TAO/orbsvcs/orbsvcs/CosNaming.idl | 232 - TAO/orbsvcs/orbsvcs/CosPropertyService.idl | 406 - TAO/orbsvcs/orbsvcs/CosTimeBase.idl | 49 - TAO/orbsvcs/orbsvcs/CosTrading.idl | 682 - TAO/orbsvcs/orbsvcs/Event/BCU.cpp | 32 - TAO/orbsvcs/orbsvcs/Event/BCU.h | 36 - TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp | 351 - TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h | 236 - TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i | 76 - TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i | 2 - TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i | 35 - TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h | 13 - TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp | 681 - TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h | 499 - TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i | 261 - TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp | 263 - TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h | 183 - TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp | 499 - TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h | 261 - TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp | 23 - TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h | 70 - TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp | 3520 -- TAO/orbsvcs/orbsvcs/Event/Event_Channel.h | 1424 - TAO/orbsvcs/orbsvcs/Event/Event_Channel.i | 691 - TAO/orbsvcs/orbsvcs/Event/Fast_Reactor.h | 55 - TAO/orbsvcs/orbsvcs/Event/GPlot_File.cpp | 181 - TAO/orbsvcs/orbsvcs/Event/GPlot_File.h | 97 - TAO/orbsvcs/orbsvcs/Event/GPlot_File.i | 70 - TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.cpp | 11 - TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.h | 49 - TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.i | 5 - TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp | 45 - TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h | 104 - TAO/orbsvcs/orbsvcs/Event/Memory_Pools.i | 54 - TAO/orbsvcs/orbsvcs/Event/Module_Factory.cpp | 106 - TAO/orbsvcs/orbsvcs/Event/Module_Factory.h | 133 - TAO/orbsvcs/orbsvcs/Event/RT_Task.cpp | 484 - TAO/orbsvcs/orbsvcs/Event/RT_Task.h | 175 - TAO/orbsvcs/orbsvcs/Event/RT_Task.i | 8 - TAO/orbsvcs/orbsvcs/Event/ReactorTask.cpp | 134 - TAO/orbsvcs/orbsvcs/Event/ReactorTask.h | 76 - TAO/orbsvcs/orbsvcs/Event/Task_Manager.cpp | 77 - TAO/orbsvcs/orbsvcs/Event/Task_Manager.h | 68 - TAO/orbsvcs/orbsvcs/Event/Task_Manager.i | 25 - TAO/orbsvcs/orbsvcs/Event_Service_Constants.h | 98 - TAO/orbsvcs/orbsvcs/Event_Utilities.cpp | 130 - TAO/orbsvcs/orbsvcs/Event_Utilities.h | 224 - TAO/orbsvcs/orbsvcs/Event_Utilities.i | 100 - TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp | 125 - TAO/orbsvcs/orbsvcs/IOR_Multicast.h | 90 - TAO/orbsvcs/orbsvcs/LifeCycleService.idl | 71 - TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp | 210 - TAO/orbsvcs/orbsvcs/Log/Logger_i.h | 96 - TAO/orbsvcs/orbsvcs/Logger.idl | 106 - TAO/orbsvcs/orbsvcs/Makefile | 12369 ------- TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.cpp | 903 - TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.h | 228 - TAO/orbsvcs/orbsvcs/Naming/Entries.cpp | 110 - TAO/orbsvcs/orbsvcs/Naming/Entries.h | 97 - TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp | 263 - TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.h | 134 - TAO/orbsvcs/orbsvcs/Null_MediaCtrl.idl | 5 - .../orbsvcs/Property/CosPropertyService_i.cpp | 1949 -- .../orbsvcs/Property/CosPropertyService_i.h | 500 - TAO/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl | 164 - TAO/orbsvcs/orbsvcs/RtecEventComm.idl | 102 - TAO/orbsvcs/orbsvcs/RtecScheduler.idl | 327 - TAO/orbsvcs/orbsvcs/RtecUDPAdmin.idl | 28 - TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp | 267 - TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h | 127 - TAO/orbsvcs/orbsvcs/Runtime_Scheduler.i | 5 - TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp | 367 - TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h | 180 - TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.i | 5 - TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp | 1900 -- TAO/orbsvcs/orbsvcs/Sched/DynSched.h | 500 - TAO/orbsvcs/orbsvcs/Sched/DynSched.i | 111 - TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp | 912 - TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h | 592 - TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i | 401 - TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp | 300 - TAO/orbsvcs/orbsvcs/Sched/Scheduler.h | 291 - TAO/orbsvcs/orbsvcs/Sched/Scheduler.i | 20 - TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp | 283 - TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h | 136 - TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.i | 21 - TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp | 1320 - TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h | 498 - TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.i | 21 - TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp | 363 - TAO/orbsvcs/orbsvcs/Scheduler_Factory.h | 151 - TAO/orbsvcs/orbsvcs/Scheduler_Factory.i | 25 - TAO/orbsvcs/orbsvcs/Scheduler_Utilities.cpp | 16 - TAO/orbsvcs/orbsvcs/Scheduler_Utilities.h | 47 - TAO/orbsvcs/orbsvcs/Scheduler_Utilities.i | 32 - TAO/orbsvcs/orbsvcs/Time_Utilities.cpp | 12 - TAO/orbsvcs/orbsvcs/Time_Utilities.h | 57 - TAO/orbsvcs/orbsvcs/Time_Utilities.i | 53 - .../orbsvcs/Trader/Constraint_Interpreter.cpp | 335 - .../orbsvcs/Trader/Constraint_Interpreter.h | 229 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp | 904 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h | 323 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Tokens.h | 36 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp | 1175 - TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h | 366 - TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp | 1765 - TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp | 898 - TAO/orbsvcs/orbsvcs/Trader/Locking.h | 48 - TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp | 373 - TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h | 197 - TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp | 387 - TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h | 276 - TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp | 107 - TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h | 80 - .../orbsvcs/Trader/Service_Type_Repository.cpp | 634 - .../orbsvcs/Trader/Service_Type_Repository.h | 298 - TAO/orbsvcs/orbsvcs/Trader/Trader.cpp | 1060 - TAO/orbsvcs/orbsvcs/Trader/Trader.h | 561 - TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp | 1862 - TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h | 995 - TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp | 388 - TAO/orbsvcs/orbsvcs/Trader/Trader_T.h | 267 - TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp | 1492 - TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h | 775 - TAO/orbsvcs/orbsvcs/Trader/constraint.l | 131 - TAO/orbsvcs/orbsvcs/Trader/constraint.y | 136 - TAO/orbsvcs/orbsvcs/orbsvcs.dsp | 29887 ---------------- TAO/orbsvcs/orbsvcs/orbsvcs.dsw | 41 - TAO/orbsvcs/orbsvcs/orbsvcs_export.h | 31 - TAO/orbsvcs/orbsvcs/orbsvcs_static.dsp | 1563 - TAO/orbsvcs/orbsvcs/sfp.idl | 86 - TAO/orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp | 46 - TAO/orbsvcs/tests/AVStreams/Makefile | 25 - TAO/orbsvcs/tests/AVStreams/README | 27 - TAO/orbsvcs/tests/AVStreams/benchmark/Makefile | 875 - TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp | 153 - TAO/orbsvcs/tests/AVStreams/benchmark/child.h | 76 - TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp | 451 - TAO/orbsvcs/tests/AVStreams/benchmark/client.h | 157 - TAO/orbsvcs/tests/AVStreams/benchmark/clnt.conf | 49 - TAO/orbsvcs/tests/AVStreams/benchmark/server.cpp | 247 - TAO/orbsvcs/tests/AVStreams/benchmark/server.h | 96 - TAO/orbsvcs/tests/AVStreams/benchmark/svc.conf | 50 - TAO/orbsvcs/tests/AVStreams/mpeg/INSTALL.UCB | 105 - TAO/orbsvcs/tests/AVStreams/mpeg/Makefile | 24 - TAO/orbsvcs/tests/AVStreams/mpeg/PatchLevel | 12 - TAO/orbsvcs/tests/AVStreams/mpeg/README | 52 - TAO/orbsvcs/tests/AVStreams/mpeg/README.MI | 39 - TAO/orbsvcs/tests/AVStreams/mpeg/README.UCB | 105 - TAO/orbsvcs/tests/AVStreams/mpeg/source/Makefile | 32 - TAO/orbsvcs/tests/AVStreams/mpeg/source/TODO | 50 - .../tests/AVStreams/mpeg/source/client/Makefile | 84 - .../tests/AVStreams/mpeg/source/client/svc.conf | 49 - .../tests/AVStreams/mpeg/source/client/vcr.cpp | 478 - .../tests/AVStreams/mpeg/source/include/common.h | 583 - .../AVStreams/mpeg/source/mpeg_client/24bit.cpp | 218 - .../AVStreams/mpeg/source/mpeg_client/2x2.cpp | 377 - .../mpeg/source/mpeg_client/Command_Handler.cpp | 3008 -- .../mpeg/source/mpeg_client/Command_Handler.h | 520 - .../AVStreams/mpeg/source/mpeg_client/Makefile | 629 - .../tests/AVStreams/mpeg/source/mpeg_client/ab.cpp | 485 - .../AVStreams/mpeg/source/mpeg_client/audio.cpp | 494 - .../AVStreams/mpeg/source/mpeg_client/ctr.cpp | 3050 -- .../AVStreams/mpeg/source/mpeg_client/decoders.cpp | 937 - .../AVStreams/mpeg/source/mpeg_client/decoders.h | 476 - .../AVStreams/mpeg/source/mpeg_client/dither.h | 36 - .../AVStreams/mpeg/source/mpeg_client/file.cpp | 150 - .../AVStreams/mpeg/source/mpeg_client/fs2.cpp | 398 - .../tests/AVStreams/mpeg/source/mpeg_client/fs2.h | 29 - .../AVStreams/mpeg/source/mpeg_client/fs2fast.cpp | 300 - .../AVStreams/mpeg/source/mpeg_client/fs4.cpp | 312 - .../tests/AVStreams/mpeg/source/mpeg_client/fs4.h | 31 - .../AVStreams/mpeg/source/mpeg_client/global.cpp | 96 - .../AVStreams/mpeg/source/mpeg_client/global.h | 67 - .../AVStreams/mpeg/source/mpeg_client/gray.cpp | 85 - .../AVStreams/mpeg/source/mpeg_client/hybrid.cpp | 237 - .../mpeg/source/mpeg_client/hybriderr.cpp | 360 - .../AVStreams/mpeg/source/mpeg_client/info.cpp | 85 - .../mpeg/source/mpeg_client/interface/Info.mib | 78 - .../mpeg/source/mpeg_client/interface/MW.mib | 229 - .../source/mpeg_client/interface/MainWindow.mib | 324 - .../mpeg/source/mpeg_client/interface/fb.xbm | 9 - .../mpeg/source/mpeg_client/interface/ff.xbm | 8 - .../mpeg/source/mpeg_client/interface/loop.xbm | 8 - .../mpeg_client/interface/old.MainWindow.mib | 305 - .../mpeg/source/mpeg_client/interface/play.xbm | 8 - .../mpeg/source/mpeg_client/interface/rewind.xbm | 8 - .../mpeg/source/mpeg_client/interface/step.xbm | 8 - .../mpeg/source/mpeg_client/interface/stop.xbm | 8 - .../AVStreams/mpeg/source/mpeg_client/jrevdct.cpp | 1461 - .../mpeg/source/mpeg_client/mb_ordered.cpp | 517 - .../AVStreams/mpeg/source/mpeg_client/mibload.h | 155 - .../AVStreams/mpeg/source/mpeg_client/mono.cpp | 256 - .../mpeg/source/mpeg_client/motionvector.cpp | 197 - .../AVStreams/mpeg/source/mpeg_client/newproto.h | 110 - .../AVStreams/mpeg/source/mpeg_client/ordered.cpp | 290 - .../AVStreams/mpeg/source/mpeg_client/ordered2.cpp | 328 - .../AVStreams/mpeg/source/mpeg_client/para.cpp | 375 - .../mpeg/source/mpeg_client/parseblock.cpp | 461 - .../AVStreams/mpeg/source/mpeg_client/prog.cpp | 933 - .../AVStreams/mpeg/source/mpeg_client/proto.h | 128 - .../tests/AVStreams/mpeg/source/mpeg_client/ui.cpp | 1004 - .../tests/AVStreams/mpeg/source/mpeg_client/ui.h | 18 - .../AVStreams/mpeg/source/mpeg_client/util.cpp | 468 - .../tests/AVStreams/mpeg/source/mpeg_client/util.h | 368 - .../AVStreams/mpeg/source/mpeg_client/util32.cpp | 81 - .../tests/AVStreams/mpeg/source/mpeg_client/vb.cpp | 1808 - .../tests/AVStreams/mpeg/source/mpeg_client/vd.cpp | 933 - .../AVStreams/mpeg/source/mpeg_client/video.cpp | 3761 -- .../AVStreams/mpeg/source/mpeg_client/video.h | 285 - .../tests/AVStreams/mpeg/source/mpeg_client/vp.cpp | 921 - .../tests/AVStreams/mpeg/source/mpeg_mib/Makefile | 301 - .../AVStreams/mpeg/source/mpeg_mib/mibButton.cpp | 174 - .../AVStreams/mpeg/source/mpeg_mib/mibDrawArea.cpp | 121 - .../AVStreams/mpeg/source/mpeg_mib/mibFrame.cpp | 182 - .../AVStreams/mpeg/source/mpeg_mib/mibLabel.cpp | 166 - .../AVStreams/mpeg/source/mpeg_mib/mibList.cpp | 166 - .../AVStreams/mpeg/source/mpeg_mib/mibMenu.cpp | 250 - .../AVStreams/mpeg/source/mpeg_mib/mibRadioBox.cpp | 210 - .../AVStreams/mpeg/source/mpeg_mib/mibScale.cpp | 204 - .../mpeg/source/mpeg_mib/mibScrollBar.cpp | 164 - .../AVStreams/mpeg/source/mpeg_mib/mibTextBig.cpp | 147 - .../AVStreams/mpeg/source/mpeg_mib/mibTextBox.cpp | 133 - .../AVStreams/mpeg/source/mpeg_mib/mibToggle.cpp | 192 - .../AVStreams/mpeg/source/mpeg_mib/mibload.cpp | 804 - .../tests/AVStreams/mpeg/source/mpeg_mib/mibload.h | 168 - .../AVStreams/mpeg/source/mpeg_mib/mibwidgets.h | 225 - .../source/mpeg_server/Audio_Control_State.cpp | 158 - .../mpeg/source/mpeg_server/Audio_Control_State.h | 79 - .../mpeg/source/mpeg_server/Audio_Control_i.cpp | 258 - .../mpeg/source/mpeg_server/Audio_Control_i.h | 80 - .../mpeg/source/mpeg_server/Audio_Server.cpp | 300 - .../mpeg/source/mpeg_server/Audio_Server.h | 116 - .../AVStreams/mpeg/source/mpeg_server/Globals.cpp | 2934 -- .../AVStreams/mpeg/source/mpeg_server/Globals.h | 391 - .../AVStreams/mpeg/source/mpeg_server/Makefile | 3119 -- .../source/mpeg_server/Video_Control_State.cpp | 483 - .../mpeg/source/mpeg_server/Video_Control_State.h | 184 - .../mpeg/source/mpeg_server/Video_Control_i.cpp | 267 - .../mpeg/source/mpeg_server/Video_Control_i.h | 97 - .../mpeg/source/mpeg_server/Video_Server.cpp | 254 - .../mpeg/source/mpeg_server/Video_Server.h | 147 - .../tests/AVStreams/mpeg/source/mpeg_server/as.cpp | 708 - .../AVStreams/mpeg/source/mpeg_server/las.cpp | 254 - .../AVStreams/mpeg/source/mpeg_server/lvs.cpp | 413 - .../mpeg/source/mpeg_server/server_proto.h | 63 - .../tests/AVStreams/mpeg/source/mpeg_server/vs.cpp | 2207 -- .../mpeg/source/mpeg_shared/Audio_Control.idl | 78 - .../AVStreams/mpeg/source/mpeg_shared/Makefile | 1038 - .../mpeg/source/mpeg_shared/Video_Control.idl | 112 - .../AVStreams/mpeg/source/mpeg_shared/com.cpp | 2136 -- .../tests/AVStreams/mpeg/source/mpeg_shared/com.h | 112 - .../AVStreams/mpeg/source/mpeg_shared/fileio.cpp | 410 - .../AVStreams/mpeg/source/mpeg_shared/fileio.h | 100 - .../AVStreams/mpeg/source/mpeg_shared/filters.cpp | 370 - .../AVStreams/mpeg/source/mpeg_shared/filters.h | 85 - .../AVStreams/mpeg/source/mpeg_shared/routine.cpp | 515 - .../AVStreams/mpeg/source/mpeg_shared/routine.h | 55 - .../AVStreams/mpeg/source/mpeg_shared/sendpt.cpp | 140 - .../AVStreams/mpeg/source/mpeg_shared/sendpt.h | 35 - .../mpeg/source/server/Machine_Properties.cpp | 265 - .../mpeg/source/server/Machine_Properties.h | 97 - .../tests/AVStreams/mpeg/source/server/Makefile | 982 - .../mpeg/source/server/Property_Exporter.cpp | 404 - .../mpeg/source/server/Property_Exporter.h | 211 - .../mpeg/source/server/Video_Repository.cpp | 146 - .../mpeg/source/server/Video_Repository.h | 85 - .../mpeg/source/server/Video_Repository.idl | 31 - .../tests/AVStreams/mpeg/source/server/as.cpp | 65 - .../tests/AVStreams/mpeg/source/server/as.h | 54 - .../mpeg/source/server/augmented_server.cpp | 621 - .../mpeg/source/server/augmented_server.h | 238 - .../tests/AVStreams/mpeg/source/server/server.cpp | 474 - .../tests/AVStreams/mpeg/source/server/server.h | 191 - .../tests/AVStreams/mpeg/source/server/svc.conf | 50 - .../tests/AVStreams/mpeg/source/server/vcrs.cpp | 264 - .../tests/AVStreams/mpeg/source/server/vs.cpp | 64 - .../tests/AVStreams/mpeg/source/server/vs.h | 55 - TAO/orbsvcs/tests/AVStreams/mpeg/vcr.1 | 610 - TAO/orbsvcs/tests/AVStreams/mpeg/vcrs.1 | 1 - .../tests/AVStreams/server_discovery/Makefile | 87 - .../tests/AVStreams/server_discovery/Queue.java | 189 - .../tests/AVStreams/server_discovery/README | 189 - .../Server_0005fDiscovery_0005fUtil.h | 71 - .../server_discovery/Server_Discovery.cpp | 282 - .../server_discovery/Server_Discovery.java | 133 - .../server_discovery/Server_Discovery_Browser.java | 141 - .../server_discovery/Server_Discovery_Perf.java | 133 - .../Server_Discovery_Selection.java | 199 - .../server_discovery/Server_Discovery_Util.java | 29 - .../AVStreams/server_discovery/Strip_Chart.java | 188 - .../AVStreams/server_discovery/Trader_Client.cpp | 311 - .../AVStreams/server_discovery/Trader_Client.h | 126 - .../tests/AVStreams/server_discovery/graph02.gif | Bin 231 -> 0 bytes .../tests/AVStreams/server_discovery/graph09.gif | Bin 343 -> 0 bytes .../tests/AVStreams/server_discovery/main.cpp | 74 - .../tests/AVStreams/server_discovery/mmedia3.gif | Bin 321 -> 0 bytes .../tests/AVStreams/server_discovery/server01.gif | Bin 342 -> 0 bytes .../tests/AVStreams/server_discovery/server02.gif | Bin 268 -> 0 bytes .../tests/AVStreams/server_discovery/www1.gif | Bin 348 -> 0 bytes TAO/orbsvcs/tests/AVStreams/svc.conf | 49 - TAO/orbsvcs/tests/Concurrency/CC_client.cpp | 463 - TAO/orbsvcs/tests/Concurrency/CC_client.dsp | 142 - TAO/orbsvcs/tests/Concurrency/CC_client.h | 138 - TAO/orbsvcs/tests/Concurrency/CC_command.cpp | 667 - TAO/orbsvcs/tests/Concurrency/CC_command.h | 471 - TAO/orbsvcs/tests/Concurrency/CC_command.l | 58 - TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp | 682 - .../tests/Concurrency/CC_command.tab.cpp.diff | 25 - TAO/orbsvcs/tests/Concurrency/CC_command.tab.h | 29 - TAO/orbsvcs/tests/Concurrency/CC_command.y | 126 - .../tests/Concurrency/CC_naming_service.cpp | 174 - TAO/orbsvcs/tests/Concurrency/CC_naming_service.h | 87 - TAO/orbsvcs/tests/Concurrency/CC_test_utils.cpp | 70 - TAO/orbsvcs/tests/Concurrency/CC_test_utils.h | 37 - TAO/orbsvcs/tests/Concurrency/CC_tests.cpp | 373 - TAO/orbsvcs/tests/Concurrency/CC_tests.h | 184 - TAO/orbsvcs/tests/Concurrency/Concurrency.dsw | 29 - TAO/orbsvcs/tests/Concurrency/Makefile | 2033 -- TAO/orbsvcs/tests/Concurrency/NS_client.cpp | 213 - TAO/orbsvcs/tests/Concurrency/NS_client.h | 88 - TAO/orbsvcs/tests/Concurrency/README | 111 - TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp | 1726 - .../tests/Concurrency/lex.CC_command.cpp.diff | 167 - TAO/orbsvcs/tests/Concurrency/svc.conf | 49 - TAO/orbsvcs/tests/Concurrency/test.basic | 21 - TAO/orbsvcs/tests/Concurrency/test.dinphil | 12 - TAO/orbsvcs/tests/Concurrency/test.e1 | 2 - TAO/orbsvcs/tests/Concurrency/test.extended | 4 - TAO/orbsvcs/tests/Concurrency/test.phil1 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil2 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil3 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil4 | 6 - TAO/orbsvcs/tests/Concurrency/test.phil5 | 6 - TAO/orbsvcs/tests/Concurrency/tmplinst.cpp | 14 - .../tests/EC_Custom_Marshal/ECCM_Consumer.dsp | 228 - .../tests/EC_Custom_Marshal/ECCM_Supplier.dsp | 228 - .../tests/EC_Custom_Marshal/ECM_Consumer.cpp | 457 - TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h | 112 - TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Data.cpp | 66 - TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Data.h | 37 - .../tests/EC_Custom_Marshal/ECM_Supplier.cpp | 546 - TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h | 140 - .../tests/EC_Custom_Marshal/EC_Custom_Marshal.dsw | 41 - TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile | 1384 - TAO/orbsvcs/tests/EC_Custom_Marshal/README | 19 - TAO/orbsvcs/tests/EC_Custom_Marshal/data.idl | 21 - TAO/orbsvcs/tests/EC_Custom_Marshal/run_test.pl | 40 - TAO/orbsvcs/tests/EC_Custom_Marshal/svc.conf | 7 - TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp | 1252 - TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.dsp | 96 - TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.dsw | 29 - TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h | 494 - TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.i | 120 - TAO/orbsvcs/tests/EC_Mcast/Makefile | 370 - TAO/orbsvcs/tests/EC_Mcast/README | 27 - TAO/orbsvcs/tests/EC_Mcast/sample.cfg | 64 - TAO/orbsvcs/tests/EC_Mcast/svc.conf | 7 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp | 1660 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsp | 111 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsw | 29 - TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h | 377 - TAO/orbsvcs/tests/EC_Multiple/Makefile | 359 - TAO/orbsvcs/tests/EC_Multiple/README | 34 - TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h | 162 - TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h | 160 - .../tests/EC_Multiple/Scheduler_Runtime_Dynamic.h | 1032 - TAO/orbsvcs/tests/EC_Multiple/dyn_plot | 77 - TAO/orbsvcs/tests/EC_Multiple/gen_dynamic | 68 - TAO/orbsvcs/tests/EC_Multiple/gen_latency | 90 - TAO/orbsvcs/tests/EC_Multiple/gen_overhead | 114 - TAO/orbsvcs/tests/EC_Multiple/gen_throughput | 43 - TAO/orbsvcs/tests/EC_Multiple/gen_utilization | 80 - TAO/orbsvcs/tests/EC_Multiple/histo.pl | 76 - TAO/orbsvcs/tests/EC_Multiple/run_dynamic | 64 - TAO/orbsvcs/tests/EC_Multiple/run_latency | 55 - TAO/orbsvcs/tests/EC_Multiple/run_overhead | 118 - TAO/orbsvcs/tests/EC_Multiple/run_schedule | 48 - TAO/orbsvcs/tests/EC_Multiple/run_test.pl | 27 - TAO/orbsvcs/tests/EC_Multiple/run_throughput | 40 - TAO/orbsvcs/tests/EC_Multiple/run_utilization | 60 - TAO/orbsvcs/tests/EC_Multiple/svc.conf | 7 - TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp | 413 - TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.dsp | 103 - TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h | 114 - TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp | 501 - TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.dsp | 103 - TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h | 142 - TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.dsw | 41 - TAO/orbsvcs/tests/EC_Throughput/Makefile | 679 - TAO/orbsvcs/tests/EC_Throughput/README | 14 - TAO/orbsvcs/tests/EC_Throughput/run_test.pl | 43 - TAO/orbsvcs/tests/EC_Throughput/svc.conf | 7 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.cpp | 984 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsp | 104 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsw | 29 - TAO/orbsvcs/tests/Event_Latency/Event_Latency.h | 248 - TAO/orbsvcs/tests/Event_Latency/Makefile | 320 - TAO/orbsvcs/tests/Event_Latency/run_test.pl | 31 - TAO/orbsvcs/tests/Event_Latency/run_tests.sh | 67 - TAO/orbsvcs/tests/Event_Latency/svc.conf | 49 - TAO/orbsvcs/tests/ImplRepo/ImplRepoTest.dsw | 53 - TAO/orbsvcs/tests/ImplRepo/Impl_Repo.idl | 133 - TAO/orbsvcs/tests/ImplRepo/README | 9 - TAO/orbsvcs/tests/ImplRepo/Simple_Object.idl | 16 - TAO/orbsvcs/tests/ImplRepo/client.cpp | 22 - TAO/orbsvcs/tests/ImplRepo/client.dsp | 203 - TAO/orbsvcs/tests/ImplRepo/client_impl.cpp | 197 - TAO/orbsvcs/tests/ImplRepo/client_impl.h | 75 - TAO/orbsvcs/tests/ImplRepo/implrepo.dsp | 212 - TAO/orbsvcs/tests/ImplRepo/ir_implrepo_impl.cpp | 344 - TAO/orbsvcs/tests/ImplRepo/ir_implrepo_impl.h | 158 - TAO/orbsvcs/tests/ImplRepo/ir_server.cpp | 37 - TAO/orbsvcs/tests/ImplRepo/ir_server_impl.cpp | 146 - TAO/orbsvcs/tests/ImplRepo/ir_server_impl.h | 73 - .../tests/ImplRepo/ir_simple_object_impl.cpp | 77 - TAO/orbsvcs/tests/ImplRepo/ir_simple_object_impl.h | 62 - TAO/orbsvcs/tests/ImplRepo/server.cpp | 37 - TAO/orbsvcs/tests/ImplRepo/server.dsp | 223 - TAO/orbsvcs/tests/ImplRepo/server_impl.cpp | 152 - TAO/orbsvcs/tests/ImplRepo/server_impl.h | 71 - TAO/orbsvcs/tests/ImplRepo/simple_object_impl.cpp | 42 - TAO/orbsvcs/tests/ImplRepo/simple_object_impl.h | 56 - TAO/orbsvcs/tests/ImplRepo/svc.conf | 49 - TAO/orbsvcs/tests/Logger/Logger.dsw | 41 - TAO/orbsvcs/tests/Logger/Logging_Test.cpp | 21 - TAO/orbsvcs/tests/Logger/Logging_Test_i.cpp | 327 - TAO/orbsvcs/tests/Logger/Logging_Test_i.h | 99 - TAO/orbsvcs/tests/Logger/Makefile | 541 - TAO/orbsvcs/tests/Logger/README | 40 - TAO/orbsvcs/tests/Logger/client.cpp | 21 - TAO/orbsvcs/tests/Logger/client.dsp | 104 - TAO/orbsvcs/tests/Logger/client.h | 99 - TAO/orbsvcs/tests/Logger/client_i.cpp | 291 - TAO/orbsvcs/tests/Logger/client_i.h | 97 - TAO/orbsvcs/tests/Logger/run_test.pl | 46 - TAO/orbsvcs/tests/Logger/server.cpp | 42 - TAO/orbsvcs/tests/Logger/server.dsp | 100 - TAO/orbsvcs/tests/Logger/server_i.cpp | 131 - TAO/orbsvcs/tests/Logger/server_i.h | 87 - TAO/orbsvcs/tests/Logger/svc.conf | 49 - TAO/orbsvcs/tests/Makefile | 36 - TAO/orbsvcs/tests/Property/Makefile | 546 - TAO/orbsvcs/tests/Property/client.cpp | 811 - TAO/orbsvcs/tests/Property/client.h | 102 - TAO/orbsvcs/tests/Property/main.cpp | 591 - TAO/orbsvcs/tests/Property/run_test.pl | 57 - TAO/orbsvcs/tests/Property/server.cpp | 122 - TAO/orbsvcs/tests/Property/server.h | 27 - TAO/orbsvcs/tests/Sched/DynSched_Test.cpp | 288 - TAO/orbsvcs/tests/Sched/Makefile | 275 - TAO/orbsvcs/tests/Sched_Conf/Makefile | 275 - TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp | 468 - TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp | 92 - TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw | 29 - TAO/orbsvcs/tests/Simple_Naming/Makefile | 59 - TAO/orbsvcs/tests/Simple_Naming/README | 133 - TAO/orbsvcs/tests/Simple_Naming/Simple_Naming.dsw | 29 - TAO/orbsvcs/tests/Simple_Naming/client.cpp | 783 - TAO/orbsvcs/tests/Simple_Naming/client.dsp | 242 - TAO/orbsvcs/tests/Simple_Naming/client.h | 204 - TAO/orbsvcs/tests/Simple_Naming/run_test.pl | 67 - TAO/orbsvcs/tests/Simple_Naming/svc.conf | 49 - TAO/orbsvcs/tests/Simple_Naming/test_object.idl | 11 - TAO/orbsvcs/tests/Trading/Colocated_Test.dsp | 92 - TAO/orbsvcs/tests/Trading/Export_Test.dsp | 92 - TAO/orbsvcs/tests/Trading/Import_Test.dsp | 92 - TAO/orbsvcs/tests/Trading/Makefile | 304 - TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp | 638 - TAO/orbsvcs/tests/Trading/Offer_Exporter.h | 142 - TAO/orbsvcs/tests/Trading/Offer_Importer.cpp | 311 - TAO/orbsvcs/tests/Trading/Offer_Importer.h | 90 - TAO/orbsvcs/tests/Trading/README | 10 - .../tests/Trading/Service_Type_Exporter.cpp | 521 - TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h | 121 - TAO/orbsvcs/tests/Trading/Simple_Dynamic.cpp | 30 - TAO/orbsvcs/tests/Trading/Simple_Dynamic.h | 43 - TAO/orbsvcs/tests/Trading/TT_Info.cpp | 202 - TAO/orbsvcs/tests/Trading/TT_Info.h | 174 - TAO/orbsvcs/tests/Trading/TTest.idl | 43 - TAO/orbsvcs/tests/Trading/Trading.dsw | 74 - TAO/orbsvcs/tests/Trading/TradingLib.dsp | 258 - TAO/orbsvcs/tests/Trading/colocated_test.cpp | 139 - TAO/orbsvcs/tests/Trading/export_test.cpp | 155 - TAO/orbsvcs/tests/Trading/import_test.cpp | 78 - TAO/orbsvcs/tests/Trading/svc.conf | 49 - TAO/orbsvcs/tests/start_services | 108 - TAO/orbsvcs/tests/tests.dsw | 194 - .../Cubit/COOL/IDL_Cubit/Makefile | 144 - TAO/performance-tests/Cubit/COOL/IDL_Cubit/README | 34 - .../Cubit/COOL/IDL_Cubit/client.cpp | 749 - .../Cubit/COOL/IDL_Cubit/client.h | 128 - .../Cubit/COOL/IDL_Cubit/cubit.idl | 71 - .../Cubit/COOL/IDL_Cubit/cubit_i.cpp | 191 - .../Cubit/COOL/IDL_Cubit/cubit_i.h | 109 - .../Cubit/COOL/IDL_Cubit/server.cpp | 151 - .../Cubit/COOL/IDL_Cubit/tmplinst.cpp | 17 - TAO/performance-tests/Cubit/COOL/MT_Cubit/Makefile | 91 - TAO/performance-tests/Cubit/COOL/MT_Cubit/README | 166 - .../Cubit/COOL/MT_Cubit/Task_Client.cpp | 629 - .../Cubit/COOL/MT_Cubit/Task_Client.h | 191 - .../Cubit/COOL/MT_Cubit/Util_Thread.cpp | 62 - .../Cubit/COOL/MT_Cubit/Util_Thread.h | 45 - .../Cubit/COOL/MT_Cubit/client.cpp | 289 - TAO/performance-tests/Cubit/COOL/MT_Cubit/client.h | 36 - .../Cubit/COOL/MT_Cubit/cubit.idl | 42 - .../Cubit/COOL/MT_Cubit/cubit_i.cpp | 69 - .../Cubit/COOL/MT_Cubit/cubit_i.h | 27 - .../Cubit/COOL/MT_Cubit/pccTimer.cpp | 281 - .../Cubit/COOL/MT_Cubit/pccTimer.h | 56 - .../Cubit/COOL/MT_Cubit/server.cpp | 160 - TAO/performance-tests/Cubit/COOL/Makefile | 22 - .../Cubit/CORBAplus/IDL_Cubit/Makefile | 89 - .../Cubit/CORBAplus/IDL_Cubit/README | 54 - .../Cubit/CORBAplus/IDL_Cubit/clnt.cpp | 727 - .../Cubit/CORBAplus/IDL_Cubit/clnt.h | 135 - .../Cubit/CORBAplus/IDL_Cubit/cubit.idl | 71 - .../Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp | 174 - .../Cubit/CORBAplus/IDL_Cubit/cubit_i.h | 107 - .../Cubit/CORBAplus/IDL_Cubit/svr.cpp | 143 - .../Cubit/CORBAplus/MT_Cubit/Makefile | 23 - .../Cubit/CORBAplus/MT_Cubit/README | 58 - .../Cubit/CORBAplus/MT_Cubit/client/Makefile | 145 - .../CORBAplus/MT_Cubit/client/Task_Client.cpp | 359 - .../Cubit/CORBAplus/MT_Cubit/client/Task_Client.h | 52 - .../Cubit/CORBAplus/MT_Cubit/client/client.cpp | 63 - .../Cubit/CORBAplus/MT_Cubit/client/cubit.idl | 41 - .../Cubit/CORBAplus/MT_Cubit/server/Makefile | 64 - .../Cubit/CORBAplus/MT_Cubit/server/cubit.idl | 41 - .../Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp | 82 - .../Cubit/CORBAplus/MT_Cubit/server/cubit_i.h | 52 - .../Cubit/CORBAplus/MT_Cubit/server/svr.cpp | 288 - .../Cubit/Hardpack/IDL_Cubit/Imakefile | 34 - .../Cubit/Hardpack/IDL_Cubit/Makefile | 55 - .../Cubit/Hardpack/IDL_Cubit/README | 41 - .../Cubit/Hardpack/IDL_Cubit/client.cpp | 22 - .../Cubit/Hardpack/IDL_Cubit/client_i.cpp | 824 - .../Cubit/Hardpack/IDL_Cubit/client_i.h | 140 - .../Cubit/Hardpack/IDL_Cubit/cubit.idl | 96 - .../Cubit/Hardpack/IDL_Cubit/cubit_impl.cc | 163 - .../Cubit/Hardpack/IDL_Cubit/cubit_impl.hh | 48 - .../Cubit/Hardpack/IDL_Cubit/initref.cfg | 18 - .../Cubit/Hardpack/IDL_Cubit/server.cpp | 21 - .../Cubit/Hardpack/IDL_Cubit/server_i.cpp | 180 - .../Cubit/Hardpack/IDL_Cubit/server_i.h | 107 - TAO/performance-tests/Cubit/Makefile | 28 - TAO/performance-tests/Cubit/Orbix/Makefile | 28 - .../Cubit/Orbix/base_server/Makefile | 73 - .../Cubit/Orbix/base_server/cubit.idl | 42 - .../Cubit/Orbix/base_server/cubit_impl.cpp | 50 - .../Cubit/Orbix/base_server/cubit_impl.h | 29 - .../Cubit/Orbix/base_server/server.cpp | 45 - TAO/performance-tests/Cubit/Orbix/client/Makefile | 89 - .../Cubit/Orbix/client/client.cpp | 299 - TAO/performance-tests/Cubit/Orbix/client/cubit.h | 729 - TAO/performance-tests/Cubit/Orbix/client/cubit.idl | 42 - .../Cubit/Orbix/client/cubitC.cpp | 561 - .../Cubit/Orbix/factory_client/Makefile | 77 - .../Cubit/Orbix/factory_client/client.cpp | 239 - .../Cubit/Orbix/factory_client/cubit.h | 1113 - .../Cubit/Orbix/factory_client/cubit.hh | 1111 - .../Cubit/Orbix/factory_client/cubit.idl | 48 - .../Cubit/Orbix/factory_client/cubitC.cpp | 714 - .../Cubit/Orbix/factory_client/cubitS.cpp | 286 - TAO/performance-tests/Cubit/Orbix/orb.mk | 146 - TAO/performance-tests/Cubit/Orbix/tpool/Makefile | 89 - TAO/performance-tests/Cubit/Orbix/tpool/cubit.h | 729 - TAO/performance-tests/Cubit/Orbix/tpool/cubit.idl | 42 - TAO/performance-tests/Cubit/Orbix/tpool/cubitC.cpp | 561 - TAO/performance-tests/Cubit/Orbix/tpool/cubitS.cpp | 230 - .../Cubit/Orbix/tpool/cubit_impl.cpp | 50 - .../Cubit/Orbix/tpool/cubit_impl.h | 29 - TAO/performance-tests/Cubit/Orbix/tpool/server.cpp | 50 - TAO/performance-tests/Cubit/Orbix/tpool/tpool.cpp | 46 - TAO/performance-tests/Cubit/Orbix/tpool/tpool.h | 17 - TAO/performance-tests/Cubit/Orbix/tpr/Makefile | 89 - TAO/performance-tests/Cubit/Orbix/tpr/cubit.h | 729 - TAO/performance-tests/Cubit/Orbix/tpr/cubit.idl | 42 - TAO/performance-tests/Cubit/Orbix/tpr/cubitC.cpp | 561 - TAO/performance-tests/Cubit/Orbix/tpr/cubitC.h | 345 - TAO/performance-tests/Cubit/Orbix/tpr/cubitS.cpp | 230 - TAO/performance-tests/Cubit/Orbix/tpr/cubitS.h | 120 - .../Cubit/Orbix/tpr/cubit_impl.cpp | 50 - TAO/performance-tests/Cubit/Orbix/tpr/cubit_impl.h | 29 - TAO/performance-tests/Cubit/Orbix/tpr/server.cpp | 44 - TAO/performance-tests/Cubit/Orbix/tpr/tpr.cpp | 32 - TAO/performance-tests/Cubit/Orbix/tpr/tpr.h | 12 - TAO/performance-tests/Cubit/Orbix/tps/Makefile | 349 - TAO/performance-tests/Cubit/Orbix/tps/cubit.h | 1113 - TAO/performance-tests/Cubit/Orbix/tps/cubit.idl | 48 - TAO/performance-tests/Cubit/Orbix/tps/cubitC.cpp | 714 - TAO/performance-tests/Cubit/Orbix/tps/cubitS.cpp | 285 - .../Cubit/Orbix/tps/cubit_impl.cpp | 85 - TAO/performance-tests/Cubit/Orbix/tps/cubit_impl.h | 48 - TAO/performance-tests/Cubit/Orbix/tps/tps.cpp | 30 - TAO/performance-tests/Cubit/Orbix/tps/tps.h | 13 - TAO/performance-tests/Cubit/README | 4 - .../Cubit/TAO/DII_Cubit/DII_Cubit.dsw | 29 - TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile | 72 - TAO/performance-tests/Cubit/TAO/DII_Cubit/README | 46 - .../Cubit/TAO/DII_Cubit/client.cpp | 1063 - .../Cubit/TAO/DII_Cubit/client.dsp | 125 - .../Cubit/TAO/DII_Cubit/cubit.idl | 153 - .../Cubit/TAO/DII_Cubit/run_test.pl | 33 - .../Cubit/TAO/IDL_Cubit/Cubit.mak | 2068 -- .../Cubit/TAO/IDL_Cubit/Cubit.mdp | Bin 72332 -> 0 bytes .../Cubit/TAO/IDL_Cubit/Cubit_Client.cpp | 1138 - .../Cubit/TAO/IDL_Cubit/Cubit_Client.h | 160 - .../Cubit/TAO/IDL_Cubit/Cubit_Server.cpp | 156 - .../Cubit/TAO/IDL_Cubit/Cubit_Server.h | 96 - .../Cubit/TAO/IDL_Cubit/Cubit_i.cpp | 332 - .../Cubit/TAO/IDL_Cubit/Cubit_i.h | 111 - .../Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw | 53 - .../Cubit/TAO/IDL_Cubit/IDL_Cubit_Client.java | 122 - TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile | 100 - TAO/performance-tests/Cubit/TAO/IDL_Cubit/README | 169 - .../Cubit/TAO/IDL_Cubit/RTI_IO.cpp | 55 - TAO/performance-tests/Cubit/TAO/IDL_Cubit/RTI_IO.h | 23 - .../Cubit/TAO/IDL_Cubit/client.bld | 12 - .../Cubit/TAO/IDL_Cubit/client.cpp | 27 - .../Cubit/TAO/IDL_Cubit/client.dsp | 216 - .../Cubit/TAO/IDL_Cubit/collocation_test.cpp | 70 - .../Cubit/TAO/IDL_Cubit/collocation_test.dsp | 232 - .../Cubit/TAO/IDL_Cubit/cubit.idl | 153 - .../Cubit/TAO/IDL_Cubit/default.bld | 32 - .../Cubit/TAO/IDL_Cubit/run_test.pl | 112 - .../Cubit/TAO/IDL_Cubit/server.bld | 12 - .../Cubit/TAO/IDL_Cubit/server.cpp | 45 - .../Cubit/TAO/IDL_Cubit/server.dsp | 224 - TAO/performance-tests/Cubit/TAO/IDL_Cubit/svc.conf | 8 - .../Cubit/TAO/IDL_Cubit/tmplinst.cpp | 14 - .../Cubit/TAO/MT_Cubit/Cubit_Task.cpp | 275 - .../Cubit/TAO/MT_Cubit/Cubit_Task.h | 95 - .../Cubit/TAO/MT_Cubit/Globals.cpp | 200 - TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h | 217 - .../Cubit/TAO/MT_Cubit/MT_Cubit.dsw | 41 - .../Cubit/TAO/MT_Cubit/MT_Cubit_Test | 61 - TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile | 2621 -- TAO/performance-tests/Cubit/TAO/MT_Cubit/README | 205 - .../Cubit/TAO/MT_Cubit/README.tests | 42 - .../Cubit/TAO/MT_Cubit/Task_Client.cpp | 1256 - .../Cubit/TAO/MT_Cubit/Task_Client.h | 383 - TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.cpp | 84 - TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h | 56 - .../Cubit/TAO/MT_Cubit/Util_Thread.cpp | 97 - .../Cubit/TAO/MT_Cubit/Util_Thread.h | 57 - .../Cubit/TAO/MT_Cubit/client.cpp | 892 - .../Cubit/TAO/MT_Cubit/client.dsp | 241 - TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h | 189 - TAO/performance-tests/Cubit/TAO/MT_Cubit/clnt.bld | 10 - TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit.idl | 39 - .../Cubit/TAO/MT_Cubit/cubit_i.cpp | 63 - TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.h | 52 - .../Cubit/TAO/MT_Cubit/default.bld | 33 - .../Cubit/TAO/MT_Cubit/run_test.pl | 31 - .../Cubit/TAO/MT_Cubit/server.cpp | 393 - .../Cubit/TAO/MT_Cubit/server.dsp | 245 - TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h | 149 - TAO/performance-tests/Cubit/TAO/MT_Cubit/svc.conf | 49 - TAO/performance-tests/Cubit/TAO/MT_Cubit/svr.bld | 12 - .../Cubit/TAO/MT_Cubit/tmplinst.cpp | 14 - TAO/performance-tests/Cubit/TAO/Makefile | 25 - TAO/performance-tests/Cubit/TAO/README | 20 - .../Cubit/VisiBroker/base_server/Makefile | 21 - .../Cubit/VisiBroker/base_server/Profile_Timer.cpp | 131 - .../Cubit/VisiBroker/base_server/Profile_Timer.h | 62 - .../Cubit/VisiBroker/base_server/cubit.idl | 42 - .../Cubit/VisiBroker/base_server/cubit_impl.cpp | 50 - .../Cubit/VisiBroker/base_server/cubit_impl.h | 35 - .../Cubit/VisiBroker/base_server/server.cpp | 53 - .../Cubit/VisiBroker/base_server/stdmk | 36 - .../Cubit/VisiBroker/client/Makefile | 21 - .../Cubit/VisiBroker/client/Profile_Timer.cpp | 131 - .../Cubit/VisiBroker/client/Profile_Timer.h | 62 - .../Cubit/VisiBroker/client/client.cpp | 320 - .../Cubit/VisiBroker/client/cubit.idl | 42 - .../Cubit/VisiBroker/client/stdmk | 36 - TAO/performance-tests/Demux/CodeGen/Makefile | 316 - TAO/performance-tests/Demux/CodeGen/README | 12 - TAO/performance-tests/Demux/CodeGen/client.cpp | 42 - TAO/performance-tests/Demux/CodeGen/gen.cpp | 177 - TAO/performance-tests/Demux/CodeGen/impl.cpp | 76 - TAO/performance-tests/Demux/CodeGen/objcreate.cpp | 55 - TAO/performance-tests/Demux/CodeGen/perf.cpp | 25 - TAO/performance-tests/Demux/CodeGen/skel.cpp | 221 - TAO/performance-tests/Demux/CodeGen/stub.cpp | 159 - TAO/performance-tests/Demux/CodeGen/tao.cpp | 100 - TAO/performance-tests/Demux/CodeGen/tao.h | 23 - TAO/performance-tests/Demux/Makefile | 65 - TAO/performance-tests/Demux/README | 20 - TAO/performance-tests/Demux/client.cpp | 312 - TAO/performance-tests/Demux/gen_bin | 6 - TAO/performance-tests/Demux/make_all | 19 - TAO/performance-tests/Demux/run_all_client | 37 - TAO/performance-tests/Demux/run_all_server | 20 - TAO/performance-tests/Demux/run_client | 17 - TAO/performance-tests/Demux/run_server | 10 - TAO/performance-tests/Demux/server.cpp | 317 - TAO/performance-tests/Makefile | 28 - TAO/performance-tests/README | 22 - TAO/performance-tests/TAO_Perf_Tests.dsw | 92 - TAO/performance-tests/Thruput/COOL/Makefile | 133 - TAO/performance-tests/Thruput/COOL/README | 117 - TAO/performance-tests/Thruput/COOL/client.cpp | 292 - TAO/performance-tests/Thruput/COOL/server.cpp | 226 - TAO/performance-tests/Thruput/COOL/ttcp.idl | 36 - TAO/performance-tests/Thruput/COOL/ttcp_decl.h | 78 - TAO/performance-tests/Thruput/COOL/ttcp_i.cpp | 103 - TAO/performance-tests/Thruput/COOL/ttcp_i.h | 49 - TAO/performance-tests/Thruput/COOL/utils.cpp | 469 - TAO/performance-tests/Thruput/CORBAplus/Makefile | 68 - TAO/performance-tests/Thruput/CORBAplus/README | 47 - TAO/performance-tests/Thruput/CORBAplus/client.cpp | 305 - TAO/performance-tests/Thruput/CORBAplus/extract | 4 - TAO/performance-tests/Thruput/CORBAplus/run | 1 - TAO/performance-tests/Thruput/CORBAplus/run_client | 25 - TAO/performance-tests/Thruput/CORBAplus/run_server | 10 - TAO/performance-tests/Thruput/CORBAplus/run_test | 34 - TAO/performance-tests/Thruput/CORBAplus/run_tests | 41 - TAO/performance-tests/Thruput/CORBAplus/server.cpp | 178 - TAO/performance-tests/Thruput/CORBAplus/ttcp.idl | 36 - .../Thruput/CORBAplus/ttcp_decl.h | 78 - TAO/performance-tests/Thruput/CORBAplus/ttcp_i.cpp | 98 - TAO/performance-tests/Thruput/CORBAplus/ttcp_i.h | 61 - TAO/performance-tests/Thruput/CORBAplus/utils.cpp | 469 - TAO/performance-tests/Thruput/Makefile | 26 - TAO/performance-tests/Thruput/Orbix/Client.cpp | 328 - TAO/performance-tests/Thruput/Orbix/Makefile | 85 - TAO/performance-tests/Thruput/Orbix/README | 40 - TAO/performance-tests/Thruput/Orbix/Srv_Main.cpp | 181 - TAO/performance-tests/Thruput/Orbix/extract | 4 - TAO/performance-tests/Thruput/Orbix/loop64 | 24 - TAO/performance-tests/Thruput/Orbix/orbixsol2s4.mk | 148 - TAO/performance-tests/Thruput/Orbix/run | 1 - TAO/performance-tests/Thruput/Orbix/run_client | 25 - TAO/performance-tests/Thruput/Orbix/run_server | 4 - TAO/performance-tests/Thruput/Orbix/run_test | 31 - TAO/performance-tests/Thruput/Orbix/run_tests | 78 - TAO/performance-tests/Thruput/Orbix/ttcp.idl | 40 - TAO/performance-tests/Thruput/Orbix/ttcp_decl.h | 154 - TAO/performance-tests/Thruput/Orbix/ttcp_i.cpp | 115 - TAO/performance-tests/Thruput/Orbix/ttcp_i.h | 65 - TAO/performance-tests/Thruput/Orbix/utils.cpp | 563 - TAO/performance-tests/Thruput/TAO/Makefile | 70 - TAO/performance-tests/Thruput/TAO/README | 47 - TAO/performance-tests/Thruput/TAO/client.cpp | 280 - TAO/performance-tests/Thruput/TAO/run | 1 - TAO/performance-tests/Thruput/TAO/run_client | 34 - TAO/performance-tests/Thruput/TAO/run_server | 11 - TAO/performance-tests/Thruput/TAO/run_test | 52 - TAO/performance-tests/Thruput/TAO/server.cpp | 220 - TAO/performance-tests/Thruput/TAO/svc.conf | 49 - TAO/performance-tests/Thruput/TAO/tmplinst.cpp | 22 - TAO/performance-tests/Thruput/TAO/ttcp.idl | 36 - TAO/performance-tests/Thruput/TAO/ttcp_decl.h | 78 - TAO/performance-tests/Thruput/TAO/ttcp_i.cpp | 96 - TAO/performance-tests/Thruput/TAO/ttcp_i.h | 48 - TAO/performance-tests/Thruput/TAO/utils.cpp | 508 - TAO/release.chk | 135 - TAO/release.pl | 91 - TAO/rules.tao.GNU | 20 - TAO/tao/Align.h | 84 - TAO/tao/Any.cpp | 831 - TAO/tao/Any.h | 437 - TAO/tao/Any.i | 335 - TAO/tao/CDR.cpp | 984 - TAO/tao/CDR.h | 668 - TAO/tao/CDR.i | 1103 - TAO/tao/CORBA.cpp | 177 - TAO/tao/Client_Strategy_Factory.cpp | 19 - TAO/tao/Client_Strategy_Factory.h | 39 - TAO/tao/Connect.cpp | 1011 - TAO/tao/Connect.h | 177 - TAO/tao/Connect.i | 1 - TAO/tao/Current.IDL | 5 - TAO/tao/CurrentC.cpp | 105 - TAO/tao/CurrentC.h | 144 - TAO/tao/CurrentC.i | 195 - TAO/tao/CurrentS.cpp | 145 - TAO/tao/Environment.cpp | 189 - TAO/tao/Environment.h | 117 - TAO/tao/Environment.i | 9 - TAO/tao/Exception.cpp | 623 - TAO/tao/Exception.h | 344 - TAO/tao/Exception.i | 49 - TAO/tao/Forwarding_Servant.cpp | 37 - TAO/tao/Forwarding_Servant.h | 56 - TAO/tao/GIOP.cpp | 813 - TAO/tao/GIOP.h | 379 - TAO/tao/GIOP.i | 10 - TAO/tao/IIOP_Interpreter.cpp | 1189 - TAO/tao/IIOP_Interpreter.h | 259 - TAO/tao/IIOP_ORB.cpp | 396 - TAO/tao/IIOP_ORB.h | 82 - TAO/tao/IIOP_ORB.i | 38 - TAO/tao/IIOP_Object.cpp | 959 - TAO/tao/IIOP_Object.h | 300 - TAO/tao/IIOP_Object.i | 163 - TAO/tao/Invocation.cpp | 1125 - TAO/tao/Invocation.h | 221 - TAO/tao/Invocation.i | 93 - TAO/tao/Makefile | 11079 ------ TAO/tao/Marshal.cpp | 108 - TAO/tao/Marshal.h | 634 - TAO/tao/Marshal.i | 226 - TAO/tao/NVList.cpp | 261 - TAO/tao/NVList.h | 312 - TAO/tao/NVList.i | 426 - TAO/tao/ORB.cpp | 913 - TAO/tao/ORB.h | 1092 - TAO/tao/ORB.i | 401 - TAO/tao/ORB_Core.cpp | 1504 - TAO/tao/ORB_Core.h | 619 - TAO/tao/ORB_Core.i | 172 - TAO/tao/ORB_Strategies_T.cpp | 48 - TAO/tao/ORB_Strategies_T.h | 53 - TAO/tao/ORB_Strategies_T.i | 12 - TAO/tao/Object.cpp | 275 - TAO/tao/Object.h | 240 - TAO/tao/Object.i | 246 - TAO/tao/Object_Key.IDL | 9 - TAO/tao/Object_KeyC.cpp | 48 - TAO/tao/Object_KeyC.h | 97 - TAO/tao/Object_KeyC.i | 203 - TAO/tao/Object_Table.cpp | 662 - TAO/tao/Object_Table.h | 384 - TAO/tao/Operation_Table.cpp | 325 - TAO/tao/Operation_Table.h | 312 - TAO/tao/POA.IDL | 402 - TAO/tao/POA.cpp | 3406 -- TAO/tao/POA.h | 930 - TAO/tao/POA.i | 694 - TAO/tao/POAC.cpp | 2532 -- TAO/tao/POAC.h | 2138 -- TAO/tao/POAC.i | 3278 -- TAO/tao/POAS.cpp | 3140 -- TAO/tao/POAS.h | 1254 - TAO/tao/POAS.i | 212 - TAO/tao/POA_CORBA.h | 182 - TAO/tao/Policy.IDL | 15 - TAO/tao/PolicyC.cpp | 185 - TAO/tao/PolicyC.h | 218 - TAO/tao/PolicyC.i | 381 - TAO/tao/PolicyS.cpp | 281 - TAO/tao/Principal.cpp | 74 - TAO/tao/Principal.h | 80 - TAO/tao/Principal.i | 30 - TAO/tao/Request.cpp | 106 - TAO/tao/Request.h | 184 - TAO/tao/Request.i | 234 - TAO/tao/Sequence.cpp | 402 - TAO/tao/Sequence.h | 497 - TAO/tao/Sequence.i | 399 - TAO/tao/Sequence_T.cpp | 936 - TAO/tao/Sequence_T.h | 697 - TAO/tao/Sequence_T.i | 424 - TAO/tao/Servant_Base.cpp | 211 - TAO/tao/Servant_Base.h | 138 - TAO/tao/Server_Request.cpp | 589 - TAO/tao/Server_Request.h | 344 - TAO/tao/Server_Request.i | 103 - TAO/tao/Server_Strategy_Factory.cpp | 99 - TAO/tao/Server_Strategy_Factory.h | 87 - TAO/tao/Stub.cpp | 9 - TAO/tao/Stub.h | 297 - TAO/tao/Stub.i | 13 - TAO/tao/TAO.cpp | 249 - TAO/tao/TAO.dsp | 12774 ------- TAO/tao/TAO.dsw | 41 - TAO/tao/TAO.h | 111 - TAO/tao/TAO4.mak | 11256 ------ TAO/tao/TAO4.mdp | Bin 63488 -> 0 bytes TAO/tao/TAO_Internal.cpp | 87 - TAO/tao/TAO_Internal.h | 63 - TAO/tao/TAO_Internal.i | 4 - TAO/tao/TAO_Static.dsp | 603 - TAO/tao/Timeprobe.h | 14 - TAO/tao/Typecode.cpp | 2330 -- TAO/tao/Typecode.h | 487 - TAO/tao/Typecode.i | 271 - TAO/tao/Typecode_Constants.cpp | 512 - TAO/tao/Union.cpp | 31 - TAO/tao/Union.h | 55 - TAO/tao/append.cpp | 751 - TAO/tao/corba.h | 391 - TAO/tao/debug.cpp | 371 - TAO/tao/debug.h | 115 - TAO/tao/decode.cpp | 1753 - TAO/tao/deep_free.cpp | 781 - TAO/tao/default.bld | 24 - TAO/tao/default_client.cpp | 69 - TAO/tao/default_client.h | 69 - TAO/tao/default_client.i | 4 - TAO/tao/default_server.cpp | 416 - TAO/tao/default_server.h | 179 - TAO/tao/default_server.i | 4 - TAO/tao/encode.cpp | 1351 - TAO/tao/factories.h | 141 - TAO/tao/orbconf.h | 246 - TAO/tao/params.cpp | 117 - TAO/tao/params.h | 234 - TAO/tao/params.i | 127 - TAO/tao/poa_T.cpp | 98 - TAO/tao/poa_T.h | 75 - TAO/tao/poa_macros.h | 53 - TAO/tao/singletons.h | 41 - TAO/tao/skip.cpp | 797 - TAO/tao/t-sizes.cpp | 19 - TAO/tao/tao.bld | 86 - TAO/tao/varout.cpp | 55 - TAO/tao/varout.h | 720 - TAO/tao/varout.i | 100 - TAO/taoconfig.mk | 13 - TAO/tests/CDR/CDR.dsw | 53 - TAO/tests/CDR/Makefile | 747 - TAO/tests/CDR/README | 23 - TAO/tests/CDR/basic_types.cpp | 255 - TAO/tests/CDR/basic_types.dsp | 93 - TAO/tests/CDR/growth.cpp | 152 - TAO/tests/CDR/growth.dsp | 92 - TAO/tests/CDR/growth.dsw | 29 - TAO/tests/CDR/tc.cpp | 155 - TAO/tests/CDR/tc.dsp | 91 - TAO/tests/DynAny_Test/DynAny.idl | 319 - TAO/tests/DynAny_Test/DynAny_Test.dsw | 41 - TAO/tests/DynAny_Test/DynAny_i.cpp | 740 - TAO/tests/DynAny_Test/DynAny_i.h | 170 - TAO/tests/DynAny_Test/DynArray_i.cpp | 902 - TAO/tests/DynAny_Test/DynArray_i.h | 114 - TAO/tests/DynAny_Test/DynEnum_i.cpp | 190 - TAO/tests/DynAny_Test/DynEnum_i.h | 58 - TAO/tests/DynAny_Test/DynSequence_i.cpp | 919 - TAO/tests/DynAny_Test/DynSequence_i.h | 114 - TAO/tests/DynAny_Test/DynStruct_i.cpp | 881 - TAO/tests/DynAny_Test/DynStruct_i.h | 110 - TAO/tests/DynAny_Test/DynUnion_i.cpp | 1125 - TAO/tests/DynAny_Test/DynUnion_i.h | 156 - TAO/tests/DynAny_Test/README | 79 - TAO/tests/DynAny_Test/client.dsp | 170 - TAO/tests/DynAny_Test/da_tests.idl | 48 - TAO/tests/DynAny_Test/driver.cpp | 57 - TAO/tests/DynAny_Test/server.dsp | 156 - TAO/tests/DynAny_Test/tckind.idl | 53 - TAO/tests/Makefile | 29 - TAO/tests/Multiple_Inheritance/Makefile | 60 - .../Multiple_Inheritance/Multiple_Inheritance.dsw | 41 - .../Multiple_Inheritance/Multiple_Inheritance.idl | 22 - .../Multiple_Inheritance/Multiple_Inheritance_i.h | 26 - TAO/tests/Multiple_Inheritance/README | 26 - TAO/tests/Multiple_Inheritance/client.cpp | 196 - TAO/tests/Multiple_Inheritance/client.dsp | 209 - TAO/tests/Multiple_Inheritance/server.cpp | 42 - TAO/tests/Multiple_Inheritance/server.dsp | 213 - .../NestedUpcall/MT_Client_Test/MT_Client_Test.dsw | 41 - .../NestedUpcall/MT_Client_Test/MT_Client_Test.idl | 32 - .../NestedUpcall/MT_Client_Test/MT_Object_i.cpp | 55 - .../NestedUpcall/MT_Client_Test/MT_Object_i.h | 44 - TAO/tests/NestedUpcall/MT_Client_Test/Makefile | 71 - TAO/tests/NestedUpcall/MT_Client_Test/README | 41 - TAO/tests/NestedUpcall/MT_Client_Test/client.conf | 49 - TAO/tests/NestedUpcall/MT_Client_Test/client.cpp | 310 - TAO/tests/NestedUpcall/MT_Client_Test/client.dsp | 219 - TAO/tests/NestedUpcall/MT_Client_Test/client.h | 105 - .../NestedUpcall/MT_Client_Test/local_server.cpp | 264 - .../NestedUpcall/MT_Client_Test/local_server.h | 112 - TAO/tests/NestedUpcall/MT_Client_Test/run_test.pl | 37 - TAO/tests/NestedUpcall/MT_Client_Test/server.cpp | 148 - TAO/tests/NestedUpcall/MT_Client_Test/server.dsp | 215 - TAO/tests/NestedUpcall/MT_Client_Test/server.h | 75 - TAO/tests/NestedUpcall/MT_Client_Test/svc.conf | 49 - TAO/tests/NestedUpcall/Makefile | 26 - TAO/tests/NestedUpcall/Reactor/Makefile | 68 - TAO/tests/NestedUpcall/Reactor/NestedUpCalls_i.h | 99 - TAO/tests/NestedUpcall/Reactor/NestedUpcall.dsw | 41 - TAO/tests/NestedUpcall/Reactor/README | 86 - TAO/tests/NestedUpcall/Reactor/Reactor.idl | 52 - TAO/tests/NestedUpcall/Reactor/client.cpp | 290 - TAO/tests/NestedUpcall/Reactor/client.dsp | 219 - TAO/tests/NestedUpcall/Reactor/client.h | 94 - TAO/tests/NestedUpcall/Reactor/eh_i.cpp | 49 - TAO/tests/NestedUpcall/Reactor/eh_i.h | 30 - TAO/tests/NestedUpcall/Reactor/reactor_i.cpp | 80 - TAO/tests/NestedUpcall/Reactor/reactor_i.h | 36 - TAO/tests/NestedUpcall/Reactor/run_test.pl | 26 - TAO/tests/NestedUpcall/Reactor/server.cpp | 177 - TAO/tests/NestedUpcall/Reactor/server.dsp | 219 - TAO/tests/NestedUpcall/Reactor/server.h | 98 - TAO/tests/NestedUpcall/Reactor/svc.conf | 49 - .../NestedUpcall/Triangle_Test/Initiator_i.cpp | 63 - TAO/tests/NestedUpcall/Triangle_Test/Initiator_i.h | 48 - TAO/tests/NestedUpcall/Triangle_Test/Makefile | 78 - .../NestedUpcall/Triangle_Test/Object_A_i.cpp | 74 - TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.h | 45 - .../NestedUpcall/Triangle_Test/Object_B_i.cpp | 70 - TAO/tests/NestedUpcall/Triangle_Test/Object_B_i.h | 41 - TAO/tests/NestedUpcall/Triangle_Test/README | 31 - .../NestedUpcall/Triangle_Test/Triangle_Test.dsw | 53 - .../NestedUpcall/Triangle_Test/Triangle_Test.idl | 38 - TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp | 298 - TAO/tests/NestedUpcall/Triangle_Test/initiator.dsp | 215 - TAO/tests/NestedUpcall/Triangle_Test/initiator.h | 85 - TAO/tests/NestedUpcall/Triangle_Test/run_test.pl | 37 - TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp | 148 - TAO/tests/NestedUpcall/Triangle_Test/server_A.dsp | 215 - TAO/tests/NestedUpcall/Triangle_Test/server_A.h | 73 - TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp | 148 - TAO/tests/NestedUpcall/Triangle_Test/server_B.dsp | 215 - TAO/tests/NestedUpcall/Triangle_Test/server_B.h | 73 - TAO/tests/NestedUpcall/Triangle_Test/svc.conf | 49 - TAO/tests/OctetSeq/Makefile | 63 - TAO/tests/OctetSeq/OctetSeq.cpp | 250 - TAO/tests/OctetSeq/OctetSeq.dsp | 203 - TAO/tests/OctetSeq/OctetSeq.dsw | 29 - TAO/tests/OctetSeq/README | 23 - TAO/tests/OctetSeq/svc.conf | 49 - TAO/tests/OctetSeq/test.idl | 24 - TAO/tests/Param_Test/Makefile | 571 - TAO/tests/Param_Test/Param_Test.dsw | 41 - TAO/tests/Param_Test/README | 100 - TAO/tests/Param_Test/any.cpp | 275 - TAO/tests/Param_Test/any.h | 81 - TAO/tests/Param_Test/bd_long_seq.cpp | 210 - TAO/tests/Param_Test/bd_long_seq.h | 82 - TAO/tests/Param_Test/bd_short_seq.cpp | 212 - TAO/tests/Param_Test/bd_short_seq.h | 82 - TAO/tests/Param_Test/bd_str_seq.cpp | 218 - TAO/tests/Param_Test/bd_str_seq.h | 82 - TAO/tests/Param_Test/bd_string.cpp | 187 - TAO/tests/Param_Test/bd_string.h | 85 - TAO/tests/Param_Test/bd_struct_seq.cpp | 227 - TAO/tests/Param_Test/bd_struct_seq.h | 91 - TAO/tests/Param_Test/client.cpp | 262 - TAO/tests/Param_Test/client.dsp | 453 - TAO/tests/Param_Test/client.h | 76 - TAO/tests/Param_Test/driver.cpp | 510 - TAO/tests/Param_Test/driver.h | 51 - TAO/tests/Param_Test/except.cpp | 196 - TAO/tests/Param_Test/except.h | 77 - TAO/tests/Param_Test/fixed_array.cpp | 183 - TAO/tests/Param_Test/fixed_array.h | 88 - TAO/tests/Param_Test/fixed_struct.cpp | 240 - TAO/tests/Param_Test/fixed_struct.h | 81 - TAO/tests/Param_Test/helper.cpp | 89 - TAO/tests/Param_Test/helper.h | 50 - TAO/tests/Param_Test/nested_struct.cpp | 189 - TAO/tests/Param_Test/nested_struct.h | 83 - TAO/tests/Param_Test/objref.cpp | 321 - TAO/tests/Param_Test/objref.h | 93 - TAO/tests/Param_Test/objref_struct.cpp | 206 - TAO/tests/Param_Test/objref_struct.h | 82 - TAO/tests/Param_Test/options.cpp | 221 - TAO/tests/Param_Test/options.h | 117 - TAO/tests/Param_Test/param_test.idl | 278 - TAO/tests/Param_Test/param_test_i.cpp | 663 - TAO/tests/Param_Test/param_test_i.h | 236 - TAO/tests/Param_Test/results.cpp | 150 - TAO/tests/Param_Test/results.h | 76 - TAO/tests/Param_Test/run_test.pl | 116 - TAO/tests/Param_Test/server.cpp | 178 - TAO/tests/Param_Test/server.dsp | 229 - TAO/tests/Param_Test/short.cpp | 157 - TAO/tests/Param_Test/short.h | 85 - TAO/tests/Param_Test/svc.conf | 7 - TAO/tests/Param_Test/tests.h | 47 - TAO/tests/Param_Test/tmplinst.cpp | 32 - TAO/tests/Param_Test/typecode.cpp | 160 - TAO/tests/Param_Test/typecode.h | 85 - TAO/tests/Param_Test/ub_any_seq.cpp | 326 - TAO/tests/Param_Test/ub_any_seq.h | 89 - TAO/tests/Param_Test/ub_long_seq.cpp | 213 - TAO/tests/Param_Test/ub_long_seq.h | 82 - TAO/tests/Param_Test/ub_objref_seq.cpp | 297 - TAO/tests/Param_Test/ub_objref_seq.h | 91 - TAO/tests/Param_Test/ub_short_seq.cpp | 216 - TAO/tests/Param_Test/ub_short_seq.h | 82 - TAO/tests/Param_Test/ub_str_seq.cpp | 219 - TAO/tests/Param_Test/ub_str_seq.h | 82 - TAO/tests/Param_Test/ub_string.cpp | 189 - TAO/tests/Param_Test/ub_string.h | 85 - TAO/tests/Param_Test/ub_struct_seq.cpp | 230 - TAO/tests/Param_Test/ub_struct_seq.h | 90 - TAO/tests/Param_Test/ulonglong.cpp | 153 - TAO/tests/Param_Test/ulonglong.h | 77 - TAO/tests/Param_Test/var_array.cpp | 181 - TAO/tests/Param_Test/var_array.h | 88 - TAO/tests/Param_Test/var_struct.cpp | 245 - TAO/tests/Param_Test/var_struct.h | 82 - TAO/tests/Quoter/FactoryFinder.exe | Bin 463 -> 0 bytes TAO/tests/Quoter/ns.btm | 4 - TAO/tests/Quoter/run_test.btm | 161 - TAO/tests/Quoter/sv.btm | 7 - TAO/tests/README | 38 - TAO/tests/TAO_Tests.dsw | 197 - TAO/utils/IOR-parser/IOR_Parser.dsp | 101 - TAO/utils/IOR-parser/IOR_Parser.dsw | 29 - TAO/utils/IOR-parser/Makefile | 59 - TAO/utils/IOR-parser/Orbix.IOR | 1 - TAO/utils/IOR-parser/README | 23 - TAO/utils/IOR-parser/Tao.IOR | 1 - TAO/utils/IOR-parser/TaoSimple.IOR | 1 - TAO/utils/IOR-parser/VisiBroker.IOR | 1 - TAO/utils/IOR-parser/ior-handler.cpp | 613 - TAO/utils/IOR-parser/ior-handler.h | 132 - TAO/utils/IOR-parser/ior-parser.cpp | 38 - TAO/utils/Makefile | 23 - TAO/utils/catior/Makefile | 47 - TAO/utils/catior/README | 17 - TAO/utils/catior/catior.cpp | 629 - TAO/utils/catior/catior.dsp | 89 - TAO/utils/catior/catior.dsw | 29 - TAO/utils/catior/test.bat | 6 - TAO/utils/catior/test/adagrid.ior | 2 - TAO/utils/catior/test/eventservice.ior | 1 - TAO/utils/catior/test/expersoft.iiop | 2 - TAO/utils/catior/test/expersoft.ior | 1 - TAO/utils/catior/test/expersoft2.iiop | 2 - TAO/utils/catior/test/expersoft2.ior | 1 - TAO/utils/catior/test/expersoft3.iiop | 2 - TAO/utils/catior/test/expersoft3.ior | 1 - TAO/utils/catior/test/namingservice.poop | 2 - TAO/utils/catior/test/param_test.iiop | 2 - TAO/utils/catior/test/quoteserver.ior | 1 - TAO/utils/catior/test/test1.ior | 1 - TAO/utils/catior/test/test2.ior | 1 - TAO/utils/catior/test/timeserver.iiop | 2 - TAO/utils/catior/test/timeserver.ior | 1 - ace/Containers_bad.i | 25 - ace/Makefile | 6969 ---- ace/config-sunos5.6-sunc++-4.x.h | 23 - apps/Gateway/Gateway/Channel.cpp | 710 - apps/Gateway/Gateway/Channel.h | 280 - apps/Gateway/Gateway/Channel_Connector.cpp | 92 - apps/Gateway/Gateway/Channel_Connector.h | 41 - apps/Gateway/Gateway/Concurrency_Strategies.h | 74 - apps/Gateway/Gateway/Consumer_Entry.cpp | 31 - apps/Gateway/Gateway/Consumer_Entry.h | 45 - apps/Gateway/Gateway/Consumer_Map.cpp | 61 - apps/Gateway/Gateway/Consumer_Map.h | 62 - apps/Gateway/Gateway/Dispatch_Set.h | 28 - apps/Gateway/Gateway/IO_Handler.cpp | 710 - apps/Gateway/Gateway/IO_Handler.h | 224 - apps/Gateway/Gateway/IO_Handler_Connector.cpp | 92 - apps/Gateway/Gateway/IO_Handler_Connector.h | 40 - apps/Gateway/Gateway/Peer_Message.h | 89 - apps/Gateway/Gateway/Routing_Entry.cpp | 47 - apps/Gateway/Gateway/Routing_Entry.h | 53 - apps/Gateway/Gateway/Routing_Table.cpp | 69 - apps/Gateway/Gateway/Routing_Table.h | 67 - apps/Gateway/Gateway/Thr_Channel.cpp | 204 - apps/Gateway/Gateway/Thr_Channel.h | 65 - apps/Gateway/Gateway/Thr_IO_Handler.cpp | 204 - apps/Gateway/Gateway/Thr_IO_Handler.h | 64 - apps/Gateway/Gateway/Thr_Proxy_Handler.cpp | 211 - apps/Gateway/Gateway/Thr_Proxy_Handler.h | 66 - apps/Gateway/Gateway/cc_config | 10 - apps/Gateway/Gateway/rt_config | 7 - apps/Gateway/Peer/Event.h | 125 - apps/Gateway/Peer/Gateway_Handler.cpp | 652 - apps/Gateway/Peer/Gateway_Handler.h | 154 - apps/Gateway/Peer/Peer_Message.h | 44 - examples/Reactor/Misc/signal_tester.cpp | 221 - examples/Reactor/Misc/test_signals.cpp | 226 - .../SV_Semaphores/Semaphore_Client.cpp | 31 - .../SV_Semaphores/Semaphore_Server.cpp | 42 - .../System_V_IPC/SV_Semaphores/Semaphore_Test.h | 11 - examples/System_V_IPC/SV_Semaphores/Semaphores.cpp | 94 - examples/Threads/test_auto_event.cpp | 113 - examples/Threads/test_barrier1.cpp | 84 - examples/Threads/test_barrier2.cpp | 269 - examples/Threads/test_cancel.cpp | 72 - examples/Threads/test_future1.cpp | 420 - examples/Threads/test_future2.cpp | 524 - examples/Threads/test_manual_event.cpp | 108 - examples/Threads/test_process_mutex.cpp | 68 - examples/Threads/test_process_semaphore.cpp | 56 - examples/Threads/test_reader_writer.cpp | 187 - examples/Threads/test_recursive_mutex.cpp | 108 - examples/Threads/test_task.cpp | 104 - examples/Threads/test_task_four.cpp | 248 - examples/Threads/test_task_one.cpp | 104 - examples/Threads/test_task_three.cpp | 230 - examples/Threads/test_task_two.cpp | 156 - examples/Threads/test_thread_manager.cpp | 104 - examples/Threads/test_thread_pool.cpp | 214 - examples/Threads/test_thread_specific.cpp | 219 - examples/Threads/test_token.cpp | 76 - examples/Threads/test_tss.cpp | 235 - examples/Threads/test_tss1.cpp | 164 - examples/Threads/test_tss2.cpp | 252 - java/ChangeLog | 21 - java/ImageProcessing/ImageProcessing.dsp | 253 - java/ImageProcessing/ImageProcessing.dsw | 29 - java/ImageProcessing/filters/Assert.java | 33 - java/ImageProcessing/filters/BleachFilter.java | 65 - java/ImageProcessing/filters/BlurFilter.java | 95 - java/ImageProcessing/filters/DarkenFilter.java | 48 - java/ImageProcessing/filters/DeSpeckleFilter.java | 123 - java/ImageProcessing/filters/DissolveFilter.java | 52 - java/ImageProcessing/filters/EdgeDetectFilter.java | 250 - java/ImageProcessing/filters/EmbossFilter.java | 86 - java/ImageProcessing/filters/Makefile | 36 - java/ImageProcessing/filters/MedFilter.java | 6 - java/ImageProcessing/filters/OilPaintFilter.java | 97 - java/ImageProcessing/filters/PixelizeFilter.java | 117 - java/ImageProcessing/filters/RandomizeFilter.java | 36 - java/ImageProcessing/filters/RotateFilter.java | 358 - java/ImageProcessing/filters/SharpenFilter.java | 272 - java/ImageProcessing/filters/SpatialFilter.java | 213 - java/ImageProcessing/filters/SpreadFilter.java | 130 - java/ImageProcessing/filters/Timer.java | 23 - java/ImageProcessing/framework/BaseButton.java | 234 - .../ImageProcessing/framework/BenchmarkApplet.java | 622 - java/ImageProcessing/framework/DialogManager.java | 277 - java/ImageProcessing/framework/DialogType.java | 11 - java/ImageProcessing/framework/FileBrowser.java | 173 - java/ImageProcessing/framework/FilePanel.java | 161 - java/ImageProcessing/framework/FilterTest.java | 62 - java/ImageProcessing/framework/GIFHandler.java | 75 - java/ImageProcessing/framework/GifEncoder.java | 693 - java/ImageProcessing/framework/Hierarchy.java | 347 - .../framework/HierarchyAdapter.java | 34 - java/ImageProcessing/framework/Icon.java | 70 - java/ImageProcessing/framework/ImageApp.java | 303 - .../framework/ImageByteCounter.java | 94 - java/ImageProcessing/framework/ImageCanvas.java | 166 - java/ImageProcessing/framework/ImageEncoder.java | 271 - java/ImageProcessing/framework/ImageProcessor.java | 111 - java/ImageProcessing/framework/ImageSender.java | 128 - java/ImageProcessing/framework/IntHashtable.java | 396 - java/ImageProcessing/framework/ListFiles.java | 167 - java/ImageProcessing/framework/LoadURLFrame.java | 142 - java/ImageProcessing/framework/Makefile | 45 - java/ImageProcessing/framework/MedJava.html | 15 - java/ImageProcessing/framework/Options.java | 25 - java/ImageProcessing/framework/SaveURLFrame.java | 133 - java/ImageProcessing/framework/Separator.java | 90 - java/ImageProcessing/framework/ServerHandler.java | 50 - java/ImageProcessing/framework/ServerTest.java | 67 - java/ImageProcessing/framework/StatusDisplay.java | 23 - .../ImageProcessing/framework/StatusIndicator.java | 70 - java/ImageProcessing/framework/TestHandler.java | 149 - java/ImageProcessing/framework/Tester.java | 148 - java/ImageProcessing/framework/doc01.gif | Bin 223 -> 0 bytes java/ImageProcessing/framework/file03.gif | Bin 267 -> 0 bytes java/ImageProcessing/framework/filter.conf | 15 - java/ImageProcessing/framework/help.conf | 216 - java/ImageProcessing/framework/test.html | 19 - java/ImageProcessing/framework/testFilter.conf | 15 - java/VERSION | 5 - java/apps/NexusII/README | 58 - java/apps/NexusII/classes/ClientHandler.class | Bin 7017 -> 0 bytes java/apps/NexusII/classes/FrameHandler.class | Bin 851 -> 0 bytes java/apps/NexusII/classes/ImageCanvas.class | Bin 2771 -> 0 bytes java/apps/NexusII/classes/NexusClientApplet.class | Bin 9297 -> 0 bytes java/apps/NexusII/classes/NexusIIserver.class | Bin 1566 -> 0 bytes java/apps/NexusII/classes/Room.class | Bin 2138 -> 0 bytes java/apps/NexusII/classes/RoomFactory.class | Bin 1686 -> 0 bytes java/apps/NexusII/classes/RoomFrame.class | Bin 3878 -> 0 bytes java/apps/NexusII/classes/RoomThread.class | Bin 1076 -> 0 bytes java/apps/NexusII/classes/awtCommand/CApplet.class | Bin 2239 -> 0 bytes java/apps/NexusII/classes/awtCommand/CApplet.java | 199 - java/apps/NexusII/classes/awtCommand/CButton.class | Bin 698 -> 0 bytes java/apps/NexusII/classes/awtCommand/CButton.java | 41 - java/apps/NexusII/classes/awtCommand/CCanvas.class | Bin 4128 -> 0 bytes java/apps/NexusII/classes/awtCommand/CCanvas.java | 381 - java/apps/NexusII/classes/awtCommand/CFrame.class | Bin 5174 -> 0 bytes java/apps/NexusII/classes/awtCommand/CFrame.java | 486 - java/apps/NexusII/classes/awtCommand/CList.class | Bin 1236 -> 0 bytes java/apps/NexusII/classes/awtCommand/CList.java | 96 - java/apps/NexusII/classes/awtCommand/CPanel.class | Bin 4125 -> 0 bytes java/apps/NexusII/classes/awtCommand/CPanel.java | 381 - .../NexusII/classes/awtCommand/CTextArea.class | Bin 1048 -> 0 bytes .../apps/NexusII/classes/awtCommand/CTextArea.java | 93 - .../NexusII/classes/awtCommand/CTextField.class | Bin 1225 -> 0 bytes .../NexusII/classes/awtCommand/CTextField.java | 110 - java/apps/NexusII/classes/awtCommand/Command.class | Bin 253 -> 0 bytes java/apps/NexusII/classes/awtCommand/Command.java | 25 - java/apps/NexusII/classes/commandHandler.class | Bin 1310 -> 0 bytes java/apps/NexusII/classes/commandParser.class | Bin 1974 -> 0 bytes java/apps/NexusII/classes/connectionHandler.class | Bin 4632 -> 0 bytes java/apps/NexusII/classes/joinHandler.class | Bin 3229 -> 0 bytes java/apps/NexusII/classes/roomHandler.class | Bin 2371 -> 0 bytes java/apps/NexusII/classes/textHandler.class | Bin 2227 -> 0 bytes java/apps/NexusII/src/Consumer.java | 74 - java/apps/NexusII/src/MT_Bounded_Queue.java | 226 - java/apps/NexusII/src/MT_Bounded_Queue_Group.java | 79 - java/apps/NexusII/src/NexusClientApplet.java | 494 - java/apps/NexusII/src/NexusIIserver.java | 280 - java/apps/NexusII/src/Producer.java | 87 - java/apps/NexusII/src/Room.java | 97 - java/apps/NexusII/src/RoomFrame.java | 297 - java/apps/NexusII/src/RoomSpace.java | 110 - java/apps/NexusII/src/Timed_Wait.java | 86 - java/apps/NexusII/src/Timer.java | 31 - java/apps/NexusII/src/commandHandler.java | 44 - java/apps/NexusII/src/commandParser.java | 124 - java/apps/NexusII/src/connectionHandler.java | 236 - java/apps/NexusII/src/consts.java | 40 - java/apps/NexusII/src/dataPacket.java | 124 - java/apps/NexusII/src/joinHandler.java | 181 - java/apps/NexusII/src/makefile | 15 - java/apps/NexusII/src/nexusDemuxThread.java | 97 - java/apps/NexusII/src/roomHandler.java | 125 - java/apps/NexusII/src/socketReaderThread.java | 126 - java/apps/NexusII/src/socketWriterThread.java | 119 - java/apps/NexusII/src/url_to_url.java | 33 - java/apps/NexusII/start | 27 - java/apps/NexusII/start.html | 3 - java/classes/README.TXT | 2 - java/doc/images/GridBagEx.gif | Bin 2453 -> 0 bytes java/doc/images/OpenBookIcon.gif | Bin 2241 -> 0 bytes java/doc/images/blue-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/blue-ball.gif | Bin 925 -> 0 bytes java/doc/images/class-index.gif | Bin 1497 -> 0 bytes java/doc/images/constructor-index.gif | Bin 1711 -> 0 bytes java/doc/images/constructors.gif | Bin 1565 -> 0 bytes java/doc/images/cyan-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/cyan-ball.gif | Bin 925 -> 0 bytes java/doc/images/error-index.gif | Bin 1438 -> 0 bytes java/doc/images/exception-index.gif | Bin 1707 -> 0 bytes java/doc/images/green-ball-small.gif | Bin 102 -> 0 bytes java/doc/images/green-ball.gif | Bin 886 -> 0 bytes java/doc/images/interface-index.gif | Bin 1648 -> 0 bytes java/doc/images/magenta-ball-small.gif | Bin 104 -> 0 bytes java/doc/images/magenta-ball.gif | Bin 896 -> 0 bytes java/doc/images/method-index.gif | Bin 1588 -> 0 bytes java/doc/images/methods.gif | Bin 1403 -> 0 bytes java/doc/images/package-index.gif | Bin 1607 -> 0 bytes java/doc/images/red-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/red-ball.gif | Bin 527 -> 0 bytes java/doc/images/variable-index.gif | Bin 1576 -> 0 bytes java/doc/images/variables.gif | Bin 1380 -> 0 bytes java/doc/images/yellow-ball-small.gif | Bin 255 -> 0 bytes java/doc/images/yellow-ball.gif | Bin 925 -> 0 bytes java/examples/Logger/README | 29 - java/examples/Logger/simple-server/LogRecord.java | 145 - .../Logger/simple-server/LoggerConstants.java | 7 - .../Logger/simple-server/LoggingAcceptor.java | 33 - .../Logger/simple-server/LoggingClient.java | 108 - .../Logger/simple-server/LoggingHandler.java | 121 - java/examples/Logger/simple-server/Makefile | 34 - java/examples/Logger/simple-server/README | 25 - .../Logger/simple-server/SimpleLogger.java | 44 - java/gjt/Assert.java | 33 - java/gjt/Bargauge.java | 80 - java/gjt/Border.java | 105 - java/gjt/Box.java | 81 - java/gjt/BulletinLayout.java | 100 - java/gjt/ButtonPanel.java | 51 - java/gjt/CardPanel.java | 48 - java/gjt/ChoiceCardPanel.java | 53 - java/gjt/ColumnLayout.java | 154 - java/gjt/ComponentScroller.java | 42 - java/gjt/DialogClient.java | 20 - java/gjt/DrawingPanel.java | 72 - java/gjt/DrawnRectangle.java | 136 - java/gjt/EtchedBorder.java | 59 - java/gjt/EtchedRectangle.java | 97 - java/gjt/Etching.java | 22 - java/gjt/ExclusiveImageButtonPanel.java | 47 - java/gjt/FontDialog.java | 362 - java/gjt/GJT.DSP | 456 - java/gjt/GJT.DSW | 29 - java/gjt/GJTDialog.java | 51 - java/gjt/IconCardPanel.java | 55 - java/gjt/ImageButton.java | 209 - java/gjt/ImageButtonController.java | 79 - java/gjt/ImageButtonEvent.java | 103 - java/gjt/ImageButtonPanel.java | 106 - java/gjt/ImageButtonPanelController.java | 47 - java/gjt/ImageCanvas.java | 31 - java/gjt/ImageScroller.java | 62 - java/gjt/LabelCanvas.java | 93 - java/gjt/Makefile | 67 - java/gjt/MessageDialog.java | 77 - java/gjt/MouseController.java | 32 - java/gjt/Orientation.java | 87 - java/gjt/ProgressDialog.java | 67 - java/gjt/QuestionDialog.java | 130 - java/gjt/RadioImageButtonPanelController.java | 45 - java/gjt/RowLayout.java | 153 - java/gjt/Scroller.java | 154 - java/gjt/ScrollerLayout.java | 160 - java/gjt/SelectionEvent.java | 82 - java/gjt/Separator.java | 90 - java/gjt/SpringyImageButtonController.java | 54 - java/gjt/StateButton.java | 45 - java/gjt/StateButtonController.java | 27 - java/gjt/StickyImageButtonController.java | 87 - java/gjt/Stopwatch.java | 94 - java/gjt/StopwatchClient.java | 14 - java/gjt/ThreeDBorder.java | 53 - java/gjt/ThreeDBorderStyle.java | 24 - java/gjt/ThreeDRectangle.java | 105 - java/gjt/Toolbar.java | 58 - java/gjt/Util.java | 69 - java/gjt/YesNoDialog.java | 80 - java/gjt/animation/CollisionArena.java | 39 - java/gjt/animation/CollisionDetector.java | 24 - java/gjt/animation/EdgeCollisionDetector.java | 53 - java/gjt/animation/Playfield.java | 140 - java/gjt/animation/Sequence.java | 119 - java/gjt/animation/Sprite.java | 191 - java/gjt/animation/SpriteCollisionDetector.java | 45 - java/gjt/image/BleachImageFilter.java | 53 - java/gjt/image/DissolveFilter.java | 48 - java/gjt/image/ImageDissolver.java | 132 - java/gjt/rubberband/Rubberband.java | 100 - java/gjt/rubberband/RubberbandEllipse.java | 32 - java/gjt/rubberband/RubberbandLine.java | 25 - java/gjt/rubberband/RubberbandPanel.java | 38 - java/gjt/rubberband/RubberbandRectangle.java | 29 - java/gjt/test/AttributesPanel.java | 78 - java/gjt/test/BargaugeTest.java | 130 - java/gjt/test/BleachImageFilterTest.java | 86 - java/gjt/test/BorderTest.java | 202 - java/gjt/test/BoxTest.java | 100 - java/gjt/test/BumpAnimationTest.java | 107 - java/gjt/test/ChoiceCardPanelTest.java | 34 - java/gjt/test/ColumnLayoutTest.java | 126 - java/gjt/test/ComponentScrollerTest.java | 205 - java/gjt/test/ConnectionsPanel.java | 9 - java/gjt/test/DialogTest.java | 140 - java/gjt/test/DrawnRectangleTest.java | 119 - java/gjt/test/FontDialogTest.java | 95 - java/gjt/test/IconCardPanelTest.java | 47 - java/gjt/test/ImageButtonTest.java | 130 - java/gjt/test/ImageDissolverTest.java | 69 - java/gjt/test/ImageScrollerTest.java | 55 - java/gjt/test/LabelCanvasTest.java | 75 - java/gjt/test/MessageDialogTest.java | 50 - java/gjt/test/OccupationOracle.java | 334 - java/gjt/test/RowLayoutTest.java | 124 - java/gjt/test/RubberbandTest.java | 112 - java/gjt/test/SeparatorTest.java | 64 - java/gjt/test/SimpleAnimationTest.java | 87 - java/gjt/test/SimpleBargaugeTest.java | 61 - java/gjt/test/StateButtonTest.java | 41 - java/gjt/test/TenPixelBorder.java | 44 - java/gjt/test/TitledPanel.java | 22 - java/gjt/test/ToolbarTest.java | 111 - java/gjt/test/TwoDrinkersAnimationTest.java | 130 - java/gjt/test/UnitTest.java | 46 - java/netsvcs/Logger/DefaultLMR.java | 36 - java/netsvcs/Logger/LogMessageReceiver.java | 33 - java/netsvcs/Logger/LogRecord.java | 188 - java/netsvcs/Logger/Makefile | 23 - java/netsvcs/Logger/ServerLoggingAcceptor.java | 171 - java/netsvcs/Logger/ServerLoggingHandler.java | 105 - java/netsvcs/Naming/Makefile | 24 - java/netsvcs/Naming/NameAcceptor.java | 306 - java/netsvcs/Naming/NameHandler.java | 521 - java/netsvcs/Naming/NameProxy.java | 351 - java/netsvcs/Naming/NameReply.java | 145 - java/netsvcs/Naming/NameRequest.java | 331 - java/netsvcs/Time/Clerk.java | 23 - java/netsvcs/Time/Makefile | 26 - java/netsvcs/Time/Server.java | 23 - java/netsvcs/Time/TSClerkHandler.java | 296 - java/netsvcs/Time/TSClerkProcessor.java | 267 - java/netsvcs/Time/TSRequestAcceptor.java | 142 - java/netsvcs/Time/TSRequestHandler.java | 106 - java/netsvcs/Time/TSServerAcceptor.java | 100 - java/netsvcs/Time/TSServerHandler.java | 99 - java/src/ACE.java | 164 - java/src/AcceptStrategy.java | 89 - java/src/Acceptor.java | 216 - java/src/ActivateStrategy.java | 43 - java/src/AddServiceObjectNode.java | 54 - java/src/Blob.java | 94 - java/src/BlobHandler.java | 35 - java/src/BlobReader.java | 104 - java/src/BlobWriter.java | 220 - java/src/ClassNameGenerator.java | 181 - java/src/ClassReader.java | 146 - java/src/Condition.java | 124 - java/src/Connector.java | 157 - java/src/CreationStrategy.java | 64 - java/src/EventHandler.java | 53 - java/src/GetOpt.java | 150 - java/src/HTTPHelper.java | 84 - java/src/INETAddr.java | 99 - java/src/IOCntlCmds.java | 34 - java/src/IOCntlMsg.java | 128 - java/src/JACE.DSP | 292 - java/src/JACE.DSW | 29 - java/src/Makefile | 153 - java/src/MessageBlock.java | 453 - java/src/MessageQueue.java | 636 - java/src/MessageType.java | 110 - java/src/Module.java | 253 - java/src/Mutex.java | 92 - java/src/OS.java | 72 - java/src/ParseNode.java | 69 - java/src/ProfileTimer.java | 48 - java/src/README | 19 - java/src/RWMutex.java | 174 - java/src/RemoveNode.java | 35 - java/src/ResumeNode.java | 34 - java/src/SOCKAcceptor.java | 115 - java/src/SOCKConnector.java | 75 - java/src/SOCKStream.java | 218 - java/src/Semaphore.java | 103 - java/src/ServiceConfig.java | 375 - java/src/ServiceLoader.java | 260 - java/src/ServiceObject.java | 80 - java/src/ServiceObjectRecord.java | 33 - java/src/ServiceRecord.java | 253 - java/src/ServiceRepository.java | 189 - java/src/StrategyAcceptor.java | 156 - java/src/Stream.java | 438 - java/src/StreamHead.java | 120 - java/src/StreamTail.java | 111 - java/src/SuspendNode.java | 34 - java/src/SvcHandler.java | 85 - java/src/Task.java | 418 - java/src/TaskFlags.java | 44 - java/src/ThreadManager.java | 109 - java/src/ThruTask.java | 48 - java/src/TimeValue.java | 256 - java/src/TimedWait.java | 137 - java/src/TimeoutException.java | 34 - java/src/TimerQueue.java | 433 - java/src/Token.java | 298 - java/tests/ASX/BufferStreamTest.dsp | 73 - java/tests/ASX/BufferStreamTest.java | 185 - java/tests/ASX/Makefile | 26 - java/tests/ASX/MessageQueueTest.dsp | 73 - java/tests/ASX/MessageQueueTest.java | 50 - java/tests/ASX/PriorityBufferTest.dsp | 73 - java/tests/ASX/PriorityBufferTest.java | 116 - java/tests/ASX/TaskTest.dsp | 72 - java/tests/ASX/TaskTest.java | 86 - java/tests/ASX/ThreadPoolTest.dsp | 73 - java/tests/ASX/ThreadPoolTest.java | 185 - java/tests/Concurrency/Condition/Condition.dsp | 88 - java/tests/Concurrency/Condition/Consumer.java | 73 - .../Concurrency/Condition/JoinableThreadGroup.java | 24 - java/tests/Concurrency/Condition/Makefile | 25 - java/tests/Concurrency/Condition/Producer.java | 67 - java/tests/Concurrency/Condition/QueueTest.java | 64 - .../Concurrency/Condition/SimpleMessageQueue.java | 86 - java/tests/Concurrency/Makefile | 23 - java/tests/Concurrency/MutexTest.dsp | 72 - java/tests/Concurrency/MutexTest.java | 154 - java/tests/Concurrency/RWMutexTest.dsp | 73 - java/tests/Concurrency/RWMutexTest.java | 93 - java/tests/Concurrency/SemaphoreTest.dsp | 73 - java/tests/Concurrency/SemaphoreTest.java | 102 - java/tests/Concurrency/TokenTest.dsp | 72 - java/tests/Concurrency/TokenTest.java | 73 - java/tests/Connection/AcceptorTest.dsp | 73 - java/tests/Connection/AcceptorTest.java | 79 - java/tests/Connection/ClientHandler.dsp | 73 - java/tests/Connection/ClientHandler.java | 77 - java/tests/Connection/ConnectorTest.dsp | 73 - java/tests/Connection/ConnectorTest.java | 76 - java/tests/Connection/HTTPHelperTest.java | 27 - java/tests/Connection/Makefile | 26 - java/tests/Connection/ServerHandler.dsp | 73 - java/tests/Connection/ServerHandler.java | 68 - java/tests/Misc/Makefile | 21 - java/tests/Misc/ParseArgsTest.dsp | 73 - java/tests/Misc/ParseArgsTest.java | 45 - java/tests/Reactor/Makefile | 22 - java/tests/Reactor/TimeValueTest.dsp | 73 - java/tests/Reactor/TimeValueTest.java | 50 - java/tests/Reactor/TimerQueueTest.dsp | 73 - java/tests/Reactor/TimerQueueTest.java | 80 - java/tests/SOCK_SAP/Makefile | 22 - java/tests/SOCK_SAP/SOCKAcceptorTest.dsp | 73 - java/tests/SOCK_SAP/SOCKAcceptorTest.java | 108 - java/tests/SOCK_SAP/SOCKConnectorTest.dsp | 73 - java/tests/SOCK_SAP/SOCKConnectorTest.java | 95 - java/tests/ServiceConfigurator/Makefile | 25 - .../ServiceConfigurator/ServiceConfigurator.dsp | 81 - java/tests/ServiceConfigurator/TestService.java | 52 - java/tests/ServiceConfigurator/reloadTest.java | 61 - java/tests/ServiceConfigurator/suspendTest.java | 80 - java/tests/ServiceConfigurator/suspendTest1.conf | 1 - java/tests/ServiceConfigurator/suspendTest2.conf | 1 - java/tests/ServiceConfigurator/suspendTest3.conf | 1 - java/tests/ServiceConfigurator/svc.conf | 1 - java/tests/Tests.dsw | 257 - java/tests/netsvcs/Logger/LoggerTest.java | 122 - java/tests/netsvcs/Logger/Makefile | 19 - java/tests/netsvcs/Naming/ClientTest.java | 117 - java/tests/netsvcs/Naming/Makefile | 21 - netsvcs/clients/Naming/Dump_Restore/nametest.cpp | 112 - netsvcs/clients/Naming/Dump_Restore/nametest.h | 15 - netsvcs/lib/Client_Logging_Handler.i | 4 - netsvcs/lib/Server_Logging_Handler.i | 4 - netsvcs/servers/cli.conf | 11 - netsvcs/servers/ntsvc.conf | 12 - psosim/Makefile | 76 - psosim/drv_conf.c | 79 - rpc++/.dependencies | 131 - rpc++/COPYING | 481 - rpc++/Makefile | 55 - rpc++/Proj.make | 68 - rpc++/README | 18 - rpc++/README.ORIG | 9 - rpc++/StdHdrs/Makefile | 13 - rpc++/StdHdrs/README | 3 - rpc++/StdHdrs/rpc/auth.h | 171 - rpc++/StdHdrs/rpc/c_types.h | 79 - rpc++/StdHdrs/rpc/clnt.h | 347 - rpc++/StdHdrs/rpc/pmap_clnt.h | 82 - rpc++/StdHdrs/rpc/svc.h | 286 - rpc++/StdHdrs/rpc/xdr.h | 275 - rpc++/callback.cc | 38 - rpc++/example/Makefile | 40 - rpc++/example/calcsvc.cc | 30 - rpc++/example/calcsvc.h | 34 - rpc++/example/client.cc | 64 - rpc++/example/server.cc | 112 - rpc++/gcc-2.2.fix | 252 - rpc++/request.cc | 165 - rpc++/rpc++.cp | 13 - rpc++/rpc++.fn | 63 - rpc++/rpc++.ky | 0 rpc++/rpc++.pg | 0 rpc++/rpc++.texi | 1519 - rpc++/rpc++.toc | 23 - rpc++/rpc++.tp | 7 - rpc++/rpc++.vr | 13 - rpc++/rpc++/callback.h | 533 - rpc++/rpc++/request.h | 121 - rpc++/rpc++/service.h | 132 - rpc++/rpc++/stub.h | 145 - rpc++/rpc++/xdr++.h | 98 - rpc++/service.cc | 316 - rpc++/stub.cc | 207 - rpc++/version.h | 4 - rpc++/xdr++.cc | 75 - tests/CPP_Test.cpp | 261 - tests/Shared_Memory_SV_Test.cpp | 83 - tests/run_tests.ksh | 6 - 2956 files changed, 725189 deletions(-) delete mode 100644 ACE.DSW delete mode 100644 STL/ACE_Changes delete mode 100644 STL/readme2.stl delete mode 100644 TAO/BUG-REPORT-FORM delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/Makefile delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/marshal.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/marshal.idl delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_client delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_dsi delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_ssi delete mode 100755 TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server delete mode 100644 TAO/Benchmark/Marshal_Test/Orbix/server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/Makefile delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshal.idl delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalC.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/marshalS.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h delete mode 100644 TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/Makefile delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl delete mode 100755 TAO/Benchmark/Marshal_Test/VisiBroker/run_client delete mode 100755 TAO/Benchmark/Marshal_Test/VisiBroker/run_server delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h delete mode 100644 TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i delete mode 100644 TAO/Benchmark/benchmark/Makefile delete mode 100644 TAO/Benchmark/benchmark/driver.cpp delete mode 100644 TAO/Benchmark/benchmark/driver.h delete mode 100644 TAO/Benchmark/benchmark/marshal_options.cpp delete mode 100644 TAO/Benchmark/benchmark/marshal_options.h delete mode 100644 TAO/Benchmark/benchmark/marshal_options.i delete mode 100644 TAO/Benchmark/benchmark/marshal_proxy.cpp delete mode 100644 TAO/Benchmark/benchmark/marshal_proxy.h delete mode 100644 TAO/Benchmark/benchmark/marshal_proxy.i delete mode 100644 TAO/Benchmark/benchmark/marshal_results.cpp delete mode 100644 TAO/Benchmark/benchmark/marshal_results.h delete mode 100644 TAO/Benchmark/benchmark/marshal_results.i delete mode 100644 TAO/COPYING delete mode 100644 TAO/COPYING.sun delete mode 100644 TAO/ChangeLog-97 delete mode 100644 TAO/ChangeLog-98a delete mode 100644 TAO/ChangeLog-98c delete mode 100755 TAO/IIOP/Build/default.bld delete mode 100755 TAO/IIOP/Build/tao.bld delete mode 100644 TAO/IIOP/Makefile delete mode 100644 TAO/IIOP/docs/us/codecounts/align.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/any.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/any.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/cdr.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/debug.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/debug.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/except.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/except.hh.cccc delete mode 100755 TAO/IIOP/docs/us/codecounts/generate delete mode 100644 TAO/IIOP/docs/us/codecounts/giop.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/giop.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/initguid.h.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/interp.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/objbase.h.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/object.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/object.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orb.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/principa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/principa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/request.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/request.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/roa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/roa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/roa.i.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/sequence.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/stub.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/thread.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/toa.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/toa.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/typecode.hh.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc delete mode 100644 TAO/IIOP/docs/us/codecounts/xdr.hh.cccc delete mode 100644 TAO/IIOP/docs/us/plan.html delete mode 100644 TAO/IIOP/docs/us/server delete mode 100755 TAO/IIOP/test/Build/clnt.bld delete mode 100755 TAO/IIOP/test/Build/default.bld delete mode 100755 TAO/IIOP/test/Build/svr.bld delete mode 100644 TAO/IIOP/test/Makefile delete mode 100644 TAO/IIOP/test/Orbeline/base_server/Makefile delete mode 100644 TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp delete mode 100644 TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h delete mode 100644 TAO/IIOP/test/Orbeline/base_server/cubit.idl delete mode 100644 TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbeline/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbeline/base_server/server.cpp delete mode 100644 TAO/IIOP/test/Orbeline/base_server/stdmk delete mode 100644 TAO/IIOP/test/Orbeline/client/Makefile delete mode 100644 TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp delete mode 100644 TAO/IIOP/test/Orbeline/client/Profile_Timer.h delete mode 100644 TAO/IIOP/test/Orbeline/client/client.cpp delete mode 100644 TAO/IIOP/test/Orbeline/client/cubit.idl delete mode 100644 TAO/IIOP/test/Orbeline/client/stdmk delete mode 100644 TAO/IIOP/test/Orbix/Makefile delete mode 100644 TAO/IIOP/test/Orbix/base_server/Makefile delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitC.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubitS.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/base_server/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/tpr.cpp delete mode 100644 TAO/IIOP/test/Orbix/base_server/tpr.h delete mode 100644 TAO/IIOP/test/Orbix/client/Makefile delete mode 100644 TAO/IIOP/test/Orbix/client/client.cpp delete mode 100644 TAO/IIOP/test/Orbix/client/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/client/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/client/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/factory_client/Makefile delete mode 100644 TAO/IIOP/test/Orbix/factory_client/client.cpp delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubit.hh delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/factory_client/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/orb.mk delete mode 100644 TAO/IIOP/test/Orbix/tpool/Makefile delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/tpool/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/tpool.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpool/tpool.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/Makefile delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitC.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubitS.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/tpr/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/tpr.cpp delete mode 100644 TAO/IIOP/test/Orbix/tpr/tpr.h delete mode 100644 TAO/IIOP/test/Orbix/tps/Makefile delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit.h delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit.idl delete mode 100644 TAO/IIOP/test/Orbix/tps/cubitC.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/cubitS.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit_impl.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/cubit_impl.h delete mode 100644 TAO/IIOP/test/Orbix/tps/server.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/tps.cpp delete mode 100644 TAO/IIOP/test/Orbix/tps/tps.h delete mode 100644 TAO/IIOP/test/clnt.cpp delete mode 100644 TAO/IIOP/test/cubit.cpp delete mode 100644 TAO/IIOP/test/cubit.h delete mode 100644 TAO/IIOP/test/cubit.idl delete mode 100644 TAO/IIOP/test/cubitC.cpp delete mode 100644 TAO/IIOP/test/cubitC.h delete mode 100644 TAO/IIOP/test/cubitS.cpp delete mode 100644 TAO/IIOP/test/cubitS.h delete mode 100644 TAO/IIOP/test/cubit_i.cpp delete mode 100644 TAO/IIOP/test/cubit_i.h delete mode 100644 TAO/IIOP/test/method_db.i delete mode 100644 TAO/IIOP/test/results/Orbix delete mode 100644 TAO/IIOP/test/results/TAO delete mode 100644 TAO/IIOP/test/results/Visibroker delete mode 100644 TAO/IIOP/test/results/orbs.xls delete mode 100644 TAO/IIOP/test/svr.cpp delete mode 100644 TAO/IIOP/test/test.mak delete mode 100644 TAO/IIOP/test/test.mdp delete mode 100644 TAO/IIOP/test/test1.cpp delete mode 100644 TAO/IIOP/test/test1.h delete mode 100644 TAO/IIOP/test/test1.idl delete mode 100644 TAO/IIOP/test/test1_clnt.cpp delete mode 100644 TAO/IIOP/test/test1_svr.cpp delete mode 100644 TAO/IIOP/test/tnf/Orbix.svr.summary delete mode 100644 TAO/IIOP/test/tnf/clnt.summary delete mode 100644 TAO/IIOP/test/tnf/svr.summary delete mode 100755 TAO/IIOP/tests/Cubit/Build/clnt.bld delete mode 100755 TAO/IIOP/tests/Cubit/Build/default.bld delete mode 100755 TAO/IIOP/tests/Cubit/Build/svr.bld delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/client.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/orb.mk delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp delete mode 100644 TAO/IIOP/tests/Cubit/Orbix/tps/tps.h delete mode 100644 TAO/IIOP/tests/Cubit/README delete mode 100644 TAO/IIOP/tests/Cubit/TAO/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/TAO/clnt.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitC.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitC.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitS.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubitS.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/cubit_i.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/method_db.i delete mode 100644 TAO/IIOP/tests/Cubit/TAO/svr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test.mak delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test.mdp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1.h delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1.idl delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp delete mode 100644 TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl delete mode 100644 TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk delete mode 100644 TAO/IIOP/tests/Cubit/results/Orbix delete mode 100644 TAO/IIOP/tests/Cubit/results/TAO delete mode 100644 TAO/IIOP/tests/Cubit/results/Visibroker delete mode 100644 TAO/IIOP/tests/Cubit/results/orbs.xls delete mode 100644 TAO/IIOP/tests/Thruput_test/Makefile delete mode 100644 TAO/IIOP/tests/Thruput_test/README delete mode 100644 TAO/IIOP/tests/Thruput_test/client.cpp delete mode 100755 TAO/IIOP/tests/Thruput_test/run delete mode 100755 TAO/IIOP/tests/Thruput_test/run_client delete mode 100755 TAO/IIOP/tests/Thruput_test/run_server delete mode 100755 TAO/IIOP/tests/Thruput_test/run_test delete mode 100644 TAO/IIOP/tests/Thruput_test/server.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp.idl delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpC.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpC.h delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpS.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcpS.h delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp_decl.h delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp_i.cpp delete mode 100644 TAO/IIOP/tests/Thruput_test/ttcp_i.h delete mode 100644 TAO/IIOP/tests/Thruput_test/utils.cpp delete mode 100644 TAO/LICENSE.sun delete mode 100644 TAO/Makefile delete mode 100644 TAO/README delete mode 100644 TAO/README.sun delete mode 100644 TAO/TAO-INSTALL.html delete mode 100644 TAO/TAO-inheritance.pdf.gz delete mode 100644 TAO/TAO-inheritance.ps.gz delete mode 100644 TAO/TAOACE.dsw delete mode 100644 TAO/TAOACE_Static.dsw delete mode 100644 TAO/TAO_IDL/ANNOUNCEMENT delete mode 100644 TAO/TAO_IDL/CHANGES delete mode 100644 TAO/TAO_IDL/INSTALL.sun delete mode 100644 TAO/TAO_IDL/Makefile delete mode 100644 TAO/TAO_IDL/README.sun delete mode 100644 TAO/TAO_IDL/TAO_IDL4.mak delete mode 100644 TAO/TAO_IDL/TAO_IDL4.mdp delete mode 100644 TAO/TAO_IDL/ast/ast_argument.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_array.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_attribute.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_check.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_concrete_type.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_constant.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_decl.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_enum.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_enum_val.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_exception.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_expression.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_field.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_generator.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_interface.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_interface_fwd.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_module.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_native.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_operation.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_predefined_type.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_recursive.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_redef.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_root.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_sequence.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_string.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_structure.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_type.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_typedef.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_union.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_union_branch.cpp delete mode 100644 TAO/TAO_IDL/ast/ast_union_label.cpp delete mode 100644 TAO/TAO_IDL/be/be_args.cpp delete mode 100644 TAO/TAO_IDL/be/be_argument.cpp delete mode 100644 TAO/TAO_IDL/be/be_array.cpp delete mode 100644 TAO/TAO_IDL/be/be_attribute.cpp delete mode 100644 TAO/TAO_IDL/be/be_codegen.cpp delete mode 100644 TAO/TAO_IDL/be/be_constant.cpp delete mode 100644 TAO/TAO_IDL/be/be_decl.cpp delete mode 100644 TAO/TAO_IDL/be/be_enum.cpp delete mode 100644 TAO/TAO_IDL/be/be_enum_val.cpp delete mode 100644 TAO/TAO_IDL/be/be_exception.cpp delete mode 100644 TAO/TAO_IDL/be/be_expression.cpp delete mode 100644 TAO/TAO_IDL/be/be_factory.cpp delete mode 100644 TAO/TAO_IDL/be/be_field.cpp delete mode 100644 TAO/TAO_IDL/be/be_generator.cpp delete mode 100644 TAO/TAO_IDL/be/be_helper.cpp delete mode 100644 TAO/TAO_IDL/be/be_init.cpp delete mode 100644 TAO/TAO_IDL/be/be_interface.cpp delete mode 100644 TAO/TAO_IDL/be/be_interface_fwd.cpp delete mode 100644 TAO/TAO_IDL/be/be_interpretive.cpp delete mode 100644 TAO/TAO_IDL/be/be_module.cpp delete mode 100644 TAO/TAO_IDL/be/be_native.cpp delete mode 100644 TAO/TAO_IDL/be/be_operation.cpp delete mode 100644 TAO/TAO_IDL/be/be_predefined_type.cpp delete mode 100644 TAO/TAO_IDL/be/be_produce.cpp delete mode 100644 TAO/TAO_IDL/be/be_root.cpp delete mode 100644 TAO/TAO_IDL/be/be_scope.cpp delete mode 100644 TAO/TAO_IDL/be/be_sequence.cpp delete mode 100644 TAO/TAO_IDL/be/be_string.cpp delete mode 100644 TAO/TAO_IDL/be/be_structure.cpp delete mode 100644 TAO/TAO_IDL/be/be_sunsoft.cpp delete mode 100644 TAO/TAO_IDL/be/be_type.cpp delete mode 100644 TAO/TAO_IDL/be/be_typedef.cpp delete mode 100644 TAO/TAO_IDL/be/be_union.cpp delete mode 100644 TAO/TAO_IDL/be/be_union_branch.cpp delete mode 100644 TAO/TAO_IDL/be/be_union_label.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/argument.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/docall_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/post_docall_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/post_upcall_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/pre_docall_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/pre_upcall_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/array.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_attribute.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_constant.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_context.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_decl.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/exception.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/collocated_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/collocated_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface_si.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module/any_op.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module/module.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/argument.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/collocated_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/collocated_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_docall_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_post_docall_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_pre_docall_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/any_op.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root_si.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_scope.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/elemtype.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/sequence_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/structure.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typecode.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/union.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp delete mode 100644 TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp delete mode 100644 TAO/TAO_IDL/be_include/be.h delete mode 100644 TAO/TAO_IDL/be_include/be_argument.h delete mode 100644 TAO/TAO_IDL/be_include/be_array.h delete mode 100644 TAO/TAO_IDL/be_include/be_attribute.h delete mode 100644 TAO/TAO_IDL/be_include/be_codegen.h delete mode 100644 TAO/TAO_IDL/be_include/be_constant.h delete mode 100644 TAO/TAO_IDL/be_include/be_decl.h delete mode 100644 TAO/TAO_IDL/be_include/be_enum.h delete mode 100644 TAO/TAO_IDL/be_include/be_enum_val.h delete mode 100644 TAO/TAO_IDL/be_include/be_exception.h delete mode 100644 TAO/TAO_IDL/be_include/be_expression.h delete mode 100644 TAO/TAO_IDL/be_include/be_factory.h delete mode 100644 TAO/TAO_IDL/be_include/be_field.h delete mode 100644 TAO/TAO_IDL/be_include/be_generator.h delete mode 100644 TAO/TAO_IDL/be_include/be_helper.h delete mode 100644 TAO/TAO_IDL/be_include/be_interface.h delete mode 100644 TAO/TAO_IDL/be_include/be_interface_fwd.h delete mode 100644 TAO/TAO_IDL/be_include/be_interpretive.h delete mode 100644 TAO/TAO_IDL/be_include/be_module.h delete mode 100644 TAO/TAO_IDL/be_include/be_native.h delete mode 100644 TAO/TAO_IDL/be_include/be_operation.h delete mode 100644 TAO/TAO_IDL/be_include/be_predefined_type.h delete mode 100644 TAO/TAO_IDL/be_include/be_root.h delete mode 100644 TAO/TAO_IDL/be_include/be_scope.h delete mode 100644 TAO/TAO_IDL/be_include/be_sequence.h delete mode 100644 TAO/TAO_IDL/be_include/be_state.h delete mode 100644 TAO/TAO_IDL/be_include/be_string.h delete mode 100644 TAO/TAO_IDL/be_include/be_structure.h delete mode 100644 TAO/TAO_IDL/be_include/be_sunsoft.h delete mode 100644 TAO/TAO_IDL/be_include/be_type.h delete mode 100644 TAO/TAO_IDL/be_include/be_typedef.h delete mode 100644 TAO/TAO_IDL/be_include/be_union.h delete mode 100644 TAO/TAO_IDL/be_include/be_union_branch.h delete mode 100644 TAO/TAO_IDL/be_include/be_union_label.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/argument.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/array.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_attribute.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_constant.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_context.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_decl.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/exception.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/collocated_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module/any_op.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module/module.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/argument.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/collocated_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/collocated_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/any_op.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root_si.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_scope.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/structure.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typecode.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/union.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h delete mode 100644 TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h delete mode 100644 TAO/TAO_IDL/docs/ANNOUNCEMENT delete mode 100644 TAO/TAO_IDL/docs/BUG_REPORT delete mode 100644 TAO/TAO_IDL/docs/CHANGES delete mode 100644 TAO/TAO_IDL/docs/CLI delete mode 100644 TAO/TAO_IDL/docs/COPYRIGHT delete mode 100644 TAO/TAO_IDL/docs/INSTALL delete mode 100644 TAO/TAO_IDL/docs/PROBLEMS delete mode 100644 TAO/TAO_IDL/docs/README delete mode 100644 TAO/TAO_IDL/docs/ROADMAP delete mode 100644 TAO/TAO_IDL/docs/WRITING_A_BE delete mode 100644 TAO/TAO_IDL/driver/drv_args.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_fork.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_init.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_link.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_preproc.cpp delete mode 100644 TAO/TAO_IDL/driver/drv_private.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_declarator.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_extern.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_init.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_interface_header.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_lookup.cpp delete mode 100644 TAO/TAO_IDL/fe/fe_private.cpp delete mode 100644 TAO/TAO_IDL/fe/idl.ll delete mode 100644 TAO/TAO_IDL/fe/idl.yy delete mode 100644 TAO/TAO_IDL/fe/keywords.dat delete mode 100644 TAO/TAO_IDL/fe/lex.yy.cpp delete mode 100644 TAO/TAO_IDL/fe/y.tab.cpp delete mode 100644 TAO/TAO_IDL/fe/y.tab.cpp.diff delete mode 100644 TAO/TAO_IDL/fe/y.tab.h delete mode 100644 TAO/TAO_IDL/idl_make_vars delete mode 100644 TAO/TAO_IDL/idl_specs/array.idl delete mode 100644 TAO/TAO_IDL/idl_specs/constant.idl delete mode 100644 TAO/TAO_IDL/idl_specs/dif2.idl delete mode 100644 TAO/TAO_IDL/idl_specs/inherit.idl delete mode 100644 TAO/TAO_IDL/idl_specs/module.idl delete mode 100644 TAO/TAO_IDL/idl_specs/primtypes.idl delete mode 100644 TAO/TAO_IDL/idl_specs/sequence.idl delete mode 100644 TAO/TAO_IDL/idl_specs/simple.idl delete mode 100644 TAO/TAO_IDL/idl_specs/simple2.idl delete mode 100644 TAO/TAO_IDL/idl_specs/struct.idl delete mode 100644 TAO/TAO_IDL/idl_specs/union.idl delete mode 100644 TAO/TAO_IDL/idl_specs/union2.idl delete mode 100644 TAO/TAO_IDL/include/ast.h delete mode 100644 TAO/TAO_IDL/include/ast_argument.h delete mode 100644 TAO/TAO_IDL/include/ast_array.h delete mode 100644 TAO/TAO_IDL/include/ast_attribute.h delete mode 100644 TAO/TAO_IDL/include/ast_concrete_type.h delete mode 100644 TAO/TAO_IDL/include/ast_constant.h delete mode 100644 TAO/TAO_IDL/include/ast_decl.h delete mode 100644 TAO/TAO_IDL/include/ast_enum.h delete mode 100644 TAO/TAO_IDL/include/ast_enum_val.h delete mode 100644 TAO/TAO_IDL/include/ast_exception.h delete mode 100644 TAO/TAO_IDL/include/ast_expression.h delete mode 100644 TAO/TAO_IDL/include/ast_extern.h delete mode 100644 TAO/TAO_IDL/include/ast_field.h delete mode 100644 TAO/TAO_IDL/include/ast_generator.h delete mode 100644 TAO/TAO_IDL/include/ast_interface.h delete mode 100644 TAO/TAO_IDL/include/ast_interface_fwd.h delete mode 100644 TAO/TAO_IDL/include/ast_module.h delete mode 100644 TAO/TAO_IDL/include/ast_native.h delete mode 100644 TAO/TAO_IDL/include/ast_operation.h delete mode 100644 TAO/TAO_IDL/include/ast_predefined_type.h delete mode 100644 TAO/TAO_IDL/include/ast_root.h delete mode 100644 TAO/TAO_IDL/include/ast_sequence.h delete mode 100644 TAO/TAO_IDL/include/ast_string.h delete mode 100644 TAO/TAO_IDL/include/ast_structure.h delete mode 100644 TAO/TAO_IDL/include/ast_type.h delete mode 100644 TAO/TAO_IDL/include/ast_typedef.h delete mode 100644 TAO/TAO_IDL/include/ast_union.h delete mode 100644 TAO/TAO_IDL/include/ast_union_branch.h delete mode 100644 TAO/TAO_IDL/include/ast_union_label.h delete mode 100644 TAO/TAO_IDL/include/be_extern.h delete mode 100644 TAO/TAO_IDL/include/drv_extern.h delete mode 100644 TAO/TAO_IDL/include/drv_link.h delete mode 100644 TAO/TAO_IDL/include/drv_private.h delete mode 100644 TAO/TAO_IDL/include/fe_declarator.h delete mode 100644 TAO/TAO_IDL/include/fe_extern.h delete mode 100644 TAO/TAO_IDL/include/fe_interface_header.h delete mode 100644 TAO/TAO_IDL/include/fe_private.h delete mode 100644 TAO/TAO_IDL/include/global_extern.h delete mode 100644 TAO/TAO_IDL/include/idl.h delete mode 100644 TAO/TAO_IDL/include/idl_bool.h delete mode 100644 TAO/TAO_IDL/include/idl_defines.h delete mode 100644 TAO/TAO_IDL/include/idl_extern.h delete mode 100644 TAO/TAO_IDL/include/idl_fwd.h delete mode 100644 TAO/TAO_IDL/include/idl_global.h delete mode 100644 TAO/TAO_IDL/include/idl_narrow.h delete mode 100644 TAO/TAO_IDL/include/intlmacros.h delete mode 100644 TAO/TAO_IDL/include/nr_extern.h delete mode 100644 TAO/TAO_IDL/include/util.h delete mode 100644 TAO/TAO_IDL/include/utl_decllist.h delete mode 100644 TAO/TAO_IDL/include/utl_err.h delete mode 100644 TAO/TAO_IDL/include/utl_error.h delete mode 100644 TAO/TAO_IDL/include/utl_exceptlist.h delete mode 100644 TAO/TAO_IDL/include/utl_exprlist.h delete mode 100644 TAO/TAO_IDL/include/utl_identifier.h delete mode 100644 TAO/TAO_IDL/include/utl_idlist.h delete mode 100644 TAO/TAO_IDL/include/utl_indenter.h delete mode 100644 TAO/TAO_IDL/include/utl_labellist.h delete mode 100644 TAO/TAO_IDL/include/utl_list.h delete mode 100644 TAO/TAO_IDL/include/utl_namelist.h delete mode 100644 TAO/TAO_IDL/include/utl_scope.h delete mode 100644 TAO/TAO_IDL/include/utl_scoped_name.h delete mode 100644 TAO/TAO_IDL/include/utl_stack.h delete mode 100644 TAO/TAO_IDL/include/utl_string.h delete mode 100644 TAO/TAO_IDL/include/utl_strlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_list.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h delete mode 100644 TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h delete mode 100644 TAO/TAO_IDL/narrow/narrow.cpp delete mode 100644 TAO/TAO_IDL/tao_idl.cpp delete mode 100644 TAO/TAO_IDL/tao_idl.dsp delete mode 100644 TAO/TAO_IDL/tao_idl.dsw delete mode 100644 TAO/TAO_IDL/tao_idl_static.dsp delete mode 100644 TAO/TAO_IDL/util/utl_decllist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_err.cpp delete mode 100644 TAO/TAO_IDL/util/utl_error.cpp delete mode 100644 TAO/TAO_IDL/util/utl_exceptlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_exprlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_global.cpp delete mode 100644 TAO/TAO_IDL/util/utl_identifier.cpp delete mode 100644 TAO/TAO_IDL/util/utl_idlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_indenter.cpp delete mode 100644 TAO/TAO_IDL/util/utl_labellist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_list.cpp delete mode 100644 TAO/TAO_IDL/util/utl_namelist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_scope.cpp delete mode 100644 TAO/TAO_IDL/util/utl_stack.cpp delete mode 100644 TAO/TAO_IDL/util/utl_string.cpp delete mode 100644 TAO/TAO_IDL/util/utl_strlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp delete mode 100644 TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp delete mode 100644 TAO/VERSION delete mode 100755 TAO/announcement delete mode 100644 TAO/docs/DIFFERENCES delete mode 100644 TAO/docs/HISTORY delete mode 100644 TAO/docs/Options.html delete mode 100644 TAO/docs/REFERENCES delete mode 100644 TAO/docs/compiler.html delete mode 100644 TAO/docs/components.html delete mode 100644 TAO/docs/configurations.html delete mode 100644 TAO/docs/forwarding.html delete mode 100644 TAO/docs/implrepo.html delete mode 100644 TAO/docs/index.html delete mode 100644 TAO/docs/leader_follower.html delete mode 100644 TAO/docs/locate_request.html delete mode 100644 TAO/docs/orbsvcs.html delete mode 100644 TAO/docs/poa_migration.html delete mode 100644 TAO/docs/reactivator.html delete mode 100644 TAO/docs/releasenotes.html delete mode 100644 TAO/docs/releasenotes/TODO.html delete mode 100644 TAO/docs/releasenotes/ec.html delete mode 100644 TAO/docs/releasenotes/index.html delete mode 100644 TAO/docs/releasenotes/orbcore.html delete mode 100644 TAO/docs/releasenotes/trader.html delete mode 100644 TAO/examples/Makefile delete mode 100644 TAO/examples/POA/DSI/DSI.DSW delete mode 100644 TAO/examples/POA/DSI/Database.idl delete mode 100644 TAO/examples/POA/DSI/Database_i.cpp delete mode 100644 TAO/examples/POA/DSI/Database_i.h delete mode 100644 TAO/examples/POA/DSI/Makefile delete mode 100644 TAO/examples/POA/DSI/README delete mode 100644 TAO/examples/POA/DSI/client.cpp delete mode 100644 TAO/examples/POA/DSI/client.dsp delete mode 100755 TAO/examples/POA/DSI/run_test.pl delete mode 100644 TAO/examples/POA/DSI/server.cpp delete mode 100644 TAO/examples/POA/DSI/server.dsp delete mode 100644 TAO/examples/POA/Default_Servant/Default_Servant.dsw delete mode 100644 TAO/examples/POA/Default_Servant/File.idl delete mode 100644 TAO/examples/POA/Default_Servant/File_i.cpp delete mode 100644 TAO/examples/POA/Default_Servant/File_i.h delete mode 100644 TAO/examples/POA/Default_Servant/Makefile delete mode 100644 TAO/examples/POA/Default_Servant/README delete mode 100644 TAO/examples/POA/Default_Servant/client.cpp delete mode 100644 TAO/examples/POA/Default_Servant/client.dsp delete mode 100755 TAO/examples/POA/Default_Servant/run_test.pl delete mode 100644 TAO/examples/POA/Default_Servant/server.cpp delete mode 100644 TAO/examples/POA/Default_Servant/server.dsp delete mode 100644 TAO/examples/POA/Default_Servant/svc.conf delete mode 100644 TAO/examples/POA/Default_Servant/test delete mode 100644 TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsp delete mode 100644 TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsw delete mode 100644 TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h delete mode 100644 TAO/examples/POA/Explicit_Activation/Alt_Resources/README delete mode 100644 TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.cpp delete mode 100644 TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h delete mode 100644 TAO/examples/POA/Explicit_Activation/Explicit_Activation.dsw delete mode 100644 TAO/examples/POA/Explicit_Activation/Makefile delete mode 100644 TAO/examples/POA/Explicit_Activation/README delete mode 100644 TAO/examples/POA/Explicit_Activation/alternate.conf delete mode 100755 TAO/examples/POA/Explicit_Activation/run_test.pl delete mode 100644 TAO/examples/POA/Explicit_Activation/server.cpp delete mode 100644 TAO/examples/POA/Explicit_Activation/server.dsp delete mode 100644 TAO/examples/POA/FindPOA/FindPOA.cpp delete mode 100644 TAO/examples/POA/FindPOA/FindPOA.dsp delete mode 100644 TAO/examples/POA/FindPOA/FindPOA.dsw delete mode 100644 TAO/examples/POA/FindPOA/Makefile delete mode 100644 TAO/examples/POA/FindPOA/README delete mode 100644 TAO/examples/POA/Forwarding/Foo.idl delete mode 100644 TAO/examples/POA/Forwarding/Forwarding.dsw delete mode 100644 TAO/examples/POA/Forwarding/Makefile delete mode 100644 TAO/examples/POA/Forwarding/MyFooServant.cpp delete mode 100644 TAO/examples/POA/Forwarding/MyFooServant.h delete mode 100644 TAO/examples/POA/Forwarding/README delete mode 100644 TAO/examples/POA/Forwarding/Servant_Locator.cpp delete mode 100644 TAO/examples/POA/Forwarding/Servant_Locator.h delete mode 100644 TAO/examples/POA/Forwarding/client.cpp delete mode 100644 TAO/examples/POA/Forwarding/client.dsp delete mode 100644 TAO/examples/POA/Forwarding/server.cpp delete mode 100644 TAO/examples/POA/Forwarding/server.dsp delete mode 100644 TAO/examples/POA/Forwarding/svc.conf delete mode 100644 TAO/examples/POA/Generic_Servant/Foo.idl delete mode 100644 TAO/examples/POA/Generic_Servant/Generic_Servant.dsw delete mode 100644 TAO/examples/POA/Generic_Servant/Makefile delete mode 100644 TAO/examples/POA/Generic_Servant/MyFooServant.cpp delete mode 100644 TAO/examples/POA/Generic_Servant/MyFooServant.h delete mode 100644 TAO/examples/POA/Generic_Servant/README delete mode 100644 TAO/examples/POA/Generic_Servant/client.cpp delete mode 100644 TAO/examples/POA/Generic_Servant/client.dsp delete mode 100644 TAO/examples/POA/Generic_Servant/generic_servant_export.h delete mode 100644 TAO/examples/POA/Generic_Servant/server.dsp delete mode 100644 TAO/examples/POA/Makefile delete mode 100644 TAO/examples/POA/NewPOA/Makefile delete mode 100644 TAO/examples/POA/NewPOA/NewPOA.cpp delete mode 100644 TAO/examples/POA/NewPOA/NewPOA.dsp delete mode 100644 TAO/examples/POA/NewPOA/NewPOA.dsw delete mode 100644 TAO/examples/POA/NewPOA/README delete mode 100644 TAO/examples/POA/On_Demand_Activation/Makefile delete mode 100644 TAO/examples/POA/On_Demand_Activation/On_Demand_Activation.dsw delete mode 100644 TAO/examples/POA/On_Demand_Activation/README delete mode 100644 TAO/examples/POA/On_Demand_Activation/Servant_Activator.cpp delete mode 100644 TAO/examples/POA/On_Demand_Activation/Servant_Activator.h delete mode 100644 TAO/examples/POA/On_Demand_Activation/Servant_Locator.cpp delete mode 100644 TAO/examples/POA/On_Demand_Activation/Servant_Locator.h delete mode 100755 TAO/examples/POA/On_Demand_Activation/run_test.pl delete mode 100644 TAO/examples/POA/On_Demand_Activation/server.cpp delete mode 100644 TAO/examples/POA/On_Demand_Activation/server.dsp delete mode 100644 TAO/examples/POA/On_Demand_Activation/svc.conf delete mode 100644 TAO/examples/POA/README delete mode 100644 TAO/examples/POA/RootPOA/Makefile delete mode 100644 TAO/examples/POA/RootPOA/README delete mode 100644 TAO/examples/POA/RootPOA/RootPOA.cpp delete mode 100644 TAO/examples/POA/RootPOA/RootPOA.dsp delete mode 100644 TAO/examples/POA/RootPOA/RootPOA.dsw delete mode 100644 TAO/examples/POA/TIE/Foo.idl delete mode 100644 TAO/examples/POA/TIE/Foo_i.cpp delete mode 100644 TAO/examples/POA/TIE/Foo_i.h delete mode 100644 TAO/examples/POA/TIE/Makefile delete mode 100644 TAO/examples/POA/TIE/TIE.dsw delete mode 100644 TAO/examples/POA/TIE/client.cpp delete mode 100644 TAO/examples/POA/TIE/client.dsp delete mode 100644 TAO/examples/POA/TIE/server.cpp delete mode 100644 TAO/examples/POA/TIE/server.dsp delete mode 100644 TAO/examples/POA/locking/Makefile delete mode 100644 TAO/examples/POA/locking/locking.cpp delete mode 100644 TAO/examples/POA/locking/locking.dsp delete mode 100644 TAO/examples/POA/locking/locking.dsw delete mode 100644 TAO/examples/Quoter/Factory_Finder.cpp delete mode 100644 TAO/examples/Quoter/Factory_Finder.dsp delete mode 100644 TAO/examples/Quoter/Factory_Finder.h delete mode 100644 TAO/examples/Quoter/Factory_Finder_i.cpp delete mode 100644 TAO/examples/Quoter/Factory_Finder_i.h delete mode 100644 TAO/examples/Quoter/Generic_Factory.cpp delete mode 100644 TAO/examples/Quoter/Generic_Factory.dsp delete mode 100644 TAO/examples/Quoter/Generic_Factory.h delete mode 100644 TAO/examples/Quoter/Generic_Factory_i.cpp delete mode 100644 TAO/examples/Quoter/Generic_Factory_i.h delete mode 100644 TAO/examples/Quoter/Makefile delete mode 100644 TAO/examples/Quoter/Quoter.dsw delete mode 100644 TAO/examples/Quoter/Quoter.idl delete mode 100644 TAO/examples/Quoter/Quoter_i.cpp delete mode 100644 TAO/examples/Quoter/Quoter_i.h delete mode 100644 TAO/examples/Quoter/README delete mode 100644 TAO/examples/Quoter/client.conf delete mode 100644 TAO/examples/Quoter/client.cpp delete mode 100644 TAO/examples/Quoter/client.dsp delete mode 100644 TAO/examples/Quoter/client.h delete mode 100755 TAO/examples/Quoter/run_test.pl delete mode 100644 TAO/examples/Quoter/server.conf delete mode 100644 TAO/examples/Quoter/server.cpp delete mode 100644 TAO/examples/Quoter/server.dsp delete mode 100644 TAO/examples/Quoter/server.h delete mode 100644 TAO/examples/Quoter/svc.conf delete mode 100755 TAO/examples/Quoter/testall.pl delete mode 100644 TAO/examples/README delete mode 100644 TAO/examples/Simple/Makefile delete mode 100644 TAO/examples/Simple/README delete mode 100644 TAO/examples/Simple/bank/AccountManager_i.cpp delete mode 100644 TAO/examples/Simple/bank/AccountManager_i.h delete mode 100644 TAO/examples/Simple/bank/Account_i.cpp delete mode 100644 TAO/examples/Simple/bank/Account_i.h delete mode 100644 TAO/examples/Simple/bank/Bank.idl delete mode 100644 TAO/examples/Simple/bank/Client_i.cpp delete mode 100644 TAO/examples/Simple/bank/Client_i.h delete mode 100644 TAO/examples/Simple/bank/Makefile delete mode 100644 TAO/examples/Simple/bank/README delete mode 100644 TAO/examples/Simple/bank/Server_i.cpp delete mode 100644 TAO/examples/Simple/bank/Server_i.h delete mode 100644 TAO/examples/Simple/bank/client.cpp delete mode 100755 TAO/examples/Simple/bank/run_test.pl delete mode 100644 TAO/examples/Simple/bank/server.cpp delete mode 100644 TAO/examples/Simple/chat/Broadcaster.idl delete mode 100644 TAO/examples/Simple/chat/Broadcaster_i.cpp delete mode 100644 TAO/examples/Simple/chat/Broadcaster_i.h delete mode 100644 TAO/examples/Simple/chat/Client_i.cpp delete mode 100644 TAO/examples/Simple/chat/Makefile delete mode 100644 TAO/examples/Simple/chat/README delete mode 100644 TAO/examples/Simple/chat/Receiver.idl delete mode 100644 TAO/examples/Simple/chat/Receiver_i.cpp delete mode 100644 TAO/examples/Simple/chat/Receiver_i.h delete mode 100644 TAO/examples/Simple/chat/Server.h delete mode 100644 TAO/examples/Simple/chat/Server_i.cpp delete mode 100644 TAO/examples/Simple/chat/Server_i.h delete mode 100644 TAO/examples/Simple/chat/client.cpp delete mode 100644 TAO/examples/Simple/chat/server.cpp delete mode 100644 TAO/examples/Simple/echo/Client_i.cpp delete mode 100644 TAO/examples/Simple/echo/Client_i.h delete mode 100644 TAO/examples/Simple/echo/Echo.dsw delete mode 100644 TAO/examples/Simple/echo/Echo.idl delete mode 100644 TAO/examples/Simple/echo/Echo_i.cpp delete mode 100644 TAO/examples/Simple/echo/Echo_i.h delete mode 100644 TAO/examples/Simple/echo/Makefile delete mode 100644 TAO/examples/Simple/echo/README delete mode 100644 TAO/examples/Simple/echo/Server_i.cpp delete mode 100644 TAO/examples/Simple/echo/Server_i.h delete mode 100644 TAO/examples/Simple/echo/client.cpp delete mode 100644 TAO/examples/Simple/echo/client.dsp delete mode 100755 TAO/examples/Simple/echo/run_test.pl delete mode 100644 TAO/examples/Simple/echo/server.cpp delete mode 100644 TAO/examples/Simple/echo/server.dsp delete mode 100644 TAO/examples/Simple/grid/Client_i.cpp delete mode 100644 TAO/examples/Simple/grid/Client_i.h delete mode 100644 TAO/examples/Simple/grid/Grid.dsw delete mode 100644 TAO/examples/Simple/grid/Grid.idl delete mode 100644 TAO/examples/Simple/grid/Grid_i.cpp delete mode 100644 TAO/examples/Simple/grid/Grid_i.h delete mode 100644 TAO/examples/Simple/grid/Makefile delete mode 100644 TAO/examples/Simple/grid/Server_i.cpp delete mode 100644 TAO/examples/Simple/grid/Server_i.h delete mode 100644 TAO/examples/Simple/grid/client.cpp delete mode 100644 TAO/examples/Simple/grid/client.dsp delete mode 100755 TAO/examples/Simple/grid/run_test.pl delete mode 100644 TAO/examples/Simple/grid/server.cpp delete mode 100644 TAO/examples/Simple/grid/server.dsp delete mode 100644 TAO/examples/Simple/time/Client_i.cpp delete mode 100644 TAO/examples/Simple/time/Client_i.h delete mode 100644 TAO/examples/Simple/time/Makefile delete mode 100644 TAO/examples/Simple/time/README delete mode 100644 TAO/examples/Simple/time/Server_i.cpp delete mode 100644 TAO/examples/Simple/time/Server_i.h delete mode 100644 TAO/examples/Simple/time/Time.dsw delete mode 100644 TAO/examples/Simple/time/Time.idl delete mode 100644 TAO/examples/Simple/time/Time_i.cpp delete mode 100644 TAO/examples/Simple/time/Time_i.h delete mode 100644 TAO/examples/Simple/time/client.cpp delete mode 100644 TAO/examples/Simple/time/client.dsp delete mode 100644 TAO/examples/Simple/time/client_static.dsp delete mode 100755 TAO/examples/Simple/time/run_test.pl delete mode 100644 TAO/examples/Simple/time/server.cpp delete mode 100644 TAO/examples/Simple/time/server.dsp delete mode 100644 TAO/examples/Simple/time/server_static.dsp delete mode 100644 TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/AnswerListener.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DataHandler.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DemoCore.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DemoObservable.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/Makefile delete mode 100644 TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/Properties.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumer.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 delete mode 100644 TAO/examples/Simulator/DOVEBrowser/Queue.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/VisComp.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java delete mode 100644 TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java delete mode 100755 TAO/examples/Simulator/DOVEBrowser/make.bat delete mode 100644 TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIB.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp delete mode 100644 TAO/examples/Simulator/DOVEMIB/Makefile delete mode 100644 TAO/examples/Simulator/DOVEMIB/Node.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/Node.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/NodeVisitor.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/PrintVisitor.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/TestClient.dsp delete mode 100644 TAO/examples/Simulator/DOVEMIB/any_test.idl delete mode 100644 TAO/examples/Simulator/DOVEMIB/any_test_i.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/any_test_i.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/clnt.cpp delete mode 100644 TAO/examples/Simulator/DOVEMIB/clnt.h delete mode 100644 TAO/examples/Simulator/DOVEMIB/svc.conf delete mode 100644 TAO/examples/Simulator/DOVEMIB/svr.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h delete mode 100644 TAO/examples/Simulator/Event_Supplier/EDF.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Con.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Con.h delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw delete mode 100644 TAO/examples/Simulator/Event_Supplier/Event_Sup.h delete mode 100644 TAO/examples/Simulator/Event_Supplier/MLF.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/MUF.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/Makefile delete mode 100644 TAO/examples/Simulator/Event_Supplier/RMS.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat delete mode 100644 TAO/examples/Simulator/Event_Supplier/svc.conf delete mode 100644 TAO/examples/Simulator/Makefile delete mode 100644 TAO/examples/Simulator/NavWeap.idl delete mode 100644 TAO/examples/Simulator/README delete mode 100644 TAO/examples/TAO_Examples.dsw delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsp delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.dsw delete mode 100644 TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h delete mode 100644 TAO/orbsvcs/Concurrency_Service/Makefile delete mode 100644 TAO/orbsvcs/Concurrency_Service/README delete mode 100644 TAO/orbsvcs/Concurrency_Service/svc.conf delete mode 100644 TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp delete mode 100644 TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsp delete mode 100644 TAO/orbsvcs/Dump_Schedule/Dump_Schedule.dsw delete mode 100644 TAO/orbsvcs/Dump_Schedule/Makefile delete mode 100644 TAO/orbsvcs/Dump_Schedule/svc.conf delete mode 100644 TAO/orbsvcs/Event_Service/Event_Service.cpp delete mode 100644 TAO/orbsvcs/Event_Service/Event_Service.dsp delete mode 100644 TAO/orbsvcs/Event_Service/Event_Service.dsw delete mode 100644 TAO/orbsvcs/Event_Service/Makefile delete mode 100644 TAO/orbsvcs/Event_Service/svc.conf delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Factory_Trader.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.dsw delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_i.cpp delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_i.h delete mode 100644 TAO/orbsvcs/LifeCycle_Service/Makefile delete mode 100644 TAO/orbsvcs/LifeCycle_Service/svc.conf delete mode 100644 TAO/orbsvcs/Logging_Service/Logging_Service.cpp delete mode 100644 TAO/orbsvcs/Logging_Service/Logging_Service_i.cpp delete mode 100644 TAO/orbsvcs/Logging_Service/Logging_Service_i.h delete mode 100644 TAO/orbsvcs/Logging_Service/Makefile delete mode 100644 TAO/orbsvcs/Makefile delete mode 100644 TAO/orbsvcs/Naming_Service/Makefile delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.cpp delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.dsp delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.dsw delete mode 100644 TAO/orbsvcs/Naming_Service/Naming_Service.h delete mode 100644 TAO/orbsvcs/Naming_Service/README delete mode 100644 TAO/orbsvcs/Naming_Service/svc.conf delete mode 100644 TAO/orbsvcs/Scheduling_Service/Makefile delete mode 100644 TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp delete mode 100644 TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsp delete mode 100644 TAO/orbsvcs/Scheduling_Service/Scheduling_Service.dsw delete mode 100644 TAO/orbsvcs/Scheduling_Service/svc.conf delete mode 100644 TAO/orbsvcs/Trading_Service/Makefile delete mode 100644 TAO/orbsvcs/Trading_Service/README delete mode 100644 TAO/orbsvcs/Trading_Service/Trading_Service.cpp delete mode 100644 TAO/orbsvcs/Trading_Service/Trading_Service.dsp delete mode 100644 TAO/orbsvcs/Trading_Service/Trading_Service.dsw delete mode 100644 TAO/orbsvcs/Trading_Service/Trading_Service.h delete mode 100644 TAO/orbsvcs/Trading_Service/svc.conf delete mode 100755 TAO/orbsvcs/default.bld delete mode 100644 TAO/orbsvcs/orbsvcs.dsw delete mode 100644 TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h delete mode 100644 TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/AV/README delete mode 100644 TAO/orbsvcs/orbsvcs/AVStreams.idl delete mode 100644 TAO/orbsvcs/orbsvcs/AVStreams_Full.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients.h delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Channel_Clients_T.i delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h delete mode 100644 TAO/orbsvcs/orbsvcs/CosConcurrencyControl.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosLifeCycle.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosNaming.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosPropertyService.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosTimeBase.idl delete mode 100644 TAO/orbsvcs/orbsvcs/CosTrading.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Event/BCU.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/BCU.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/CORBA_Utils_T.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Channel_Clients.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Channel_Clients_T.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Debug_Macros.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Event_Channel.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Event_Channel.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Fast_Reactor.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/GPlot_File.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/GPlot_File.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/GPlot_File.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Memory_Pools.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Module_Factory.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Module_Factory.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/RT_Task.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/RT_Task.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/RT_Task.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event/ReactorTask.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/ReactorTask.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Task_Manager.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Task_Manager.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event/Task_Manager.i delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Service_Constants.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Utilities.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Utilities.h delete mode 100644 TAO/orbsvcs/orbsvcs/Event_Utilities.i delete mode 100644 TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/IOR_Multicast.h delete mode 100644 TAO/orbsvcs/orbsvcs/LifeCycleService.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Log/Logger_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/Logger.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Makefile delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Entries.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Entries.h delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.h delete mode 100644 TAO/orbsvcs/orbsvcs/Null_MediaCtrl.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h delete mode 100644 TAO/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl delete mode 100644 TAO/orbsvcs/orbsvcs/RtecEventComm.idl delete mode 100644 TAO/orbsvcs/orbsvcs/RtecScheduler.idl delete mode 100644 TAO/orbsvcs/orbsvcs/RtecUDPAdmin.idl delete mode 100644 TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Runtime_Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/DynSched.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/DynSched.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.i delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h delete mode 100644 TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.i delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Factory.h delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Factory.i delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Utilities.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Utilities.h delete mode 100644 TAO/orbsvcs/orbsvcs/Scheduler_Utilities.i delete mode 100644 TAO/orbsvcs/orbsvcs/Time_Utilities.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Time_Utilities.h delete mode 100644 TAO/orbsvcs/orbsvcs/Time_Utilities.i delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Tokens.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Locking.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_T.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/constraint.l delete mode 100644 TAO/orbsvcs/orbsvcs/Trader/constraint.y delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs.dsp delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs.dsw delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs_export.h delete mode 100644 TAO/orbsvcs/orbsvcs/orbsvcs_static.dsp delete mode 100644 TAO/orbsvcs/orbsvcs/sfp.idl delete mode 100644 TAO/orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/README delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/child.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/child.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/client.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/client.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/clnt.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/benchmark/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/INSTALL.UCB delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/PatchLevel delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/README delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/README.MI delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/README.UCB delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/TODO delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/client/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/client/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/client/vcr.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/include/common.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/24bit.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/2x2.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ab.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/audio.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ctr.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/decoders.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/decoders.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/dither.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/file.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2fast.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs4.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs4.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/global.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/global.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/gray.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybrid.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybriderr.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/info.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/Info.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/MW.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/MainWindow.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/fb.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/ff.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/loop.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/old.MainWindow.mib delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/play.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/rewind.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/step.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/interface/stop.xbm delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/jrevdct.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mb_ordered.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mibload.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mono.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/motionvector.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/newproto.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered2.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/para.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/parseblock.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/prog.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/proto.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ui.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ui.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util32.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vd.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/video.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/video.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vp.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibButton.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibDrawArea.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibFrame.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibLabel.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibList.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibMenu.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibRadioBox.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibScale.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibScrollBar.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibTextBig.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibTextBox.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibToggle.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibwidgets.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_i.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_i.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/as.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/las.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/lvs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/server_proto.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/vs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/Audio_Control.idl delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/Video_Control.idl delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/com.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/com.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/fileio.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/fileio.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/filters.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/filters.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/sendpt.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/sendpt.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Machine_Properties.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Machine_Properties.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Property_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Property_Exporter.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.idl delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/as.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/as.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/server.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/server.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/svc.conf delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vcrs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/vcr.1 delete mode 100644 TAO/orbsvcs/tests/AVStreams/mpeg/vcrs.1 delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Makefile delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Queue.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/README delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_0005fDiscovery_0005fUtil.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_Discovery.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_Discovery.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Browser.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Perf.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Selection.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Util.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Strip_Chart.java delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Trader_Client.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/Trader_Client.h delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/graph02.gif delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/graph09.gif delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/main.cpp delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/mmedia3.gif delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/server01.gif delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/server02.gif delete mode 100644 TAO/orbsvcs/tests/AVStreams/server_discovery/www1.gif delete mode 100644 TAO/orbsvcs/tests/AVStreams/svc.conf delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_client.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_client.dsp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_client.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.l delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.tab.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_command.y delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_naming_service.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_naming_service.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_test_utils.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_test_utils.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_tests.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/CC_tests.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/Concurrency.dsw delete mode 100644 TAO/orbsvcs/tests/Concurrency/Makefile delete mode 100644 TAO/orbsvcs/tests/Concurrency/NS_client.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/NS_client.h delete mode 100644 TAO/orbsvcs/tests/Concurrency/README delete mode 100644 TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp delete mode 100644 TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp.diff delete mode 100644 TAO/orbsvcs/tests/Concurrency/svc.conf delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.basic delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.dinphil delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.e1 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.extended delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil1 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil2 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil3 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil4 delete mode 100644 TAO/orbsvcs/tests/Concurrency/test.phil5 delete mode 100644 TAO/orbsvcs/tests/Concurrency/tmplinst.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECCM_Consumer.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECCM_Supplier.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Data.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Data.h delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.dsw delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/README delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/data.idl delete mode 100755 TAO/orbsvcs/tests/EC_Custom_Marshal/run_test.pl delete mode 100644 TAO/orbsvcs/tests/EC_Custom_Marshal/svc.conf delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.dsw delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.i delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/Makefile delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/README delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/sample.cfg delete mode 100644 TAO/orbsvcs/tests/EC_Mcast/svc.conf delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.dsw delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Makefile delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/README delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/Scheduler_Runtime_Dynamic.h delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/dyn_plot delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_dynamic delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_latency delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_overhead delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_throughput delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/gen_utilization delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/histo.pl delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_dynamic delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_latency delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_overhead delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_schedule delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_test.pl delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_throughput delete mode 100755 TAO/orbsvcs/tests/EC_Multiple/run_utilization delete mode 100644 TAO/orbsvcs/tests/EC_Multiple/svc.conf delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.dsp delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.dsw delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/Makefile delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/README delete mode 100755 TAO/orbsvcs/tests/EC_Throughput/run_test.pl delete mode 100644 TAO/orbsvcs/tests/EC_Throughput/svc.conf delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.cpp delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsp delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.dsw delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Event_Latency.h delete mode 100644 TAO/orbsvcs/tests/Event_Latency/Makefile delete mode 100755 TAO/orbsvcs/tests/Event_Latency/run_test.pl delete mode 100755 TAO/orbsvcs/tests/Event_Latency/run_tests.sh delete mode 100644 TAO/orbsvcs/tests/Event_Latency/svc.conf delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ImplRepoTest.dsw delete mode 100644 TAO/orbsvcs/tests/ImplRepo/Impl_Repo.idl delete mode 100644 TAO/orbsvcs/tests/ImplRepo/README delete mode 100644 TAO/orbsvcs/tests/ImplRepo/Simple_Object.idl delete mode 100644 TAO/orbsvcs/tests/ImplRepo/client.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/client.dsp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/client_impl.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/client_impl.h delete mode 100644 TAO/orbsvcs/tests/ImplRepo/implrepo.dsp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_implrepo_impl.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_implrepo_impl.h delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_server.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_server_impl.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_server_impl.h delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_simple_object_impl.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/ir_simple_object_impl.h delete mode 100644 TAO/orbsvcs/tests/ImplRepo/server.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/server.dsp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/server_impl.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/server_impl.h delete mode 100644 TAO/orbsvcs/tests/ImplRepo/simple_object_impl.cpp delete mode 100644 TAO/orbsvcs/tests/ImplRepo/simple_object_impl.h delete mode 100644 TAO/orbsvcs/tests/ImplRepo/svc.conf delete mode 100644 TAO/orbsvcs/tests/Logger/Logger.dsw delete mode 100644 TAO/orbsvcs/tests/Logger/Logging_Test.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/Logging_Test_i.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/Logging_Test_i.h delete mode 100644 TAO/orbsvcs/tests/Logger/Makefile delete mode 100644 TAO/orbsvcs/tests/Logger/README delete mode 100644 TAO/orbsvcs/tests/Logger/client.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/client.dsp delete mode 100644 TAO/orbsvcs/tests/Logger/client.h delete mode 100644 TAO/orbsvcs/tests/Logger/client_i.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/client_i.h delete mode 100755 TAO/orbsvcs/tests/Logger/run_test.pl delete mode 100644 TAO/orbsvcs/tests/Logger/server.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/server.dsp delete mode 100644 TAO/orbsvcs/tests/Logger/server_i.cpp delete mode 100644 TAO/orbsvcs/tests/Logger/server_i.h delete mode 100644 TAO/orbsvcs/tests/Logger/svc.conf delete mode 100644 TAO/orbsvcs/tests/Makefile delete mode 100644 TAO/orbsvcs/tests/Property/Makefile delete mode 100644 TAO/orbsvcs/tests/Property/client.cpp delete mode 100644 TAO/orbsvcs/tests/Property/client.h delete mode 100644 TAO/orbsvcs/tests/Property/main.cpp delete mode 100755 TAO/orbsvcs/tests/Property/run_test.pl delete mode 100644 TAO/orbsvcs/tests/Property/server.cpp delete mode 100644 TAO/orbsvcs/tests/Property/server.h delete mode 100644 TAO/orbsvcs/tests/Sched/DynSched_Test.cpp delete mode 100644 TAO/orbsvcs/tests/Sched/Makefile delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Makefile delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp delete mode 100644 TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/Makefile delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/README delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/Simple_Naming.dsw delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/client.cpp delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/client.dsp delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/client.h delete mode 100755 TAO/orbsvcs/tests/Simple_Naming/run_test.pl delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/svc.conf delete mode 100644 TAO/orbsvcs/tests/Simple_Naming/test_object.idl delete mode 100644 TAO/orbsvcs/tests/Trading/Colocated_Test.dsp delete mode 100644 TAO/orbsvcs/tests/Trading/Export_Test.dsp delete mode 100644 TAO/orbsvcs/tests/Trading/Import_Test.dsp delete mode 100644 TAO/orbsvcs/tests/Trading/Makefile delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Exporter.h delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Importer.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Offer_Importer.h delete mode 100644 TAO/orbsvcs/tests/Trading/README delete mode 100644 TAO/orbsvcs/tests/Trading/Service_Type_Exporter.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h delete mode 100644 TAO/orbsvcs/tests/Trading/Simple_Dynamic.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/Simple_Dynamic.h delete mode 100644 TAO/orbsvcs/tests/Trading/TT_Info.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/TT_Info.h delete mode 100644 TAO/orbsvcs/tests/Trading/TTest.idl delete mode 100644 TAO/orbsvcs/tests/Trading/Trading.dsw delete mode 100644 TAO/orbsvcs/tests/Trading/TradingLib.dsp delete mode 100644 TAO/orbsvcs/tests/Trading/colocated_test.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/export_test.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/import_test.cpp delete mode 100644 TAO/orbsvcs/tests/Trading/svc.conf delete mode 100755 TAO/orbsvcs/tests/start_services delete mode 100644 TAO/orbsvcs/tests/tests.dsw delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/client.h delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/server.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/IDL_Cubit/tmplinst.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/Task_Client.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/Task_Client.h delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/Util_Thread.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/Util_Thread.h delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/client.h delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/pccTimer.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/pccTimer.h delete mode 100644 TAO/performance-tests/Cubit/COOL/MT_Cubit/server.cpp delete mode 100644 TAO/performance-tests/Cubit/COOL/Makefile delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/clnt.cpp delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/clnt.h delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/IDL_Cubit/svr.cpp delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/client/Makefile delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.cpp delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.h delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/client/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/Makefile delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/svr.cpp delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/Imakefile delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/client_i.cpp delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/client_i.h delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/cubit_impl.cc delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/cubit_impl.hh delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/initref.cfg delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/server.cpp delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/server_i.cpp delete mode 100644 TAO/performance-tests/Cubit/Hardpack/IDL_Cubit/server_i.h delete mode 100644 TAO/performance-tests/Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/base_server/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/base_server/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Orbix/base_server/cubit_impl.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/base_server/cubit_impl.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/base_server/server.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/client/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/client/client.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/client/cubit.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/client/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Orbix/client/cubitC.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/client.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/cubit.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/cubit.hh delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/cubitC.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/factory_client/cubitS.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/orb.mk delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/cubit.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/cubitC.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/cubitS.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/cubit_impl.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/cubit_impl.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/server.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/tpool.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpool/tpool.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubit.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubitC.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubitC.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubitS.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubitS.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubit_impl.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/cubit_impl.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/server.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/tpr.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tpr/tpr.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/Makefile delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/cubit.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/cubitC.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/cubitS.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/cubit_impl.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/cubit_impl.h delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/tps.cpp delete mode 100644 TAO/performance-tests/Cubit/Orbix/tps/tps.h delete mode 100644 TAO/performance-tests/Cubit/README delete mode 100644 TAO/performance-tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw delete mode 100644 TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/TAO/DII_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/TAO/DII_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/DII_Cubit/client.dsp delete mode 100644 TAO/performance-tests/Cubit/TAO/DII_Cubit/cubit.idl delete mode 100755 TAO/performance-tests/Cubit/TAO/DII_Cubit/run_test.pl delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit.mak delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit.mdp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.h delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.h delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Client.java delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/RTI_IO.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/RTI_IO.h delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.bld delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.dsp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/default.bld delete mode 100755 TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.bld delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.dsp delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/svc.conf delete mode 100644 TAO/performance-tests/Cubit/TAO/IDL_Cubit/tmplinst.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit.dsw delete mode 100755 TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/README delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/README.tests delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/Util_Thread.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/client.dsp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/clnt.bld delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/default.bld delete mode 100755 TAO/performance-tests/Cubit/TAO/MT_Cubit/run_test.pl delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/server.dsp delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/svc.conf delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/svr.bld delete mode 100644 TAO/performance-tests/Cubit/TAO/MT_Cubit/tmplinst.cpp delete mode 100644 TAO/performance-tests/Cubit/TAO/Makefile delete mode 100644 TAO/performance-tests/Cubit/TAO/README delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/Makefile delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/Profile_Timer.h delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/cubit_impl.cpp delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/cubit_impl.h delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/server.cpp delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/base_server/stdmk delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/client/Makefile delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/client/Profile_Timer.cpp delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/client/Profile_Timer.h delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/client/client.cpp delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/client/cubit.idl delete mode 100644 TAO/performance-tests/Cubit/VisiBroker/client/stdmk delete mode 100644 TAO/performance-tests/Demux/CodeGen/Makefile delete mode 100644 TAO/performance-tests/Demux/CodeGen/README delete mode 100644 TAO/performance-tests/Demux/CodeGen/client.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/gen.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/impl.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/objcreate.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/perf.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/skel.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/stub.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/tao.cpp delete mode 100644 TAO/performance-tests/Demux/CodeGen/tao.h delete mode 100644 TAO/performance-tests/Demux/Makefile delete mode 100644 TAO/performance-tests/Demux/README delete mode 100644 TAO/performance-tests/Demux/client.cpp delete mode 100755 TAO/performance-tests/Demux/gen_bin delete mode 100755 TAO/performance-tests/Demux/make_all delete mode 100755 TAO/performance-tests/Demux/run_all_client delete mode 100755 TAO/performance-tests/Demux/run_all_server delete mode 100755 TAO/performance-tests/Demux/run_client delete mode 100755 TAO/performance-tests/Demux/run_server delete mode 100644 TAO/performance-tests/Demux/server.cpp delete mode 100644 TAO/performance-tests/Makefile delete mode 100644 TAO/performance-tests/README delete mode 100644 TAO/performance-tests/TAO_Perf_Tests.dsw delete mode 100644 TAO/performance-tests/Thruput/COOL/Makefile delete mode 100644 TAO/performance-tests/Thruput/COOL/README delete mode 100644 TAO/performance-tests/Thruput/COOL/client.cpp delete mode 100644 TAO/performance-tests/Thruput/COOL/server.cpp delete mode 100644 TAO/performance-tests/Thruput/COOL/ttcp.idl delete mode 100644 TAO/performance-tests/Thruput/COOL/ttcp_decl.h delete mode 100644 TAO/performance-tests/Thruput/COOL/ttcp_i.cpp delete mode 100644 TAO/performance-tests/Thruput/COOL/ttcp_i.h delete mode 100644 TAO/performance-tests/Thruput/COOL/utils.cpp delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/Makefile delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/README delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/client.cpp delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/extract delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/run delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/run_client delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/run_server delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/run_test delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/run_tests delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/server.cpp delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/ttcp.idl delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/ttcp_decl.h delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/ttcp_i.cpp delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/ttcp_i.h delete mode 100644 TAO/performance-tests/Thruput/CORBAplus/utils.cpp delete mode 100644 TAO/performance-tests/Thruput/Makefile delete mode 100644 TAO/performance-tests/Thruput/Orbix/Client.cpp delete mode 100644 TAO/performance-tests/Thruput/Orbix/Makefile delete mode 100644 TAO/performance-tests/Thruput/Orbix/README delete mode 100644 TAO/performance-tests/Thruput/Orbix/Srv_Main.cpp delete mode 100644 TAO/performance-tests/Thruput/Orbix/extract delete mode 100644 TAO/performance-tests/Thruput/Orbix/loop64 delete mode 100644 TAO/performance-tests/Thruput/Orbix/orbixsol2s4.mk delete mode 100644 TAO/performance-tests/Thruput/Orbix/run delete mode 100644 TAO/performance-tests/Thruput/Orbix/run_client delete mode 100644 TAO/performance-tests/Thruput/Orbix/run_server delete mode 100644 TAO/performance-tests/Thruput/Orbix/run_test delete mode 100644 TAO/performance-tests/Thruput/Orbix/run_tests delete mode 100644 TAO/performance-tests/Thruput/Orbix/ttcp.idl delete mode 100644 TAO/performance-tests/Thruput/Orbix/ttcp_decl.h delete mode 100644 TAO/performance-tests/Thruput/Orbix/ttcp_i.cpp delete mode 100644 TAO/performance-tests/Thruput/Orbix/ttcp_i.h delete mode 100644 TAO/performance-tests/Thruput/Orbix/utils.cpp delete mode 100644 TAO/performance-tests/Thruput/TAO/Makefile delete mode 100644 TAO/performance-tests/Thruput/TAO/README delete mode 100644 TAO/performance-tests/Thruput/TAO/client.cpp delete mode 100755 TAO/performance-tests/Thruput/TAO/run delete mode 100755 TAO/performance-tests/Thruput/TAO/run_client delete mode 100755 TAO/performance-tests/Thruput/TAO/run_server delete mode 100755 TAO/performance-tests/Thruput/TAO/run_test delete mode 100644 TAO/performance-tests/Thruput/TAO/server.cpp delete mode 100644 TAO/performance-tests/Thruput/TAO/svc.conf delete mode 100644 TAO/performance-tests/Thruput/TAO/tmplinst.cpp delete mode 100644 TAO/performance-tests/Thruput/TAO/ttcp.idl delete mode 100644 TAO/performance-tests/Thruput/TAO/ttcp_decl.h delete mode 100644 TAO/performance-tests/Thruput/TAO/ttcp_i.cpp delete mode 100644 TAO/performance-tests/Thruput/TAO/ttcp_i.h delete mode 100644 TAO/performance-tests/Thruput/TAO/utils.cpp delete mode 100644 TAO/release.chk delete mode 100755 TAO/release.pl delete mode 100644 TAO/rules.tao.GNU delete mode 100644 TAO/tao/Align.h delete mode 100644 TAO/tao/Any.cpp delete mode 100644 TAO/tao/Any.h delete mode 100644 TAO/tao/Any.i delete mode 100644 TAO/tao/CDR.cpp delete mode 100644 TAO/tao/CDR.h delete mode 100644 TAO/tao/CDR.i delete mode 100644 TAO/tao/CORBA.cpp delete mode 100644 TAO/tao/Client_Strategy_Factory.cpp delete mode 100644 TAO/tao/Client_Strategy_Factory.h delete mode 100644 TAO/tao/Connect.cpp delete mode 100644 TAO/tao/Connect.h delete mode 100644 TAO/tao/Connect.i delete mode 100644 TAO/tao/Current.IDL delete mode 100644 TAO/tao/CurrentC.cpp delete mode 100644 TAO/tao/CurrentC.h delete mode 100644 TAO/tao/CurrentC.i delete mode 100644 TAO/tao/CurrentS.cpp delete mode 100644 TAO/tao/Environment.cpp delete mode 100644 TAO/tao/Environment.h delete mode 100644 TAO/tao/Environment.i delete mode 100644 TAO/tao/Exception.cpp delete mode 100644 TAO/tao/Exception.h delete mode 100644 TAO/tao/Exception.i delete mode 100644 TAO/tao/Forwarding_Servant.cpp delete mode 100644 TAO/tao/Forwarding_Servant.h delete mode 100644 TAO/tao/GIOP.cpp delete mode 100644 TAO/tao/GIOP.h delete mode 100644 TAO/tao/GIOP.i delete mode 100644 TAO/tao/IIOP_Interpreter.cpp delete mode 100644 TAO/tao/IIOP_Interpreter.h delete mode 100644 TAO/tao/IIOP_ORB.cpp delete mode 100644 TAO/tao/IIOP_ORB.h delete mode 100644 TAO/tao/IIOP_ORB.i delete mode 100644 TAO/tao/IIOP_Object.cpp delete mode 100644 TAO/tao/IIOP_Object.h delete mode 100644 TAO/tao/IIOP_Object.i delete mode 100644 TAO/tao/Invocation.cpp delete mode 100644 TAO/tao/Invocation.h delete mode 100644 TAO/tao/Invocation.i delete mode 100644 TAO/tao/Makefile delete mode 100644 TAO/tao/Marshal.cpp delete mode 100644 TAO/tao/Marshal.h delete mode 100644 TAO/tao/Marshal.i delete mode 100644 TAO/tao/NVList.cpp delete mode 100644 TAO/tao/NVList.h delete mode 100644 TAO/tao/NVList.i delete mode 100644 TAO/tao/ORB.cpp delete mode 100644 TAO/tao/ORB.h delete mode 100644 TAO/tao/ORB.i delete mode 100644 TAO/tao/ORB_Core.cpp delete mode 100644 TAO/tao/ORB_Core.h delete mode 100644 TAO/tao/ORB_Core.i delete mode 100644 TAO/tao/ORB_Strategies_T.cpp delete mode 100644 TAO/tao/ORB_Strategies_T.h delete mode 100644 TAO/tao/ORB_Strategies_T.i delete mode 100644 TAO/tao/Object.cpp delete mode 100644 TAO/tao/Object.h delete mode 100644 TAO/tao/Object.i delete mode 100644 TAO/tao/Object_Key.IDL delete mode 100644 TAO/tao/Object_KeyC.cpp delete mode 100644 TAO/tao/Object_KeyC.h delete mode 100644 TAO/tao/Object_KeyC.i delete mode 100644 TAO/tao/Object_Table.cpp delete mode 100644 TAO/tao/Object_Table.h delete mode 100644 TAO/tao/Operation_Table.cpp delete mode 100644 TAO/tao/Operation_Table.h delete mode 100644 TAO/tao/POA.IDL delete mode 100644 TAO/tao/POA.cpp delete mode 100644 TAO/tao/POA.h delete mode 100644 TAO/tao/POA.i delete mode 100644 TAO/tao/POAC.cpp delete mode 100644 TAO/tao/POAC.h delete mode 100644 TAO/tao/POAC.i delete mode 100644 TAO/tao/POAS.cpp delete mode 100644 TAO/tao/POAS.h delete mode 100644 TAO/tao/POAS.i delete mode 100644 TAO/tao/POA_CORBA.h delete mode 100644 TAO/tao/Policy.IDL delete mode 100644 TAO/tao/PolicyC.cpp delete mode 100644 TAO/tao/PolicyC.h delete mode 100644 TAO/tao/PolicyC.i delete mode 100644 TAO/tao/PolicyS.cpp delete mode 100644 TAO/tao/Principal.cpp delete mode 100644 TAO/tao/Principal.h delete mode 100644 TAO/tao/Principal.i delete mode 100644 TAO/tao/Request.cpp delete mode 100644 TAO/tao/Request.h delete mode 100644 TAO/tao/Request.i delete mode 100644 TAO/tao/Sequence.cpp delete mode 100644 TAO/tao/Sequence.h delete mode 100644 TAO/tao/Sequence.i delete mode 100644 TAO/tao/Sequence_T.cpp delete mode 100644 TAO/tao/Sequence_T.h delete mode 100644 TAO/tao/Sequence_T.i delete mode 100644 TAO/tao/Servant_Base.cpp delete mode 100644 TAO/tao/Servant_Base.h delete mode 100644 TAO/tao/Server_Request.cpp delete mode 100644 TAO/tao/Server_Request.h delete mode 100644 TAO/tao/Server_Request.i delete mode 100644 TAO/tao/Server_Strategy_Factory.cpp delete mode 100644 TAO/tao/Server_Strategy_Factory.h delete mode 100644 TAO/tao/Stub.cpp delete mode 100644 TAO/tao/Stub.h delete mode 100644 TAO/tao/Stub.i delete mode 100644 TAO/tao/TAO.cpp delete mode 100644 TAO/tao/TAO.dsp delete mode 100644 TAO/tao/TAO.dsw delete mode 100644 TAO/tao/TAO.h delete mode 100644 TAO/tao/TAO4.mak delete mode 100644 TAO/tao/TAO4.mdp delete mode 100644 TAO/tao/TAO_Internal.cpp delete mode 100644 TAO/tao/TAO_Internal.h delete mode 100644 TAO/tao/TAO_Internal.i delete mode 100644 TAO/tao/TAO_Static.dsp delete mode 100644 TAO/tao/Timeprobe.h delete mode 100644 TAO/tao/Typecode.cpp delete mode 100644 TAO/tao/Typecode.h delete mode 100644 TAO/tao/Typecode.i delete mode 100644 TAO/tao/Typecode_Constants.cpp delete mode 100644 TAO/tao/Union.cpp delete mode 100644 TAO/tao/Union.h delete mode 100644 TAO/tao/append.cpp delete mode 100644 TAO/tao/corba.h delete mode 100644 TAO/tao/debug.cpp delete mode 100644 TAO/tao/debug.h delete mode 100644 TAO/tao/decode.cpp delete mode 100644 TAO/tao/deep_free.cpp delete mode 100644 TAO/tao/default.bld delete mode 100644 TAO/tao/default_client.cpp delete mode 100644 TAO/tao/default_client.h delete mode 100644 TAO/tao/default_client.i delete mode 100644 TAO/tao/default_server.cpp delete mode 100644 TAO/tao/default_server.h delete mode 100644 TAO/tao/default_server.i delete mode 100644 TAO/tao/encode.cpp delete mode 100644 TAO/tao/factories.h delete mode 100644 TAO/tao/orbconf.h delete mode 100644 TAO/tao/params.cpp delete mode 100644 TAO/tao/params.h delete mode 100644 TAO/tao/params.i delete mode 100644 TAO/tao/poa_T.cpp delete mode 100644 TAO/tao/poa_T.h delete mode 100644 TAO/tao/poa_macros.h delete mode 100644 TAO/tao/singletons.h delete mode 100644 TAO/tao/skip.cpp delete mode 100644 TAO/tao/t-sizes.cpp delete mode 100644 TAO/tao/tao.bld delete mode 100644 TAO/tao/varout.cpp delete mode 100644 TAO/tao/varout.h delete mode 100644 TAO/tao/varout.i delete mode 100644 TAO/taoconfig.mk delete mode 100644 TAO/tests/CDR/CDR.dsw delete mode 100644 TAO/tests/CDR/Makefile delete mode 100644 TAO/tests/CDR/README delete mode 100644 TAO/tests/CDR/basic_types.cpp delete mode 100644 TAO/tests/CDR/basic_types.dsp delete mode 100644 TAO/tests/CDR/growth.cpp delete mode 100644 TAO/tests/CDR/growth.dsp delete mode 100644 TAO/tests/CDR/growth.dsw delete mode 100644 TAO/tests/CDR/tc.cpp delete mode 100644 TAO/tests/CDR/tc.dsp delete mode 100644 TAO/tests/DynAny_Test/DynAny.idl delete mode 100644 TAO/tests/DynAny_Test/DynAny_Test.dsw delete mode 100644 TAO/tests/DynAny_Test/DynAny_i.cpp delete mode 100644 TAO/tests/DynAny_Test/DynAny_i.h delete mode 100644 TAO/tests/DynAny_Test/DynArray_i.cpp delete mode 100644 TAO/tests/DynAny_Test/DynArray_i.h delete mode 100644 TAO/tests/DynAny_Test/DynEnum_i.cpp delete mode 100644 TAO/tests/DynAny_Test/DynEnum_i.h delete mode 100644 TAO/tests/DynAny_Test/DynSequence_i.cpp delete mode 100644 TAO/tests/DynAny_Test/DynSequence_i.h delete mode 100644 TAO/tests/DynAny_Test/DynStruct_i.cpp delete mode 100644 TAO/tests/DynAny_Test/DynStruct_i.h delete mode 100644 TAO/tests/DynAny_Test/DynUnion_i.cpp delete mode 100644 TAO/tests/DynAny_Test/DynUnion_i.h delete mode 100644 TAO/tests/DynAny_Test/README delete mode 100644 TAO/tests/DynAny_Test/client.dsp delete mode 100644 TAO/tests/DynAny_Test/da_tests.idl delete mode 100644 TAO/tests/DynAny_Test/driver.cpp delete mode 100644 TAO/tests/DynAny_Test/server.dsp delete mode 100644 TAO/tests/DynAny_Test/tckind.idl delete mode 100644 TAO/tests/Makefile delete mode 100644 TAO/tests/Multiple_Inheritance/Makefile delete mode 100644 TAO/tests/Multiple_Inheritance/Multiple_Inheritance.dsw delete mode 100644 TAO/tests/Multiple_Inheritance/Multiple_Inheritance.idl delete mode 100644 TAO/tests/Multiple_Inheritance/Multiple_Inheritance_i.h delete mode 100644 TAO/tests/Multiple_Inheritance/README delete mode 100644 TAO/tests/Multiple_Inheritance/client.cpp delete mode 100644 TAO/tests/Multiple_Inheritance/client.dsp delete mode 100644 TAO/tests/Multiple_Inheritance/server.cpp delete mode 100644 TAO/tests/Multiple_Inheritance/server.dsp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.dsw delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.idl delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.cpp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/MT_Object_i.h delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/Makefile delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/README delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/client.conf delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/client.cpp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/client.dsp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/client.h delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/local_server.cpp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/local_server.h delete mode 100755 TAO/tests/NestedUpcall/MT_Client_Test/run_test.pl delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/server.cpp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/server.dsp delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/server.h delete mode 100644 TAO/tests/NestedUpcall/MT_Client_Test/svc.conf delete mode 100644 TAO/tests/NestedUpcall/Makefile delete mode 100644 TAO/tests/NestedUpcall/Reactor/Makefile delete mode 100644 TAO/tests/NestedUpcall/Reactor/NestedUpCalls_i.h delete mode 100644 TAO/tests/NestedUpcall/Reactor/NestedUpcall.dsw delete mode 100644 TAO/tests/NestedUpcall/Reactor/README delete mode 100644 TAO/tests/NestedUpcall/Reactor/Reactor.idl delete mode 100644 TAO/tests/NestedUpcall/Reactor/client.cpp delete mode 100644 TAO/tests/NestedUpcall/Reactor/client.dsp delete mode 100644 TAO/tests/NestedUpcall/Reactor/client.h delete mode 100644 TAO/tests/NestedUpcall/Reactor/eh_i.cpp delete mode 100644 TAO/tests/NestedUpcall/Reactor/eh_i.h delete mode 100644 TAO/tests/NestedUpcall/Reactor/reactor_i.cpp delete mode 100644 TAO/tests/NestedUpcall/Reactor/reactor_i.h delete mode 100755 TAO/tests/NestedUpcall/Reactor/run_test.pl delete mode 100644 TAO/tests/NestedUpcall/Reactor/server.cpp delete mode 100644 TAO/tests/NestedUpcall/Reactor/server.dsp delete mode 100644 TAO/tests/NestedUpcall/Reactor/server.h delete mode 100644 TAO/tests/NestedUpcall/Reactor/svc.conf delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Initiator_i.cpp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Initiator_i.h delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Makefile delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.h delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Object_B_i.cpp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Object_B_i.h delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/README delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Triangle_Test.dsw delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/Triangle_Test.idl delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/initiator.dsp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/initiator.h delete mode 100755 TAO/tests/NestedUpcall/Triangle_Test/run_test.pl delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/server_A.dsp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/server_A.h delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/server_B.dsp delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/server_B.h delete mode 100644 TAO/tests/NestedUpcall/Triangle_Test/svc.conf delete mode 100644 TAO/tests/OctetSeq/Makefile delete mode 100644 TAO/tests/OctetSeq/OctetSeq.cpp delete mode 100644 TAO/tests/OctetSeq/OctetSeq.dsp delete mode 100644 TAO/tests/OctetSeq/OctetSeq.dsw delete mode 100644 TAO/tests/OctetSeq/README delete mode 100644 TAO/tests/OctetSeq/svc.conf delete mode 100644 TAO/tests/OctetSeq/test.idl delete mode 100644 TAO/tests/Param_Test/Makefile delete mode 100644 TAO/tests/Param_Test/Param_Test.dsw delete mode 100644 TAO/tests/Param_Test/README delete mode 100644 TAO/tests/Param_Test/any.cpp delete mode 100644 TAO/tests/Param_Test/any.h delete mode 100644 TAO/tests/Param_Test/bd_long_seq.cpp delete mode 100644 TAO/tests/Param_Test/bd_long_seq.h delete mode 100644 TAO/tests/Param_Test/bd_short_seq.cpp delete mode 100644 TAO/tests/Param_Test/bd_short_seq.h delete mode 100644 TAO/tests/Param_Test/bd_str_seq.cpp delete mode 100644 TAO/tests/Param_Test/bd_str_seq.h delete mode 100644 TAO/tests/Param_Test/bd_string.cpp delete mode 100644 TAO/tests/Param_Test/bd_string.h delete mode 100644 TAO/tests/Param_Test/bd_struct_seq.cpp delete mode 100644 TAO/tests/Param_Test/bd_struct_seq.h delete mode 100644 TAO/tests/Param_Test/client.cpp delete mode 100644 TAO/tests/Param_Test/client.dsp delete mode 100644 TAO/tests/Param_Test/client.h delete mode 100644 TAO/tests/Param_Test/driver.cpp delete mode 100644 TAO/tests/Param_Test/driver.h delete mode 100644 TAO/tests/Param_Test/except.cpp delete mode 100644 TAO/tests/Param_Test/except.h delete mode 100644 TAO/tests/Param_Test/fixed_array.cpp delete mode 100644 TAO/tests/Param_Test/fixed_array.h delete mode 100644 TAO/tests/Param_Test/fixed_struct.cpp delete mode 100644 TAO/tests/Param_Test/fixed_struct.h delete mode 100644 TAO/tests/Param_Test/helper.cpp delete mode 100644 TAO/tests/Param_Test/helper.h delete mode 100644 TAO/tests/Param_Test/nested_struct.cpp delete mode 100644 TAO/tests/Param_Test/nested_struct.h delete mode 100644 TAO/tests/Param_Test/objref.cpp delete mode 100644 TAO/tests/Param_Test/objref.h delete mode 100644 TAO/tests/Param_Test/objref_struct.cpp delete mode 100644 TAO/tests/Param_Test/objref_struct.h delete mode 100644 TAO/tests/Param_Test/options.cpp delete mode 100644 TAO/tests/Param_Test/options.h delete mode 100644 TAO/tests/Param_Test/param_test.idl delete mode 100644 TAO/tests/Param_Test/param_test_i.cpp delete mode 100644 TAO/tests/Param_Test/param_test_i.h delete mode 100644 TAO/tests/Param_Test/results.cpp delete mode 100644 TAO/tests/Param_Test/results.h delete mode 100755 TAO/tests/Param_Test/run_test.pl delete mode 100644 TAO/tests/Param_Test/server.cpp delete mode 100644 TAO/tests/Param_Test/server.dsp delete mode 100644 TAO/tests/Param_Test/short.cpp delete mode 100644 TAO/tests/Param_Test/short.h delete mode 100644 TAO/tests/Param_Test/svc.conf delete mode 100644 TAO/tests/Param_Test/tests.h delete mode 100644 TAO/tests/Param_Test/tmplinst.cpp delete mode 100644 TAO/tests/Param_Test/typecode.cpp delete mode 100644 TAO/tests/Param_Test/typecode.h delete mode 100644 TAO/tests/Param_Test/ub_any_seq.cpp delete mode 100644 TAO/tests/Param_Test/ub_any_seq.h delete mode 100644 TAO/tests/Param_Test/ub_long_seq.cpp delete mode 100644 TAO/tests/Param_Test/ub_long_seq.h delete mode 100644 TAO/tests/Param_Test/ub_objref_seq.cpp delete mode 100644 TAO/tests/Param_Test/ub_objref_seq.h delete mode 100644 TAO/tests/Param_Test/ub_short_seq.cpp delete mode 100644 TAO/tests/Param_Test/ub_short_seq.h delete mode 100644 TAO/tests/Param_Test/ub_str_seq.cpp delete mode 100644 TAO/tests/Param_Test/ub_str_seq.h delete mode 100644 TAO/tests/Param_Test/ub_string.cpp delete mode 100644 TAO/tests/Param_Test/ub_string.h delete mode 100644 TAO/tests/Param_Test/ub_struct_seq.cpp delete mode 100644 TAO/tests/Param_Test/ub_struct_seq.h delete mode 100644 TAO/tests/Param_Test/ulonglong.cpp delete mode 100644 TAO/tests/Param_Test/ulonglong.h delete mode 100644 TAO/tests/Param_Test/var_array.cpp delete mode 100644 TAO/tests/Param_Test/var_array.h delete mode 100644 TAO/tests/Param_Test/var_struct.cpp delete mode 100644 TAO/tests/Param_Test/var_struct.h delete mode 100755 TAO/tests/Quoter/FactoryFinder.exe delete mode 100644 TAO/tests/Quoter/ns.btm delete mode 100644 TAO/tests/Quoter/run_test.btm delete mode 100644 TAO/tests/Quoter/sv.btm delete mode 100644 TAO/tests/README delete mode 100644 TAO/tests/TAO_Tests.dsw delete mode 100644 TAO/utils/IOR-parser/IOR_Parser.dsp delete mode 100644 TAO/utils/IOR-parser/IOR_Parser.dsw delete mode 100644 TAO/utils/IOR-parser/Makefile delete mode 100644 TAO/utils/IOR-parser/Orbix.IOR delete mode 100644 TAO/utils/IOR-parser/README delete mode 100644 TAO/utils/IOR-parser/Tao.IOR delete mode 100644 TAO/utils/IOR-parser/TaoSimple.IOR delete mode 100644 TAO/utils/IOR-parser/VisiBroker.IOR delete mode 100644 TAO/utils/IOR-parser/ior-handler.cpp delete mode 100644 TAO/utils/IOR-parser/ior-handler.h delete mode 100644 TAO/utils/IOR-parser/ior-parser.cpp delete mode 100644 TAO/utils/Makefile delete mode 100644 TAO/utils/catior/Makefile delete mode 100644 TAO/utils/catior/README delete mode 100644 TAO/utils/catior/catior.cpp delete mode 100644 TAO/utils/catior/catior.dsp delete mode 100644 TAO/utils/catior/catior.dsw delete mode 100644 TAO/utils/catior/test.bat delete mode 100644 TAO/utils/catior/test/adagrid.ior delete mode 100644 TAO/utils/catior/test/eventservice.ior delete mode 100644 TAO/utils/catior/test/expersoft.iiop delete mode 100644 TAO/utils/catior/test/expersoft.ior delete mode 100644 TAO/utils/catior/test/expersoft2.iiop delete mode 100644 TAO/utils/catior/test/expersoft2.ior delete mode 100644 TAO/utils/catior/test/expersoft3.iiop delete mode 100644 TAO/utils/catior/test/expersoft3.ior delete mode 100644 TAO/utils/catior/test/namingservice.poop delete mode 100644 TAO/utils/catior/test/param_test.iiop delete mode 100644 TAO/utils/catior/test/quoteserver.ior delete mode 100644 TAO/utils/catior/test/test1.ior delete mode 100644 TAO/utils/catior/test/test2.ior delete mode 100644 TAO/utils/catior/test/timeserver.iiop delete mode 100644 TAO/utils/catior/test/timeserver.ior delete mode 100644 ace/Containers_bad.i delete mode 100644 ace/Makefile delete mode 100644 ace/config-sunos5.6-sunc++-4.x.h delete mode 100644 apps/Gateway/Gateway/Channel.cpp delete mode 100644 apps/Gateway/Gateway/Channel.h delete mode 100644 apps/Gateway/Gateway/Channel_Connector.cpp delete mode 100644 apps/Gateway/Gateway/Channel_Connector.h delete mode 100644 apps/Gateway/Gateway/Concurrency_Strategies.h delete mode 100644 apps/Gateway/Gateway/Consumer_Entry.cpp delete mode 100644 apps/Gateway/Gateway/Consumer_Entry.h delete mode 100644 apps/Gateway/Gateway/Consumer_Map.cpp delete mode 100644 apps/Gateway/Gateway/Consumer_Map.h delete mode 100644 apps/Gateway/Gateway/Dispatch_Set.h delete mode 100644 apps/Gateway/Gateway/IO_Handler.cpp delete mode 100644 apps/Gateway/Gateway/IO_Handler.h delete mode 100644 apps/Gateway/Gateway/IO_Handler_Connector.cpp delete mode 100644 apps/Gateway/Gateway/IO_Handler_Connector.h delete mode 100644 apps/Gateway/Gateway/Peer_Message.h delete mode 100644 apps/Gateway/Gateway/Routing_Entry.cpp delete mode 100644 apps/Gateway/Gateway/Routing_Entry.h delete mode 100644 apps/Gateway/Gateway/Routing_Table.cpp delete mode 100644 apps/Gateway/Gateway/Routing_Table.h delete mode 100644 apps/Gateway/Gateway/Thr_Channel.cpp delete mode 100644 apps/Gateway/Gateway/Thr_Channel.h delete mode 100644 apps/Gateway/Gateway/Thr_IO_Handler.cpp delete mode 100644 apps/Gateway/Gateway/Thr_IO_Handler.h delete mode 100644 apps/Gateway/Gateway/Thr_Proxy_Handler.cpp delete mode 100644 apps/Gateway/Gateway/Thr_Proxy_Handler.h delete mode 100644 apps/Gateway/Gateway/cc_config delete mode 100644 apps/Gateway/Gateway/rt_config delete mode 100644 apps/Gateway/Peer/Event.h delete mode 100644 apps/Gateway/Peer/Gateway_Handler.cpp delete mode 100644 apps/Gateway/Peer/Gateway_Handler.h delete mode 100644 apps/Gateway/Peer/Peer_Message.h delete mode 100644 examples/Reactor/Misc/signal_tester.cpp delete mode 100644 examples/Reactor/Misc/test_signals.cpp delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphore_Client.cpp delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphore_Server.cpp delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphore_Test.h delete mode 100644 examples/System_V_IPC/SV_Semaphores/Semaphores.cpp delete mode 100644 examples/Threads/test_auto_event.cpp delete mode 100644 examples/Threads/test_barrier1.cpp delete mode 100644 examples/Threads/test_barrier2.cpp delete mode 100644 examples/Threads/test_cancel.cpp delete mode 100644 examples/Threads/test_future1.cpp delete mode 100644 examples/Threads/test_future2.cpp delete mode 100644 examples/Threads/test_manual_event.cpp delete mode 100644 examples/Threads/test_process_mutex.cpp delete mode 100644 examples/Threads/test_process_semaphore.cpp delete mode 100644 examples/Threads/test_reader_writer.cpp delete mode 100644 examples/Threads/test_recursive_mutex.cpp delete mode 100644 examples/Threads/test_task.cpp delete mode 100644 examples/Threads/test_task_four.cpp delete mode 100644 examples/Threads/test_task_one.cpp delete mode 100644 examples/Threads/test_task_three.cpp delete mode 100644 examples/Threads/test_task_two.cpp delete mode 100644 examples/Threads/test_thread_manager.cpp delete mode 100644 examples/Threads/test_thread_pool.cpp delete mode 100644 examples/Threads/test_thread_specific.cpp delete mode 100644 examples/Threads/test_token.cpp delete mode 100644 examples/Threads/test_tss.cpp delete mode 100644 examples/Threads/test_tss1.cpp delete mode 100644 examples/Threads/test_tss2.cpp delete mode 100644 java/ChangeLog delete mode 100644 java/ImageProcessing/ImageProcessing.dsp delete mode 100644 java/ImageProcessing/ImageProcessing.dsw delete mode 100644 java/ImageProcessing/filters/Assert.java delete mode 100644 java/ImageProcessing/filters/BleachFilter.java delete mode 100644 java/ImageProcessing/filters/BlurFilter.java delete mode 100644 java/ImageProcessing/filters/DarkenFilter.java delete mode 100644 java/ImageProcessing/filters/DeSpeckleFilter.java delete mode 100644 java/ImageProcessing/filters/DissolveFilter.java delete mode 100644 java/ImageProcessing/filters/EdgeDetectFilter.java delete mode 100644 java/ImageProcessing/filters/EmbossFilter.java delete mode 100644 java/ImageProcessing/filters/Makefile delete mode 100644 java/ImageProcessing/filters/MedFilter.java delete mode 100644 java/ImageProcessing/filters/OilPaintFilter.java delete mode 100644 java/ImageProcessing/filters/PixelizeFilter.java delete mode 100644 java/ImageProcessing/filters/RandomizeFilter.java delete mode 100644 java/ImageProcessing/filters/RotateFilter.java delete mode 100644 java/ImageProcessing/filters/SharpenFilter.java delete mode 100644 java/ImageProcessing/filters/SpatialFilter.java delete mode 100644 java/ImageProcessing/filters/SpreadFilter.java delete mode 100644 java/ImageProcessing/filters/Timer.java delete mode 100644 java/ImageProcessing/framework/BaseButton.java delete mode 100644 java/ImageProcessing/framework/BenchmarkApplet.java delete mode 100644 java/ImageProcessing/framework/DialogManager.java delete mode 100644 java/ImageProcessing/framework/DialogType.java delete mode 100644 java/ImageProcessing/framework/FileBrowser.java delete mode 100644 java/ImageProcessing/framework/FilePanel.java delete mode 100644 java/ImageProcessing/framework/FilterTest.java delete mode 100644 java/ImageProcessing/framework/GIFHandler.java delete mode 100644 java/ImageProcessing/framework/GifEncoder.java delete mode 100644 java/ImageProcessing/framework/Hierarchy.java delete mode 100644 java/ImageProcessing/framework/HierarchyAdapter.java delete mode 100644 java/ImageProcessing/framework/Icon.java delete mode 100644 java/ImageProcessing/framework/ImageApp.java delete mode 100644 java/ImageProcessing/framework/ImageByteCounter.java delete mode 100644 java/ImageProcessing/framework/ImageCanvas.java delete mode 100644 java/ImageProcessing/framework/ImageEncoder.java delete mode 100644 java/ImageProcessing/framework/ImageProcessor.java delete mode 100644 java/ImageProcessing/framework/ImageSender.java delete mode 100644 java/ImageProcessing/framework/IntHashtable.java delete mode 100644 java/ImageProcessing/framework/ListFiles.java delete mode 100755 java/ImageProcessing/framework/LoadURLFrame.java delete mode 100644 java/ImageProcessing/framework/Makefile delete mode 100644 java/ImageProcessing/framework/MedJava.html delete mode 100644 java/ImageProcessing/framework/Options.java delete mode 100755 java/ImageProcessing/framework/SaveURLFrame.java delete mode 100644 java/ImageProcessing/framework/Separator.java delete mode 100644 java/ImageProcessing/framework/ServerHandler.java delete mode 100644 java/ImageProcessing/framework/ServerTest.java delete mode 100644 java/ImageProcessing/framework/StatusDisplay.java delete mode 100644 java/ImageProcessing/framework/StatusIndicator.java delete mode 100644 java/ImageProcessing/framework/TestHandler.java delete mode 100644 java/ImageProcessing/framework/Tester.java delete mode 100644 java/ImageProcessing/framework/doc01.gif delete mode 100644 java/ImageProcessing/framework/file03.gif delete mode 100644 java/ImageProcessing/framework/filter.conf delete mode 100644 java/ImageProcessing/framework/help.conf delete mode 100644 java/ImageProcessing/framework/test.html delete mode 100644 java/ImageProcessing/framework/testFilter.conf delete mode 100644 java/VERSION delete mode 100644 java/apps/NexusII/README delete mode 100644 java/apps/NexusII/classes/ClientHandler.class delete mode 100644 java/apps/NexusII/classes/FrameHandler.class delete mode 100644 java/apps/NexusII/classes/ImageCanvas.class delete mode 100644 java/apps/NexusII/classes/NexusClientApplet.class delete mode 100644 java/apps/NexusII/classes/NexusIIserver.class delete mode 100644 java/apps/NexusII/classes/Room.class delete mode 100644 java/apps/NexusII/classes/RoomFactory.class delete mode 100644 java/apps/NexusII/classes/RoomFrame.class delete mode 100644 java/apps/NexusII/classes/RoomThread.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CApplet.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CApplet.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CButton.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CButton.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CCanvas.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CCanvas.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CFrame.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CFrame.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CList.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CList.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CPanel.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CPanel.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextArea.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextArea.java delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextField.class delete mode 100644 java/apps/NexusII/classes/awtCommand/CTextField.java delete mode 100644 java/apps/NexusII/classes/awtCommand/Command.class delete mode 100644 java/apps/NexusII/classes/awtCommand/Command.java delete mode 100644 java/apps/NexusII/classes/commandHandler.class delete mode 100644 java/apps/NexusII/classes/commandParser.class delete mode 100644 java/apps/NexusII/classes/connectionHandler.class delete mode 100644 java/apps/NexusII/classes/joinHandler.class delete mode 100644 java/apps/NexusII/classes/roomHandler.class delete mode 100644 java/apps/NexusII/classes/textHandler.class delete mode 100644 java/apps/NexusII/src/Consumer.java delete mode 100644 java/apps/NexusII/src/MT_Bounded_Queue.java delete mode 100644 java/apps/NexusII/src/MT_Bounded_Queue_Group.java delete mode 100644 java/apps/NexusII/src/NexusClientApplet.java delete mode 100644 java/apps/NexusII/src/NexusIIserver.java delete mode 100644 java/apps/NexusII/src/Producer.java delete mode 100644 java/apps/NexusII/src/Room.java delete mode 100644 java/apps/NexusII/src/RoomFrame.java delete mode 100644 java/apps/NexusII/src/RoomSpace.java delete mode 100644 java/apps/NexusII/src/Timed_Wait.java delete mode 100644 java/apps/NexusII/src/Timer.java delete mode 100644 java/apps/NexusII/src/commandHandler.java delete mode 100644 java/apps/NexusII/src/commandParser.java delete mode 100644 java/apps/NexusII/src/connectionHandler.java delete mode 100644 java/apps/NexusII/src/consts.java delete mode 100644 java/apps/NexusII/src/dataPacket.java delete mode 100644 java/apps/NexusII/src/joinHandler.java delete mode 100644 java/apps/NexusII/src/makefile delete mode 100644 java/apps/NexusII/src/nexusDemuxThread.java delete mode 100644 java/apps/NexusII/src/roomHandler.java delete mode 100644 java/apps/NexusII/src/socketReaderThread.java delete mode 100644 java/apps/NexusII/src/socketWriterThread.java delete mode 100644 java/apps/NexusII/src/url_to_url.java delete mode 100755 java/apps/NexusII/start delete mode 100644 java/apps/NexusII/start.html delete mode 100644 java/classes/README.TXT delete mode 100644 java/doc/images/GridBagEx.gif delete mode 100644 java/doc/images/OpenBookIcon.gif delete mode 100644 java/doc/images/blue-ball-small.gif delete mode 100644 java/doc/images/blue-ball.gif delete mode 100644 java/doc/images/class-index.gif delete mode 100644 java/doc/images/constructor-index.gif delete mode 100644 java/doc/images/constructors.gif delete mode 100644 java/doc/images/cyan-ball-small.gif delete mode 100644 java/doc/images/cyan-ball.gif delete mode 100644 java/doc/images/error-index.gif delete mode 100644 java/doc/images/exception-index.gif delete mode 100644 java/doc/images/green-ball-small.gif delete mode 100644 java/doc/images/green-ball.gif delete mode 100644 java/doc/images/interface-index.gif delete mode 100644 java/doc/images/magenta-ball-small.gif delete mode 100644 java/doc/images/magenta-ball.gif delete mode 100644 java/doc/images/method-index.gif delete mode 100644 java/doc/images/methods.gif delete mode 100644 java/doc/images/package-index.gif delete mode 100644 java/doc/images/red-ball-small.gif delete mode 100644 java/doc/images/red-ball.gif delete mode 100644 java/doc/images/variable-index.gif delete mode 100644 java/doc/images/variables.gif delete mode 100644 java/doc/images/yellow-ball-small.gif delete mode 100644 java/doc/images/yellow-ball.gif delete mode 100644 java/examples/Logger/README delete mode 100644 java/examples/Logger/simple-server/LogRecord.java delete mode 100644 java/examples/Logger/simple-server/LoggerConstants.java delete mode 100644 java/examples/Logger/simple-server/LoggingAcceptor.java delete mode 100644 java/examples/Logger/simple-server/LoggingClient.java delete mode 100644 java/examples/Logger/simple-server/LoggingHandler.java delete mode 100644 java/examples/Logger/simple-server/Makefile delete mode 100644 java/examples/Logger/simple-server/README delete mode 100644 java/examples/Logger/simple-server/SimpleLogger.java delete mode 100644 java/gjt/Assert.java delete mode 100644 java/gjt/Bargauge.java delete mode 100644 java/gjt/Border.java delete mode 100644 java/gjt/Box.java delete mode 100644 java/gjt/BulletinLayout.java delete mode 100644 java/gjt/ButtonPanel.java delete mode 100644 java/gjt/CardPanel.java delete mode 100644 java/gjt/ChoiceCardPanel.java delete mode 100644 java/gjt/ColumnLayout.java delete mode 100644 java/gjt/ComponentScroller.java delete mode 100644 java/gjt/DialogClient.java delete mode 100644 java/gjt/DrawingPanel.java delete mode 100644 java/gjt/DrawnRectangle.java delete mode 100644 java/gjt/EtchedBorder.java delete mode 100644 java/gjt/EtchedRectangle.java delete mode 100644 java/gjt/Etching.java delete mode 100644 java/gjt/ExclusiveImageButtonPanel.java delete mode 100644 java/gjt/FontDialog.java delete mode 100644 java/gjt/GJT.DSP delete mode 100644 java/gjt/GJT.DSW delete mode 100644 java/gjt/GJTDialog.java delete mode 100644 java/gjt/IconCardPanel.java delete mode 100644 java/gjt/ImageButton.java delete mode 100644 java/gjt/ImageButtonController.java delete mode 100644 java/gjt/ImageButtonEvent.java delete mode 100644 java/gjt/ImageButtonPanel.java delete mode 100644 java/gjt/ImageButtonPanelController.java delete mode 100644 java/gjt/ImageCanvas.java delete mode 100644 java/gjt/ImageScroller.java delete mode 100644 java/gjt/LabelCanvas.java delete mode 100644 java/gjt/Makefile delete mode 100644 java/gjt/MessageDialog.java delete mode 100644 java/gjt/MouseController.java delete mode 100644 java/gjt/Orientation.java delete mode 100644 java/gjt/ProgressDialog.java delete mode 100644 java/gjt/QuestionDialog.java delete mode 100644 java/gjt/RadioImageButtonPanelController.java delete mode 100644 java/gjt/RowLayout.java delete mode 100644 java/gjt/Scroller.java delete mode 100644 java/gjt/ScrollerLayout.java delete mode 100644 java/gjt/SelectionEvent.java delete mode 100644 java/gjt/Separator.java delete mode 100644 java/gjt/SpringyImageButtonController.java delete mode 100644 java/gjt/StateButton.java delete mode 100644 java/gjt/StateButtonController.java delete mode 100644 java/gjt/StickyImageButtonController.java delete mode 100644 java/gjt/Stopwatch.java delete mode 100644 java/gjt/StopwatchClient.java delete mode 100644 java/gjt/ThreeDBorder.java delete mode 100644 java/gjt/ThreeDBorderStyle.java delete mode 100644 java/gjt/ThreeDRectangle.java delete mode 100644 java/gjt/Toolbar.java delete mode 100644 java/gjt/Util.java delete mode 100644 java/gjt/YesNoDialog.java delete mode 100644 java/gjt/animation/CollisionArena.java delete mode 100644 java/gjt/animation/CollisionDetector.java delete mode 100644 java/gjt/animation/EdgeCollisionDetector.java delete mode 100644 java/gjt/animation/Playfield.java delete mode 100644 java/gjt/animation/Sequence.java delete mode 100644 java/gjt/animation/Sprite.java delete mode 100644 java/gjt/animation/SpriteCollisionDetector.java delete mode 100644 java/gjt/image/BleachImageFilter.java delete mode 100644 java/gjt/image/DissolveFilter.java delete mode 100644 java/gjt/image/ImageDissolver.java delete mode 100644 java/gjt/rubberband/Rubberband.java delete mode 100644 java/gjt/rubberband/RubberbandEllipse.java delete mode 100644 java/gjt/rubberband/RubberbandLine.java delete mode 100644 java/gjt/rubberband/RubberbandPanel.java delete mode 100644 java/gjt/rubberband/RubberbandRectangle.java delete mode 100644 java/gjt/test/AttributesPanel.java delete mode 100644 java/gjt/test/BargaugeTest.java delete mode 100644 java/gjt/test/BleachImageFilterTest.java delete mode 100644 java/gjt/test/BorderTest.java delete mode 100644 java/gjt/test/BoxTest.java delete mode 100644 java/gjt/test/BumpAnimationTest.java delete mode 100644 java/gjt/test/ChoiceCardPanelTest.java delete mode 100644 java/gjt/test/ColumnLayoutTest.java delete mode 100644 java/gjt/test/ComponentScrollerTest.java delete mode 100644 java/gjt/test/ConnectionsPanel.java delete mode 100644 java/gjt/test/DialogTest.java delete mode 100644 java/gjt/test/DrawnRectangleTest.java delete mode 100644 java/gjt/test/FontDialogTest.java delete mode 100644 java/gjt/test/IconCardPanelTest.java delete mode 100644 java/gjt/test/ImageButtonTest.java delete mode 100644 java/gjt/test/ImageDissolverTest.java delete mode 100644 java/gjt/test/ImageScrollerTest.java delete mode 100644 java/gjt/test/LabelCanvasTest.java delete mode 100644 java/gjt/test/MessageDialogTest.java delete mode 100644 java/gjt/test/OccupationOracle.java delete mode 100644 java/gjt/test/RowLayoutTest.java delete mode 100644 java/gjt/test/RubberbandTest.java delete mode 100644 java/gjt/test/SeparatorTest.java delete mode 100644 java/gjt/test/SimpleAnimationTest.java delete mode 100644 java/gjt/test/SimpleBargaugeTest.java delete mode 100644 java/gjt/test/StateButtonTest.java delete mode 100644 java/gjt/test/TenPixelBorder.java delete mode 100644 java/gjt/test/TitledPanel.java delete mode 100644 java/gjt/test/ToolbarTest.java delete mode 100644 java/gjt/test/TwoDrinkersAnimationTest.java delete mode 100644 java/gjt/test/UnitTest.java delete mode 100644 java/netsvcs/Logger/DefaultLMR.java delete mode 100644 java/netsvcs/Logger/LogMessageReceiver.java delete mode 100644 java/netsvcs/Logger/LogRecord.java delete mode 100644 java/netsvcs/Logger/Makefile delete mode 100644 java/netsvcs/Logger/ServerLoggingAcceptor.java delete mode 100644 java/netsvcs/Logger/ServerLoggingHandler.java delete mode 100644 java/netsvcs/Naming/Makefile delete mode 100644 java/netsvcs/Naming/NameAcceptor.java delete mode 100644 java/netsvcs/Naming/NameHandler.java delete mode 100644 java/netsvcs/Naming/NameProxy.java delete mode 100644 java/netsvcs/Naming/NameReply.java delete mode 100644 java/netsvcs/Naming/NameRequest.java delete mode 100755 java/netsvcs/Time/Clerk.java delete mode 100755 java/netsvcs/Time/Makefile delete mode 100755 java/netsvcs/Time/Server.java delete mode 100755 java/netsvcs/Time/TSClerkHandler.java delete mode 100755 java/netsvcs/Time/TSClerkProcessor.java delete mode 100755 java/netsvcs/Time/TSRequestAcceptor.java delete mode 100755 java/netsvcs/Time/TSRequestHandler.java delete mode 100755 java/netsvcs/Time/TSServerAcceptor.java delete mode 100755 java/netsvcs/Time/TSServerHandler.java delete mode 100644 java/src/ACE.java delete mode 100644 java/src/AcceptStrategy.java delete mode 100644 java/src/Acceptor.java delete mode 100644 java/src/ActivateStrategy.java delete mode 100644 java/src/AddServiceObjectNode.java delete mode 100644 java/src/Blob.java delete mode 100644 java/src/BlobHandler.java delete mode 100644 java/src/BlobReader.java delete mode 100644 java/src/BlobWriter.java delete mode 100644 java/src/ClassNameGenerator.java delete mode 100644 java/src/ClassReader.java delete mode 100644 java/src/Condition.java delete mode 100644 java/src/Connector.java delete mode 100644 java/src/CreationStrategy.java delete mode 100644 java/src/EventHandler.java delete mode 100644 java/src/GetOpt.java delete mode 100644 java/src/HTTPHelper.java delete mode 100644 java/src/INETAddr.java delete mode 100644 java/src/IOCntlCmds.java delete mode 100644 java/src/IOCntlMsg.java delete mode 100644 java/src/JACE.DSP delete mode 100644 java/src/JACE.DSW delete mode 100644 java/src/Makefile delete mode 100644 java/src/MessageBlock.java delete mode 100644 java/src/MessageQueue.java delete mode 100644 java/src/MessageType.java delete mode 100644 java/src/Module.java delete mode 100644 java/src/Mutex.java delete mode 100644 java/src/OS.java delete mode 100644 java/src/ParseNode.java delete mode 100644 java/src/ProfileTimer.java delete mode 100644 java/src/README delete mode 100644 java/src/RWMutex.java delete mode 100644 java/src/RemoveNode.java delete mode 100644 java/src/ResumeNode.java delete mode 100644 java/src/SOCKAcceptor.java delete mode 100644 java/src/SOCKConnector.java delete mode 100644 java/src/SOCKStream.java delete mode 100644 java/src/Semaphore.java delete mode 100644 java/src/ServiceConfig.java delete mode 100644 java/src/ServiceLoader.java delete mode 100644 java/src/ServiceObject.java delete mode 100644 java/src/ServiceObjectRecord.java delete mode 100644 java/src/ServiceRecord.java delete mode 100644 java/src/ServiceRepository.java delete mode 100644 java/src/StrategyAcceptor.java delete mode 100644 java/src/Stream.java delete mode 100644 java/src/StreamHead.java delete mode 100644 java/src/StreamTail.java delete mode 100644 java/src/SuspendNode.java delete mode 100644 java/src/SvcHandler.java delete mode 100644 java/src/Task.java delete mode 100644 java/src/TaskFlags.java delete mode 100644 java/src/ThreadManager.java delete mode 100644 java/src/ThruTask.java delete mode 100644 java/src/TimeValue.java delete mode 100644 java/src/TimedWait.java delete mode 100644 java/src/TimeoutException.java delete mode 100644 java/src/TimerQueue.java delete mode 100644 java/src/Token.java delete mode 100644 java/tests/ASX/BufferStreamTest.dsp delete mode 100644 java/tests/ASX/BufferStreamTest.java delete mode 100644 java/tests/ASX/Makefile delete mode 100644 java/tests/ASX/MessageQueueTest.dsp delete mode 100644 java/tests/ASX/MessageQueueTest.java delete mode 100644 java/tests/ASX/PriorityBufferTest.dsp delete mode 100644 java/tests/ASX/PriorityBufferTest.java delete mode 100644 java/tests/ASX/TaskTest.dsp delete mode 100644 java/tests/ASX/TaskTest.java delete mode 100644 java/tests/ASX/ThreadPoolTest.dsp delete mode 100644 java/tests/ASX/ThreadPoolTest.java delete mode 100644 java/tests/Concurrency/Condition/Condition.dsp delete mode 100644 java/tests/Concurrency/Condition/Consumer.java delete mode 100644 java/tests/Concurrency/Condition/JoinableThreadGroup.java delete mode 100644 java/tests/Concurrency/Condition/Makefile delete mode 100644 java/tests/Concurrency/Condition/Producer.java delete mode 100644 java/tests/Concurrency/Condition/QueueTest.java delete mode 100644 java/tests/Concurrency/Condition/SimpleMessageQueue.java delete mode 100644 java/tests/Concurrency/Makefile delete mode 100644 java/tests/Concurrency/MutexTest.dsp delete mode 100644 java/tests/Concurrency/MutexTest.java delete mode 100644 java/tests/Concurrency/RWMutexTest.dsp delete mode 100644 java/tests/Concurrency/RWMutexTest.java delete mode 100644 java/tests/Concurrency/SemaphoreTest.dsp delete mode 100644 java/tests/Concurrency/SemaphoreTest.java delete mode 100644 java/tests/Concurrency/TokenTest.dsp delete mode 100644 java/tests/Concurrency/TokenTest.java delete mode 100644 java/tests/Connection/AcceptorTest.dsp delete mode 100644 java/tests/Connection/AcceptorTest.java delete mode 100644 java/tests/Connection/ClientHandler.dsp delete mode 100644 java/tests/Connection/ClientHandler.java delete mode 100644 java/tests/Connection/ConnectorTest.dsp delete mode 100644 java/tests/Connection/ConnectorTest.java delete mode 100644 java/tests/Connection/HTTPHelperTest.java delete mode 100644 java/tests/Connection/Makefile delete mode 100644 java/tests/Connection/ServerHandler.dsp delete mode 100644 java/tests/Connection/ServerHandler.java delete mode 100644 java/tests/Misc/Makefile delete mode 100644 java/tests/Misc/ParseArgsTest.dsp delete mode 100644 java/tests/Misc/ParseArgsTest.java delete mode 100644 java/tests/Reactor/Makefile delete mode 100644 java/tests/Reactor/TimeValueTest.dsp delete mode 100644 java/tests/Reactor/TimeValueTest.java delete mode 100644 java/tests/Reactor/TimerQueueTest.dsp delete mode 100644 java/tests/Reactor/TimerQueueTest.java delete mode 100644 java/tests/SOCK_SAP/Makefile delete mode 100644 java/tests/SOCK_SAP/SOCKAcceptorTest.dsp delete mode 100644 java/tests/SOCK_SAP/SOCKAcceptorTest.java delete mode 100644 java/tests/SOCK_SAP/SOCKConnectorTest.dsp delete mode 100644 java/tests/SOCK_SAP/SOCKConnectorTest.java delete mode 100644 java/tests/ServiceConfigurator/Makefile delete mode 100644 java/tests/ServiceConfigurator/ServiceConfigurator.dsp delete mode 100644 java/tests/ServiceConfigurator/TestService.java delete mode 100644 java/tests/ServiceConfigurator/reloadTest.java delete mode 100644 java/tests/ServiceConfigurator/suspendTest.java delete mode 100644 java/tests/ServiceConfigurator/suspendTest1.conf delete mode 100644 java/tests/ServiceConfigurator/suspendTest2.conf delete mode 100644 java/tests/ServiceConfigurator/suspendTest3.conf delete mode 100644 java/tests/ServiceConfigurator/svc.conf delete mode 100644 java/tests/Tests.dsw delete mode 100644 java/tests/netsvcs/Logger/LoggerTest.java delete mode 100644 java/tests/netsvcs/Logger/Makefile delete mode 100644 java/tests/netsvcs/Naming/ClientTest.java delete mode 100644 java/tests/netsvcs/Naming/Makefile delete mode 100644 netsvcs/clients/Naming/Dump_Restore/nametest.cpp delete mode 100644 netsvcs/clients/Naming/Dump_Restore/nametest.h delete mode 100644 netsvcs/lib/Client_Logging_Handler.i delete mode 100644 netsvcs/lib/Server_Logging_Handler.i delete mode 100644 netsvcs/servers/cli.conf delete mode 100644 netsvcs/servers/ntsvc.conf delete mode 100644 psosim/Makefile delete mode 100644 psosim/drv_conf.c delete mode 100644 rpc++/.dependencies delete mode 100644 rpc++/COPYING delete mode 100644 rpc++/Makefile delete mode 100644 rpc++/Proj.make delete mode 100644 rpc++/README delete mode 100644 rpc++/README.ORIG delete mode 100644 rpc++/StdHdrs/Makefile delete mode 100644 rpc++/StdHdrs/README delete mode 100644 rpc++/StdHdrs/rpc/auth.h delete mode 100644 rpc++/StdHdrs/rpc/c_types.h delete mode 100644 rpc++/StdHdrs/rpc/clnt.h delete mode 100644 rpc++/StdHdrs/rpc/pmap_clnt.h delete mode 100644 rpc++/StdHdrs/rpc/svc.h delete mode 100644 rpc++/StdHdrs/rpc/xdr.h delete mode 100644 rpc++/callback.cc delete mode 100644 rpc++/example/Makefile delete mode 100644 rpc++/example/calcsvc.cc delete mode 100644 rpc++/example/calcsvc.h delete mode 100644 rpc++/example/client.cc delete mode 100644 rpc++/example/server.cc delete mode 100644 rpc++/gcc-2.2.fix delete mode 100644 rpc++/request.cc delete mode 100644 rpc++/rpc++.cp delete mode 100644 rpc++/rpc++.fn delete mode 100644 rpc++/rpc++.ky delete mode 100644 rpc++/rpc++.pg delete mode 100644 rpc++/rpc++.texi delete mode 100644 rpc++/rpc++.toc delete mode 100644 rpc++/rpc++.tp delete mode 100644 rpc++/rpc++.vr delete mode 100644 rpc++/rpc++/callback.h delete mode 100644 rpc++/rpc++/request.h delete mode 100644 rpc++/rpc++/service.h delete mode 100644 rpc++/rpc++/stub.h delete mode 100644 rpc++/rpc++/xdr++.h delete mode 100644 rpc++/service.cc delete mode 100644 rpc++/stub.cc delete mode 100644 rpc++/version.h delete mode 100644 rpc++/xdr++.cc delete mode 100644 tests/CPP_Test.cpp delete mode 100644 tests/Shared_Memory_SV_Test.cpp delete mode 100755 tests/run_tests.ksh diff --git a/ACE.DSW b/ACE.DSW deleted file mode 100644 index bfdfb40ff40..00000000000 --- a/ACE.DSW +++ /dev/null @@ -1,1217 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Atomic_Op_Test"=.\tests\Atomic_Op_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Barrier_Test"=.\tests\Barrier_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Buffer_Stream_Test"=.\tests\Buffer_Stream_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "CPP_inclient"=.\examples\IPC_SAP\SOCK_SAP\CPP_inclient.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "CPP_inserver"=.\examples\IPC_SAP\SOCK_SAP\CPP_inserver.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "C_inclient"=.\examples\IPC_SAP\SOCK_SAP\SOCK_SAP.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "C_inserver"=.\examples\IPC_SAP\SOCK_SAP\C_inserver.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Conn_Test"=.\tests\Conn_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Enum_Interfaces_Test"=.\tests\Enum_Interfaces_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Event_Server"=.\examples\ASX\Event_Server\Event_Server\Event_Server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Exceptions"=.\examples\Reactor\ReactorEx\Exceptions.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Future_Test"=.\tests\Future_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Handle_Set_Test"=.\tests\Handle_Set_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Hash_Map_Manager_Test"=.\tests\Hash_Map_Manager_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "IOStream_Test"=.\tests\IOStream_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Log_Msg"=.\examples\Log_Msg\Log_Msg.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "MM_Shared_Memory_Test"=.\tests\MM_Shared_Memory_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Map_Manager_Test"=.\tests\Map_Manager_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Mem_Map_Test"=.\tests\Mem_Map_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Message_Block_Test"=.\tests\Message_Block_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Message_Queue_Notifications_Test"=.\tests\Message_Queue_Notifications_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Message_Queue_Test"=.\tests\Message_Queue_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Multithreading"=.\examples\Reactor\ReactorEx\Multithreading.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Mutex_Test"=.\tests\Mutex_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Naming_Test"=.\tests\Naming_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Network_Events"=.\examples\Reactor\ReactorEx\Network_Events.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Pipe_Test"=.\tests\Pipe_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Priority_Buffer_Test"=.\tests\Priority_Buffer_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Priority_Task_Test"=.\tests\Priority_Task_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Process"=.\examples\OS\Process\Process.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Process_Mutex_Test"=.\tests\Process_Mutex_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Process_Strategy_Test"=.\tests\Process_Strategy_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactor_Exceptions_Test"=.\tests\Reactor_Exceptions_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactor_Notify_Test"=.\tests\Reactor_Notify_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactor_Timer_Test"=.\tests\Reactor_Timer_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reactors_Test"=.\tests\Reactors_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Reader_Writer_Test"=.\tests\Reader_Writer_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Recursive_Mutex_Test"=.\tests\Recursive_Mutex_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Registration"=.\examples\Reactor\ReactorEx\Registration.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Removals"=.\examples\Reactor\ReactorEx\Removals.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SOCK_Test"=.\tests\SOCK_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SPIPE_Test"=.\tests\SPIPE_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SString_Test"=.\tests\SString_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "SV_Shared_Memory_Test"=.\tests\SV_Shared_Memory_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Semaphore_Test"=.\tests\Semaphore_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Service_Config_Test"=.\tests\Service_Config_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Sigset_Ops_Test"=.\tests\Sigset_Ops_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Simple_Message_Block_Test"=.\tests\Simple_Message_Block_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "TSS_Test"=.\tests\TSS_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Talker"=.\examples\Reactor\ReactorEx\Talker.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Task_Test"=.\tests\Task_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Thread_Manager_Test"=.\tests\Thread_Manager_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Thread_Pool_Test"=.\tests\Thread_Pool_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Time_Service_Test"=.\tests\Time_Service_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Time_Value_Test"=.\tests\Time_Value_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Timeouts"=.\examples\Reactor\ReactorEx\Timeouts.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Timer_Queue_Test"=.\tests\Timer_Queue_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Tokens_Test"=.\tests\Tokens_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Transceiver"=.\examples\ASX\Event_Server\Transceiver\transceiver.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "UPIPE_Event_Server"=.\examples\ASX\UPIPE_Event_Server\UPIPE_Event_Server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "UPIPE_SAP_Test"=.\tests\UPIPE_SAP_Test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "acceptor"=.\examples\Connection\blocking\acceptor.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "auto_event"=.\examples\Threads\test.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "barrier1"=.\examples\Threads\barrier1.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "barrier2"=.\examples\Threads\barrier2.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "cancel"=.\examples\Threads\cancel.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "client"=.\examples\Connection\non_blocking\non_blocking.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "connector"=.\examples\Connection\blocking\SPIPE.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "future1"=.\examples\Threads\future1.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "future2"=.\examples\Threads\future2.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "iterator"=.\examples\Registry\Registry.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "manual_event"=.\examples\Threads\manual_event.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "multiple_contexts"=.\examples\Naming\multiple_contexts.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "netsvcs"=.\netsvcs\lib\netsvcs.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "non_existent"=.\examples\Naming\non_existent.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "notification"=.\examples\Reactor\Misc\notification.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "ntalker"=.\examples\Reactor\Ntalker\ntalker.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "process_mutex"=.\examples\Threads\process_mutex.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "process_semaphore"=.\examples\Threads\process_semaphore.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "reader_writer"=.\examples\Threads\reader_writer.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "recursive_mutex"=.\examples\Threads\recursive_mutex.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "server"=.\examples\Connection\non_blocking\server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "server_loggerd"=".\examples\Logger\Acceptor-server\server_loggerd.dsp" - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "servers"=.\netsvcs\servers\servers.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_four"=.\examples\Threads\task_four.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_one"=.\examples\Threads\task_one.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_three"=.\examples\Threads\task_three.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "task_two"=.\examples\Threads\task_two.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "test_multiple_loops"=.\examples\Reactor\Proactor\test_multiple_loops.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "test_proactor"=.\examples\Reactor\Proactor\test_proactor.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "test_timeout"=.\examples\Reactor\Proactor\test_timeout.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "thread_manager"=.\examples\Threads\thread_manager.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "thread_pool"=.\examples\Threads\thread_pool.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "thread_specific"=.\examples\Threads\thread_specific.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "timer_queue"=.\examples\Reactor\Misc\Misc.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "token"=.\examples\Threads\token.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "tss1"=.\examples\Threads\tss1.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "tss2"=.\examples\Threads\tss2.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "update"=.\examples\Registry\update.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "writers"=.\examples\Naming\Naming.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/STL/ACE_Changes b/STL/ACE_Changes deleted file mode 100644 index 902fb94c94c..00000000000 --- a/STL/ACE_Changes +++ /dev/null @@ -1,53 +0,0 @@ -This version of STL was obtained from -http://www.rahul.net/terris/. This is a modified version of the -implementation that comes with VC++4.0. Please see readme2.stl for -details. - -The following modification have been made for compilation with VC++4.x - -________________________________________ - -vector.h (line 85) -________________________________________ - - - /* - * This is cause the VC++ compiler sucks - * and does not recognize nested classes properly - * - */ -#if !defined (VC_PLUS_PLUS_NESTED_CLASS_PROBLEM) - vector(size_type n, const T& value = T()) { - start = static_allocator.allocate(n); - uninitialized_fill_n(start, n, value); - finish = start + n; - end_of_storage = finish; - } -#endif /* VC_PLUS_PLUS_NESTED_CLASS_PROBLEM */ - - -________________________________________ - -bstring.h (line 1102) -________________________________________ - - - /* - * This should be correctly scoped - * - * if (cap == ::reserve) - */ - - if (cap == std::reserve) - { - len = 0; - res = size; - ptr = new charT [res]; - } - /* - * This should be correctly scoped - * - * else if ((cap == ::default_size) && (size != NPOS)) - */ - - else if ((cap == std::default_size) && (size != NPOS)) diff --git a/STL/readme2.stl b/STL/readme2.stl deleted file mode 100644 index 5132bc1189b..00000000000 --- a/STL/readme2.stl +++ /dev/null @@ -1,272 +0,0 @@ -STL2.ZIP - -Standard Template Library for Visual C++ 4.0 -and Related Classes - -Revised 10/15/96 - Bug fixes and change to bit_vector. - -This version supports DLLs and threading. You must use critical -sections around code that uses the same container in different -threads. These features come at a price -- since memory -usage is not optimal, this code may use more memory and -may be slower. - -+ General strategy: Remove all statics except the - static allocator objects. -+ Vectors were not affected. -+ Major changes made to tree.h -+ Stability: Very stable. - -This code should be considered for experimental use only. There -are still statics lurking in some functions; these functions -are not thread-safe. - -------------------------- -Fix for bit_vector -------------------------- -This version also has a fix for bit_vector, which doesn't really -work with VC++ 4.x. Please include bvector.cpp in your -project if you use bit_vector. This fixes the linker errors -that occur if you use bector.h in multiple .cpp files. - -------------------------- -Disclaimer -------------------------- -Code is provided without warranty, liability, or technical support. - -STL.H and PTR.H are freely distributable and can be -modified in any way. - --------------------------------- -STRING.H does not compile. --------------------------------- - -"D. Pirzadeh" Explains how to fix: - -First, I got compile errors in "bstring.h" -and changed it as follows to correct: - line 1104 "::reserve" -> "std::reserve" - line 1110 "::default_size" -> "std::default_size" - -Also, I got an INTERNAL COMPILER ERROR with Visual C++ v4.0 when I did the fol- -lowing: - class xyz : public std::string { } - -I fixed it with: - typedef std::string XyzString; - class xyz : public XyzString { } - --------------------------------- -Changes made to STL distribution --------------------------------- - -These files were modified from the STL distribution shipped with -Microsoft Visual C++ 4.0. The files here are a complete, -working version of the STL. These files have been tested with -MFC applications. - -Changes were made to practically all header files. Look for -comments like: - -*Added by... -*Changed by... - ------------------- -Usage Instructions ------------------- - -Set the preprocessor variable NOMINMAX. - -As Microsoft recommends, the STL is compiled in the std namespace. - -When including these files, do **not** do this: - - namespace std - { - #include - } - -Instead, do this: - - #include - -Recommended usage: - - First, include: - - #include - #include - #include - - Then include the STL header files. - -------------------- -Support for CString -------------------- -The stl.h file contains code written by me. The file contains -operators that will allow you to use CString objects with STL -containers and functions. - -!!!! CString will not work with STL unless you include !!!! - -------------------------------------------- -Helper functions for pointers-in-containers -------------------------------------------- -There is a file called stl.h which contains two functions: - SequenceDelete - MapDelete -These functions send "delete" to all of the objects in a container. - -If you don't like this approach, you can use a supplied "pointer -wrapper" class. - -There is a file called ptr.h which contains a class called Ptr -that can be used exactly like a pointer. The object has a pointer -inside it that points to an object of any class. When a Ptr object -is deleted, "delete" is sent to its underlying pointer. Ptr can be -used with any STL container, as it has a copy constructor and -assignment operator, which transfers "ownership" of the pointer from -the source object to the destination object. Ptr is from the book -Design Patterns by Gamma et al -- see the Proxy pattern. - -The Ptr class makes memory leaks impossible, because it deletes -objects automatically when the container is deleted, or when -functions like "delete" are used. - -Example: - - This is a vector of CStrings: - - std::vector< Ptr > StringVector; - - StringVector.push_back( Ptr( new CString( "hello" ) ) ); - StringVector.push_back( Ptr( new CString( "This is another string" ) ) ); - ------------------------- -Common Problems with STL ------------------------- - -1) Compiler error: != is ambiguous - - Solution: put the following line at the beginning of the method - that caused the error: - - using namespace std; - -2) When using maps, the debugger crashes. - - This is because symbols for maps (actually, for the "pair") - get truncated to 255 characters. Solution: Turn off the - variables window in the debugger. Don't try to look at - a symbol that has been truncated. This is not an STL-specific - bug -- It's a bug in the debugger. - -3) All sorts of compile errors in STL header files - - Make sure the preprocessor variable NOMINMAX is defined - - -4) Compiler errors about "operator < is not available", etc. - The class involved has global comparison operators. - - Solution: - Write "routers" in the std namespace to the global namespace. - Example (see also stl.h - this is how CString is able - to work with STL): - - namespace std - { - BOOL operator < ( const MyClass & rLhs, - const AnotherClass & rRhs ) - { - return ::operator < ( rLhs, rRhs ); - } - } - - See also 5. - -5) When you use find() or another algorithm, the compiler - complains that it cannot find the == or < operators. - -If your code compiles without any error messages, then disregard -this section. However, if you get errors like "cannot convert -first argument from const class X" then read on. - -I am assuming that your code is calling an STL algorithm like -std::sort() or std::find(). If you're not, I can't help -you. - -There is apparently a bug in the Microsoft compiler regarding -namespaces. Namespaces cannot locate global -functions that reside in the global namespace. For example, -the binary == operator. - -Maybe this is a bug, maybe it isn't. This is not clear -to me. However, I do know what works and have tried many other -approaches that do not work. If you have a better solution I -would appreciate it if you could let me know about it. - -So, if you declare your own class and want to use algorithms -like find() on an STL container, you have two choices: - -(1) Declare == as a member function. -(2) Declare global operators == and !=. - -(1) simply works. There will come a time, however, when (1) -won't satisfy your needs. If A == B, then B == A. You can't -do this using member functions if A and B are from different -classes. - -If you choose (2), you must add the != operator to the std -namespace. There are two ways to do this. First, you can do -this: - namespace std - { - inline operator != ( const MyClass &rLhs, const MyClass &rRhs ) - { - return ::operator != ( rLhs, rRhs ); - } - } -This "routes" != from the std namespace to the global namespace. - -Note that ( lhs != rhs ) can be derived from the == operator -as !( lhs == rhs ). There is a macro in STL.H, -STL_DECLARE_GLOBAL_NE, that does this derivation. -This derivation will not work when for whatever reason, !(lhs == rhs) -is not the same as ( lhs != rhs ). - -The following example shows what you have to do for find(). Other -algorithms require you to declare <, <=, and >= too. See the -macros STL_DECLARE_GLOBAL_GE, STL_DECLARE_GLOBAL_LT, and -STL_GLOBAL_LE. These macros derive new comparison operators -from "operator <( const T&, const T& )". - -class MyClass -{ - public: - - int units; - CString description; -}; - -// We want to be able to test two MyClass objects against each other -// in STL. Need to create a global operator for this purpose. -// Since we use find(), we need to declare not-equal too. -bool operator == ( const MyClass &, const MyClass & ); -STL_DECLARE_GLOBAL_NE( MyClass, MyClass ) - -// These operators test for a matching description. -// We do A == B and B == A to be consistent. -bool operator == ( const MyClass&, const CString & ); -bool operator == ( const CString&, const MyClass & ); -STL_DECLARE_GLOBAL_NE( MyClass, CString ) -STL_DECLARE_GLOBAL_NE( CString, MyClass ) - -6. Errors when creating vectors that have vectors and deques - that have deques. - - Solution: Provide atruments to the constructor. - - std::vector< std::vector > - TwoDimensional( 0, std::vector() ); - diff --git a/TAO/BUG-REPORT-FORM b/TAO/BUG-REPORT-FORM deleted file mode 100644 index 77d715632b8..00000000000 --- a/TAO/BUG-REPORT-FORM +++ /dev/null @@ -1,39 +0,0 @@ -[Please use the form below to submit bug reports, problem - reports, etc., to the TAO developers and interested users. - Send to ace-users@cs.wustl.edu. - - Replace/remove all the explanatory text in brackets before mailing. - - PLEASE make your Subject: line as descriptive as possible. - Subjects like "TAO bug" or "bug report" are not helpful! - Also, do _not_ include the word "help" in the Subject!] - -8<----------8<----------8<----------8<----------8<----------8<----------8<---- - -To: ace-users@cs.wustl.edu -Subject: [area]: [synopsis] - - TAO VERSION: [from $ACE_ROOT/TAO/VERSION] - ACE VERSION: [from $ACE_ROOT/VERSION] - - HOST MACHINE and OPERATING SYSTEM: - TARGET MACHINE and OPERATING SYSTEM, if different from HOST: - COMPILER NAME AND VERSION: - - AREA/CLASS/EXAMPLE AFFECTED: -[what example failed? What module failed to compile?] - - SYNOPSIS: -[Brief description of the problem] - - DESCRIPTION: -[Detailed description of problem. Don't just say " -doesn't work, here's a fix," explain what your program does -to get to the state. ] - - REPEAT BY: -[What you did to get the error; include test program or session -transcript if at all possible. ] - - SAMPLE FIX/WORKAROUND: -[If available ] diff --git a/TAO/Benchmark/Marshal_Test/Orbix/Makefile b/TAO/Benchmark/Marshal_Test/Orbix/Makefile deleted file mode 100644 index 0c40916fb67..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the Orbix Marshal Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lACE -lbenchmark - -PROG_SRCS = marshalC.cpp marshalS.cpp orbix_marshal_client.cpp orbix_marshal_server.cpp \ - orbix_marshal_impl.cpp client.cpp server.cpp - -LSRC = $(PROG_SRCS) - -MARSHAL_CLIENT_OBJS = marshalC.o orbix_marshal_client.o client.o - -ifdef dsi -MARSHAL_SERVER_OBJS = orbix_marshal_impl.o orbix_marshal_server.o server.o -else -MARSHAL_SERVER_OBJS = marshalS.o orbix_marshal_impl.o orbix_marshal_server.o server.o -endif -BIN = client server - -BUILD = $(BIN) - -#CLIENT_LIBS = -lITini -liiop -lorbix -#SERVER_LIBS = -lITini -liiop -lDSI -lorbix -lIRclt -CLIENT_LIBS = -liiop -lorbix -SERVER_LIBS = -liiop -lDSI -lorbix -lIRclt - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -# include Orbix specific file -include /project/mambo/gokhale/CONFIG/orbixsol2s4.mk - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -CPPFLAGS += -I$(TAO_ROOT)/Benchmark - -server: $(addprefix $(VDIR),$(MARSHAL_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(SERVER_LIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(MARSHAL_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(CLIENT_LIBS) $(POSTLINK) - -marshal.h marshalC.cpp marshalS.cpp: marshal.idl - $(IDL) $(IDLFLAGS) $< - -clean: - rm -f core *.o *~ client server *C.cpp *S.cpp *S.h *C.h - $(MAKE) realclean - - - - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/client.cpp b/TAO/Benchmark/Marshal_Test/Orbix/client.cpp deleted file mode 100644 index d3ef24fadc0..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/client.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "orbix_marshal_client.h" - -ACE_RCSID(Orbix, client, "$Id$") - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Orbix_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Orbix_Marshal_Client_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/Orbix/marshal.h b/TAO/Benchmark/Marshal_Test/Orbix/marshal.h deleted file mode 100644 index 4e07d507a8b..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/marshal.h +++ /dev/null @@ -1,1326 +0,0 @@ -// $Id$ - -#ifndef marshal_h -#define marshal_h - -#include - -#include - - -#ifndef _IDL_SEQUENCE_any_defined -#define _IDL_SEQUENCE_any_defined - -class _IDL_SEQUENCE_any { - CORBA::ULong _maximum; - CORBA::ULong _length; - CORBA::any* _buffer; - unsigned char _release; - - public: - _IDL_SEQUENCE_any& operator= (const _IDL_SEQUENCE_any&); - _IDL_SEQUENCE_any (const _IDL_SEQUENCE_any&); - - _IDL_SEQUENCE_any (CORBA::ULong max); - _IDL_SEQUENCE_any (CORBA::ULong max, CORBA::ULong length, CORBA::any* data, CORBA::Boolean release = 0); - _IDL_SEQUENCE_any (); - - ~_IDL_SEQUENCE_any (); - - static CORBA::any* allocbuf(CORBA::ULong nelems); - static void freebuf(CORBA::any* data); - - CORBA::ULong maximum() const; - CORBA::ULong length() const; - void length (CORBA::ULong len); - - CORBA::any& operator [] (CORBA::ULong IT_i); - - const CORBA::any& operator [] (CORBA::ULong IT_i) const; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); -}; - -extern const CORBA::TypeCode_ptr _tc__IDL_SEQUENCE_any; - -#ifndef _IDL_SEQUENCE_anyVarH -#define _IDL_SEQUENCE_anyVarH - -#ifndef _IDL_SEQUENCE_anyvPtr -#define _IDL_SEQUENCE_anyvPtr -typedef _IDL_SEQUENCE_any* _IDL_SEQUENCE_any_vPtr; -typedef const _IDL_SEQUENCE_any* _IDL_SEQUENCE_any_cvPtr; -#endif - -class _IDL_SEQUENCE_any_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const _IDL_SEQUENCE_any_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new _IDL_SEQUENCE_any; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - _IDL_SEQUENCE_any_var (const _IDL_SEQUENCE_any_var &IT_s) { - (void) copyHelper (IT_s); - } - - _IDL_SEQUENCE_any_var () { - _ptr = NULL; - } - - _IDL_SEQUENCE_any_var (_IDL_SEQUENCE_any *IT_p) { - _ptr = IT_p; - } - - _IDL_SEQUENCE_any_var &operator= (_IDL_SEQUENCE_any *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - _IDL_SEQUENCE_any_var &operator= (const _IDL_SEQUENCE_any_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new _IDL_SEQUENCE_any; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~_IDL_SEQUENCE_any_var () { - delete _ptr; - } - - _IDL_SEQUENCE_any* operator-> () { - return _ptr; - } - - operator _IDL_SEQUENCE_any_cvPtr () const { return _ptr;} - operator _IDL_SEQUENCE_any_vPtr& () { return _ptr;} - operator _IDL_SEQUENCE_any& () const { return * _ptr;} - - const CORBA::any& operator[] (CORBA::ULong index) const; - - CORBA::any& operator[] (CORBA::ULong index); - - protected: - _IDL_SEQUENCE_any *_ptr; - private: - _IDL_SEQUENCE_any_var &operator= (const CORBA::_var &IT_s); - _IDL_SEQUENCE_any_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - -#ifndef _Marshal_defined -#define _Marshal_defined -class Marshal_dispatch : public virtual CORBA::PPTR { -public: - - Marshal_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Marshal_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Marshal_dispatch () {} - - Marshal_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Marshal_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Marshal; - -#ifndef MarshalPtr -#define MarshalPtr - -typedef Marshal* Marshal_ptr; - -typedef Marshal* MarshalRef; - -#endif - - -#ifndef MarshalForwH -#define MarshalForwH -CORBA::ObjectRef Marshal_getBase (void *); -void Marshal_release (Marshal *, CORBA::Environment &IT_env); -void Marshal_release (Marshal_ptr); -Marshal* Marshal_duplicate (Marshal_ptr, CORBA::Environment &IT_env); -Marshal* Marshal_duplicate (Marshal_ptr ); -Marshal_ptr Marshal_nil (CORBA::Environment &IT_env); -Marshal_ptr Marshal_nil (); -#endif -#define Marshal_IMPL "Marshal" - - -class Marshal; - -typedef Marshal MarshalProxy; -#define Marshal_IR "Marshal" -#define Marshal_IMPL "Marshal" - -#ifndef MarshalPtr -#define MarshalPtr - -typedef Marshal* Marshal_ptr; - -typedef Marshal* MarshalRef; - -#endif - -class Marshal: public virtual CORBA::Object { -public: - Marshal (char *IT_OR); - Marshal (ObjectReference *IT_OR); - Marshal () : CORBA::Object (1) {} -protected: - Marshal_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Marshal_ptr _duplicate( - Marshal_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Marshal* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Marshal* _bind (CORBA::Environment &IT_env); - static Marshal* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Marshal* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); -private: - static const void* IT_impl; -public: - static Marshal_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Marshal_ptr) CORBA::OBJECT_NIL;} - -#ifndef Marshal_Marshal_Struct_defined -#define Marshal_Marshal_Struct_defined - -struct Marshal_Struct { - CORBA::Short s; - CORBA::Long l; - CORBA::Char c; - CORBA::Octet o; - CORBA::Double d; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - static void* IT_anySupport (CORBA::Request &IT_r, - void *&, void*, const CORBA::Flags&); - static const void *IT_fn; - Marshal_Struct(const Marshal_Struct &); - Marshal_Struct(); - ~Marshal_Struct(); - Marshal_Struct& operator= (const Marshal_Struct&); -}; - -static const CORBA::TypeCode_ptr _tc_Marshal_Struct; - -#ifndef Marshal_Marshal_StructVarH -#define Marshal_Marshal_StructVarH - -#ifndef Marshal_Marshal_StructvPtr -#define Marshal_Marshal_StructvPtr -typedef Marshal_Struct* Marshal_Struct_vPtr; -typedef const Marshal_Struct* Marshal_Struct_cvPtr; -#endif - -class Marshal_Struct_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_Struct_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Marshal_Struct; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Marshal_Struct_var (const Marshal_Struct_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_Struct_var () { - _ptr = new Marshal_Struct; -; - } - - Marshal_Struct_var (Marshal_Struct *IT_p) { - _ptr = IT_p; - } - - Marshal_Struct_var &operator= (Marshal_Struct *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Marshal_Struct_var &operator= (const Marshal_Struct_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Marshal_Struct; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Marshal_Struct_var () { - delete _ptr; - } - - Marshal_Struct* operator-> () { - return _ptr; - } - - operator Marshal_Struct_cvPtr () const { return _ptr;} - operator Marshal_Struct_vPtr& () { return _ptr;} - operator Marshal_Struct& () const { return * _ptr;} - - protected: - Marshal_Struct *_ptr; - private: - Marshal_Struct_var &operator= (const CORBA::_var &IT_s); - Marshal_Struct_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -static const CORBA::TypeCode_ptr _tc_discrim; - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th,e_6th, IT__ENUM_Marshal_discrim=CORBA_ULONG_MAX}; - -#ifndef Marshal_Marshal_Union_defined -#define Marshal_Marshal_Union_defined - -struct Marshal_Union { - private: - - discrim __d; - union { - CORBA::Short _s_; - CORBA::Long _l_; - CORBA::Char _c_; - CORBA::Octet _o_; - CORBA::Double _d_; - Marshal_Struct * _ms_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - static void* IT_anySupport (CORBA::Request &IT_r, - void *&, void*, const CORBA::Flags&); - static const void *IT_fn; - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Marshal::e_0th)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_0th; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Marshal::e_1st)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_1st; - isSet = 1; - _l_ = IT_member; - } - - CORBA::Char c () const { - return _c_; - } - - void c (CORBA::Char IT_member) { - if (isSet && (__d != Marshal::e_2nd)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_2nd; - isSet = 1; - _c_ = IT_member; - } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Marshal::e_3rd)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_3rd; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Double d () const { - return _d_; - } - - void d (CORBA::Double IT_member) { - if (isSet && (__d != Marshal::e_4th)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_4th; - isSet = 1; - _d_ = IT_member; - } - - Marshal_Struct& ms () { - return (*_ms_); - } - - const Marshal_Struct& ms () const { - return (*_ms_); - } - - void ms (const Marshal_Struct& IT_member) { - if (isSet && (__d != Marshal::e_6th)) - { - this-> Marshal_Union::~Marshal_Union(); - memset(this, 0, sizeof(*this)); - } - - __d = Marshal::e_6th; - - if (!isSet) { - _ms_ = new Marshal_Struct; - isSet = 1; - } - *(_ms_) = IT_member; - } - - - Marshal_Union(); - Marshal_Union(const Marshal_Union &); - ~Marshal_Union(); - Marshal_Union& operator= (const Marshal_Union&); -}; - -static const CORBA::TypeCode_ptr _tc_Marshal_Union; - -#ifndef Marshal_Marshal_UnionVarH -#define Marshal_Marshal_UnionVarH - -#ifndef Marshal_Marshal_UnionvPtr -#define Marshal_Marshal_UnionvPtr -typedef Marshal_Union* Marshal_Union_vPtr; -typedef const Marshal_Union* Marshal_Union_cvPtr; -#endif - -class Marshal_Union_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_Union_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Marshal_Union; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Marshal_Union_var (const Marshal_Union_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_Union_var () { - _ptr = NULL; - } - - Marshal_Union_var (Marshal_Union *IT_p) { - _ptr = IT_p; - } - - Marshal_Union_var &operator= (Marshal_Union *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Marshal_Union_var &operator= (const Marshal_Union_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Marshal_Union; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Marshal_Union_var () { - delete _ptr; - } - - Marshal_Union* operator-> () { - return _ptr; - } - - operator Marshal_Union_cvPtr () const { return _ptr;} - operator Marshal_Union_vPtr& () { return _ptr;} - operator Marshal_Union& () const { return * _ptr;} - - protected: - Marshal_Union *_ptr; - private: - Marshal_Union_var &operator= (const CORBA::_var &IT_s); - Marshal_Union_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif -static const CORBA::TypeCode_ptr _tc_AnySeq; - -typedef _IDL_SEQUENCE_any AnySeq; -typedef const _IDL_SEQUENCE_any AnySeq_IT_const; - -typedef _IDL_SEQUENCE_any_var AnySeq_var; - - -#ifndef Marshal__IDL_SEQUENCE_Marshal_Marshal_Recursive_defined -#define Marshal__IDL_SEQUENCE_Marshal_Marshal_Recursive_defined - -struct Marshal_Recursive; -class _IDL_SEQUENCE_Marshal_Marshal_Recursive { - CORBA::ULong _maximum; - CORBA::ULong _length; - Marshal_Recursive* _buffer; - unsigned char _release; - - public: - _IDL_SEQUENCE_Marshal_Marshal_Recursive& operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max, CORBA::ULong length, Marshal_Recursive* data, CORBA::Boolean release = 0); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - static Marshal_Recursive* allocbuf(CORBA::ULong nelems); - static void freebuf(Marshal_Recursive* data); - - CORBA::ULong maximum() const; - CORBA::ULong length() const; - void length (CORBA::ULong len); - - Marshal_Recursive& operator [] (CORBA::ULong IT_i); - - const Marshal_Recursive& operator [] (CORBA::ULong IT_i) const; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); -}; - -static const CORBA::TypeCode_ptr _tc__IDL_SEQUENCE_Marshal_Marshal_Recursive; - -#ifndef Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH -#define Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH - -#ifndef Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -#define Marshal__IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -typedef _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr; -typedef const _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr; -#endif - -class _IDL_SEQUENCE_Marshal_Marshal_Recursive_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - (void) copyHelper (IT_s); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - _ptr = NULL; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - _ptr = IT_p; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - delete _ptr; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive* operator-> () { - return _ptr; - } - - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr () const { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr& () { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive& () const { return * _ptr;} - - const Marshal_Recursive& operator[] (CORBA::ULong index) const; - - Marshal_Recursive& operator[] (CORBA::ULong index); - - protected: - _IDL_SEQUENCE_Marshal_Marshal_Recursive *_ptr; - private: - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const CORBA::_var &IT_s); - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - -#ifndef Marshal_Marshal_Recursive_defined -#define Marshal_Marshal_Recursive_defined - -struct Marshal_Recursive { - CORBA::any value; - _IDL_SEQUENCE_Marshal_Marshal_Recursive next; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - static void* IT_anySupport (CORBA::Request &IT_r, - void *&, void*, const CORBA::Flags&); - static const void *IT_fn; - Marshal_Recursive(const Marshal_Recursive &); - Marshal_Recursive(); - ~Marshal_Recursive(); - Marshal_Recursive& operator= (const Marshal_Recursive&); -}; - -static const CORBA::TypeCode_ptr _tc_Marshal_Recursive; - -#ifndef Marshal_Marshal_RecursiveVarH -#define Marshal_Marshal_RecursiveVarH - -#ifndef Marshal_Marshal_RecursivevPtr -#define Marshal_Marshal_RecursivevPtr -typedef Marshal_Recursive* Marshal_Recursive_vPtr; -typedef const Marshal_Recursive* Marshal_Recursive_cvPtr; -#endif - -class Marshal_Recursive_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_Recursive_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Marshal_Recursive_var (const Marshal_Recursive_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_Recursive_var () { - _ptr = NULL; - } - - Marshal_Recursive_var (Marshal_Recursive *IT_p) { - _ptr = IT_p; - } - - Marshal_Recursive_var &operator= (Marshal_Recursive *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Marshal_Recursive_var &operator= (const Marshal_Recursive_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Marshal_Recursive_var () { - delete _ptr; - } - - Marshal_Recursive* operator-> () { - return _ptr; - } - - operator Marshal_Recursive_cvPtr () const { return _ptr;} - operator Marshal_Recursive_vPtr& () { return _ptr;} - operator Marshal_Recursive& () const { return * _ptr;} - - protected: - Marshal_Recursive *_ptr; - private: - Marshal_Recursive_var &operator= (const CORBA::_var &IT_s); - Marshal_Recursive_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_struct (const Marshal_Struct& ms1, Marshal_Struct& ms2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_union (const Marshal_Union& u1, Marshal_Union& u2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_sequence (const AnySeq& as1, AnySeq*& as2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void test_recursive (const Marshal_Recursive& mr1, Marshal_Recursive*& mr2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -extern const CORBA::TypeCode_ptr _tc_MarshalRef; - -#ifndef MarshalVarH -#define MarshalVarH - -#ifndef MarshalvPtr -#define MarshalvPtr -typedef Marshal* Marshal_vPtr; -typedef const Marshal* Marshal_cvPtr; -#endif - -class Marshal_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Marshal_var &IT_s) { - { - _ptr = Marshal_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Marshal_var (const Marshal_var &IT_s) { - (void) copyHelper (IT_s); - } - - Marshal_var () { - _ptr = Marshal_nil (); - } - - Marshal_var (Marshal *IT_p) { - _ptr = IT_p; - } - - Marshal_var &operator= (Marshal *IT_p) { - Marshal_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Marshal_var &operator= (const Marshal_var &IT_s) { - Marshal_release (_ptr); - _ptr = Marshal_duplicate (IT_s._ptr); - return (*this); - } - - ~Marshal_var () { - Marshal_release (_ptr); - } - - Marshal* operator-> () { - return _ptr; - } - - operator Marshal_cvPtr () const { return _ptr;} - operator Marshal_vPtr& () { return _ptr;} - - protected: - Marshal *_ptr; - private: - Marshal_var &operator= (const CORBA::_var &IT_s); - Marshal_var (const CORBA::_var &IT_s); - Marshal_var &operator= (const CORBA::_mgr &IT_s); - Marshal_var &operator= (const CORBA::_SeqElem &IT_s); - Marshal_var (const CORBA::_mgr &IT_s); - Marshal_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef MarshalMgrH -#define MarshalMgrH - -class Marshal_mgr : public CORBA::_mgr -{ - public: - - Marshal_mgr () { - _ptr = Marshal_nil (); - _release = 1; - } - - Marshal_mgr (const Marshal_mgr &IT_s) { - _ptr = Marshal_duplicate (IT_s._ptr); - _release = 1; - } - - Marshal_mgr &operator= (Marshal *IT_p) { - if (_ptr && _release) - Marshal_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Marshal_mgr &operator= (const Marshal_mgr &IT_s) { - if (_ptr && _release) - Marshal_release (_ptr); - _ptr = Marshal_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Marshal_mgr &operator= (Marshal_var &IT_s) { - if (_ptr && _release) - Marshal_release (_ptr); - _ptr = Marshal_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Marshal_mgr () { - if (_release) - Marshal_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Marshal* () const { - return (Marshal*) _ptr; - } - - Marshal_ptr operator-> () const { - return _ptr; - } - - Marshal *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Marshal_mgr Marshal_mgr_IT_const; -#endif - -#ifndef MarshalSeqElemH -#define MarshalSeqElemH - -class Marshal_SeqElem : public CORBA::_SeqElem -{ - public: - - Marshal_SeqElem (Marshal_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Marshal_SeqElem &operator= (Marshal_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Marshal_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Marshal_SeqElem &operator= (const Marshal_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Marshal_release (*(_ptr)); - *(_ptr) = Marshal_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Marshal_ptr () const { - return _ptr ? (Marshal_ptr) (*_ptr) : Marshal_nil(); - } - - Marshal_ptr operator->() const { return *_ptr;} - - protected: - Marshal_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Marshal(X) Marshal##X - -#define DEF_TIE_Marshal(X) \ - class Marshal##X : public virtual Marshal { \ - X* m_obj; \ - public: \ - \ - \ - Marshal##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Marshal(), m_obj(objp) { \ - m_pptr = new Marshal_dispatch \ - (( Marshal*)this,(CORBA::Object*)this,m,l,Marshal_IR,m_obj); \ - } \ - Marshal##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Marshal() { \ - m_pptr = new Marshal_dispatch \ - (( Marshal*)this,(CORBA::Object*)this,IT_m,Marshal_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Marshal##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_short ( s1, s2,IT_env);\ -}\ - \ -virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_long ( l1, l2,IT_env);\ -}\ - \ -virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_octet ( o1, o2,IT_env);\ -}\ - \ -virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_char ( c1, c2,IT_env);\ -}\ - \ -virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_double ( d1, d2,IT_env);\ -}\ - \ -virtual void test_struct (const Marshal::Marshal_Struct& ms1, Marshal::Marshal_Struct& ms2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_struct ( ms1, ms2,IT_env);\ -}\ - \ -virtual void test_union (const Marshal::Marshal_Union& u1, Marshal::Marshal_Union& u2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_union ( u1, u2,IT_env);\ -}\ - \ -virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_any ( a1, a2,IT_env);\ -}\ - \ -virtual void test_sequence (const Marshal::AnySeq& as1, Marshal::AnySeq*& as2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_sequence ( as1, as2,IT_env);\ -}\ - \ -virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, Marshal::Marshal_Recursive*& mr2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_recursive ( mr1, mr2,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Marshal \ -virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_short ( s1, s2,IT_env);\ -}\ - \ -virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_long ( l1, l2,IT_env);\ -}\ - \ -virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_octet ( o1, o2,IT_env);\ -}\ - \ -virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_char ( c1, c2,IT_env);\ -}\ - \ -virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_double ( d1, d2,IT_env);\ -}\ - \ -virtual void test_struct (const Marshal_Struct& ms1, Marshal_Struct& ms2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_struct ( ms1, ms2,IT_env);\ -}\ - \ -virtual void test_union (const Marshal_Union& u1, Marshal_Union& u2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_union ( u1, u2,IT_env);\ -}\ - \ -virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_any ( a1, a2,IT_env);\ -}\ - \ -virtual void test_sequence (const AnySeq& as1, AnySeq*& as2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_sequence ( as1, as2,IT_env);\ -}\ - \ -virtual void test_recursive (const Marshal_Recursive& mr1, Marshal_Recursive*& mr2, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->test_recursive ( mr1, mr2,IT_env);\ -}\ - - - - -class MarshalProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - MarshalProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Marshal_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern MarshalProxyFactoryClass MarshalProxyFactory; - -class MarshalBOAImpl : public virtual Marshal { -public: - MarshalBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Marshal_IR)) - m_pptr = new Marshal_dispatch ( (Marshal*)this, - (CORBA::Object*)this, m, l, Marshal_IR, this); -} - - virtual void test_short (CORBA::Short s1, CORBA::Short& s2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_long (CORBA::Long l1, CORBA::Long& l2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_octet (CORBA::Octet o1, CORBA::Octet& o2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_char (CORBA::Char c1, CORBA::Char& c2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_double (CORBA::Double d1, CORBA::Double& d2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_struct (const Marshal_Struct& ms1, Marshal_Struct& ms2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_union (const Marshal_Union& u1, Marshal_Union& u2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_any (const CORBA::any& a1, CORBA::any*& a2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_sequence (const AnySeq& as1, AnySeq*& as2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void test_recursive (const Marshal_Recursive& mr1, Marshal_Recursive*& mr2, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _IDL_SEQUENCE_Marshal_Marshal_Recursive_defined -#define _IDL_SEQUENCE_Marshal_Marshal_Recursive_defined - -class _IDL_SEQUENCE_Marshal_Marshal_Recursive { - CORBA::ULong _maximum; - CORBA::ULong _length; - Marshal::Marshal_Recursive* _buffer; - unsigned char _release; - - public: - _IDL_SEQUENCE_Marshal_Marshal_Recursive& operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (const _IDL_SEQUENCE_Marshal_Marshal_Recursive&); - - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (CORBA::ULong max, CORBA::ULong length, Marshal::Marshal_Recursive* data, CORBA::Boolean release = 0); - _IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive (); - - static Marshal::Marshal_Recursive* allocbuf(CORBA::ULong nelems); - static void freebuf(Marshal::Marshal_Recursive* data); - - CORBA::ULong maximum() const; - CORBA::ULong length() const; - void length (CORBA::ULong len); - - Marshal::Marshal_Recursive& operator [] (CORBA::ULong IT_i); - - const Marshal::Marshal_Recursive& operator [] (CORBA::ULong IT_i) const; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); -}; - -extern const CORBA::TypeCode_ptr _tc__IDL_SEQUENCE_Marshal_Marshal_Recursive; - -#ifndef _IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH -#define _IDL_SEQUENCE_Marshal_Marshal_RecursiveVarH - -#ifndef _IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -#define _IDL_SEQUENCE_Marshal_Marshal_RecursivevPtr -typedef _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr; -typedef const _IDL_SEQUENCE_Marshal_Marshal_Recursive* _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr; -#endif - -class _IDL_SEQUENCE_Marshal_Marshal_Recursive_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - (void) copyHelper (IT_s); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - _ptr = NULL; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - _ptr = IT_p; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (_IDL_SEQUENCE_Marshal_Marshal_Recursive *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new _IDL_SEQUENCE_Marshal_Marshal_Recursive; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~_IDL_SEQUENCE_Marshal_Marshal_Recursive_var () { - delete _ptr; - } - - _IDL_SEQUENCE_Marshal_Marshal_Recursive* operator-> () { - return _ptr; - } - - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_cvPtr () const { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive_vPtr& () { return _ptr;} - operator _IDL_SEQUENCE_Marshal_Marshal_Recursive& () const { return * _ptr;} - - const Marshal::Marshal_Recursive& operator[] (CORBA::ULong index) const; - - Marshal::Marshal_Recursive& operator[] (CORBA::ULong index); - - protected: - _IDL_SEQUENCE_Marshal_Marshal_Recursive *_ptr; - private: - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var &operator= (const CORBA::_var &IT_s); - _IDL_SEQUENCE_Marshal_Marshal_Recursive_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - - -void operator<<= (CORBA::any &IT_a, const Marshal::Marshal_Union& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::Marshal_Union*& IT_t); - - -void operator<<= (CORBA::any &IT_a, const Marshal::Marshal_Recursive& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::Marshal_Recursive*& IT_t); - - -void operator<<= (CORBA::any &IT_a, Marshal_ptr IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal_ptr& IT_t); - - -void operator<<= (CORBA::any &IT_a, const Marshal::_IDL_SEQUENCE_Marshal_Marshal_Recursive& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::_IDL_SEQUENCE_Marshal_Marshal_Recursive*& IT_t); - - -void operator<<= (CORBA::any &IT_a, const _IDL_SEQUENCE_Marshal_Marshal_Recursive& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, _IDL_SEQUENCE_Marshal_Marshal_Recursive*& IT_t); - - -void operator<<= (CORBA::any &IT_a, Marshal::discrim IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::discrim& IT_t); - - -void operator<<= (CORBA::any &IT_a, const _IDL_SEQUENCE_any& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, _IDL_SEQUENCE_any*& IT_t); - - -void operator<<= (CORBA::any &IT_a, const Marshal::Marshal_Struct& IT_t); -CORBA::Boolean operator>>= (const CORBA::any &IT_a, Marshal::Marshal_Struct*& IT_t); - - -#endif diff --git a/TAO/Benchmark/Marshal_Test/Orbix/marshal.idl b/TAO/Benchmark/Marshal_Test/Orbix/marshal.idl deleted file mode 100644 index 80b3ec9ab20..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/marshal.idl +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ - -// Interface for the marshal benchmark - -interface Marshal -{ - struct Marshal_Struct - { - short s; - long l; - char c; - octet o; - double d; - }; - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th, e_6th}; - - union Marshal_Union - switch (discrim) - { - case e_0th: - short s; - case e_1st: - long l; - case e_2nd: - char c; - case e_3rd: - octet o; - case e_4th: - double d; - default: // this will test typecode indirection - Marshal_Struct ms; - }; - - /* - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence OctetSeq; - typedef sequence CharSeq; - typedef sequence DoubleSeq; - typedef sequence StructSeq; - typedef sequence UnionSeq; - */ - // for testing sequences of Any - typedef sequence AnySeq; - - // testing recursive behavior - // complex. - struct Marshal_Recursive - { - // we use this to test the limited recursion allowed by IDL. This is an - // ideal test for indirected typecodes. - - // simulate a behavior of a list node - any value; - sequence next; - }; - - void test_short (in short s1, out short s2); // test a short - void test_long (in long l1, out long l2); // test a long - void test_octet (in octet o1, out octet o2); // test an octet - void test_char (in char c1, out char c2); // test a char - void test_double (in double d1, out double d2); // test a double - void test_struct (in Marshal_Struct ms1, out Marshal_Struct ms2); // test a - // struct - void test_union (in Marshal_Union u1, out Marshal_Union u2); // test a - // union. - void test_any (in any a1, out any a2); // test an Any - /* - void test_sequence (in ShortSeq ss1, in LongSeq ls1, in OctetSeq os1, in - CharSeq cs1, in DoubleSeq ds1, in StructSeq Ss1, in - UnionSeq us1, in AnySeq as1, - out ShortSeq ss2, out LongSeq ls2, out OctetSeq os2, out - CharSeq cs2, out DoubleSeq ds2, out StructSeq Ss2, out - UnionSeq us2, out AnySeq as2); - */ - void test_sequence (in AnySeq as1, out AnySeq as2); // this will result in a - // 3 level indirection - - // sequence, any, and its - // value type - void test_recursive (in Marshal_Recursive mr1, out Marshal_Recursive mr2); // - // very complicated -}; - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp deleted file mode 100644 index fcd4aead376..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp +++ /dev/null @@ -1,1338 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Orbix marshal benchmark -// -// = FILENAME -// orbix_marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -//#define USE_INIT -#include "orbix_marshal_client.h" - -#if !defined (__ACE_INLINE__) -#include "orbix_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(Orbix, orbix_marshal_client, "$Id$") - -int -Orbix_Marshal_Client_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA::Object_ptr target; - char *markerserver; - int mlen=0, slen=0; // length of marker and service name - -#if 0 - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv, "Orbix"); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } -#endif - - // create a marker server - if (options.service_name ()) - slen = ACE_OS::strlen (options.service_name ()); - if (options.object_name ()) - mlen = ACE_OS::strlen (options.object_name ()); - - if (slen > 0) - { - markerserver = new char [mlen+slen+1+1]; - ACE_OS::sprintf (markerserver, "%s:%s", (mlen ? options.object_name ():""), - options.service_name ()); - ACE_DEBUG ((LM_DEBUG, "markerserver = %s\n", markerserver)); - } - else // server name is required - { - markerserver = NULL; - } - - // get the obj ref by binding it to the specified host using the specified obj_name - try { - target = Marshal::_bind (markerserver, options.hostname ()); - } - catch (CORBA::SystemException &se) - { - cerr << "failed to bind: " << &se << endl; - return 0; - } - if (CORBA::is_nil (target)) - { - ACE_DEBUG ((LM_DEBUG, "bind call failed\n")); - return -1; - } - - this->ref_ = Marshal::_narrow (target); - if (CORBA::is_nil (this->ref_)) - { - ACE_DEBUG ((LM_DEBUG, "narrow to Marshal failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SII - return this->use_sii (options, results); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DII - return this->use_dii (options, results); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - // hopefully we are never here, else something is seriously wrong - return -1; -} - -int -Orbix_Marshal_Client_Proxy::use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the static invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = sii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = sii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = sii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = sii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = sii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = sii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = sii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = sii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = sii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = sii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - -int -Orbix_Marshal_Client_Proxy::use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the dynamic invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = dii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = dii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = dii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = dii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = dii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = dii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = dii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = dii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = dii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = dii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - - -// all helper functions : SII -int -Orbix_Marshal_Client_Proxy::sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Short s1, s2; - s1 = 3; - ref_->test_short (s1, s2); - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Long l1, l2; - l1 = 256; - ref_->test_long (l1, l2); - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_long success: l1 = %d, l2 = %d\n", l1, l2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - CORBA::Octet o1, o2; - o1 = (CORBA::Octet) 127; - ref_->test_octet (o1, o2); - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - CORBA::Char c1, c2; - c1 = 'B'; - ref_->test_char (c1, c2); - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - CORBA::Double d1, d2; - d1 = 3.1415; - ref_->test_double (d1, d2); - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - Marshal::Marshal_Struct ms1, ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - ref_->test_struct (ms1, ms2); - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct failed\n")); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms; - - // first test an enumerated case - // u1._d (Marshal::e_1st); Orbix does this on its own - u1.l (4567); - - ref_->test_union (u1, u2); - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) failed\n")); - return -1; - } - - // now test the default case - // In Orbix, setting each field like this will not work because the poor - // Union has no clue what discriminant it must set to. -#if 0 - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA::Octet) 127; - u1.ms ().d = 3.1415; -#endif - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u1.ms (ms); - - ref_->test_union (u1, u2); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) failed\n")); - return -1; - } -} - -int -Orbix_Marshal_Client_Proxy::sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - ref_->test_any (a1, a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_any success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any value match failed\n")); - return -1; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any failed due to typecode mismatch\n")); - } - return 0; -} - -int -Orbix_Marshal_Client_Proxy::sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u.ms (ms); - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - ref_->test_sequence (as1, as2); - - ACE_DEBUG ((LM_DEBUG, "SII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type ())) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "SII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - return 0; -} - -int -Orbix_Marshal_Client_Proxy::sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive failure\n")); - } - - return 0; -} - -// ------------------------------------------------------- -// all helper functions : DII -// ------------------------------------------------------- - -int -Orbix_Marshal_Client_Proxy::dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Short s1, s2; - - s1 = 3; - s2 = 0; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add (CORBA::ARG_IN)->value ()) <<= s1; - // this usage is also correct. All we care is to supply a storage area for - // the OUT parameter - // arglist->add (CORBA::ARG_OUT)->value ()->replace (CORBA::_tc_short, &s2); - *(arglist->add (CORBA::ARG_OUT)->value ()) <<= s2; - orb_->create_list(1, result_list); // 1 result - result = result_list->item (0); - - // create a request - ref_->_create_request(ctx, - "test_short", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= s2; - - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "DII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Long l1, l2; - - l1 = 256; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= l1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_long, &l2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_long", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= l2; - - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Octet o1, o2; - - o1 = (CORBA::Octet) 127; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_octet (o1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_octet, &o2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_octet", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_octet (o2); - - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Char c1, c2; - - c1 = 'B'; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_char (c1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_char, &c2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_char", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_char (c2); - - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Double d1, d2; - - d1 = 3.1415; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= d1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_double, &d2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_double", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= d2; - - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Struct ms1, *ms2=0; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= ms1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Struct, ms2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_struct", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= ms2; - - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Union u1, *u2 = 0; - Marshal::Marshal_Struct ms; - - - // first test an enumerated case - // u1._d (Marshal::e_1st); - u1.l (4567); - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if ( (u1._d () == u2->_d()) && (u1.l () == u2->l ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) failed\n")); - } - delete u2; - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - - // test the default case - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u1.ms (ms); - u2 = 0; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if (u1.ms ().s == u2->ms ().s && u1.ms ().l == u2->ms ().l && u1.ms ().c == u2->ms ().c && u1.ms ().o == u2->ms ().o && - u1.ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= a1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_any, a2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_any", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= (*a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any failed due to typecode mismatch\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u.ms (ms); - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - orb_->create_list(2, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= as1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_AnySeq, as2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_sequence", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= as2; - - ACE_DEBUG ((LM_DEBUG, "DII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type ())) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "DII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Orbix_Marshal_Client_Proxy::dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive failure\n")); - } - - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h deleted file mode 100644 index 9fce90ef265..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h +++ /dev/null @@ -1,125 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Orbix Benchmark -// -// = FILENAME -// orbix_marshal_client.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_ORBIX_MARSHAL_CLIENT_H_) -#define _ORBIX_MARSHAL_CLIENT_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// include Orbix specific include files -#include "marshal.h" // generated by IDL compiler - -class Orbix_Marshal_Client_Proxy : public CORBA_Marshal_Proxy -{ - // =TITLE - // Orbix_Marshal_Client_Proxy - // =DESCRIPTION - // Orbix client size specialization of the CORBA Marshal proxy class -public: - Orbix_Marshal_Client_Proxy (void); - // constructor - - ~Orbix_Marshal_Client_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work - - virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the static invocation interface - - virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the dynamic invocation interface -private: - // =helper functions - int sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - // all the DII helpers - int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - CORBA::ORB_ptr orb_; - // handle to the underlying orb - - Marshal_ptr ref_; - // the object reference -}; - -#if defined (__ACE_INLINE__) -#include "orbix_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i deleted file mode 100644 index a99b72db952..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - - -ACE_INLINE -Orbix_Marshal_Client_Proxy::Orbix_Marshal_Client_Proxy (void) - : orb_ (CORBA::ORB::_nil ()), - ref_ (0) -{ -} - -ACE_INLINE -Orbix_Marshal_Client_Proxy::~Orbix_Marshal_Client_Proxy (void) -{ - // releasing order is important - - // release the reference - CORBA::release (ref_); - - // release the ORB - CORBA::release (orb_); -} - - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp deleted file mode 100644 index 282d9e4f309..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp +++ /dev/null @@ -1,313 +0,0 @@ -// $Id$ - -#include "orbix_marshal_impl.h" - -#if !defined (__ACE_INLINE__) -#include "orbix_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(Orbix, orbix_marshal_impl, "$Id$") - -// All the methods of the SSI class -void -Marshal_SSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2, - CORBA::Environment &IT_env) -{ - s2 = 2*s1; -} - -void -Marshal_SSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2, - CORBA::Environment &IT_env) -{ - l2 = 3*l1; -} - -void -Marshal_SSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2, - CORBA::Environment &IT_env) -{ - o2 = o1; -} - -void -Marshal_SSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2, - CORBA::Environment &IT_env) -{ - c2 = c1; -} - -void -Marshal_SSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2, - CORBA::Environment &IT_env) -{ - d2 = d1/2; -} - -void -Marshal_SSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA::Environment &IT_env) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_SSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA::Environment &IT_env) -{ - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_SSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2, - CORBA::Environment &IT_env) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_SSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA::Environment &IT_env) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_SSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2, - CORBA::Environment &IT_env) -{ -} - -//---------------------------------------------------------------------------- -//the methods of the DSI implementation class - -void -Marshal_DSI_Impl::invoke (CORBA::ServerRequest& req, CORBA::Environment_ptr - ep, CORBA::Environment &IT_env) -{ - ACE_DEBUG ((LM_DEBUG, "************ inside invoke **********\n")); - // parse the incoming request and find out for what operation it is. We use a - // simple linear search here - if (!ACE_OS::strcmp (req.op_name (IT_env), "test_short")) - { - test_short_skel (req); - } - else if (!ACE_OS::strcmp (req.op_name (), "test_long")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_octet")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_char")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_double")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_struct")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_union")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_any")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_sequence")) - { - } -} - -void -Marshal_DSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2) -{ - s2 = 5*s1; -} - -void -Marshal_DSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2) -{ - l2 = l1; -} - -void -Marshal_DSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2) -{ - o2 = o1; -} - -void -Marshal_DSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2) -{ - c2 = c1; -} - -void -Marshal_DSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2) -{ - d2 = d1; -} - -void -Marshal_DSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_DSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2) -{ - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_DSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_DSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_DSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2) -{ -} - -// all the helper functions for the DSI class -void -Marshal_DSI_Impl::test_short_skel (CORBA::ServerRequest& req) -{ - CORBA::NVList_ptr short_nv; - CORBA::Any *any_s1, *any_s2; - CORBA::Short s1 = 0, s2 = 0; - - orb_->create_list (2, short_nv); // parse 2 args - any_s1 = new CORBA::Any (CORBA::_tc_short, &s1, 0); - any_s2 = new CORBA::Any (CORBA::_tc_short, &s2, 0); - short_nv->add_value ("s1", *any_s1, CORBA::ARG_IN); - short_nv->add_value ("s2", *any_s2, CORBA::ARG_OUT); - - req.params (short_nv); - - test_short (s1, s2); - ACE_DEBUG ((LM_DEBUG, ">>>>>>>s1 = %d and s2 = %d\n<<<<<<<<", s1, s2)); -} - -void -Marshal_DSI_Impl::test_long_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_octet_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_char_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_double_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_struct_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_union_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_any_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_sequence_skel (CORBA::ServerRequest& req) -{ -} - -void -Marshal_DSI_Impl::test_recursive_skel (CORBA::ServerRequest& req) -{ -} diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h deleted file mode 100644 index a74866173d8..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h +++ /dev/null @@ -1,191 +0,0 @@ -// $Id$ - -#if !defined (ORBIX_MARSHAL_IMPL_H) -#define ORBIX_MARSHAL_IMPL_H - -// to include DSI related files - -#include "ace/OS.h" - -#include "marshal.h" - - -class Marshal_SSI_Impl - : public virtual MarshalBOAImpl -{ - // =TITLE - // Marshal_SSI_Impl - // =DESCRIPTION - // Implementation of the interface using the static skeleton interface -public: - Marshal_SSI_Impl (const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_SSI_Impl (void); - // destructor - - virtual void test_short (CORBA::Short s1, - CORBA::Short& s2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test short - - virtual void test_long (CORBA::Long l1, - CORBA::Long& l2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test long - - virtual void test_octet (CORBA::Octet o1, - CORBA::Octet& o2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test octet - - virtual void test_char (CORBA::Char c1, - CORBA::Char& c2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test char - - virtual void test_double (CORBA::Double d1, - CORBA::Double& d2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test double - - virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test struct - - virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test union - - virtual void test_any (const CORBA::Any& a1, - CORBA::Any *& a2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test any - - /* - virtual void test_sequence (const Marshal::ShortSeq& s1, - const Marshal::LongSeq& l1, - const Marshal::OctetSeq& o1, - const Marshal::CharSeq& c1, - const Marshal::DoubleSeq& d1, - const Marshal::StructSeq& S1, - const Marshal::UnionSeq& U1, - const Marshal::AnySeq& a1, - Marshal::ShortSeq *& s2, - Marshal::LongSeq *& l2, - Marshal::OctetSeq *& o2, - Marshal::CharSeq *& c2, - Marshal::DoubleSeq *& d2, - Marshal::StructSeq *& S2, - Marshal::UnionSeq *& U2, - Marshal::AnySeq *& a2); - */ - virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test sequence - - virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - // test struct - -}; - -class Marshal_DSI_Impl : public CORBA::DynamicImplementation -{ - // =TITLE - // Marshal_DSI_Impl - // =DESCRIPTION - // Implementation of the interface using the dynamic skeleton interface -public: - Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_DSI_Impl (void); - // destructor - -private: - virtual void invoke (CORBA::ServerRequest& req, CORBA::Environment_ptr, - CORBA::Environment&IT_env = - CORBA::IT_chooseDefaultEnv()); - // This method is a must - - void test_short (CORBA::Short s1, - CORBA::Short& s2); - // test short - - void test_long (CORBA::Long l1, - CORBA::Long& l2); - // test long - - void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); - // test octet - - void test_char (CORBA::Char c1, - CORBA::Char& c2); - // test char - - void test_double (CORBA::Double d1, - CORBA::Double& d2); - // test double - - void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); - // test struct - - void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); - // test union - - void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); - // test any - - void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); - // test sequence - - void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); - // test struct - -private: - //= helper functions - they behave as if they were skeletons - void test_short_skel (CORBA::ServerRequest& req); - void test_long_skel (CORBA::ServerRequest& req); - void test_octet_skel (CORBA::ServerRequest& req); - void test_char_skel (CORBA::ServerRequest& req); - void test_double_skel (CORBA::ServerRequest& req); - void test_struct_skel (CORBA::ServerRequest& req); - void test_union_skel (CORBA::ServerRequest& req); - void test_any_skel (CORBA::ServerRequest& req); - void test_sequence_skel (CORBA::ServerRequest& req); - void test_recursive_skel (CORBA::ServerRequest& req); - - // we need the orb to create argument lists (NVList) for us - CORBA::ORB_ptr orb_; // not owned by us - -#if 0 - CORBA::NVList_ptr short_nv_; - CORBA::NVList_ptr long_nv_; - CORBA::NVList_ptr octet_nv_; - CORBA::NVList_ptr char_nv_; - CORBA::NVList_ptr double_nv_; - CORBA::NVList_ptr struct_nv_; - CORBA::NVList_ptr union_nv_; - CORBA::NVList_ptr any_nv_; - CORBA::NVList_ptr seq_nv_; - CORBA::NVList_ptr recursive_nv_; - CORBA::Any_ptr result_; // void result -#endif -}; - -#if defined (__ACE_INLINE__) -#include "orbix_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -#endif // defined (ORBIX_MARSHAL_IMPL_H) diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i deleted file mode 100644 index 0efa658c148..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.i +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Marshal_SSI_Impl::Marshal_SSI_Impl (const char *obj_name) - : MarshalBOAImpl (obj_name) -{ -} - -// destructor -ACE_INLINE -Marshal_SSI_Impl::~Marshal_SSI_Impl (void) -{ -} - -// constructor -ACE_INLINE -Marshal_DSI_Impl::Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *obj_name) - : orb_ (orb) -{ -} - -// destructor -ACE_INLINE -Marshal_DSI_Impl::~Marshal_DSI_Impl (void) -{ - orb_ = CORBA::ORB::_nil (); -} - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp deleted file mode 100644 index 205287577c1..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp +++ /dev/null @@ -1,97 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Orbix marshal benchmark -// -// = FILENAME -// orbix_marshal_server.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -//#define USE_INIT - -#include "orbix_marshal_server.h" - -#if !defined (__ACE_INLINE__) -#include "orbix_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(Orbix, orbix_marshal_server, "$Id$") - -int -Orbix_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - -#if 0 - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv, "Orbix"); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the argument list to be passed on to the BOA_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->boa_ = this->orb_->BOA_init (argc, (char *const *)argv, "Orbix_BOA"); - if (this->boa_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } -#endif - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SSI - this->ssi_ = new Marshal_SSI_Impl (options.object_name ()); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DSI - // this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ())); - this->dsi_ = new Marshal_DSI_Impl (&CORBA::Orbix, ACE_OS::strdup (options.object_name ())); - // register with the BOA - try { - // we need to do a setImpl - //this->boa_->setImpl ("Marshal", *this->dsi_); - CORBA::Orbix.setImpl ("Marshal", *this->dsi_); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception in obj_is_ready" << se << endl; - } - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, "Calling impl is ready\n")); - try { - // call impl_is_ready - // this->boa_->impl_is_ready ((char *)options.service_name ()); - CORBA::Orbix.impl_is_ready ("marshalDSI"); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception: " << se << endl; - } - - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h deleted file mode 100644 index 09a64b4bbc8..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Orbix Benchmark -// -// = FILENAME -// orbix_marshal_server.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_ORBIX_MARSHAL_SERVER_H_) -#define _ORBIX_MARSHAL_SERVER_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// implementation classes -#include "orbix_marshal_impl.h" - -// include Orbix specific include files -#include "marshal.h" // generated by IDL compiler - -class Orbix_Marshal_Server_Proxy : public CORBA_Marshal_Proxy -{ -public: - Orbix_Marshal_Server_Proxy (void); - // constructor - - ~Orbix_Marshal_Server_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work -private: - CORBA::ORB_ptr orb_; - // underlying orb; - - CORBA::BOA_ptr boa_; - // underlying boa; - - Marshal_SSI_Impl *ssi_; - Marshal_DSI_Impl *dsi_; - // the implementation (SSI or DSI) -}; - - -#if defined (__ACE_INLINE__) -#include "orbix_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i deleted file mode 100644 index 8219d7d5042..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.i +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Orbix_Marshal_Server_Proxy::Orbix_Marshal_Server_Proxy (void) - : orb_ (0), - boa_ (0), - ssi_ (0), - dsi_ (0) -{ -} - -// destructor -ACE_INLINE -Orbix_Marshal_Server_Proxy::~Orbix_Marshal_Server_Proxy (void) -{ - // releasing order is important - - // release the impl - delete ssi_; - delete dsi_; - - // release the BOA - CORBA::release (boa_); - - // release the ORB - CORBA::release (orb_); -} diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_client b/TAO/Benchmark/Marshal_Test/Orbix/run_client deleted file mode 100755 index b0f7503d7bc..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_client +++ /dev/null @@ -1,23 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T s -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T l -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T o -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T c -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T d -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T S -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T U -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T A -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T Q -#client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T R -# -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T s -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T l -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T o -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T c -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T d -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T S -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T U -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T A -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T Q - diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi b/TAO/Benchmark/Marshal_Test/Orbix/run_dsi deleted file mode 100755 index f44f488aee7..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi +++ /dev/null @@ -1,4 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -n marshalDSI -T s -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -n marshalDSI -T s diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server b/TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server deleted file mode 100755 index 19dc309e0dc..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_dsi_server +++ /dev/null @@ -1 +0,0 @@ -putit marshalDSI "${TAO_ROOT}/Benchmark/Marshal_Test/Orbix/server -R r -P D -I V -o dsi_marshal -n marshalDSI" \ No newline at end of file diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi b/TAO/Benchmark/Marshal_Test/Orbix/run_ssi deleted file mode 100755 index 9a1ca614e4e..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi +++ /dev/null @@ -1,4 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -o ssi_marshal -n marshalSSI -T s -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -o ssi_marshal -n marshalSSI -T s diff --git a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server b/TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server deleted file mode 100755 index a0af5a0dcf4..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/run_ssi_server +++ /dev/null @@ -1 +0,0 @@ -putit marshalSSI "${TAO_ROOT}/Benchmark/Marshal_Test/Orbix/server -R r -P S -I V -o ssi_marshal -n marshalSSI" \ No newline at end of file diff --git a/TAO/Benchmark/Marshal_Test/Orbix/server.cpp b/TAO/Benchmark/Marshal_Test/Orbix/server.cpp deleted file mode 100644 index 9a0696645d8..00000000000 --- a/TAO/Benchmark/Marshal_Test/Orbix/server.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "orbix_marshal_server.h" - -ACE_RCSID(Orbix, server, "$Id$") - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Orbix_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Orbix_Marshal_Server_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/TAO/Makefile b/TAO/Benchmark/Marshal_Test/TAO/Makefile deleted file mode 100644 index 845516695dd..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the Tao Marshal Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lACE -lbenchmark -lTAO - -PROG_SRCS = marshalC.cpp marshalS.cpp tao_marshal_client.cpp tao_marshal_server.cpp \ - tao_marshal_impl.cpp client.cpp server.cpp - -LSRC = $(PROG_SRCS) - -MARSHAL_CLIENT_OBJS = marshalC.o tao_marshal_client.o client.o - -MARSHAL_SERVER_OBJS = marshalC.o marshalS.o tao_marshal_impl.o tao_marshal_server.o server.o - -BIN = client server - -BUILD = $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -CPPFLAGS += -I$(TAO_ROOT) -I$(TAO_ROOT)/Benchmark -server: $(addprefix $(VDIR),$(MARSHAL_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(MARSHAL_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -clean: - rm -f core *.o *~ client server - $(MAKE) realclean - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/client.cpp b/TAO/Benchmark/Marshal_Test/TAO/client.cpp deleted file mode 100644 index 88cd1518329..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/client.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "tao_marshal_client.h" - -ACE_RCSID(TAO, client, "$Id$") - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Tao_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Tao_Marshal_Client_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshal.idl b/TAO/Benchmark/Marshal_Test/TAO/marshal.idl deleted file mode 100644 index 077a98e58fd..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshal.idl +++ /dev/null @@ -1,91 +0,0 @@ -// $Id$ - -// Interface for the marshal benchmark - -interface Marshal -{ - struct Marshal_Struct - { - short s; - long l; - char c; - octet o; - double d; - }; - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th, e_6th}; - - union Marshal_Union - switch (discrim) - { - case e_0th: - short s; - case e_1st: - long l; - case e_2nd: - char c; - case e_3rd: - octet o; - case e_4th: - double d; - case e_5th: - default: // this will test typecode indirection - Marshal_Struct ms; - }; - - /* - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence OctetSeq; - typedef sequence CharSeq; - typedef sequence DoubleSeq; - typedef sequence StructSeq; - typedef sequence UnionSeq; - */ - // for testing sequences of Any - typedef sequence AnySeq; - - // testing recursive behavior - // complex. - struct Marshal_Recursive - { - // we use this to test the limited recursion allowed by IDL. This is an - // ideal test for indirected typecodes. - - // simulate a behavior of a list node - any value; - sequence next; - }; - - void test_short (in short s1, out short s2); // test a short - void test_long (in long l1, out long l2); // test a long - void test_octet (in octet o1, out octet o2); // test an octet - void test_char (in char c1, out char c2); // test a char - void test_double (in double d1, out double d2); // test a double - void test_struct (in Marshal_Struct ms1, out Marshal_Struct ms2); // test a - // struct - void test_union (in Marshal_Union u1, out Marshal_Union u2); // test a - // union. - void test_any (in any a1, out any a2); // test an Any - /* - void test_sequence (in ShortSeq ss1, in LongSeq ls1, in OctetSeq os1, in - CharSeq cs1, in DoubleSeq ds1, in StructSeq Ss1, in - UnionSeq us1, in AnySeq as1, - out ShortSeq ss2, out LongSeq ls2, out OctetSeq os2, out - CharSeq cs2, out DoubleSeq ds2, out StructSeq Ss2, out - UnionSeq us2, out AnySeq as2); - */ - void test_sequence (in AnySeq as1, out AnySeq as2); // this will result in a - // 3 level indirection - - // sequence, any, and its - // value type - void test_recursive (in Marshal_Recursive mr1, out Marshal_Recursive mr2); // - // very complicated -}; - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp b/TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp deleted file mode 100644 index ca6b04d3d15..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalC.cpp +++ /dev/null @@ -1,589 +0,0 @@ -// $Id$ - -#include -#include "marshalC.h" - -ACE_RCSID(TAO, marshalC, "$Id$") - -// constructor -Marshal::Marshal(STUB_Object *refdata) - : CORBA_Object(refdata) -{ -} - -// static duplicate method -Marshal_ptr Marshal::_duplicate(Marshal_ptr obj) -{ - void *dupl; - - if (obj) - { - obj->AddRef(); - } - return obj; -} - -// static _narrow method -Marshal_ptr Marshal::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:Marshal:1.0", env)){ - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR){ - return Marshal::_nil(); - } - Marshal_ptr new_obj = new Marshal(istub); - return Marshal::_duplicate(new_obj); - } - return Marshal::_nil(); -} - -Marshal_ptr Marshal::_nil() -{ - return (Marshal_ptr)NULL; -} - -Marshal::Marshal_Union::Marshal_Union(const Marshal::Marshal_Union& obj) -{ - _disc = obj._d(); - switch (_disc) { - case e_0th: - __s = obj.__s; - break; - case e_1st: - __l = obj.__l; - break; - case e_2nd: - __c = obj.__c; - break; - case e_3rd: - __o = obj.__o; - break; - case e_4th: - __d = obj.__d; - break; - case e_5th: - default: - __ms = obj.__ms; - break; - } -} - -Marshal::Marshal_Union& Marshal::Marshal_Union::operator=(const Marshal::Marshal_Union& obj) -{ - _disc = obj._d(); - switch (_disc) { - case e_0th: - __s = obj.__s; - break; - case e_1st: - __l = obj.__l; - break; - case e_2nd: - __c = obj.__c; - break; - case e_3rd: - __o = obj.__o; - break; - case e_4th: - __d = obj.__d; - break; - case e_5th: - default: - __ms = obj.__ms; - break; - } - return *this; -} - -// AnySeq methods -Marshal::AnySeq::AnySeq (CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Any [this->_maximum]; - } else { - this->_buffer = 0; - } -} - -Marshal::AnySeq::AnySeq (CORBA_ULong max, CORBA_ULong length, - CORBA_Any *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -Marshal::AnySeq::~AnySeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void Marshal::AnySeq::length (CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Any *temp = new CORBA_Any [newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof (CORBA_Any))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Any)); - this->_length = newlen; -} - -CORBA_ULong Marshal::AnySeq::length() const -{ - return this->_length; -} - -CORBA_Any &Marshal::AnySeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Any& Marshal::AnySeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - - -/***************** TypeCodes **************/ -// In the typecode, all repoIDs and names are omitted by providing their length -// as 1 that stands for the NULL terminator - -// encapsulated parameters for struct Marshal_Struct typecode -static const CORBA_Long _oc_Marshal_Struct [] = { - MY_BYTE_SEX, // byte order - 1, 0, // repoID omitted (16, "IDL:Marshal/Marshal:1.0") - 1, 0, // struct name (15, "Marshal_Struct") omitted - 5, // 5 struct elements - - // short - 1, 0, // should be 2, "s", - tk_short, - - // long - 1, 0, // should be 2, "l", - tk_long, - - // char - 1, 0, // should be 2, "c", - tk_char, - - // octet - 1, 0, // should be 2, "o", - tk_octet, - - // double - 1, 0, // should be 2, "d", - tk_double, -}; - - -static CORBA_TypeCode _tc__tc_Marshal_Struct (tk_struct, - sizeof _oc_Marshal_Struct, - (unsigned char *) &_oc_Marshal_Struct, - 0); -CORBA_TypeCode_ptr Marshal::_tc_Marshal_Struct = &_tc__tc_Marshal_Struct; - - -static const CORBA_Long _oc_discrim [] = { - MY_BYTE_SEX, // byte order flag (TRICKY) - 1, 0, // should be 20, "IDL:Marshal/discrim", - 1, 0, // should be 8, "discrim", - 7, // 7 elements in the enum - - 1, 0, // 6, "e_0th", // omitted member name, "e_0th" - 1, 0, // 6, "e_1st", // omitted member name, "e_1st" - 1, 0, // 6, "e_2nd", // omitted member name, "e_2nd" - 1, 0, // 6, "e_3rd", // omitted member name, "e_3rd" - 1, 0, // 6, "e_4th", // omitted member name, "e_4th" - 1, 0, // 6, "e_5th", // omitted member name, "e_5th" - 1, 0 //6, "e_6th" // omitted member name, "e_6th" -}; - -static CORBA_TypeCode _tc__tc_discrim (tk_enum, - sizeof _oc_discrim, - (unsigned char *) &_oc_discrim, - 0); - -CORBA_TypeCode_ptr Marshal::_tc_discrim = &_tc__tc_discrim; - -// Union -static const CORBA_Long _oc_Marshal_Union [] = -{ - MY_BYTE_SEX, // byte order flag (TRICKY) - 1, 0, // 26, "IDL:Marshal/Marshal_Union", // omitted repository/type ID - 1, 0, // 14, "Marshal_Union", // union name - - // - // discriminant typecode: - // - - tk_enum, // tk_enum - 80, // encapsulation length - MY_BYTE_SEX, - 1, 0, // repoID - 1, 0, // name - 7, // 7 elements in the enum - - 1, 0, // e_Oth - 1, 0, - 1, 0, - 1, 0, - 1, 0, - 1, 0, - 1, 0, // e_6th - - 5, // default member index (zero based) - 6, // number of union members - - // the 1st union branch arm - Marshal::e_0th, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 2nd union branch arm - Marshal::e_1st, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 3rd union branch arm - Marshal::e_2nd, // member label value - 1, 0, // omitted member name, "c" - tk_char, // member typecode - - // the 4th union branch arm - Marshal::e_3rd, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 5th union branch arm - Marshal::e_4th, // member label value - 1, 0, // omitted member name, "d" - tk_double, - - // the 6th union branch - Marshal::e_5th, // member label value - 1, 0, // omitted member name, "ms" - tk_struct, // tk_struct - 84, // encapsulation length - - MY_BYTE_SEX, // byte order - 1, 0, // repoID omitted (16, "IDL:Marshal/Marshal:1.0") - 1, 0, // struct name (15, "Marshal_Struct") omitted - 5, // 5 struct elements - - // short - 1, 0, // should be 2, "s", - tk_short, - - // long - 1, 0, // should be 2, "l", - tk_long, - - // char - 1, 0, // should be 2, "c", - tk_char, - - // octet - 1, 0, // should be 2, "o", - tk_octet, - - // double - 1, 0, // should be 2, "d", - tk_double, - - // default case - 6, // 7th member, default index val - 1, 0, // struct name "ms" - ~0, // indirected typecode - -108 // has to point to tk_struct in this stream -}; - -static CORBA_TypeCode _tc__tc_Marshal_Union (tk_union, - sizeof _oc_Marshal_Union, - (unsigned char *) &_oc_Marshal_Union, - 0); - -CORBA_TypeCode_ptr Marshal::_tc_Marshal_Union = &_tc__tc_Marshal_Union; - -// AnySeq -static const CORBA_Long _oc_AnySeq [] = { - MY_BYTE_SEX, // byte order - tk_any, // sequence of any - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_AnySeq (tk_sequence, - sizeof - _oc_AnySeq, - (unsigned char *) - &_oc_AnySeq, - 0); - -CORBA_TypeCode_ptr Marshal::_tc_AnySeq = &_tc__tc_AnySeq; - -/***************** All the methods ********************/ -// test_short -static const TAO_Param_Data marshal_test_short_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Short, PARAM_IN, 0}, - {_tc_CORBA_Short, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_short_calldata = { - "test_short", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_short_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_short (CORBA_Short s1, CORBA_Short &s2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_short_calldata, 0, &s1, &s2); -} - -// test_long -static const TAO_Param_Data marshal_test_long_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Long, PARAM_IN, 0}, - {_tc_CORBA_Long, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_long_calldata = { - "test_long", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_long_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_long (CORBA_Long l1, CORBA_Long &l2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_long_calldata, 0, &l1, &l2); -} - -// test_octet -static const TAO_Param_Data marshal_test_octet_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Octet, PARAM_IN, 0}, - {_tc_CORBA_Octet, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_octet_calldata = { - "test_octet", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_octet_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_octet (CORBA_Octet o1, CORBA_Octet &o2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_octet_calldata, 0, &o1, &o2); -} - -// test_char -static const TAO_Param_Data marshal_test_char_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Char, PARAM_IN, 0}, - {_tc_CORBA_Char, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_char_calldata = { - "test_char", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_char_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_char (CORBA_Char c1, CORBA_Char &c2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_char_calldata, 0, &c1, &c2); -} - -// test_double -static const TAO_Param_Data marshal_test_double_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Double, PARAM_IN, 0}, - {_tc_CORBA_Double, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_double_calldata = { - "test_double", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_double_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_double (CORBA_Double d1, CORBA_Double &d2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call (env, &marshal_test_double_calldata, 0, &d1, &d2); -} - -// test_struct -static const TAO_Param_Data marshal_test_struct_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {Marshal::_tc_Marshal_Struct, PARAM_IN, 0}, - {Marshal::_tc_Marshal_Struct, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_struct_calldata = { - "test_struct", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_struct_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_struct (const Marshal::Marshal_Struct &ms1, Marshal::Marshal_Struct - &ms2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_struct_calldata, 0, &ms1, &ms2); -} - -// test_union -static const TAO_Param_Data marshal_test_union_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {Marshal::_tc_Marshal_Union, PARAM_IN, 0}, - {Marshal::_tc_Marshal_Union, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_union_calldata = { - "test_union", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_union_paramdata [0], // - 0, 0 -}; - -// The stub -void Marshal::test_union (const Marshal_Union &u1, Marshal::Marshal_Union - &u2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call (env, &marshal_test_union_calldata, 0, &u1, &u2); -} - -// test_any -static const TAO_Param_Data marshal_test_any_paramdata [] = { - {_tc_CORBA_Void, PARAM_RETURN, 0}, - {_tc_CORBA_Any, PARAM_IN, 0}, - {_tc_CORBA_Any, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_any_calldata = { - "test_any", // op_name - 1, // twoway, although it returns void - 3, // param count - & marshal_test_any_paramdata[0], // - 0, 0 -}; - -// The stub -void Marshal::test_any (const CORBA_Any &a1, CORBA_Any *&a2, CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_any_calldata, 0, &a1, &a2); -} - -// test_sequence -static const TAO_Param_Data marshal_test_sequence_paramdata [] = { - { _tc_CORBA_Void, PARAM_RETURN, 0}, - { Marshal::_tc_AnySeq, PARAM_IN, 0}, - { Marshal::_tc_AnySeq, PARAM_OUT, 0} -}; - -static const TAO_Call_Data marshal_test_sequence_calldata = { - "test_sequence", // opname - 1, // twoway - 2, // param count - &marshal_test_sequence_paramdata [0], - 0, 0 -}; - -// stub -void Marshal::test_sequence (const Marshal::AnySeq &as1, Marshal::AnySeq *&as2, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - // twoway - istub->do_call(env, &marshal_test_sequence_calldata, 0, &as1, &as2); -} - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalC.h b/TAO/Benchmark/Marshal_Test/TAO/marshalC.h deleted file mode 100644 index 0831bd7f2b6..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalC.h +++ /dev/null @@ -1,196 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef MARSHAL_C_H -#define MARSHAL_C_H - -#include -#include - -#include "tao/orb.h" -#include "tao/orbobj.h" -#include "tao/object.h" -#include "tao/stub.h" -#include "tao/typecode.h" -#include "tao/cdr.h" - -class Marshal; -typedef Marshal *Marshal_ptr; -typedef Marshal_ptr MarshalRef; - -class Marshal: public virtual CORBA_Object -{ -public: - static Marshal_ptr _duplicate (Marshal_ptr obj); - static Marshal_ptr _narrow (CORBA_Object_ptr obj); - static Marshal_ptr _nil (); - - struct Marshal_Struct { - CORBA_Short s; - CORBA_Long l; - CORBA_Char c; - CORBA_Octet o; - CORBA_Double d; - }; - static CORBA_TypeCode_ptr _tc_Marshal_Struct; - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th, - e_6th - }; - - static CORBA_TypeCode_ptr _tc_discrim; - - class Marshal_Union - { - private: - discrim _disc; - CORBA_Short __s; - CORBA_Long __l; - CORBA_Char __c; - CORBA_Octet __o; - CORBA_Double __d; - Marshal::Marshal_Struct __ms; - public: - Marshal_Union() : _disc(discrim(0)) {} - ~Marshal_Union() {} - Marshal_Union(const Marshal_Union& obj); - Marshal_Union& operator=(const Marshal_Union& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void s(CORBA_Short val) { - __s = val; - _disc = Marshal::e_0th; - } - CORBA_Short s() const { return __s; } - - void l(CORBA_Long val) { - __l = val; - _disc = Marshal::e_1st; - } - CORBA_Long l() const { return __l; } - - void c(CORBA_Char val) { - __c = val; - _disc = Marshal::e_2nd; - } - CORBA_Char c() const { return __c; } - - void o(CORBA_Octet val) { - __o = val; - _disc = Marshal::e_3rd; - } - CORBA_Octet o() const { return __o; } - - void d(CORBA_Double val) { - __d = val; - _disc = Marshal::e_4th; - } - CORBA_Double d() const { return __d; } - - void ms(const Marshal::Marshal_Struct& val) { - __ms = val; - _disc = Marshal::e_5th; - } - const Marshal::Marshal_Struct& ms() const { return __ms; } - Marshal::Marshal_Struct& ms() { return __ms; } - - }; - - static CORBA_TypeCode_ptr _tc_Marshal_Union; - - class AnySeq - { - public: - static CORBA_Any *allocbuf (CORBA_ULong nelems); - static void freebuf (CORBA_Any *data); - AnySeq (CORBA_ULong max=0); - AnySeq (CORBA_ULong max, - CORBA_ULong length, - CORBA_Any *value, - CORBA_Boolean release = 0 - ); - // AnySeq (const AnySeq&); - ~AnySeq (); - CORBA_ULong maximum () const; - void length (CORBA_ULong); - CORBA_ULong length () const; - CORBA_Any &operator[] (CORBA_ULong index); - const CORBA_Any &operator[] (CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Any *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_AnySeq; - - - // now the methods - virtual void test_short(CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - - virtual void test_long(CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - - virtual void test_octet(CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - - virtual void test_char(CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - - virtual void test_double(CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - - virtual void test_struct(const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - - virtual void test_union(const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - - virtual void test_any(const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - - virtual void test_sequence(const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env); - -#if 0 - virtual void test_recursive(const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); -#endif - -protected: - Marshal() {} - Marshal(STUB_Object *refdata); - virtual ~Marshal() {} - -private: - Marshal(const Marshal &) {} - void operator=(const Marshal &) {} -}; - -#endif - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp b/TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp deleted file mode 100644 index 79d20c6f21f..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalS.cpp +++ /dev/null @@ -1,172 +0,0 @@ -// $Id$ - -#include -#include "marshalS.h" - -ACE_RCSID(TAO, marshalS, "$Id$") - -static const TAO_operation_db_entry Marshal_operations[] = { - {"_is_a", &_skel_Marshal::_Marshal_is_a_skel}, - { "test_short", &_skel_Marshal::_Marshal_test_short_skel}, - { "test_long", &_skel_Marshal::_Marshal_test_long_skel}, - { "test_octet", &_skel_Marshal::_Marshal_test_octet_skel}, - { "test_char", &_skel_Marshal::_Marshal_test_char_skel}, - { "test_double", &_skel_Marshal::_Marshal_test_double_skel}, - { "test_struct", &_skel_Marshal::_Marshal_test_struct_skel}, - { "test_union", &_skel_Marshal::_Marshal_test_union_skel}, - { "test_any", &_skel_Marshal::_Marshal_test_any_skel}, - { "test_sequence", &_skel_Marshal::_Marshal_test_sequence_skel}, - { 0, 0 } -}; - -TAO_Dynamic_Hash_OpTable tao_Marshal_optable(Marshal_operations, 10, - // 9 + 1 operations on our - // interface - 20); -// constructor -_skel_Marshal::_skel_Marshal (const char *obj_name) -{ - const CORBA_String repoID = "IDL:Marshal:1.0"; // repository ID - IIOP_Object *data; // IIOP object - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); // underlying BOA - this->optable_ = &tao_Marshal_optable; // operation database - CORBA_Long i; - - // setup an IIOP object - data = new IIOP_Object (CORBA_string_dup (repoID)); - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - ACE_OS::memcpy (data->profile.object_key.buffer, obj_name, - data->profile.object_key.length); // set the object key - this->set_parent(data); // store the IIOP obj reference with ourselves - this->sub_ = this; // set the most derived class to be ourselves - if (oa) oa->bind(data->profile.object_key, this);// register ourselves -} - -// skeletons -void _skel_Marshal::_Marshal_test_short_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -#if 0 - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(_tc_CORBA_Short); - Marshal_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - Marshal::ShortSeq *value = (Marshal::ShortSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (Marshal_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendShortSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -#endif - - // One immediate thought is to do the following: - // define a specialized marshal factory derived from TAO_Marshal_Factory - // then: - // CDR compiledStream (req._incoming.next, req._incoming.remaining, - // byte_order, consume_buf = 0, instance of our marshal factory -} - -void _skel_Marshal::_Marshal_test_long_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_char_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_double_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_struct_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_union_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_any_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_test_sequence_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ -} - -void _skel_Marshal::_Marshal_is_a_skel ( - CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env - ) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - char *type_id = "IDL:Marshal:1.0"; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *)nv->value ()->value (); - - cout << "object id = " << ((char *)value) << endl; - if (strcmp ((char *)value, (char *)type_id) == 0 - || strcmp ((char *)value, _tc_CORBA_Object->id(env)) == 0) - retval = new CORBA_Boolean (1); - else - retval = new CORBA_Boolean (0); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Boolean, retval, 1); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalS.h b/TAO/Benchmark/Marshal_Test/TAO/marshalS.h deleted file mode 100644 index 4f34a11d0ab..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalS.h +++ /dev/null @@ -1,110 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef MARSHAL_S_H -#define MARSHAL_S_H - -#include -#include - -#include "marshalC.h" -#include "tao/connect.h" -#include "tao/orb.h" -#include "tao/params.h" -#include "tao/iiopobj.h" -#include "tao/optable.h" // for registering our methods -#include "tao/corbacom.h" -#include "tao/nvlist.h" -#include "tao/orbobj.h" -#include "tao/debug.h" - - -class _skel_Marshal; -typedef _skel_Marshal *_skel_Marshal_ptr; -typedef _skel_Marshal *_skel_Marshal_ref; - -class _skel_Marshal: public Marshal -{ -public: - // pure virtual functions implemented by the implementation class - virtual void test_short(CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env) = 0; - - virtual void test_long(CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env) = 0; - - virtual void test_octet(CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env) = 0; - - virtual void test_char(CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env) = 0; - - virtual void test_double(CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env) = 0; - - virtual void test_struct(const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) = 0; - - virtual void test_union(const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env) = 0; - - virtual void test_any(const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env) = 0; - - virtual void test_sequence(const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) = 0; - - - // skeletons that do the upcall - static void _Marshal_is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_char_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_double_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_any_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_Marshal (const char *obj_name = 0); - virtual ~_skel_Marshal () {} -}; - -#endif - - - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/server.cpp b/TAO/Benchmark/Marshal_Test/TAO/server.cpp deleted file mode 100644 index a992752cda8..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/server.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "tao_marshal_server.h" - -ACE_RCSID(TAO, server, "$Id$") - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Tao_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Tao_Marshal_Server_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp deleted file mode 100644 index a48959e2200..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp +++ /dev/null @@ -1,1428 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Tao marshal benchmark -// -// = FILENAME -// tao_marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include -#include -#include "tao_marshal_client.h" - -#if !defined (__ACE_INLINE__) -#include "tao_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(TAO, tao_marshal_client, "$Id$") - -int -Tao_Marshal_Client_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA_Object_ptr target; - CORBA_Environment env; - CORBA_String str; // IOR - fstream iorfile; // persistent storage - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA_ORB_init (argc, (char *const *)argv, "IOR", env); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - str = CORBA_string_alloc(500); - - // read the IOR from the file ior.txt - iorfile.open("ior.txt", ios::in); - iorfile >> ((char *)str); - iorfile.close(); - - cout << "Read IOR string as: " << ((char *)str) << endl; - - target = this->orb_->string_to_object(str, env); - if (env.exception() != 0){ - ACE_DEBUG ((LM_ERROR, "str to obj failed")); - return 1; - } - CORBA_string_free(str); - -#if 0 - // get the obj ref by binding it to the specified host using the specified obj_name - target = Marshal::_bind (options.object_name (), options.hostname ()); - if (CORBA_is_nil (target)) - { - ACE_DEBUG ((LM_DEBUG, "bind call failed\n")); - return -1; - } -#endif - - this->ref_ = Marshal::_narrow (target); - if (CORBA_is_nil (this->ref_)) - { - ACE_DEBUG ((LM_DEBUG, "narrow to Marshal failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SII - return this->use_sii (options, results); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DII - return this->use_dii (options, results); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - // hopefully we are never here, else something is seriously wrong - return -1; -} - -int -Tao_Marshal_Client_Proxy::use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the static invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = sii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = sii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = sii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = sii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = sii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = sii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = sii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = sii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = sii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = sii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - -int -Tao_Marshal_Client_Proxy::use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the dynamic invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = dii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = dii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = dii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = dii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = dii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = dii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = dii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = dii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = dii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = dii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - - -// all helper functions : SII -int -Tao_Marshal_Client_Proxy::sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA_Short s1, s2; - CORBA_Environment env; - - s1 = 3; - ref_->test_short (s1, s2, env); - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA_Long l1, l2; - CORBA_Environment env; - - l1 = 256; - ref_->test_long (l1, l2, env); - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "SII test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - CORBA_Octet o1, o2; - CORBA_Environment env; - - o1 = (CORBA_Octet) 127; - ref_->test_octet (o1, o2, env); - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - CORBA_Char c1, c2; - CORBA_Environment env; - - c1 = 'B'; - ref_->test_char (c1, c2, env); - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - CORBA_Double d1, d2; - CORBA_Environment env; - - d1 = 3.1415; - ref_->test_double (d1, d2, env); - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - ref_->test_struct (ms1, ms2, env); - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct failed\n")); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - ref_->test_union (u1, u2, env); - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) failed\n")); - } - - // now test the default case - u1._d (Marshal::e_6th); // this case doesn't exist which will lead to using - // the default case - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA_Octet) 127; - u1.ms ().d = 3.1415; - - ref_->test_union (u1, u2, env); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) failed\n")); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we send a struct thru the any - CORBA_Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - CORBA_Environment env; - - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - // a1 <<= ms1; // not in TAO yet - a1.replace (Marshal::_tc_Marshal_Struct, &ms1, 0, env); - - a2 = new CORBA_Any; - - // now test it - ref_->test_any (a1, a2, env); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct, env)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any failed due to typecode mismatch\n")); - } - return 0; -} - -int -Tao_Marshal_Client_Proxy::sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - CORBA_Environment env; - - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA_Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA_Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - -#if 0 // to be supported later - as1[0] <<= (CORBA_Short)3; - as1[1] <<= (CORBA_Long) 256; - as1[2] <<= CORBA_Any::from_octet ((CORBA_Octet)127); - as1[3] <<= CORBA_Any::from_char ('B'); - as1[4] <<= (CORBA_Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union -#endif - as1[0].replace (_tc_CORBA_Short, new CORBA_Short (3), 1, env); - as1[1].replace (_tc_CORBA_Long, new CORBA_Long (256), 1, env); - as1[2].replace (_tc_CORBA_Octet, new CORBA_Octet ((CORBA_Octet)127), 1, env); - as1[3].replace (_tc_CORBA_Char, new CORBA_Char ('B'), 1, env); - as1[4].replace (_tc_CORBA_Double, new CORBA_Double (3.1415), 1, env); - as1[5].replace (Marshal::_tc_Marshal_Struct, new Marshal::Marshal_Struct - (ms), 1, env); - as1[6].replace (Marshal::_tc_Marshal_Union, new Marshal::Marshal_Union (u), 1, env); - - as2 = new Marshal::AnySeq; - - ref_->test_sequence (as1, as2, env); - - ACE_DEBUG ((LM_DEBUG, "SII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type (), env)) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA_Short *)as1[i].value () == *(CORBA_Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA_Long *)as1[i].value () == *(CORBA_Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA_Octet *)as1[i].value () == *(CORBA_Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA_Char *)as1[i].value () == *(CORBA_Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA_Double *)as1[i].value () == *(CORBA_Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "SII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - return 0; -} - -#if 0 -int -Tao_Marshal_Client_Proxy::sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - CORBA_Environment env; - - - mr1.value <<= (CORBA_Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA_Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2, env); - } - catch (CORBA_SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA_Long *)mr1.value.value () == *(CORBA_Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA_Char *)elem1->value.value () == *(CORBA_Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive failure\n")); - } - - return 0; -} -#endif - -// ------------------------------------------------------- -// all helper functions : DII -// ------------------------------------------------------- - -int -Tao_Marshal_Client_Proxy::dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Short s1, s2; - CORBA_Environment env; - - s1 = 3; - s2 = 0; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add (CORBA_ARG_IN)->value ()) <<= s1; - arglist->add_value ("s1", CORBA_Any (_tc_CORBA_Short, &s1, 0), - CORBA_ARG_IN, env); - // this usage is also correct. All we care is to supply a storage area for - // the OUT parameter - // arglist->add (CORBA_ARG_OUT)->value ()->replace (CORBA__tc_short, &s2); - // *(arglist->add (CORBA_ARG_OUT)->value ()) <<= s2; - arglist->add_value ("s2", CORBA_Any (_tc_CORBA_Short, &s2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item (0); - - // create a request - ref_->_create_request(//ctx, - "test_short", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= s2; - s2 = *(CORBA_Short *)arglist->item(1)->value()->value(); - - if (s2 == 2*s1) - { - ACE_DEBUG ((LM_DEBUG, "DII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Long l1, l2; - CORBA_Environment env; - - l1 = 256; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= l1; - arglist->add_value ("l1", CORBA_Any (_tc_CORBA_Long, &l1, 0), - CORBA_ARG_IN, env); - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_long, &l2); - arglist->add_value ("l2", CORBA_Any (_tc_CORBA_Long, &l2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_long", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= l2; - l2 = *(CORBA_Long *)arglist->item (1)->value ()->value (); - - if (l2 == 3*l1) - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Octet o1, o2; - CORBA_Environment env; - - o1 = (CORBA_Octet) 127; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= CORBA_Any::from_octet (o1); - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_octet, &o2); - arglist->add_value ("o1", CORBA_Any (_tc_CORBA_Octet, &o1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("o2", CORBA_Any (_tc_CORBA_Octet, &o2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_octet", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= CORBA_Any::to_octet (o2); - o2 = *(CORBA_Octet *)arglist->item (1)->value ()->value (); - - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Char c1, c2; - CORBA_Environment env; - - c1 = 'B'; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= CORBA_Any::from_char (c1); - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_char, &c2); - arglist->add_value ("c1", CORBA_Any (_tc_CORBA_Char, &c1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("c2", CORBA_Any (_tc_CORBA_Char, &c2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_char", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= CORBA_Any::to_char (c2); - c2 = *(CORBA_Char *)arglist->item (1)->value ()->value (); - - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - CORBA_Double d1, d2; - CORBA_Environment env; - - d1 = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= d1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_double, &d2); - arglist->add_value ("d1", CORBA_Any (_tc_CORBA_Double, &d1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("d2", CORBA_Any (_tc_CORBA_Double, &d2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_double", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= d2; - d2 = *(CORBA_Double *)arglist->item (1)->value ()->value (); - - if (d2 == d1/2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= ms1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Struct, &ms2); - arglist->add_value ("ms1", CORBA_Any (Marshal::_tc_Marshal_Struct, &ms1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("ms2", CORBA_Any (Marshal::_tc_Marshal_Struct, &ms2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_struct", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= ms2; - ms2 = *(Marshal::Marshal_Struct *)arglist->item (1)->value ()->value (); - - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct failed\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - CORBA_Environment env; - - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= u1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - arglist->add_value ("u1", CORBA_Any (Marshal::_tc_Marshal_Union, &u1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("u2", CORBA_Any (Marshal::_tc_Marshal_Union, &u2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_union", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= u2; - u2 = *(Marshal::Marshal_Union *)arglist->item (1)->value ()->value (); - - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) failed\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - - // now test the default case - u1._d (Marshal::e_5th); // e_6th doesn't work - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA_Octet) 127; - u1.ms ().d = 3.1415; - - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= u1; - //arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - arglist->add_value ("u1", CORBA_Any (Marshal::_tc_Marshal_Union, &u1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("u2", CORBA_Any (Marshal::_tc_Marshal_Union, &u2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_union", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= u2; - u2 = *(Marshal::Marshal_Union *)arglist->item (1)->value ()->value (); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) failed\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - // we send a struct thru the any - CORBA_Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - CORBA_Environment env; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA_Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - // a1 <<= ms1; - a1.replace (Marshal::_tc_Marshal_Struct, &ms1, 0, env); - - a2 = new CORBA_Any; - - // now test it - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= a1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (CORBA__tc_any, a2); - arglist->add_value ("a1", CORBA_Any (_tc_CORBA_Any, &a1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("a2", CORBA_Any (_tc_CORBA_Any, a2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_any", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= (*a2); - a2->replace (_tc_CORBA_Any, (CORBA_Any *)arglist->item (1)->value ()->value - (), 1, env); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct, env)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any failed due to typecode mismatch\n")); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -int -Tao_Marshal_Client_Proxy::dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA_Request_ptr request = 0; //CORBA_Request::_nil(); // DII request - CORBA_NVList_ptr arglist = 0; //CORBA_NVList::_nil(); // argument list - // CORBA_Context_ptr ctx = CORBA_Context::_nil(); // context - CORBA_NVList_ptr result_list = 0; //CORBA_NVList::_nil(); // result list - CORBA_NamedValue_ptr result = 0; //CORBA_NamedValue::_nil();// actual result - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - CORBA_Environment env; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA_Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA_Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - -#if 0 - as1[0] <<= (CORBA_Short)3; - as1[1] <<= (CORBA_Long) 256; - as1[2] <<= CORBA_Any::from_octet ((CORBA_Octet)127); - as1[3] <<= CORBA_Any::from_char ('B'); - as1[4] <<= (CORBA_Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union -#endif - as1[0].replace (_tc_CORBA_Short, new CORBA_Short (3), 1, env); - as1[1].replace (_tc_CORBA_Long, new CORBA_Long (256), 1, env); - as1[2].replace (_tc_CORBA_Octet, new CORBA_Octet ((CORBA_Octet)127), 1, env); - as1[3].replace (_tc_CORBA_Char, new CORBA_Char ('B'), 1, env); - as1[4].replace (_tc_CORBA_Double, new CORBA_Double (3.1415), 1, env); - as1[5].replace (Marshal::_tc_Marshal_Struct, new Marshal::Marshal_Struct - (ms), 1, env); - as1[6].replace (Marshal::_tc_Marshal_Union, new Marshal::Marshal_Union (u), 1, env); - - as2 = new Marshal::AnySeq; - - orb_->create_list(0, arglist); // 2 arguments to be added - // *(arglist->add(CORBA_ARG_IN)->value()) <<= as1; - // arglist->add(CORBA_ARG_OUT)->value()->replace (Marshal::_tc_AnySeq, as2); - arglist->add_value ("as1", CORBA_Any (Marshal::_tc_AnySeq, &as1, 0), - CORBA_ARG_IN, env); - arglist->add_value ("o2", CORBA_Any (Marshal::_tc_AnySeq, as2, 0), - CORBA_ARG_OUT, env); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(//ctx, - "test_sequence", - arglist, - result, - request, - 0, env); - - request->invoke (); // 2 way - // *(arglist->item(1)->value()) >>= (*as2); - *as2 = *(Marshal::AnySeq *)arglist->item (1)->value ()->value (); - - ACE_DEBUG ((LM_DEBUG, "DII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { - if (as1[i].type ()->equal ((*as2)[i].type (), env)) - { - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA_Short *)as1[i].value () == *(CORBA_Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA_Long *)as1[i].value () == *(CORBA_Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA_Octet *)as1[i].value () == *(CORBA_Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA_Char *)as1[i].value () == *(CORBA_Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA_Double *)as1[i].value () == *(CORBA_Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on unions match\n")); - } - } - break; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, - "DII test_sequence: typecode mismatch for element %d\n", i)); - break; - } - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - CORBA_release (request); - CORBA_release (arglist); - CORBA_release (result); - CORBA_release (result_list); - return 0; -} - -#if 0 -int -Tao_Marshal_Client_Proxy::dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA_Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA_Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA_SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA_Long *)mr1.value.value () == *(CORBA_Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA_Char *)elem1->value.value () == *(CORBA_Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive failure\n")); - } - - return 0; -} -#endif diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h deleted file mode 100644 index d7b8269b2c2..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Tao Benchmark -// -// = FILENAME -// tao_marshal_client.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_TAO_MARSHAL_CLIENT_H_) -#define _TAO_MARSHAL_CLIENT_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// include Tao specific include files -#include "marshalC.h" // generated by IDL compiler -#include "tao/nvlist.h" - -class Tao_Marshal_Client_Proxy : public CORBA_Marshal_Proxy -{ - // =TITLE - // Tao_Marshal_Client_Proxy - // =DESCRIPTION - // Tao client size specialization of the CORBA Marshal proxy class -public: - Tao_Marshal_Client_Proxy (void); - // constructor - - ~Tao_Marshal_Client_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work - - virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the static invocation interface - - virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the dynamic invocation interface -private: - // =helper functions - int sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - // all the DII helpers - int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - CORBA_ORB_ptr orb_; - // handle to the underlying orb - - Marshal_ptr ref_; - // the object reference -}; - -#if defined (__ACE_INLINE__) -#include "tao_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i deleted file mode 100644 index 5fcdc2e209f..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - - -ACE_INLINE -Tao_Marshal_Client_Proxy::Tao_Marshal_Client_Proxy (void) - : orb_ (0), - ref_ (0) -{ -} - -ACE_INLINE -Tao_Marshal_Client_Proxy::~Tao_Marshal_Client_Proxy (void) -{ - // releasing order is important - - // release the reference - CORBA_release (ref_); - - // release the ORB - CORBA_release (orb_); -} - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp deleted file mode 100644 index 60a6f42eac6..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp +++ /dev/null @@ -1,654 +0,0 @@ -// $Id$ - -#include "tao_marshal_impl.h" - -#if !defined (__ACE_INLINE__) -#include "tao_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(TAO, tao_marshal_impl, "$Id$") - -// All the methods of the SSI class -void -Marshal_SSI_Impl::test_short (CORBA_Short s1, - CORBA_Short &s2, - CORBA_Environment &env) -{ - s2 = 2*s1; -} - -void -Marshal_SSI_Impl::test_long (CORBA_Long l1, - CORBA_Long &l2, - CORBA_Environment &env) -{ - l2 = 3*l1; -} - -void -Marshal_SSI_Impl::test_octet (CORBA_Octet o1, - CORBA_Octet &o2, - CORBA_Environment &env) -{ - o2 = o1; -} - -void -Marshal_SSI_Impl::test_char (CORBA_Char c1, - CORBA_Char &c2, - CORBA_Environment &env) -{ - c2 = c1; -} - -void -Marshal_SSI_Impl::test_double (CORBA_Double d1, - CORBA_Double &d2, - CORBA_Environment &env) -{ - d2 = d1/2; -} - -void -Marshal_SSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_SSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_SSI_Impl::test_any (const CORBA_Any &a1, - CORBA_Any *&a2, - CORBA_Environment &env) -{ - a2 = new CORBA_Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_SSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) -{ - as2 = new Marshal::AnySeq (as1); -} - -#if 0 -void -Marshal_SSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2, - CORBA_Environment &env) -{ -} -#endif - -//---------------------------------------------------------------------------- -//the methods of the DSI implementation class - -static const TAO_operation_db_entry Marshal_DSI_operations[] = { - {"_is_a", &Marshal_DSI_Impl::_Marshal_is_a_skel}, - { "test_short", &Marshal_DSI_Impl::_Marshal_test_short_skel}, - { "test_long", &Marshal_DSI_Impl::_Marshal_test_long_skel}, - { "test_octet", &Marshal_DSI_Impl::_Marshal_test_octet_skel}, - { "test_char", &Marshal_DSI_Impl::_Marshal_test_char_skel}, - { "test_double", &Marshal_DSI_Impl::_Marshal_test_double_skel}, - { "test_struct", &Marshal_DSI_Impl::_Marshal_test_struct_skel}, - { "test_union", &Marshal_DSI_Impl::_Marshal_test_union_skel}, - { "test_any", &Marshal_DSI_Impl::_Marshal_test_any_skel}, - { "test_sequence", &Marshal_DSI_Impl::_Marshal_test_sequence_skel}, - { 0, 0 } -}; - -// Note that we use a linear table because rest of the DSI implementations we -// compare with also use linear search in their "invoke" method. -TAO_Linear_OpTable tao_Marshal_DSI_optable (Marshal_DSI_operations, 10); - -// constructor -Marshal_DSI_Impl::Marshal_DSI_Impl (CORBA_ORB_ptr orb, const char *obj_name) - : orb_ (orb) - //,CORBA_DynamicImplementation ("Marshal", obj_name) // interface name is necessary -{ - // Note that this is a HACK to achieve DSI behavior. But this way we can - // cleanly integrate ourselves with the dispatch mechanism of the OA. - - const CORBA_String repoID = "IDL:Marshal:1.0"; // repository ID - IIOP_Object *data; // IIOP object - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); // underlying BOA - this->optable_ = &tao_Marshal_DSI_optable; // operation database - CORBA_Long i; - - // setup an IIOP object - data = new IIOP_Object (CORBA_string_dup (repoID)); - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup (oa->get_addr ().get_host_name ()); - data->profile.port = oa->get_addr ().get_port_number (); - data->profile.object_key.length = ACE_OS::strlen (obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - ACE_OS::memcpy (data->profile.object_key.buffer, obj_name, - data->profile.object_key.length); // set the object key - this->set_parent (data); // store the IIOP obj reference with ourselves - this->sub_ = this; // set the most derived class to be ourselves - if (oa) oa->bind (data->profile.object_key, this);// register ourselves -} - -void -Marshal_DSI_Impl::invoke (CORBA_ServerRequest& req, CORBA_Environment &env) -{ - // parse the incoming request and find out for what operation it is. We use a - // simple linear search here - if (!ACE_OS::strcmp (req.op_name (), "test_short")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_long")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_octet")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_char")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_double")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_struct")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_union")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_any")) - { - } - else if (!ACE_OS::strcmp (req.op_name (), "test_sequence")) - { - } -} - -// simulate the skeletons -void Marshal_DSI_Impl::_Marshal_is_a_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - char *type_id = "IDL:Marshal:1.0"; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *)nv->value ()->value (); - - cout << "object id = " << ((char *)value) << endl; - if (strcmp ((char *)value, (char *)type_id) == 0 - || strcmp ((char *)value, _tc_CORBA_Object->id(env)) == 0) - retval = new CORBA_Boolean (1); - else - retval = new CORBA_Boolean (0); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Boolean, retval, 1); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - -void Marshal_DSI_Impl::_Marshal_test_short_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_s1 (_tc_CORBA_Short); - CORBA_Any any_s2 (_tc_CORBA_Short); - Marshal_DSI_Impl* impl; - CORBA_Short s1, s2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_s1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_s2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - s1 = *(CORBA_Short *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_short (s1, s2, env); - - nv2->value ()->replace (_tc_CORBA_Short, &s2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_long_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_l1 (_tc_CORBA_Long); - CORBA_Any any_l2 (_tc_CORBA_Long); - Marshal_DSI_Impl* impl; - CORBA_Long l1, l2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_l1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_l2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - l1 = *(CORBA_Long *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_long (l1, l2, env); - - nv2->value ()->replace (_tc_CORBA_Long, &l2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_o1 (_tc_CORBA_Octet); - CORBA_Any any_o2 (_tc_CORBA_Octet); - Marshal_DSI_Impl* impl; - CORBA_Octet o1, o2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_o1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_o2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - o1 = *(CORBA_Octet *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_octet (o1, o2, env); - - nv2->value ()->replace (_tc_CORBA_Octet, &o2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_char_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_c1 (_tc_CORBA_Char); - CORBA_Any any_c2 (_tc_CORBA_Char); - Marshal_DSI_Impl* impl; - CORBA_Char c1, c2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_c1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_c2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - c1 = *(CORBA_Char *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_char (c1, c2, env); - - nv2->value ()->replace (_tc_CORBA_Char, &c2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_double_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_d1 (_tc_CORBA_Double); - CORBA_Any any_d2 (_tc_CORBA_Double); - Marshal_DSI_Impl* impl; - CORBA_Double d1, d2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_d1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_d2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - d1 = *(CORBA_Double *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_double (d1, d2, env); - - nv2->value ()->replace (_tc_CORBA_Double, &d2, 0, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_struct_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_ms1 (Marshal::_tc_Marshal_Struct); - CORBA_Any any_ms2 (Marshal::_tc_Marshal_Struct); - Marshal_DSI_Impl* impl; - Marshal::Marshal_Struct ms1, *ms2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_ms1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_ms2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - // note that the second parameter being an out parameter, we are allocating - // it from heap and filling it up. We will then insert it into the Any that - // will get written to the stream. We should have done this for the - // primitives too, but somehow they worked (because nothing got written onto - // the stack frame onto which they existed, but this phenomenon was occuring - // here and possibly will occur for the rest of the case - ms1 = *(Marshal::Marshal_Struct *) nv1->value ()->value (); - ms2 = new Marshal::Marshal_Struct; - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_struct (ms1, *ms2, env); - - nv2->value ()->replace (Marshal::_tc_Marshal_Struct, ms2, 1, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - // req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_union_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_u1 (Marshal::_tc_Marshal_Union); - CORBA_Any any_u2 (Marshal::_tc_Marshal_Union); - Marshal_DSI_Impl* impl; - Marshal::Marshal_Union u1, *u2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_u1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_u2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - u1 = *(Marshal::Marshal_Union *) nv1->value ()->value (); - u2 = new Marshal::Marshal_Union; - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_union (u1, *u2, env); - - nv2->value ()->replace (Marshal::_tc_Marshal_Union, u2, 0, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - // req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_any_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any *a1=0, *a2=0; - CORBA_Any any_a1 (_tc_CORBA_Any, &a1); - CORBA_Any any_a2 (_tc_CORBA_Any); - Marshal_DSI_Impl* impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_a1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_a2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - a1 = (CORBA_Any *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_any (*a1, a2, env); - - nv2->value ()->replace (_tc_CORBA_Any, a2, 1, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - // req.result(any, env); -} - -void Marshal_DSI_Impl::_Marshal_test_sequence_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv1, nv2; - CORBA_Any any_as1 (Marshal::_tc_AnySeq); - CORBA_Any any_as2 (Marshal::_tc_AnySeq); - Marshal_DSI_Impl* impl; - Marshal::AnySeq *as1, *as2; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv1 = nvlist->add_value (0, any_as1, CORBA_ARG_IN, env); - nv2 = nvlist->add_value (0, any_as2, CORBA_ARG_OUT, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - as1 = (Marshal::AnySeq *) nv1->value ()->value (); - - // now invoke the implementation - impl = (Marshal_DSI_Impl *)(obj->get_subclass ()); - // now the magic of dynamic binding - impl->test_sequence (*as1, as2, env); - - nv2->value ()->replace (Marshal::_tc_AnySeq, as2, 1, env); - - // result - NO result - // CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - // req.result(any, env); -} - -// private methods of our DSI class -void -Marshal_DSI_Impl::test_short (CORBA_Short s1, - CORBA_Short &s2, - CORBA_Environment &env) -{ - s2 = 2*s1; -} - -void -Marshal_DSI_Impl::test_long (CORBA_Long l1, - CORBA_Long &l2, - CORBA_Environment &env) -{ - l2 = 3*l1; -} - -void -Marshal_DSI_Impl::test_octet (CORBA_Octet o1, - CORBA_Octet &o2, - CORBA_Environment &env) -{ - o2 = o1; -} - -void -Marshal_DSI_Impl::test_char (CORBA_Char c1, - CORBA_Char &c2, - CORBA_Environment &env) -{ - c2 = c1; -} - -void -Marshal_DSI_Impl::test_double (CORBA_Double d1, - CORBA_Double &d2, - CORBA_Environment &env) -{ - d2 = d1/2; -} - -void -Marshal_DSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_DSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_DSI_Impl::test_any (const CORBA_Any &a1, - CORBA_Any *&a2, - CORBA_Environment &env) -{ - a2 = new CORBA_Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_DSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) -{ - as2 = new Marshal::AnySeq (as1); -} - -#if 0 -void -Marshal_DSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2, - CORBA_Environment &env) -{ -} -#endif - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h deleted file mode 100644 index dab7e662d74..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h +++ /dev/null @@ -1,192 +0,0 @@ -// $Id$ - -#if !defined (TAO_MARSHAL_IMPL_H) -#define TAO_MARSHAL_IMPL_H - -// to include DSI related files - -#include "ace/OS.h" - -#include "marshalS.h" -//#include "tao/dynimpl.h" - -class Marshal_SSI_Impl - : public virtual _skel_Marshal -{ - // =TITLE - // Marshal_SSI_Impl - // =DESCRIPTION - // Implementation of the interface using the static skeleton interface -public: - Marshal_SSI_Impl (const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_SSI_Impl (void); - // destructor - - virtual void test_short (CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - // test short - - virtual void test_long (CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - // test long - - virtual void test_octet (CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - // test octet - - virtual void test_char (CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - // test char - - virtual void test_double (CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - // test double - - virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - // test struct - - virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - // test union - - virtual void test_any (const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - // test any - - virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA_Environment &env); - // test sequence - -#if 0 - virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); - // test struct -#endif - -}; - -class Marshal_DSI_Impl : public CORBA_Object //: public CORBA_DynamicImplementation -{ - // =TITLE - // Marshal_DSI_Impl - // =DESCRIPTION - // Implementation of the interface using the dynamic skeleton interface - // =NOTES - // We do not have a DynamicImplementation as yet. So we do a trick here. We - // simulate the skeletons here and these call the private methods defined below: -public: - Marshal_DSI_Impl (CORBA_ORB_ptr orb, const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_DSI_Impl (void); - // destructor - - virtual void invoke (CORBA_ServerRequest & req, CORBA_Environment &env); - // This method is a must, but of no use - - // skeletons that do the upcall - static void _Marshal_is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_char_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_double_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_any_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -private: - void test_short (CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - // test short - - void test_long (CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - // test long - - void test_octet (CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - // test octet - - void test_char (CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - // test char - - void test_double (CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - // test double - - void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - // test struct - - void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - // test union - - void test_any (const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - // test any - - void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA_Environment &env); - // test sequence - -#if 0 - void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); - // test struct -#endif - - // we need the orb to create argument lists (NVList) for us - CORBA_ORB_ptr orb_; // not owned by us -}; - -#if defined (__ACE_INLINE__) -#include "tao_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -#endif // defined (TAO_MARSHAL_IMPL_H) diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i deleted file mode 100644 index a730daf8106..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Marshal_SSI_Impl::Marshal_SSI_Impl (const char *obj_name) - : _skel_Marshal (obj_name) -{ -} - -// destructor -ACE_INLINE -Marshal_SSI_Impl::~Marshal_SSI_Impl (void) -{ -} - -// destructor -ACE_INLINE -Marshal_DSI_Impl::~Marshal_DSI_Impl (void) -{ - orb_ = 0;//CORBA::ORB::_nil (); -} - - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp deleted file mode 100644 index 9966b292e7f..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp +++ /dev/null @@ -1,114 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Tao marshal benchmark -// -// = FILENAME -// tao_marshal_server.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "tao_marshal_server.h" -#include -#include - -#if !defined (__ACE_INLINE__) -#include "tao_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(TAO, tao_marshal_server, "$Id$") - -int -Tao_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA_Environment env; - CORBA_String str; // for the IOR string - fstream iorfile; // persistent storage for IOR - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA_ORB_init (argc, (char *const *)argv, "IOR", env); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the argument list to be passed on to the BOA_init method - argv = options.boa_init_args (argc); - - char *foo [] = {"-OAhost","mambo"}; argc = 2; - // get the orb. Pass any ORB_init arguments - this->boa_ = this->orb_->BOA_init (argc, foo, "ROA");//(argc, (char *const *)argv); - if (this->boa_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SSI - this->ssi_ = new Marshal_SSI_Impl (options.object_name ()); - // register with the BOA - // this->boa_->obj_is_ready (this->ssi_); - - // get a stringified representation of the object reference created above - str = this->orb_->object_to_string (this->dsi_, env); - if (env.exception() != 0) - { - // print_exception (env.exception(), "object_to_string", stdout); - return 1; - } - - // save the IOR in persistent storage so that clients can read this and obtain - // object references. We need to do this since we do not yet have some kind - // of a naming service that will allow clients to "bind" to desired objects - iorfile.open ("./ior.txt", ios::out); - iorfile << ((char *)str) << endl; - iorfile.close (); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DSI - this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ())); - // register with the BOA - // this->boa_->obj_is_ready (this->dsi_); - - // get a stringified representation of the object reference created above - str = this->orb_->object_to_string (this->dsi_, env); - if (env.exception() != 0) - { - ACE_DEBUG ((LM_ERROR, "cannot get IOR from DSI object" )); - // print_exception (env.exception(), "object_to_string", stdout); - return 1; - } - - // save the IOR in persistent storage so that clients can read this and obtain - // object references. We need to do this since we do not yet have some kind - // of a naming service that will allow clients to "bind" to desired objects - iorfile.open ("./ior.txt", ios::out); - iorfile << ((char *)str) << endl; - iorfile.close (); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - - ACE_Reactor::run_event_loop (); // should be replaced by impl_is_ready - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h deleted file mode 100644 index 8bd965301ff..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Tao Benchmark -// -// = FILENAME -// tao_marshal_server.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_TAO_MARSHAL_SERVER_H_) -#define _TAO_MARSHAL_SERVER_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// implementation classes -#include "tao_marshal_impl.h" - -// include Tao specific include files -#include "marshalS.h" // generated by IDL compiler - -class Tao_Marshal_Server_Proxy : public CORBA_Marshal_Proxy -{ -public: - Tao_Marshal_Server_Proxy (void); - // constructor - - ~Tao_Marshal_Server_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work -private: - CORBA_ORB_ptr orb_; - // underlying orb; - - CORBA_BOA_ptr boa_; - // underlying boa; - - Marshal_SSI_Impl *ssi_; - Marshal_DSI_Impl *dsi_; - // the implementation (SSI or DSI) -}; - - -#if defined (__ACE_INLINE__) -#include "tao_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i deleted file mode 100644 index 446b96cf468..00000000000 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.i +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Tao_Marshal_Server_Proxy::Tao_Marshal_Server_Proxy (void) - : orb_ (0), - boa_ (0), - ssi_ (0), - dsi_ (0) -{ -} - -// destructor -ACE_INLINE -Tao_Marshal_Server_Proxy::~Tao_Marshal_Server_Proxy (void) -{ - // releasing order is important - - // release the impl - delete ssi_; - delete dsi_; - - // release the BOA - CORBA_release (boa_); - - // release the ORB - CORBA_release (orb_); -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/Makefile b/TAO/Benchmark/Marshal_Test/VisiBroker/Makefile deleted file mode 100644 index 93cfc461a32..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the VisiBroker Marshal Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lACE -lbenchmark -lorb - -PROG_SRCS = marshalC.cpp marshalS.cpp visi_marshal_client.cpp visi_marshal_server.cpp \ - visi_marshal_impl.cpp client.cpp server.cpp - -LSRC = $(PROG_SRCS) - -MARSHAL_CLIENT_OBJS = marshalC.o visi_marshal_client.o client.o - -MARSHAL_SERVER_OBJS = marshalC.o marshalS.o visi_marshal_impl.o visi_marshal_server.o server.o - -BIN = client server - -BUILD = $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -# include VisiBroker specific file -include /project/mambo/gokhale/CONFIG/orbeline_defaults.mk - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -CPPFLAGS += -I$(TAO_ROOT) -I$(TAO_ROOT)/Benchmark -D_PMC_INCLUDE_DSI - -server: $(addprefix $(VDIR),$(MARSHAL_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(MARSHAL_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -marshalC.h marshalS.h marshalC.cpp marshalS.cpp: marshal.idl - $(IDL) $(IDLFLAGS) $< - -clean: - rm -f core *.o *~ client server *C.cpp *S.cpp *S.h *C.h - $(MAKE) realclean - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp deleted file mode 100644 index fca289e19e4..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/client.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "visi_marshal_client.h" - -ACE_RCSID(VisiBroker, client, "$Id$") - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Visi_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Visi_Marshal_Client_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl b/TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl deleted file mode 100644 index 077a98e58fd..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/marshal.idl +++ /dev/null @@ -1,91 +0,0 @@ -// $Id$ - -// Interface for the marshal benchmark - -interface Marshal -{ - struct Marshal_Struct - { - short s; - long l; - char c; - octet o; - double d; - }; - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th, e_6th}; - - union Marshal_Union - switch (discrim) - { - case e_0th: - short s; - case e_1st: - long l; - case e_2nd: - char c; - case e_3rd: - octet o; - case e_4th: - double d; - case e_5th: - default: // this will test typecode indirection - Marshal_Struct ms; - }; - - /* - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence OctetSeq; - typedef sequence CharSeq; - typedef sequence DoubleSeq; - typedef sequence StructSeq; - typedef sequence UnionSeq; - */ - // for testing sequences of Any - typedef sequence AnySeq; - - // testing recursive behavior - // complex. - struct Marshal_Recursive - { - // we use this to test the limited recursion allowed by IDL. This is an - // ideal test for indirected typecodes. - - // simulate a behavior of a list node - any value; - sequence next; - }; - - void test_short (in short s1, out short s2); // test a short - void test_long (in long l1, out long l2); // test a long - void test_octet (in octet o1, out octet o2); // test an octet - void test_char (in char c1, out char c2); // test a char - void test_double (in double d1, out double d2); // test a double - void test_struct (in Marshal_Struct ms1, out Marshal_Struct ms2); // test a - // struct - void test_union (in Marshal_Union u1, out Marshal_Union u2); // test a - // union. - void test_any (in any a1, out any a2); // test an Any - /* - void test_sequence (in ShortSeq ss1, in LongSeq ls1, in OctetSeq os1, in - CharSeq cs1, in DoubleSeq ds1, in StructSeq Ss1, in - UnionSeq us1, in AnySeq as1, - out ShortSeq ss2, out LongSeq ls2, out OctetSeq os2, out - CharSeq cs2, out DoubleSeq ds2, out StructSeq Ss2, out - UnionSeq us2, out AnySeq as2); - */ - void test_sequence (in AnySeq as1, out AnySeq as2); // this will result in a - // 3 level indirection - - // sequence, any, and its - // value type - void test_recursive (in Marshal_Recursive mr1, out Marshal_Recursive mr2); // - // very complicated -}; - - - - - - - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/run_client b/TAO/Benchmark/Marshal_Test/VisiBroker/run_client deleted file mode 100755 index 2a35700495f..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/run_client +++ /dev/null @@ -1,23 +0,0 @@ -echo "********* Static Invocation Interface **********" -client -i 1 -h mambo -R s -P S -o marshal -T s -client -i 1 -h mambo -R s -P S -o marshal -T l -client -i 1 -h mambo -R s -P S -o marshal -T o -client -i 1 -h mambo -R s -P S -o marshal -T c -client -i 1 -h mambo -R s -P S -o marshal -T d -client -i 1 -h mambo -R s -P S -o marshal -T S -client -i 1 -h mambo -R s -P S -o marshal -T U -client -i 1 -h mambo -R s -P S -o marshal -T A -client -i 1 -h mambo -R s -P S -o marshal -T Q -#client -i 1 -h mambo -R s -P S -o marshal -T R -# -echo "********* Dynamic Invocation Interface **********" -client -i 1 -h mambo -R s -P D -o marshal -T s -client -i 1 -h mambo -R s -P D -o marshal -T l -client -i 1 -h mambo -R s -P D -o marshal -T o -client -i 1 -h mambo -R s -P D -o marshal -T c -client -i 1 -h mambo -R s -P D -o marshal -T d -client -i 1 -h mambo -R s -P D -o marshal -T S -client -i 1 -h mambo -R s -P D -o marshal -T U -client -i 1 -h mambo -R s -P D -o marshal -T A -client -i 1 -h mambo -R s -P D -o marshal -T Q - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/run_server b/TAO/Benchmark/Marshal_Test/VisiBroker/run_server deleted file mode 100755 index c5ff4cdc2f0..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/run_server +++ /dev/null @@ -1 +0,0 @@ -server -R r -P S -I V -o marshal \ No newline at end of file diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp deleted file mode 100644 index edb0dd286ff..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/server.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" -#include "visi_marshal_server.h" - -ACE_RCSID(VisiBroker, server, "$Id$") - -int main (int argc, char *argv []) -{ - // instantiate a DRIVER with the Visi_Client_Proxy as the template - CORBA_Benchmark_Driver driver (new - Visi_Marshal_Server_Proxy ()); - - // let the driver do everything for us so that we remain very simple - return driver.run (argc, argv); -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp deleted file mode 100644 index a7719ad647a..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp +++ /dev/null @@ -1,1348 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Visibroker marshal benchmark -// -// = FILENAME -// visi_marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "visi_marshal_client.h" - -#if !defined (__ACE_INLINE__) -#include "visi_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(VisiBroker, visi_marshal_client, "$Id$") - -int -Visi_Marshal_Client_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - CORBA::Object_ptr target; - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the obj ref by binding it to the specified host using the specified obj_name - target = Marshal::_bind (options.object_name (), options.hostname ()); - if (CORBA::is_nil (target)) - { - ACE_DEBUG ((LM_DEBUG, "bind call failed\n")); - return -1; - } - - this->ref_ = Marshal::_narrow (target); - if (CORBA::is_nil (this->ref_)) - { - ACE_DEBUG ((LM_DEBUG, "narrow to Marshal failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SII - return this->use_sii (options, results); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DII - return this->use_dii (options, results); - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - // hopefully we are never here, else something is seriously wrong - return -1; -} - -int -Visi_Marshal_Client_Proxy::use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the static invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = sii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = sii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = sii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = sii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = sii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = sii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = sii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = sii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = sii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = sii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - -int -Visi_Marshal_Client_Proxy::use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - int i; - int status = 0; - // This method tests the dynamic invocation interface - - for (i=0; i < options.iterations () && !status; i++) - { - switch (options.data_type ()) - { - // shorts - case CORBA_Marshal_Options::SHORT: - status = dii_test_short (options, results); - break; - // longs - case CORBA_Marshal_Options::LONG: - status = dii_test_long (options, results); - break; - // octets - case CORBA_Marshal_Options::OCTET: - status = dii_test_octet (options, results); - break; - // chars - case CORBA_Marshal_Options::CHAR: - status = dii_test_char (options, results); - break; - // doubles - case CORBA_Marshal_Options::DOUBLE: - status = dii_test_double (options, results); - break; - // Structs - case CORBA_Marshal_Options::STRUCT: - status = dii_test_struct (options, results); - break; - // unions - case CORBA_Marshal_Options::UNION: - status = dii_test_union (options, results); - break; - // anys - case CORBA_Marshal_Options::ANY: - status = dii_test_any (options, results); - break; - // sequences - case CORBA_Marshal_Options::SEQUENCE: - status = dii_test_sequence (options, results); - break; - // longs - case CORBA_Marshal_Options::RECURSIVE: - // status = dii_test_recursive (options, results); - // doesn't work - break; - default: - status = -1; - } // end of switch - } // for loop - - if (!status) - return 0; - else - return -1; -} - - -// all helper functions : SII -int -Visi_Marshal_Client_Proxy::sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Short s1, s2; - s1 = 3; - ref_->test_short (s1, s2); - if (s1 == s2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - CORBA::Long l1, l2; - l1 = 256; - ref_->test_long (l1, l2); - if (l1 == l2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_long success: l1 = %d, l2 = %d\n", l1, l2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - CORBA::Octet o1, o2; - o1 = (CORBA::Octet) 127; - ref_->test_octet (o1, o2); - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - CORBA::Char c1, c2; - c1 = 'B'; - ref_->test_char (c1, c2); - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - CORBA::Double d1, d2; - d1 = 3.1415; - ref_->test_double (d1, d2); - if (d1 == d2) - { - ACE_DEBUG ((LM_DEBUG, "SII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - Marshal::Marshal_Struct ms1, ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - ref_->test_struct (ms1, ms2); - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_struct failed\n")); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - ref_->test_union (u1, u2); - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for long (case e_1st) failed\n")); - return -1; - } - - // now test the default case - u1._d (Marshal::e_6th); // this case doesn't exist which will lead to using - // the default case - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA::Octet) 127; - u1.ms ().d = 3.1415; - - ref_->test_union (u1, u2); - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_union for default (case e_6th) failed\n")); - return -1; - } -} - -int -Visi_Marshal_Client_Proxy::sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - ref_->test_any (a1, a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "SII test_any success\n")); - return 0; - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any value match failed\n")); - return -1; - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_any failed due to typecode mismatch\n")); - } - return 0; -} - -int -Visi_Marshal_Client_Proxy::sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA::Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - ref_->test_sequence (as1, as2); - -#if 0 - // the following is extremely weird. I do not understand why it is not the - // same as _tc_Marshal_Union, but its _kind field does have _tk_union in it. - if ((*as2)[6].type ()->equal (Marshal::_tc_Marshal_Union)) - { - cerr << "6th elem has union typecode" << endl; - } - else - { - cerr << "6th elem doesnot have union typecode" << endl; - cerr << "its typecode kind = " << (*as2)[6].type ()->kind () << endl; - } -#endif - - ACE_DEBUG ((LM_DEBUG, "SII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { -#if 0 - if (as1[i].type ()->equal ((*as2)[i].type ())) - { -#endif - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tSII test_sequence failed on unions match\n")); - } - } - break; - } -#if 0 - } - else - { - ACE_DEBUG ((LM_DEBUG, - "SII test_sequence: typecode mismatch for element %d\n", i)); - break; - } -#endif - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - return 0; -} - -int -Visi_Marshal_Client_Proxy::sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "SII test_recursive failure\n")); - } - - return 0; -} - -// ------------------------------------------------------- -// all helper functions : DII -// ------------------------------------------------------- - -int -Visi_Marshal_Client_Proxy::dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Short s1, s2; - - s1 = 3; - s2 = 0; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add (CORBA::ARG_IN)->value ()) <<= s1; - // this usage is also correct. All we care is to supply a storage area for - // the OUT parameter - // arglist->add (CORBA::ARG_OUT)->value ()->replace (CORBA::_tc_short, &s2); - *(arglist->add (CORBA::ARG_OUT)->value ()) <<= s2; - orb_->create_list(1, result_list); // 1 result - result = result_list->item (0); - - // create a request - ref_->_create_request(ctx, - "test_short", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= s2; - - if (s1 == s2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_short success: s1 = %d, s2 = %d\n", s1, s2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_short failed: s1 = %d, s2 = %d\n", s1, s2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Long l1, l2; - - l1 = 256; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= l1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_long, &l2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_long", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= l2; - - if (l1 == l2) - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long success: l1 = %d, l2 = %d\n", l1, l2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII: test_long failed: l1 = %d, l2 = %d\n", l1, l2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // octets -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Octet o1, o2; - - o1 = (CORBA::Octet) 127; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_octet (o1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_octet, &o2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_octet", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_octet (o2); - - if (o1 == o2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet success: o1 = %c, o2 = %c\n", o1, o2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_octet failed: o1 = %c, o2 = %c\n", o1, o2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // chars -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Char c1, c2; - - c1 = 'B'; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= CORBA::Any::from_char (c1); - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_char, &c2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_char", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= CORBA::Any::to_char (c2); - - if (c1 == c2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_char success: c1 = %c, c2 = %c\n", c1, c2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_char failed: c1 = %c, c2 = %c\n", c1, c2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // doubles -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - CORBA::Double d1, d2; - - d1 = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= d1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_double, &d2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_double", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= d2; - - if (d1 == d2) - { - ACE_DEBUG ((LM_DEBUG, "DII test_double success: d1 = %f, d2 = %f\n", d1, d2)); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_double failed: d1 = %f, d2 = %f\n", d1, d2)); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // structs -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Struct ms1, ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= ms1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Struct, &ms2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_struct", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= ms2; - - if (ms1.s == ms2.s && ms1.l == ms2.l && ms1.c == ms2.c && ms1.o == ms2.o && - ms1.d == ms2.d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_struct failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) - // unions -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - Marshal::Marshal_Union u1, u2; - Marshal::Marshal_Struct ms1, ms2; - - - // first test an enumerated case - u1._d (Marshal::e_1st); - u1.l (4567); - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if ( (u1._d () == u2._d()) && (u1.l () == u2.l ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for long (case e_1st) failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - - // now test the default case - u1._d (Marshal::e_5th); // e_6th doesn't work - - u1.ms ().s = 3; - u1.ms ().l = 256; - u1.ms ().c = 'B'; - u1.ms ().o = (CORBA::Octet) 127; - u1.ms ().d = 3.1415; - - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= u1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_Marshal_Union, &u2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_union", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= u2; - - if (u1.ms ().s == u2.ms ().s && u1.ms ().l == u2.ms ().l && u1.ms ().c == u2.ms ().c && u1.ms ().o == u2.ms ().o && - u1.ms ().d == u2.ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_union for default (case e_6th) failed\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // we send a struct thru the any - CORBA::Any a1, *a2; - Marshal::Marshal_Struct ms1, *ms2; - - ms1.s = 3; - ms1.l = 256; - ms1.c = 'B'; - ms1.o = (CORBA::Octet) 127; - ms1.d = 3.1415; - - // populate the any with a MarshalStruct - a1 <<= ms1; - - a2 = new CORBA::Any; - - // now test it - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= a1; - arglist->add(CORBA::ARG_OUT)->value()->replace (CORBA::_tc_any, a2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_any", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= (*a2); - - // check if the two typecodes are equal - if (a2->type ()->equal (Marshal::_tc_Marshal_Struct)) - { - // now see if the values are same - ms2 = (Marshal::Marshal_Struct *)a2->value (); - if (ms1.s == ms2->s && ms1.l == ms2->l && ms1.c == ms2->c && ms1.o == ms2->o && - ms1.d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "DII test_any success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any value match failed\n")); - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_any failed due to typecode mismatch\n")); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // DII variables - CORBA::Request_ptr request = CORBA::Request::_nil(); // DII request - CORBA::NVList_ptr arglist = CORBA::NVList::_nil(); // argument list - CORBA::Context_ptr ctx = CORBA::Context::_nil(); // context - CORBA::NVList_ptr result_list = CORBA::NVList::_nil(); // result list - CORBA::NamedValue_ptr result = CORBA::NamedValue::_nil();// actual result - // make a sequence of Anys and fill each one with a different data type - Marshal::AnySeq as1 (7), *as2; - Marshal::Marshal_Struct ms; - Marshal::Marshal_Union u; - - ms.s = 3; - ms.l = 256; - ms.c = 'B'; - ms.o = (CORBA::Octet) 127; - ms.d = 3.1415; - - u._d (Marshal::e_5th); // somehow, the default case e_6th doesn't seem to - // work here - u.ms ().s = 3; - u.ms ().l = 256; - u.ms ().c = 'B'; - u.ms ().o = (CORBA::Octet) 127; - u.ms ().d = 3.1415; - - // it looks like we must tell the sequence how many elements it is going to - // carry. By just fixing the max value does not work. - - as1.length (7); - - as1[0] <<= (CORBA::Short)3; - as1[1] <<= (CORBA::Long) 256; - as1[2] <<= CORBA::Any::from_octet ((CORBA::Octet)127); - as1[3] <<= CORBA::Any::from_char ('B'); - as1[4] <<= (CORBA::Double)3.1415; // double - as1[5] <<= ms; // struct - as1[6] <<= u; // union - - as2 = new Marshal::AnySeq; - - orb_->create_list(0, arglist); // 2 arguments to be added - *(arglist->add(CORBA::ARG_IN)->value()) <<= as1; - arglist->add(CORBA::ARG_OUT)->value()->replace (Marshal::_tc_AnySeq, as2); - orb_->create_list(1, result_list); // 1 result - result = result_list->item(0); - - // create a request - ref_->_create_request(ctx, - "test_sequence", - arglist, - result, - request, - 0); - - request->invoke (); // 2 way - *(arglist->item(1)->value()) >>= (*as2); - -#if 0 - // the following is extremely weird. I do not understand why it is not the - // same as _tc_Marshal_Union, but its _kind field does have _tk_union in it. - if ((*as2)[6].type ()->equal (Marshal::_tc_Marshal_Union)) - { - cerr << "6th elem has union typecode" << endl; - } - else - { - cerr << "6th elem doesnot have union typecode" << endl; - cerr << "its typecode kind = " << (*as2)[6].type ()->kind () << endl; - } -#endif - - ACE_DEBUG ((LM_DEBUG, "DII test_sequence\n")); - if (as1.length () == as2->length ()) - { - // now make sure that the elements are same - for (int i=0; i < as1.length (); i++) - { -#if 0 - if (as1[i].type ()->equal ((*as2)[i].type ())) - { -#endif - // now see if the values are same - switch (i) - { - case 0: - if (*(CORBA::Short *)as1[i].value () == *(CORBA::Short - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, shorts matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on shorts match\n")); - } - break; - case 1: - if (*(CORBA::Long *)as1[i].value () == *(CORBA::Long - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, longs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on longs match\n")); - } - break; - case 2: - if (*(CORBA::Octet *)as1[i].value () == *(CORBA::Octet - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, octets matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on octets match\n")); - } - break; - case 3: - if (*(CORBA::Char *)as1[i].value () == *(CORBA::Char - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, chars matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on chars match\n")); - } - break; - case 4: - if (*(CORBA::Double *)as1[i].value () == *(CORBA::Double - *)(*as2)[i].value ()) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, doubles matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on doubles match\n")); - } - break; - case 5: - { - Marshal::Marshal_Struct *ms1, *ms2; - - ms1 = (Marshal::Marshal_Struct *)as1[i].value (); - ms2 = (Marshal::Marshal_Struct *)(*as2)[i].value (); - - if (ms1->s == ms2->s && ms1->l == ms2->l && ms1->c == ms2->c && ms1->o == ms2->o && - ms1->d == ms2->d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, structs matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on structs match\n")); - } - } - break; - case 6: - { - Marshal::Marshal_Union *u1, *u2; - - u1 = (Marshal::Marshal_Union *)as1[i].value (); - u2 = (Marshal::Marshal_Union *)(*as2)[i].value (); - - if (u1->_d () == u2->_d () && u1->ms ().s == u2->ms ().s && - u1->ms ().l == u2->ms ().l && - u1->ms ().c == u2->ms ().c && u1->ms ().o == u2->ms ().o && - u1->ms ().d == u2->ms ().d) - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence, unions matched\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "\tDII test_sequence failed on unions match\n")); - } - } - break; - } -#if 0 - } - else - { - ACE_DEBUG ((LM_DEBUG, - "DII test_sequence: typecode mismatch for element %d\n", i)); - break; - } -#endif - } - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_sequence failed: as2->length = %d\n", - as2->length ())); - } - CORBA::release (request); - CORBA::release (arglist); - CORBA::release (result); - CORBA::release (result_list); - return 0; -} - -int -Visi_Marshal_Client_Proxy::dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - // we will try a simple one here - Marshal::Marshal_Recursive mr1, *elem1, *mr2, *elem2; - - mr1.value <<= (CORBA::Long)1; - mr1.next.length (1); // sequence of length 1 - - // fill the element - elem1 = &mr1.next[0]; - elem1->value <<= CORBA::Any::from_char ('D'); - elem1->next.length (0); // end of seq - - mr2 = new Marshal::Marshal_Recursive; - - try { - ref_->test_recursive (mr1, mr2); - } - catch (CORBA::SystemException &se){ - cerr << "error invoking request: " << se << endl; - } - - elem2 = &mr2->next[0]; - - if ((*(CORBA::Long *)mr1.value.value () == *(CORBA::Long*)mr2->value.value ()) - && (mr1.next.length () == mr2->next.length ()) // same length sequence - && (*(CORBA::Char *)elem1->value.value () == *(CORBA::Char *)elem2->value.value ()) - && (elem1->next.length () == elem2->next.length ())) - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive success\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "DII test_recursive failure\n")); - } - - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h deleted file mode 100644 index def1c6189c2..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h +++ /dev/null @@ -1,142 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Visibroker Benchmark -// -// = FILENAME -// visi_marshal_client.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_VISI_MARSHAL_CLIENT_H_) -#define _VISI_MARSHAL_CLIENT_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// include VisiBroker specific include files -#include "marshalC.h" // generated by IDL compiler -#include "pmcext.h" // VisiBroker extensions - -#if 0 -// Define an event handler specific to this class -class marshal_event_handler: public PMC_EXT::ClientEventHandler -{ - // =TITLE - // marshal_event_handler - // =DESCRIPTION - // event handler. Specifically, we use this to set socket buffer and no delay - // flags -public: - void bind_succeeded(CORBA::Object_ptr obj, - const PMC_EXT::ConnectionInfo &); - // on success from a bind call, set the desired quantities -}; -#endif - -class Visi_Marshal_Client_Proxy : public CORBA_Marshal_Proxy -{ - // =TITLE - // Visi_Marshal_Client_Proxy - // =DESCRIPTION - // VisiBroker client size specialization of the CORBA Marshal proxy class -public: - Visi_Marshal_Client_Proxy (void); - // constructor - - ~Visi_Marshal_Client_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work - - virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the static invocation interface - - virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // use the dynamic invocation interface -private: - // =helper functions - int sii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - // all the DII helpers - int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - - CORBA::ORB_ptr orb_; - // handle to the underlying orb - - Marshal_ptr ref_; - // the object reference -}; - -#if defined (__ACE_INLINE__) -#include "visi_marshal_client.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i deleted file mode 100644 index 30c73abb503..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.i +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - - -ACE_INLINE -Visi_Marshal_Client_Proxy::Visi_Marshal_Client_Proxy (void) - : orb_ (CORBA_ORB::_nil ()), - ref_ (0) -{ -} - -ACE_INLINE -Visi_Marshal_Client_Proxy::~Visi_Marshal_Client_Proxy (void) -{ - // releasing order is important - - // release the reference - CORBA::release (ref_); - - // release the ORB - CORBA::release (orb_); -} - - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp deleted file mode 100644 index d9425e9c4b3..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp +++ /dev/null @@ -1,333 +0,0 @@ -// $Id$ - -#include "visi_marshal_impl.h" - -#if !defined (__ACE_INLINE__) -#include "visi_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(VisiBroker, visi_marshal_impl, "$Id$") - -// All the methods of the SSI class -void -Marshal_SSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2) -{ - s2 = s1; -} - -void -Marshal_SSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2) -{ - l2 = l1; -} - -void -Marshal_SSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2) -{ - o2 = o1; -} - -void -Marshal_SSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2) -{ - c2 = c1; -} - -void -Marshal_SSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2) -{ - d2 = d1; -} - -void -Marshal_SSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_SSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_SSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_SSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_SSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2) -{ -} - -//---------------------------------------------------------------------------- -//the methods of the DSI implementation class - -void -Marshal_DSI_Impl::invoke (CORBA::ServerRequest_ptr req) -{ - // parse the incoming request and find out for what operation it is. We use a - // simple linear search here - if (!ACE_OS::strcmp (req->op_name (), "test_short")) - { - test_short_skel (req); - } - else if (!ACE_OS::strcmp (req->op_name (), "test_long")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_octet")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_char")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_double")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_struct")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_union")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_any")) - { - } - else if (!ACE_OS::strcmp (req->op_name (), "test_sequence")) - { - } -} - -void -Marshal_DSI_Impl::test_short (CORBA::Short s1, - CORBA::Short &s2) -{ - s2 = 5*s1; -} - -void -Marshal_DSI_Impl::test_long (CORBA::Long l1, - CORBA::Long &l2) -{ - l2 = l1; -} - -void -Marshal_DSI_Impl::test_octet (CORBA::Octet o1, - CORBA::Octet &o2) -{ - o2 = o1; -} - -void -Marshal_DSI_Impl::test_char (CORBA::Char c1, - CORBA::Char &c2) -{ - c2 = c1; -} - -void -Marshal_DSI_Impl::test_double (CORBA::Double d1, - CORBA::Double &d2) -{ - d2 = d1; -} - -void -Marshal_DSI_Impl::test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2) -{ - ms2.s = ms1.s; - ms2.l = ms1.l; - ms2.c = ms1.c; - ms2.o = ms1.o; - ms2.d = ms1.d; -} - -void -Marshal_DSI_Impl::test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2) -{ - u2._d (u1._d ()); // set the discriminant value - - switch (u1._d ()) - { - case Marshal::e_0th: - u2.s (u1.s ()); // set short - break; - case Marshal::e_1st: - u2.l (u1.l ()); // set long - break; - case Marshal::e_2nd: - u2.c (u1.c ()); // set char - break; - case Marshal::e_3rd: - u2.o (u1.o ()); // set octet - break; - case Marshal::e_4th: - u2.d (u1.d ()); // set double - break; - case Marshal::e_5th: - default: - u2.ms (u1. ms ()); // set structs - break; - } -} - -void -Marshal_DSI_Impl::test_any (const CORBA::Any &a1, - CORBA::Any *&a2) -{ - a2 = new CORBA::Any (a1.type (), (void *)a1.value ()); // will do a deep copy -} - -void -Marshal_DSI_Impl::test_sequence (const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2) -{ - as2 = new Marshal::AnySeq (as1); -} - -void -Marshal_DSI_Impl::test_recursive (const Marshal::Marshal_Recursive &mr1, - Marshal::Marshal_Recursive *&mr2) -{ -} - -// all the helper functions for the DSI class -void -Marshal_DSI_Impl::test_short_skel (CORBA::ServerRequest_ptr req) -{ - CORBA::NVList_var short_nv_; - CORBA::Any *any_s1, *any_s2; - CORBA::Short s1=0, - *s2=0; - - orb_->create_list (0, short_nv_); - - ACE_DEBUG ((LM_DEBUG, "short_nv_ created with %d nodes\n", short_nv_->count ())); - - any_s1 = new CORBA::Any (CORBA::_tc_short, &s1, 0); - s2 = new CORBA::Short; - any_s2 = new CORBA::Any (CORBA::_tc_short, s2, 1); - - short_nv_->add_value ("s1", *any_s1, CORBA::ARG_IN); - // if I do the next line, I get CORBA::Marshal exception from - // req->params. I don't know why - short_nv_->add_value ("s2", *any_s2, CORBA::ARG_OUT); - // However, the following line works. I think I know what is the - // problem. Since the 2nd argument is a ARG_OUT, we cannot add_value. We must - // just tell it what type to expect and leave it to the ORB to allocate the - // memory - //short_nv_->add_item ("s2", CORBA::ARG_OUT); - // My explanation is confirmed if I use the following in which case I get a - // marshaling exception. Thus, for OUT args, only add_item works. - // *(short_nv_->add (CORBA::ARG_OUT)->value ()) <<= s2; - - ACE_DEBUG ((LM_DEBUG, "short_nv_ created with %d nodes\n", short_nv_->count ())); - - try { - req->params (short_nv_); - } - catch (CORBA::SystemException &se) - { - cerr << "System Exception doing params: " << se << endl; - } - cout << "after params" << endl; - *(short_nv_->item (0)->value ()) >>= s1; - ACE_DEBUG ((LM_DEBUG, "s1 = %d\n", s1)); - test_short (s1, *s2); - // *(short_nv_->item (1)->value ()) <<= s2; - ACE_DEBUG ((LM_DEBUG, "s1 = %d, s2 = %d\n", s1, *s2)); - ACE_DEBUG ((LM_DEBUG, "short_nv_ after the call has %d nodes\n", short_nv_->count ())); -} - -void -Marshal_DSI_Impl::test_long_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_octet_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_char_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_double_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_struct_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_union_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_any_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_sequence_skel (CORBA::ServerRequest_ptr req) -{ -} - -void -Marshal_DSI_Impl::test_recursive_skel (CORBA::ServerRequest_ptr req) -{ -} diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h deleted file mode 100644 index ec3b0ee0ef2..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h +++ /dev/null @@ -1,179 +0,0 @@ -// $Id$ - -#if !defined (VISI_MARSHAL_IMPL_H) -#define VISI_MARSHAL_IMPL_H - -// to include DSI related files - -#include "ace/OS.h" - -#include "marshalS.h" - - -class Marshal_SSI_Impl - : public virtual _sk_Marshal -{ - // =TITLE - // Marshal_SSI_Impl - // =DESCRIPTION - // Implementation of the interface using the static skeleton interface -public: - Marshal_SSI_Impl (const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_SSI_Impl (void); - // destructor - - virtual void test_short (CORBA::Short s1, - CORBA::Short& s2); - // test short - - virtual void test_long (CORBA::Long l1, - CORBA::Long& l2); - // test long - - virtual void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); - // test octet - - virtual void test_char (CORBA::Char c1, - CORBA::Char& c2); - // test char - - virtual void test_double (CORBA::Double d1, - CORBA::Double& d2); - // test double - - virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); - // test struct - - virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); - // test union - - virtual void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); - // test any - - /* - virtual void test_sequence (const Marshal::ShortSeq& s1, - const Marshal::LongSeq& l1, - const Marshal::OctetSeq& o1, - const Marshal::CharSeq& c1, - const Marshal::DoubleSeq& d1, - const Marshal::StructSeq& S1, - const Marshal::UnionSeq& U1, - const Marshal::AnySeq& a1, - Marshal::ShortSeq *& s2, - Marshal::LongSeq *& l2, - Marshal::OctetSeq *& o2, - Marshal::CharSeq *& c2, - Marshal::DoubleSeq *& d2, - Marshal::StructSeq *& S2, - Marshal::UnionSeq *& U2, - Marshal::AnySeq *& a2); - */ - virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); - // test sequence - - virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); - // test struct - -}; - -class Marshal_DSI_Impl : public CORBA::DynamicImplementation -{ - // =TITLE - // Marshal_DSI_Impl - // =DESCRIPTION - // Implementation of the interface using the dynamic skeleton interface -public: - Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *object_name = (const char *)NULL); - // constructor - - ~Marshal_DSI_Impl (void); - // destructor - - virtual void invoke (CORBA::ServerRequest_ptr req); - // This method is a must - -private: - void test_short (CORBA::Short s1, - CORBA::Short& s2); - // test short - - void test_long (CORBA::Long l1, - CORBA::Long& l2); - // test long - - void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); - // test octet - - void test_char (CORBA::Char c1, - CORBA::Char& c2); - // test char - - void test_double (CORBA::Double d1, - CORBA::Double& d2); - // test double - - void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); - // test struct - - void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); - // test union - - void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); - // test any - - void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); - // test sequence - - void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); - // test struct - -private: - //= helper functions - they behave as if they were skeletons - void test_short_skel (CORBA::ServerRequest_ptr req); - void test_long_skel (CORBA::ServerRequest_ptr req); - void test_octet_skel (CORBA::ServerRequest_ptr req); - void test_char_skel (CORBA::ServerRequest_ptr req); - void test_double_skel (CORBA::ServerRequest_ptr req); - void test_struct_skel (CORBA::ServerRequest_ptr req); - void test_union_skel (CORBA::ServerRequest_ptr req); - void test_any_skel (CORBA::ServerRequest_ptr req); - void test_sequence_skel (CORBA::ServerRequest_ptr req); - void test_recursive_skel (CORBA::ServerRequest_ptr req); - - // we need the orb to create argument lists (NVList) for us - CORBA::ORB_ptr orb_; // not owned by us - -#if 0 - CORBA::NVList_ptr short_nv_; - CORBA::NVList_ptr long_nv_; - CORBA::NVList_ptr octet_nv_; - CORBA::NVList_ptr char_nv_; - CORBA::NVList_ptr double_nv_; - CORBA::NVList_ptr struct_nv_; - CORBA::NVList_ptr union_nv_; - CORBA::NVList_ptr any_nv_; - CORBA::NVList_ptr seq_nv_; - CORBA::NVList_ptr recursive_nv_; - CORBA::Any_ptr result_; // void result -#endif -}; - -#if defined (__ACE_INLINE__) -#include "visi_marshal_impl.i" -#endif /* __ACE_INLINE__ */ - -#endif // defined (VISI_MARSHAL_IMPL_H) diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i deleted file mode 100644 index 7e9405f734b..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.i +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Marshal_SSI_Impl::Marshal_SSI_Impl (const char *obj_name) - : _sk_Marshal (obj_name) -{ -} - -// destructor -ACE_INLINE -Marshal_SSI_Impl::~Marshal_SSI_Impl (void) -{ -} - -// constructor -ACE_INLINE -Marshal_DSI_Impl::Marshal_DSI_Impl (CORBA::ORB_ptr orb, const char *obj_name) - : orb_ (orb), - CORBA::DynamicImplementation ("Marshal", obj_name) // interface name is necessary -{ -} - -// destructor -ACE_INLINE -Marshal_DSI_Impl::~Marshal_DSI_Impl (void) -{ - orb_ = CORBA::ORB::_nil (); -} - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp deleted file mode 100644 index def599b3a02..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Visibroker marshal benchmark -// -// = FILENAME -// visi_marshal_server.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "visi_marshal_server.h" - -#if !defined (__ACE_INLINE__) -#include "visi_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(VisiBroker, visi_marshal_server, "$Id$") - -int -Visi_Marshal_Server_Proxy::run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results) -{ - char **argv; - int argc; - - // get the argument list to be passed on to the ORB_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->orb_ = CORBA::ORB_init (argc, (char *const *)argv); - if (this->orb_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // get the argument list to be passed on to the BOA_init method - argv = options.orb_init_args (argc); - - // get the orb. Pass any ORB_init arguments - this->boa_ = this->orb_->BOA_init (argc, (char *const *)argv); - if (this->boa_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "ORB_init failed\n")); - return -1; - } - - // tell the "results" object what file it must store the results into - results.filename (options.filename ()); - - // use SII or DII accordingly - switch (options.policy ()) - { - case CORBA_Marshal_Options::STATIC : // use SSI - this->ssi_ = new Marshal_SSI_Impl (options.object_name ()); - // register with the BOA - this->boa_->obj_is_ready (this->ssi_); - break; - case CORBA_Marshal_Options::DYNAMIC : // use DSI - this->dsi_ = new Marshal_DSI_Impl (this->orb_, ACE_OS::strdup (options.object_name ())); - // register with the BOA - try { - this->boa_->obj_is_ready (this->dsi_); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception in obj_is_ready" << se << endl; - } - break; - default: - ACE_DEBUG ((LM_DEBUG, "bad policy\n")); - return -1; - } - - try { - // call impl_is_ready - this->boa_->impl_is_ready (); - } - catch (CORBA::SystemException &se) - { - cerr << "system exception: " << se << endl; - } - return 0; -} - diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h deleted file mode 100644 index 36076c8fe90..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h +++ /dev/null @@ -1,60 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Marshal Visibroker Benchmark -// -// = FILENAME -// visi_marshal_server.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_VISI_MARSHAL_SERVER_H_) -#define _VISI_MARSHAL_SERVER_H_ - -// benchmark library includes -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" -#include "benchmark/marshal_proxy.h" - -// implementation classes -#include "visi_marshal_impl.h" - -// include VisiBroker specific include files -#include "marshalS.h" // generated by IDL compiler -#include "pmcext.h" // VisiBroker extensions - -class Visi_Marshal_Server_Proxy : public CORBA_Marshal_Proxy -{ -public: - Visi_Marshal_Server_Proxy (void); - // constructor - - ~Visi_Marshal_Server_Proxy (void); - // destructor - - virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); - // do the actual work -private: - CORBA::ORB_ptr orb_; - // underlying orb; - - CORBA::BOA_ptr boa_; - // underlying boa; - - Marshal_SSI_Impl *ssi_; - Marshal_DSI_Impl *dsi_; - // the implementation (SSI or DSI) -}; - - -#if defined (__ACE_INLINE__) -#include "visi_marshal_server.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i deleted file mode 100644 index d43226e0f57..00000000000 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.i +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -// constructor -ACE_INLINE -Visi_Marshal_Server_Proxy::Visi_Marshal_Server_Proxy (void) - : orb_ (0), - boa_ (0), - ssi_ (0), - dsi_ (0) -{ -} - -// destructor -ACE_INLINE -Visi_Marshal_Server_Proxy::~Visi_Marshal_Server_Proxy (void) -{ - // releasing order is important - - // release the impl - delete ssi_; - delete dsi_; - - // release the BOA - CORBA::release (boa_); - - // release the ORB - CORBA::release (orb_); -} diff --git a/TAO/Benchmark/benchmark/Makefile b/TAO/Benchmark/benchmark/Makefile deleted file mode 100644 index 9f5327741bf..00000000000 --- a/TAO/Benchmark/benchmark/Makefile +++ /dev/null @@ -1,125 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the CORBA_Benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LIBNAME = libbenchmark -LIB = $(LIBNAME).a -SHLIB = $(LIBNAME).$(SOEXT) - -FILES = driver \ - marshal_options \ - marshal_results \ - marshal_proxy - -LSRC = $(addsuffix .cpp,$(FILES)) - -LDLIBS = -lACE -LIBS = -lACE -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VSHLIB) $(VLIB) - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -CPPFLAGS += -I$(TAO_ROOT)/Benchmark/ - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/driver.o .shobj/driver.so: driver.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/driver.h \ - $(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/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i -.obj/marshal_options.o .shobj/marshal_options.so: marshal_options.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i -.obj/marshal_results.o .shobj/marshal_results.so: marshal_results.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.h \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.i -.obj/marshal_proxy.o .shobj/marshal_proxy.so: marshal_proxy.cpp \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_proxy.h \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_options.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.h \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_results.i \ - $(ACE_ROOT)/TAO/Benchmark/benchmark/marshal_proxy.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/Benchmark/benchmark/driver.cpp b/TAO/Benchmark/benchmark/driver.cpp deleted file mode 100644 index 2569f03ad56..00000000000 --- a/TAO/Benchmark/benchmark/driver.cpp +++ /dev/null @@ -1,60 +0,0 @@ -// $Id$ - -#include "benchmark/driver.h" - -ACE_RCSID(benchmark, driver, "$Id$") - -template -CORBA_Benchmark_Driver::CORBA_Benchmark_Driver (T *proxy) - : proxy_ (proxy) -{ -} - -template -CORBA_Benchmark_Driver::~CORBA_Benchmark_Driver (void) -{ - delete proxy_; -} - -template -int -CORBA_Benchmark_Driver::run (int argc, char *argv[]) -{ - // The run method delegates the task of parsing the command line options to - // the options data member - if (this->options_.parse_args (argc, argv) == -1) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot parse arguments\n")); - return -1; - } - -#if 0 - // get a handle to the proxy - this->proxy_ = this->options_.make_proxy (); - if (this->proxy_ == 0) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot make proxy\n")); - return -1; - } -#endif - - // The driver delegates the task of running the test to the newly created - // proxy - if (this->proxy_->run (this->options_, this->results_) == -1) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot run\n")); - return -1; - } - - // The driver delegates the task of printing the results to the TTCP_Results - // class - if (this->results_.print_results () == -1) - { - ACE_DEBUG ((LM_DEBUG, "CORBA_Benchmark_Driver cannot print results\n")); - return -1; - } - - return 0; -} - - diff --git a/TAO/Benchmark/benchmark/driver.h b/TAO/Benchmark/benchmark/driver.h deleted file mode 100644 index 690041eac73..00000000000 --- a/TAO/Benchmark/benchmark/driver.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// driver.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_CORBA_BENCHMARK_DRIVER_H_) -#define _CORBA_BENCHMARK_DRIVER_H_ - -#include "ace/Log_Msg.h" - -template -class CORBA_Benchmark_Driver -{ - // = TITLE - // CORBA Benchmark Driver. - // - // = DESCRIPTION - // This class encapsulates all the driver common to the CORBA benchmark - // tests. It provides a template to run the benchmarking code. The real - // work will be done by the PROXY class. -public: - - CORBA_Benchmark_Driver (PROXY *p); - // Constructor. - - ~CORBA_Benchmark_Driver (void); - // Destructor - - int run (int argc, char *argv[]); - // This is the starting point of all CORBA benchmark tests. - // Returns 0 on success, -1 on error. - -private: - PROXY *proxy_; - // the actual object that will do the work - - PROXY::RESULTS results_; - // Storage of test results. - - PROXY::OPTIONS options_; - // CORBA test command line options -}; - -#endif /* CORBA_BENCHMARK_DRIVER_H */ diff --git a/TAO/Benchmark/benchmark/marshal_options.cpp b/TAO/Benchmark/benchmark/marshal_options.cpp deleted file mode 100644 index 93fb039be0c..00000000000 --- a/TAO/Benchmark/benchmark/marshal_options.cpp +++ /dev/null @@ -1,282 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_options.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "benchmark/marshal_options.h" -#include "ace/Get_Opt.h" - -#if !defined (__ACE_INLINE__) -#include "benchmark/marshal_options.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(benchmark, marshal_options, "$Id$") - -static char *usage_string = -"Marshal_Test available options: \n\ --d : set debug ON \n\ --D : set TCP NO DELAY on \n\ --n : set the service name\n\ --s : set sender sock buf \n\ --r : set recv sock buf \n\ --h : hostname to listen/connect \n\ --p : port num to listen \n\ --i : number of iters \n\ --R : s(ender)/r(eceiver) \n\ --T : s(hort)/l(ong)/d(ouble)/o(ctet)/c(har)/\n\ - S(truct)/U(nion)/A(ny)/(se)Q/R(ecursive)\n\ --P : S(II/SI)/D(II/SI) depending on role \n\ --I : O(rbix)/V(isiBroker)/T(AO)\n\ --o : obj to bind to \n\ --f : filename to store results \n\ -"; - -int -CORBA_Marshal_Options::Usage (void) -{ - ACE_DEBUG ((LM_DEBUG, "%s\n", usage_string)); - return -1; -} - -int -CORBA_Marshal_Options::parse_args (int argc, char *argv []) -{ - int c; // option letter used - ACE_Get_Opt get_opt (argc, argv, "dDn:s:r:h:p:i:R:T:P:I:o:f:"); - - // ACE_DEBUG ((LM_DEBUG, "CORBA_Marshal_Options::parse_args\n")); - - while ((c = get_opt ()) != -1) - { - switch (c) - { - case 'd': // debug - this->debug (1); - break; - case 'D': // TCP NODELAY - this->disable_nagle (1); - break; - case 'n': - this->service_name (get_opt.optarg); - break; - case 's': // sender socket size - this->snd_socket_queue_size (ACE_OS::atoi (get_opt.optarg)); - break; - case 'r': // receive socket size - this->rcv_socket_queue_size (ACE_OS::atoi (get_opt.optarg)); - break; - case 'h': // hostname - this->hostname (ACE_OS::strdup (get_opt.optarg)); - break; - case 'p': // port number - this->port (ACE_OS::atoi (get_opt.optarg)); - break; - case 'i': // port number - this->iterations (ACE_OS::atoi (get_opt.optarg)); - break; - case 'R': // role - switch (*get_opt.optarg) - { - case 'S': // sender - case 's': // sender - this->role (SENDER); - break; - case 'R': // receiver - case 'r': // receiver - this->role (RECEIVER); - break; - default: - return this->Usage (); - } - break; - case 'T': // data type to test - switch (*get_opt.optarg) - { - case 's': // short - this->data_type (SHORT); - break; - case 'd': // double - this->data_type (DOUBLE); - break; - case 'o': // octet - this->data_type (OCTET); - break; - case 'c': // char - this->data_type (CHAR); - break; - case 'S': // Struct - this->data_type (STRUCT); - break; - case 'U': // Union - this->data_type (UNION); - break; - case 'A': // Any - this->data_type (ANY); - break; - case 'Q': // Sequence - this->data_type (SEQUENCE); - break; - case 'R': // Recursive - this->data_type (RECURSIVE); - break; - case 'l': // long, also the default - default: - this->data_type (LONG); - break; - } - break; - case 'P': // policy - switch (*get_opt.optarg) - { - case 'S': - case 's': - this->policy (STATIC); - break; - case 'D': - case 'd': - this->policy (DYNAMIC); - break; - default: - return this->Usage (); - } - break; - case 'I': // impl - switch (*get_opt.optarg) - { - case 'O': // Orbix - this->proxy_type (ORBIX); - break; - case 'V': // VisiBroker - this->proxy_type (VISIBROKER); - break; - case 'T': // TAO - this->proxy_type (TAO); - break; - } - break; - case 'o': // obj name - this->object_name (ACE_OS::strdup (get_opt.optarg)); - break; - case 'f': // file name to save results - this->filename (ACE_OS::strdup (get_opt.optarg)); - break; - default: // error - return this->Usage (); - } - } - return 0; -} - -int -CORBA_Marshal_Options::orb_init_args (int &argc, char *argv []) -{ - char buffer [200]; - - argc = 0; - switch (this->proxy_type_) - { - case ORBIX: - break; - case VISIBROKER: - { - ACE_OS::memset (buffer, '\0', 200); - if (snd_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer, "-ORBsendbufsize %d", snd_socket_queue_size_); - orb_init_args_ += ACE_CString (buffer); - argc ++; - } - - ACE_OS::memset (buffer, '\0', 200); - if (rcv_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer, "-ORBrcvbufsize %d", rcv_socket_queue_size_); - orb_init_args_ += ACE_CString (buffer); - argc ++; - } - } - break; - case TAO: - break; - } - ACE_OS::memset (buffer, '\0', 200); - ACE_OS::memcpy (buffer, boa_init_args_.rep (), boa_init_args_.length ()); - return 0; -} - -static char buffer [20][200]; - -int -CORBA_Marshal_Options::boa_init_args (int &argc, char *argv []) -{ - argc = 0; - switch (this->proxy_type_) - { - case ORBIX: - break; - case VISIBROKER: - { - ACE_OS::memset (buffer[argc], '\0', 200); - if (snd_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OAsendbufsize %d", snd_socket_queue_size_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (rcv_socket_queue_size_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OArcvbufsize %d", rcv_socket_queue_size_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (port_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OAport %d", port_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (hostname_ != 0 && role_ == RECEIVER) - { - ACE_OS::sprintf (buffer[argc], "-OAipaddr %s", hostname_); - // boa_init_args_ += ACE_CString (buffer[argc]); - argc ++; - } - } - break; - case TAO: - { - ACE_OS::memset (buffer[argc], '\0', 200); - if (port_ > 0) - { - ACE_OS::sprintf (buffer[argc], "-OAport %d", port_); - // boa_init_args_ += ACE_CString (buffer); - argc ++; - } - ACE_OS::memset (buffer[argc], '\0', 200); - if (hostname_ != 0 && role_ == RECEIVER) - { - ACE_OS::sprintf (buffer[argc], "-OAhostname %s", hostname_); - // boa_init_args_ += ACE_CString (buffer); - argc ++; - } - } - break; - } - // ACE_OS::memset (buffer, '\0', 200); - // ACE_OS::memcpy (buffer, boa_init_args_.rep (), boa_init_args_.length ()); - return 0; -} - diff --git a/TAO/Benchmark/benchmark/marshal_options.h b/TAO/Benchmark/benchmark/marshal_options.h deleted file mode 100644 index 51a02a38ffa..00000000000 --- a/TAO/Benchmark/benchmark/marshal_options.h +++ /dev/null @@ -1,209 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_options.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_CORBA_MARSHAL_OPTIONS_H_) -#define _CORBA_MARSHAL_OPTIONS_H_ - -#include "ace/OS.h" -#include "ace/SString.h" - -class CORBA_Marshal_Options -{ - // = TITLE - // CORBA_Marshal_Options - // = DESCRIPTION - // An encapsulation of all the CORBA_MARSHAL test parameters. This is - // used to communicate between the ACE_CORBA_Marshal_Driver and all - // specializations of CORBA_Marshal_Proxy. It must be noted that not all - // options will be valid for a given specialization of CORBA_Marshal_Proxy. This is - // a "all-encompassing" class. -public: - // The following data types will be tested - enum DATATYPE - { - NO_DATATYPE, - SHORT, - LONG, - DOUBLE, - CHAR, - OCTET, - STRUCT, - UNION, - ANY, - SEQUENCE, - RECURSIVE - }; - - // The following CORBA implementations will be tested - enum PROXY_TYPE - { - NO_PROXY, - TAO, - ORBIX, - VISIBROKER - }; - - // Invocation policy - enum POLICY - { - NO_POLICY, - STATIC, // SII, SSI - DYNAMIC // DII, DSI - }; - - // what role do we play? - enum ROLE - { - NO_ROLE, - SENDER, - RECEIVER - }; - - CORBA_Marshal_Options (void); - // Construction. Sets default values. - - ~CORBA_Marshal_Options (void); - // Destructor - - int parse_args (int argc, char *argv[]); - // Parse command line arguments. This decides what type of CORBA_MARSHAL - // test to run. - - // All the command line options - - //= Get/Set the data type to be sent/received - CORBA_Marshal_Options::DATATYPE data_type (void); - void data_type (CORBA_Marshal_Options::DATATYPE); - - //= Get/set the proxy type - CORBA_Marshal_Options::PROXY_TYPE proxy_type (void); - void proxy_type (CORBA_Marshal_Options::PROXY_TYPE); - - //= Get/Set the policy used by clients/servers for communication - CORBA_Marshal_Options::POLICY policy (void); - void policy (CORBA_Marshal_Options::POLICY); - - //= Get/Set whether we are client or server (sender/receiver) - CORBA_Marshal_Options::ROLE role (void); - void role (CORBA_Marshal_Options::ROLE); - - //= Get/Set the hostname client connects to or the interface on which the - //server listens to - const char *hostname (void); - void hostname (const char *); - - //= Get/set the port number on which the server listens - short port (void); - void port (short); - - //= Get/Set the object name (to which to connect to) - const char *object_name (void); - void object_name (const char *); - - //= Get/Set the service name (for impl is ready) - const char *service_name (void); - void service_name (const char *); - - // = Get/set receive sockbufsize. - int rcv_socket_queue_size (void); - void rcv_socket_queue_size (int); - - // = Get/set send sockbufsize. - int snd_socket_queue_size (void); - void snd_socket_queue_size (int); - - // = Get/set whether to use TCP_NODELAY or not - unsigned short disable_nagle (void); - void disable_nagle (unsigned short); - - // = Get/set whether to print debug messages. - unsigned short debug (void); - void debug (unsigned short); - - // =Get/Set filename to store results - const char *filename (void); - void filename (const char *fname); - - // =Get/set number of iterations - int iterations (void); - void iterations (int iter); - - int Usage (void); - // prints a usage message and always returns -1 - - int orb_init_args (int &argc, char * argv []); - // return a string that will be passed to the ORB init method based on the - // other options and proxy type - - int boa_init_args (int &argc, char * argv []); - // return a string that will be passed to the BOA init method based on the - // other options and proxy type - -private: - const char *object_name_; - // name of the object. - - const char *service_name_; - // name of the service. - - CORBA_Marshal_Options::DATATYPE data_type_; - // data type to send/receive - - CORBA_Marshal_Options::PROXY_TYPE proxy_type_; - // the proxy type, e.g., ACE, Orbix, VisiBroker, etc - - CORBA_Marshal_Options::POLICY policy_; - // communications policy used by the communicating entity - - CORBA_Marshal_Options::ROLE role_; - // Are we creating a sender or receiver? - - int rcv_socket_queue_size_; - // Size of socket queue. - - int snd_socket_queue_size_; - // Size of socket queue. - - unsigned short disable_nagle_; - // Nagle must be stopped. - - unsigned short debug_; - // Should we print debug messages? - - short port_; - // Port for socket connections to use. - - const char *hostname_; - // Host for senders to connect to. and servers to listen on - - const char *filename_; - // filename in which to store the results - - int iterations_; - // number of times to run the same test - - ACE_CString orb_init_args_; - // arguments to orb_init - - ACE_CString boa_init_args_; - // arguments to boa_init - -}; - -#if defined (__ACE_INLINE__) -#include "benchmark/marshal_options.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/benchmark/marshal_options.i b/TAO/Benchmark/benchmark/marshal_options.i deleted file mode 100644 index 6c860fac93c..00000000000 --- a/TAO/Benchmark/benchmark/marshal_options.i +++ /dev/null @@ -1,235 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_options.i -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -// constructor -ACE_INLINE -CORBA_Marshal_Options::CORBA_Marshal_Options (void) - : object_name_ (0), - data_type_ (CORBA_Marshal_Options::NO_DATATYPE), - proxy_type_ (CORBA_Marshal_Options::NO_PROXY), - policy_ (CORBA_Marshal_Options::NO_POLICY), - role_ (CORBA_Marshal_Options::NO_ROLE), - rcv_socket_queue_size_ (-1), - snd_socket_queue_size_ (-1), - disable_nagle_ (0), - debug_ (0), - hostname_ (0), - port_ (-1), - iterations_ (0) -{ -} - - -// destructor -ACE_INLINE -CORBA_Marshal_Options::~CORBA_Marshal_Options (void) -{ -} - -// set the data type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::data_type (CORBA_Marshal_Options::DATATYPE dt) -{ - data_type_ = dt; -} - -// get the data type to be transferred -ACE_INLINE CORBA_Marshal_Options::DATATYPE -CORBA_Marshal_Options::data_type (void) -{ - return data_type_; -} - -// set the proxy type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::proxy_type (CORBA_Marshal_Options::PROXY_TYPE pt) -{ - proxy_type_ = pt; -} - -// get the data type to be transferred -ACE_INLINE CORBA_Marshal_Options::PROXY_TYPE -CORBA_Marshal_Options::proxy_type (void) -{ - return proxy_type_; -} - -// set the policy type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::policy (CORBA_Marshal_Options::POLICY inv) -{ - policy_ = inv; -} - -// get the policy type to be transferred -ACE_INLINE CORBA_Marshal_Options::POLICY -CORBA_Marshal_Options::policy (void) -{ - return policy_; -} - -// set the role type to be transferred -ACE_INLINE void -CORBA_Marshal_Options::role (CORBA_Marshal_Options::ROLE my_role) -{ - role_ = my_role; -} - -// get the role type to be transferred -ACE_INLINE CORBA_Marshal_Options::ROLE -CORBA_Marshal_Options::role (void) -{ - return role_; -} - -// set the hostname -ACE_INLINE void -CORBA_Marshal_Options::hostname (const char *hname) -{ - hostname_ = hname; -} - -// get the hostname -ACE_INLINE const char* -CORBA_Marshal_Options::hostname (void) -{ - return hostname_; -} - -// set the post -ACE_INLINE void -CORBA_Marshal_Options::port (short portnum) -{ - port_ = portnum; -} - -// get the port -ACE_INLINE short -CORBA_Marshal_Options::port (void) -{ - return port_; -} - -// set the object name -ACE_INLINE void -CORBA_Marshal_Options::object_name (const char *objname) -{ - object_name_ = objname; -} - -// get the object name -ACE_INLINE const char * -CORBA_Marshal_Options::object_name (void) -{ - return object_name_; -} - -// set the service name -ACE_INLINE void -CORBA_Marshal_Options::service_name (const char *srvname) -{ - service_name_ = srvname; -} - -// get the service name -ACE_INLINE const char * -CORBA_Marshal_Options::service_name (void) -{ - return service_name_; -} - -// set the receive sock size -ACE_INLINE void -CORBA_Marshal_Options::rcv_socket_queue_size (int socksize) -{ - rcv_socket_queue_size_ = socksize; -} - -// get the receive sock size -ACE_INLINE int -CORBA_Marshal_Options::rcv_socket_queue_size (void) -{ - return rcv_socket_queue_size_; -} - -// set the sender sock size -ACE_INLINE void -CORBA_Marshal_Options::snd_socket_queue_size (int socksize) -{ - snd_socket_queue_size_ = socksize; -} - -// get the snd sock size -ACE_INLINE int -CORBA_Marshal_Options::snd_socket_queue_size (void) -{ - return snd_socket_queue_size_; -} - -// set whether Nagle algo is to be disabled -ACE_INLINE void -CORBA_Marshal_Options::disable_nagle (unsigned short val) -{ - disable_nagle_ = (val ? 1 : 0); -} - -// get whether Nagle algo is disabled -ACE_INLINE unsigned short -CORBA_Marshal_Options::disable_nagle (void) -{ - return disable_nagle_; -} - -// set whether debug is to be disabled -ACE_INLINE void -CORBA_Marshal_Options::debug (unsigned short val) -{ - debug_ = (val ? 1 : 0); -} - -// get whether debug is disabled -ACE_INLINE unsigned short -CORBA_Marshal_Options::debug (void) -{ - return debug_; -} - -// set the filename -ACE_INLINE void -CORBA_Marshal_Options::filename (const char *fname) -{ - filename_ = fname; -} - -// get the filename -ACE_INLINE const char* -CORBA_Marshal_Options::filename (void) -{ - return filename_; -} - -// set the iterations -ACE_INLINE void -CORBA_Marshal_Options::iterations (int iter) -{ - iterations_ = iter; -} - -// get the iterations -ACE_INLINE int -CORBA_Marshal_Options::iterations (void) -{ - return iterations_; -} diff --git a/TAO/Benchmark/benchmark/marshal_proxy.cpp b/TAO/Benchmark/benchmark/marshal_proxy.cpp deleted file mode 100644 index 9c2d4cf61d8..00000000000 --- a/TAO/Benchmark/benchmark/marshal_proxy.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_proxy.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "benchmark/marshal_proxy.h" - -#if !defined (__ACE_INLINE__) -#include "benchmark/marshal_proxy.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(benchmark, marshal_proxy, "$Id$") - diff --git a/TAO/Benchmark/benchmark/marshal_proxy.h b/TAO/Benchmark/benchmark/marshal_proxy.h deleted file mode 100644 index 7b3951f4e11..00000000000 --- a/TAO/Benchmark/benchmark/marshal_proxy.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_proxy.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined(_CORBA_MARSHAL_PROXY_H_) -#define _CORBA_MARSHAL_PROXY_H_ - -#include "benchmark/marshal_options.h" -#include "benchmark/marshal_results.h" - -class CORBA_Marshal_Proxy -{ - // = TITLE - // Abstract handle for all CORBA_Marshal tests. - // = DESCRIPTION - // The IMPL class is the CORBA specific class which does the real work. The - // IMPL class must support the run method -public: - typedef CORBA_Marshal_Options OPTIONS; - typedef CORBA_Marshal_Results RESULTS; - - CORBA_Marshal_Proxy (void); - // constructor - - virtual ~CORBA_Marshal_Proxy (void); - // destructor - - virtual int run (OPTIONS &, RESULTS &) = 0; - // run the test - -}; - -#if defined (__ACE_INLINE__) -#include "benchmark/marshal_proxy.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/benchmark/marshal_proxy.i b/TAO/Benchmark/benchmark/marshal_proxy.i deleted file mode 100644 index a5e95d393cd..00000000000 --- a/TAO/Benchmark/benchmark/marshal_proxy.i +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - - -ACE_INLINE -CORBA_Marshal_Proxy::CORBA_Marshal_Proxy (void) -{ -} - -ACE_INLINE -CORBA_Marshal_Proxy::~CORBA_Marshal_Proxy (void) -{ -} diff --git a/TAO/Benchmark/benchmark/marshal_results.cpp b/TAO/Benchmark/benchmark/marshal_results.cpp deleted file mode 100644 index 1c102d49eed..00000000000 --- a/TAO/Benchmark/benchmark/marshal_results.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_results.cpp -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "benchmark/marshal_results.h" - -#if !defined (__ACE_INLINE__) -#include "benchmark/marshal_results.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(benchmark, marshal_results, "$Id$") - -int -CORBA_Marshal_Results::log_results (void) -{ - return 0; -} - -int -CORBA_Marshal_Results::print_results (void) -{ - // ACE_DEBUG ((LM_DEBUG, "CORBA_Marshal_Results::print_results\n")); - - return 0; // success -} diff --git a/TAO/Benchmark/benchmark/marshal_results.h b/TAO/Benchmark/benchmark/marshal_results.h deleted file mode 100644 index 5d635cf83d7..00000000000 --- a/TAO/Benchmark/benchmark/marshal_results.h +++ /dev/null @@ -1,72 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark -// -// = FILENAME -// marshal_results.h -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_CORBA_MARSHAL_RESULTS_H_) -#define _CORBA_MARSHAL_RESULTS_H_ - -#include "ace/Profile_Timer.h" - -class CORBA_Marshal_Results -{ -public: - CORBA_Marshal_Results (void); - // Construction. - - ~CORBA_Marshal_Results (void); - // destructor. - - void clear (void); - // Clear all results. - - ACE_Profile_Timer::ACE_Elapsed_Time & elapsed_time (void); - // Get the elapsed time. - - ACE_Profile_Timer::Rusage elapsed_rusage (void); - // compute the rusage - - int start_timer (void); - // starts a profile timer. - - int stop_timer (void); - // stops the profile timer. - - void filename (const char *fname); - // set the name of the file to store results - - int log_results (void); - // log results - - int print_results (void); - // prints the results - -private: - - // = Used for performance statistics - ACE_Profile_Timer timer_; - ACE_Profile_Timer::ACE_Elapsed_Time et_; - ACE_Profile_Timer::Rusage rusage_; - - double elapsed_time_; - // Real elapsed time in seconds. - - const char *filename_; - // filename -}; - -#if defined (__ACE_INLINE__) -#include "benchmark/marshal_results.i" -#endif /* __ACE_INLINE__ */ - -#endif diff --git a/TAO/Benchmark/benchmark/marshal_results.i b/TAO/Benchmark/benchmark/marshal_results.i deleted file mode 100644 index aa914b2f3d3..00000000000 --- a/TAO/Benchmark/benchmark/marshal_results.i +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// CORBA Benchmark/Marshal -// -// = FILENAME -// marshal_results.i -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -ACE_INLINE -CORBA_Marshal_Results::CORBA_Marshal_Results (void) - : filename_ (0), - elapsed_time_ (0) -{ -} - -ACE_INLINE -CORBA_Marshal_Results::~CORBA_Marshal_Results (void) -{ -} - -ACE_INLINE int -CORBA_Marshal_Results::start_timer (void) -{ - return this->timer_.start (); -} - -ACE_INLINE int -CORBA_Marshal_Results::stop_timer (void) -{ - return this->timer_.stop (); -} - -ACE_INLINE ACE_Profile_Timer::ACE_Elapsed_Time & -CORBA_Marshal_Results::elapsed_time (void) -{ - (void) this->timer_.elapsed_time (this->et_); - return this->et_; -} - -ACE_INLINE ACE_Profile_Timer::Rusage -CORBA_Marshal_Results::elapsed_rusage (void) -{ - (void) this->timer_.elapsed_rusage (this->rusage_); - return this->rusage_; -} - -ACE_INLINE void -CORBA_Marshal_Results::filename (const char *fname) -{ - this->filename_ = fname; -} - - diff --git a/TAO/COPYING b/TAO/COPYING deleted file mode 100644 index c64992e2875..00000000000 --- a/TAO/COPYING +++ /dev/null @@ -1,40 +0,0 @@ -COPYRIGHT INFORMATION FOR TAO - -TAO is copyrighted by Douglas C. Schmidt and his research group at -Washington University, Copyright (c) 1997, all rights reserved. In -addition, some portions of TAO (particularly the IIOP protocol engine) -are copyrighted by SunSoft (see the ./IIOP/lib/COPYING.sun file for -more details). Likewise, TAO relies heavily on ACE, which is also -copyrighted by Douglas C. Schmidt and his research group at Washington -University (see the ../COPYING file for more details). - -You are free to do anything you like with the Wash. U. portions of -TAO's source code (and object code produced from the source). For -instance, you can include it in commercial software, as long as you -include this copyright statement along with code built using TAO. - -You are under no obligation to freely redistribute any of your source -code that is built using TAO. Please note, however, that you may not -do anything to the ACE code that will prevent it from being -distributed freely (such as copyrighting it or claiming authorship). - -TAO is provided as is with no warranties of any kind including the -warranties of design, merchantibility and fitness for a particular -purpose, noninfringement, or arising from a course of dealing, usage -or trade practice. - -TAO is provided with no support and without any obligation on the part -of Washington University, its employees, or students to assist in its -use, correction, modification or enhancement. - -Washington University, its employees, and students shall have no -liability with respect to the infringement of copyrights, trade -secrets or any patents by TAO or any part thereof. - -In no event will Washington University, its employees, or students be -liable for any lost revenue or profits or other special, indirect and -consequential damages. - - Douglas C. Schmidt - schmidt@cs.wustl.edu - diff --git a/TAO/COPYING.sun b/TAO/COPYING.sun deleted file mode 100644 index 7cd6795a942..00000000000 --- a/TAO/COPYING.sun +++ /dev/null @@ -1,67 +0,0 @@ -This notice applies to all files in this software distribution that -were originally derived from SunSoft IIOP code (these files contain -Sun Microsystems copyright notices). - -COPYRIGHT AND LICENSING ------------------------ - -Copyright 1995 Sun Microsystems, Inc. -Printed in the United States of America. -All Rights Reserved. - -This software product (LICENSED PRODUCT), implementing the Object -Management Group's "Internet Inter-ORB Protocol", is protected by -copyright and is distributed under the following license restricting -its use. Portions of LICENSED PRODUCT may be protected by one or more -U.S. or foreign patents, or pending applications. - -LICENSED PRODUCT is made available for your use provided that you -include this license and copyright notice on all media and -documentation and the software program in which this product is -incorporated in whole or part. - -You may copy, modify, distribute, or sublicense the LICENCED PRODUCT -without charge as part of a product or software program developed by -you, so long as you preserve the functionality of interoperating with -the Object Management Group's "Internet Inter-ORB Protocol" version -one. However, any uses other than the foregoing uses shall require -the express written consent of Sun Microsystems, Inc. - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of the LICENSED PRODUCT as permitted herein. - -This license is effective until terminated by Sun for failure to -comply with this license. Upon termination, you shall destroy or -return all code and documentation for the LICENSED PRODUCT. - -LICENSED PRODUCT IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND -INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A -PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -LICENSED PRODUCT IS PROVIDED WITH NO SUPPORT AND WITHOUT ANY -OBLIGATION ON THE PART OF SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY -WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY -PATENTS BY LICENSED PRODUCT OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE -LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND -CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY -OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and -FAR 52.227-19. - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems and the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - diff --git a/TAO/ChangeLog-97 b/TAO/ChangeLog-97 deleted file mode 100644 index 4c6b6143a1d..00000000000 --- a/TAO/ChangeLog-97 +++ /dev/null @@ -1,6672 +0,0 @@ -Wed Dec 31 23:29:59 1997 Nanbor Wang - - * tao/nvlist.cpp (add_value_consume): Added a space between * and - /* to avoid warning messages on NT. - -Thu Jan 01 14:22:34 1998 Douglas C. Schmidt - - * TAO version 0.0.50, released Thu Jan 01 14:22:34 1998. - -Thu Jan 1 13:31:55 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_sequence, be_state_sequence}.cpp: An unwanted - reference operator "&" was getting generated for sequences whose - element types were not special managed types. This was because the - case for handling the managed types somehow got mixed with the - normal ccase. Thanks to Nanbor Wang (nw1@cs.wustl.edu) for - pointing this out. - -Wed Dec 31 18:29:57 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_sequence, be_state_sequence}.cpp: Changed the way - we use managed types. Instead of allocating an array, we now - instantiate the - managed type on the fly i.e., when the operator [] is invoked. The - reasons for doing this are: (1) no need for dynamic memory - allocation for maintaining the array of managers (2) It was - causing all kinds of problems while decoding because the sizeof - such sequence classes was bigger than those without managed - types. However, due to this scheme, we can no longer define the [] - operator to return a reference because that would mean that a - reference to a local variable/temporary will be returned. Hence - changes were necessary in files. - - TypeCode generation was also erroneous. This is fixed. We were - generating wrong encapsulation length. - - * TAO_IDL/be/be_string.cpp: Indentation in typecode generation. - - * TAO_IDL/be/be_type.cpp: nested_type_name - improved to - eliminate one more strange error message getting generated by the - MSVC++ compiler. Still needs testing. - - * TAO/tao/{invoke, decode}.cpp: Reversed the changes which were - made to account for sequencese with managed types. We no longer - need these changes because sequences with managed types no longer - keep an extra data member. Thus the size of all sequences (top - level) is the same (so is the layout). - - * TAO/tao/nvlist.cpp: commneted out unused variables, parameters. - - * TAO/tests/Param_Test: Included tests for string sequences, - variable sized structs as well as nested structs. - -Tue Dec 30 13:46:44 1997 Nanbor Wang - - * tests/Cubit/TAO/IDL_Cubit/clnt.h (portnum_): Changed its data - type from CORBA::ULong to CORBA::UShort to kill warning - messages. - - * tao/orbobj.cpp (create_list): Changed data type of the loop - counter to CORBA::Long. This caused a warning message on VC. - - * doc/releasenotes/index.html: Added documentation for adding IDL - files into Visual C++'s projects. - - * tests/Param_Test/Param_Test.dsw: - * tests/Param_Test/client.dsp: - * tests/Param_Test/server.dsp: New workspace and projects were added. - -Tue Dec 30 10:15:11 1997 Irfan Pyarali - - * orbsvcs/Event_Service/Fast_Reactor.h (ACE_ES_Fast_Reactor): - Added the other version of handle_events to stop the compiler - from being cranky. - -Tue Dec 30 10:06:45 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_state_argument, be_state_operation, - be_state_attribute}.cpp - Unnecessary call on "init_mgr" for - sequences that do not have any managed types was getting - generated. This is fixed. In addition, MSVC++ compiler was - producing an error saying "ambiguous assignment" when an "_out" - variable was assigned to a pointer type. Solaris platform (CC and - g++) did not give any such errors since they were (most probably) - using the operator *() on the _out class, but MSVC++ did not. - - * TAO/tests/Cubit/IDL_Cubit/clnt.cpp: The same "ambiguous - assignment" error described above has been fixed here too. - - * TAO/tests/Param_Test: Added a method called "reset_parameters" - so that we do not change the "in" parameter for every - iteration. Previuosly we were settingthe in parameter differently - for every new iteration. However, for performance comparison - purposes, this was not correct (e.g., in the case of string - sequences or unbounded strings where everytime we were sending a - different lenght string and hence the performance numbers were - different for each run and couldn't be compared.) - -Mon Dec 29 21:51:38 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_sequence.cpp: get_name was returning a local - variable. In addition, added generationof a method called - "init_mgr" that must be used to initialize the sequence's - underlying mgr_ vector. - - There was some problem with bounded/unbounded sequence code - generation (an error in an if stmt). - - * TAO_IDL/be/{be_state_argument, be_state_attribute, - be_state_operation}.cpp - added code to generate the call to - init_mgr for sequences after the do_call is made. - - * TAO_IDL/be_include/be_sequence.h : gen_name returns char* rather - than const char* because we now allocate a new string and return - it. - - * TAO/tao/Makefile: applied make depend to incorporate nvlist.i - - * TAO/tao/corbacom.h: Added a "boolean release" field to - CORBA_SEQUNECE so that its layout is similar to the generated code - for sequences. - - * TAO/tao/decode.cpp: In sequence decode, we also set the release - flag to 1. In addition, for sequences of strings and objrefs, we - zero out additional 4 bytes that are used to store a pointer to - the manager array. - - * TAO/tao/deep_free.cpp: some indentation. Also passed the correct - parameter to string/wstring::decode - - * TAO/tao/invoke.cpp: In do_dynamic_call, for sequences of strings - (inclusing typedefed sequences of strings that themselves can be - typedefed), we must allocate size+4 bytes for demarshaling the - sequences. The extra 4 bytes are for the manager array pointer. - - * TAO/tao/nvlist.cpp: I the method item, the loop should have run - from o to max_ rather than upto len_. - - * TAO/tao/orbobj.cpp: Used placement new of NamedValue in the - create_list method. - - * TAO/tests/Param_Test: Added new tests for Fixed_Struct and - string sequence. Added a README file. - - * TAO/doc/releasenotes/index.html: updated with latest success stories. - -Thu Dec 25 20:36:58 1997 Douglas C. Schmidt - - * TAO version 0.0.49, released Thu Dec 25 20:36:58 1997. - -Thu Dec 25 18:43:03 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_state_attribute, be_state_argument}.cpp: Handled - teh remaining cases (except Arrays) that use the newly added - methiods to class NVList. The Param_Test test suite is being - developed to track any memory leaks. - - * TAO/tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Used sequence_var in - the cube_sequence function to avoid memory leaks. However, there - still are leaks. - -Wed Dec 24 18:44:47 1997 Douglas C. Schmidt - - * TAO version 0.0.48, released Wed Dec 24 18:44:47 1997. - -Wed Dec 24 18:44:02 1997 Douglas C. Schmidt - - * tao: Added the nvlist.i file to the tao/ directory. - -Wed Dec 24 18:11:08 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_operation, be_state_argument}.cpp: Added - "argument_count" method to be_operation which is helpful in - creating an NVList of the appropriate size. Previously we were - creating an empty list and adding parameters one by one. This was - causing a lot of reallocations which were wasteful. - - At this time, we have code base that can successfully send/receive - primitive data types as well as strings. - - * TAO_IDL/be_include/be_operation.h : Added a new method called - "argument_count" to give us the total number of parameters we - have. - - * TAO/tao/{any.cpp, connect.cpp, corbacom.i, decode.cpp, - iioporb.cpp, marshal.i, objtable.cpp, optable.cpp, request.cpp}: - In all these files, after a call to CORBA::string_free, we made - the pointer point to 0. Otherwise, purify was giving us "Free - Memory read" errors. Also, this was (by fluke) causing some - applications to run successfully. - - * TAO/tao/{nvlist.h, nvlist.cpp, nvlist.i, corba.h}: Added - unimplemented methods to NamedValue and NVList. Created a nvlist.i - file and updated corba.h - - * TAO/tao/corbacom.cpp: In an assignment operator for Sting_out, - we were not checking if the assignment was from ourselves. Also a - array was incorrectly being deleted as "delete ..." rather than - "delete [] ...". - - * TAO/tao/invoke.cpp: Inside do_call, we were not deleting memory - for the "in" part of the inout parameters. Right now we have fixed - this problem only for strings. Others will be added as new tests - are built. Do_dynamic_call also needs such a fix. NOT DONE in this release. - - * TAO/tao/orb_core.h, orb_core.cpp: ORB_init takes "const char*" - orb name as the argument instead of just char*. - - * TAO/tests/Param_Test: Successful in testing - "test_unbounded_string". removed a few memory leaks where we were - not deleting the client objects. - -Tue Dec 23 19:34:40 1997 Douglas C. Schmidt - - * TAO version 0.0.47, released Tue Dec 23 19:34:40 1997. - -Tue Dec 23 13:36:50 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_state_sequence.cpp: ACE_NESTED_CLASS must be - generated for seq elements that are scoped. We were generating - this macor only when seq elements were typedefs. However, seq - elements can also be structs or any other types that have an - enclosing scope. Thanks to Chris Gill for - the bug report. - - * TAO_IDL/be/be_state_operation.cpp: Similar problem as above for - return types of operations. Bug reported by Chris Gill. - - * TAO_IDL/be/be_exception.cpp: Whenever a _narrow fails, we were - trying to do a ACE_dynamic_cast to a 0. Instead, we now return a - 0. Again thanks to Chris Gill for - the bug report. - - * TAO_IDL/be/be_state_argument.cpp: We were ot generating a char - *& for inout string parameters. Instead only a char * was getting - generated. Fixed. - -Tue Dec 23 11:45:03 1997 Carlos O'Ryan - - * docs/releasenotes/index.html: - There is no need to set config=1 when compiling - TAO_ROOT/orbsvcs. - -Mon Dec 22 22:02:49 1997 Douglas C. Schmidt - - * TAO version 0.0.46, released Mon Dec 22 22:02:49 1997. - -Mon Dec 22 19:08:55 1997 Carlos O'Ryan - - * tao/corba.h: - * tao/except.cpp: - * tao/except.h: - The TAO_TRY macros use the _narrow methods for exceptions; - making the TAO_CATCH() macro fully functional. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.i: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Event_Service/RT_Task.cpp: - * orbsvcs/Event_Service/ReactorTask.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.h: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Changed the ACE_TRY (and friends) macros to TAO_TRY. - - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - Cleaned up some exceptions definitions. - - * orbsvcs/tests/Event_Latency/Makefile: - Since the schedule is not distributed (yet) by default we - compile the config run, hopefully this will cause less - confusion. - -Sun Dec 21 23:41:05 1997 Douglas C. Schmidt - - * TAO version 0.0.45, released Sun Dec 21 23:41:05 1997. - -Sun Dec 21 20:29:33 1997 - - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: * - tests/Cubit/TAO/MT_Cubit/server/server.dsp: Corrected erroneous - library pathes in Release version of project files. - -Sun Dec 21 18:30:41 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_codegen.cpp: The macro used in the #if !defined - (..) clause in the header files was incorrectly generated when IDL - file names had characters other than letters in it. Fixed. - - * TAO/tests/Param_Test: A new test suite to test all the parameter - passing modes - return, in, inout, and out for a large number of - IDL data types. The purpose of this test suite is to verify the - correctness of the stubs/skeletons generated by TAO IDL compiler, - eliminate any existing errors in the marshaling engine, track down - any memory leaks, and finally to measure the performance and fine - tune the code if required. In the first version of the test, we - only test "shorts". We will be adding other tests as soon as we - can. - -Sat Dec 20 00:34:45 1997 Sergio Flores - - * tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp (main): - * tests/Cubit/CORBAplus/MT_Cubit/client/Makefile: - * tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.h: - * tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/client/cubit.idl: - * tests/Cubit/CORBAplus/MT_Cubit/server/Makefile: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit.idl: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.h: - * tests/Cubit/CORBAplus/MT_Cubit/server/svr.cpp: - Ported the MT_Cubit example to CORBAplus. - -Fri Dec 19 11:33:51 1997 Sergio Flores - - - * tests/Thruput/CORBAplus/Makefile: - * tests/Thruput/CORBAplus/README: - * tests/Thruput/CORBAplus/client.cpp: - * tests/Thruput/CORBAplus/extract: - * tests/Thruput/CORBAplus/run: - * tests/Thruput/CORBAplus/run_client: - * tests/Thruput/CORBAplus/run_server: - * tests/Thruput/CORBAplus/run_test: - * tests/Thruput/CORBAplus/run_tests: - * tests/Thruput/CORBAplus/server.cpp: - * tests/Thruput/CORBAplus/ttcp.idl: - * tests/Thruput/CORBAplus/ttcp_decl.h: - * tests/Thruput/CORBAplus/ttcp_i.cpp: - * tests/Thruput/CORBAplus/ttcp_i.h: - * tests/Thruput/CORBAplus/utils.cpp: Ported the Thruput example to - CORBAplus for C++ by Expersoft. Try running the "run_tests" - script for the client side. - - * tests/Thruput/Orbix/Client.cpp: - * tests/Thruput/Orbix/Makefile: - * tests/Thruput/Orbix/README: - * tests/Thruput/Orbix/Srv_Main.cpp: - * tests/Thruput/Orbix/extract: - * tests/Thruput/Orbix/loop64: - * tests/Thruput/Orbix/orbixsol2s4.mk: - * tests/Thruput/Orbix/run: - * tests/Thruput/Orbix/run_client: - * tests/Thruput/Orbix/run_server: - * tests/Thruput/Orbix/run_test: - * tests/Thruput/Orbix/run_tests: - * tests/Thruput/Orbix/ttcp.idl: - * tests/Thruput/Orbix/ttcp_decl.h: - * tests/Thruput/Orbix/ttcp_i.cpp: - * tests/Thruput/Orbix/ttcp_i.h: - * tests/Thruput/Orbix/utils.cpp: Included the Thruput example for - IONAs Orbix ORB in the tests directory. - - * tests/Thruput/TAO/Makefile: - * tests/Thruput/TAO/README: - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/run: - * tests/Thruput/TAO/run_client: - * tests/Thruput/TAO/run_server: - * tests/Thruput/TAO/run_test: - * tests/Thruput/TAO/server.cpp: - * tests/Thruput/TAO/svc.conf: - * tests/Thruput/TAO/ttcp.idl: - * tests/Thruput/TAO/ttcp_decl.h: - * tests/Thruput/TAO/ttcp_i.cpp: - * tests/Thruput/TAO/ttcp_i.h: - * tests/Thruput/TAO/utils.cpp: Moved the TAO version of the - Thruput example to a "TAO" directory in the Thruput directory. - - * tests/Thruput_test: Renamed this directory to Thruput. - -Fri Dec 19 00:28:24 1997 - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (main): Removed some - random codes. - - * tao/tao_internals.cpp (close_services): Disabled closing down - the ACE_Service_Config when reference count drops to 0. - -Thu Dec 18 20:36:28 1997 Douglas C. Schmidt - - * TAO version 0.0.44, released Thu Dec 18 20:36:28 1997. - -Thu Dec 18 19:35:28 1997 Sergio Flores - - * orbsvcs/tests/Logger/clnt.cpp (init): - * orbsvcs/Naming_Service/CosNaming_i.cpp (bind_new_context): Fixed - a bug in the Naming Service and the Logger test program - implementation. Thanks to Marina Spivak for - debugging this. - -Thu Dec 18 16:18:01 1997 - - * TAO_IDL/be/be_sequence.cpp (gen_name): Removed a local variable - . It is no longer used. - - * TAO_IDL/be/be_union.cpp (gen_client_stubs): Removed local - variables and . They are not longer used. - -Thu Dec 18 15:50:01 1997 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - realclean was not removing all the IDL compiler generated - files. - -Thu Dec 18 15:06:23 1997 Aniruddha Gokhale - Thanks to Keith Nicewarner , Tom Richards - , and Carlos O'Ryan - for reporting bugs which led to some of the changes below. - - * TAO_IDL/be/be_array.cpp: Preliminary support for arrays. Not - complete. - - * TAO_IDL/be/{be_operation, be_attribute}.cpp: The ParamData - structure *must* hold the "size" of the outermost level of the - return values and out parameters because the ORB has to allocate - memory for it and hence needs to know the size. We had a 0 in it - which crashed any return types that were variable in size. - - * TAO_IDL/be/be_codegen.cpp: Added a new state for - unions. Corresponding change to the *.h file. - - * TAO_IDL/be/be_decl.cpp: Added a method called "scope" that - returns the corresponding scope defined by this node (if one - exists). Added method to the *.h file also. - - * TAO_IDL/be/be_scope.cpp: Added a method called "decl" that - returns the be_decl method corresponding to this scope. The header - file was also updated. - - * TAO_IDL/be/{be_exception, be_state_exception}.cpp: I was making - the most stupid mistake of generating constructors per member - rather than one constructor that takes all the members as a - parameter. - - * TAO_IDL/be/{be_sequence, be_state_sequence}.cpp: Changed the - naming scheme for anonymous sequences to avoid code bloat. - - * TAO_IDL/be/be_state.cpp: Added template instantiation for - additional state to deal with code generation of members of - unions. - - * TAO_IDL/be/be_state_structure.cpp: Made some changes so that - spurious code for array members doesn't get generated. - - * TAO_IDL/be/{be_union, be_state_union}.cpp: Added a new state - because we were not generating code for union members that were - sequences or structs. - - * TAO_IDL/be/be_type.cpp: Modified netsed_type_name to use the new - methods on class be_decl/be_scope. - - * TAO_IDL/be/be_union_branch.cpp: gen_client_stubs uses the same - strategy as the other gen_client methods. - - * TAO/tao/deep_free.cpp: In deep_free of structures, instead of - passing the address of a string member to be freed, we were simply - passing the string that led to a segmentation fault. A careful - code review is necessary. - - * TAO/tao/orb_core.cpp: Made "use_ior" as default as ooposed to - using the URL based scheme for IORs. This was necessary to have - interoperability with other ORBs. - - * TAO/tao/poa.cpp: The server request was being released - immediately after returning from the dispatch method. This should - be done after all return/inout/out parameters are marshaled. - -Tue Dec 17 12:53:01 1997 Brian Mendel - - * tao/encode.cpp: Additional changes for wchar's - -Tue Dec 17 10:37:45 1997 Brian Mendel - - * tao/TAO.dsp: Removed obsolete files from the VC++ project. - Changed name of folder from Include Files to Inline Files. - Inserted new header files for classview. - - * TAO_IDL/tao_idl.dsp: Added missing be_state_exception.cpp to the - the project to eliminate link error. - - * tao/corbacom.cpp: Inserted wslen and wscpy back to handle wchar - problems with VxWOrks and GHS. - - * tao/encode.cpp: Inserted wslen and wscpy back to handle wchar - problems with VxWOrks and GHS. - -Tue Dec 16 18:29:42 1997 Carlos O'Ryan - - * orbsvcs/README: - * docs/orbsvcs.html: - Started up the documentation for TAO services, at this point - only the directory hierarchy is explained. - -Tue Dec 16 08:49:11 1997 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h: Added three more states for - return types to be generated for operator [] of sequences of - strings and object references. - - * TAO_IDL/be_include/be_sequence.h: Added enum constants to - indicate what kind of managed type is handled by the sequence. For - sequences other than that of strings and objrefs, this enum const - is MNG_NONE. Added a new method that returns the managed type. - - * TAO_IDL/be/{be_sequence, be_state_sequence.cpp}: Added code to - generate sequences of strings and objrefs. This requires - generating special "managed" objects. In addition, for - be_state_sequence.cpp, we were not handling the case where base - types of sequences were not having any scope which resulted in - segmentation faults. - - * TAO_IDL/be/{be_state_argument, be_state_operation}.cpp: Some - small bugs fixed. These included lack of a whitespace in the - generated code as well as spurious extra level of indirection - getting generated. - - * TAO_IDL/be/be_type.cpp: "nested_type_name" now checks if the - scope with which are comparing is NUL or not before proceeding - further. Such a situation may arise for sequences whose base types - are anonymous (e.g., strings) and have no enclosing scope. - - * TAO/tao/managed_types.{h,cpp,i}: Removed. No more needed as teh - code is generated by the IDL compiler. Accordingly modified - corb.h and did a "make depend" on the Makefile. - - * TAO/docs/releasenotes/index.html: Updated to reflect new changes - as well as TO-DO stuff such as adding support for TIEs. - -Mon Dec 15 22:31:50 1997 Douglas C. Schmidt - - * TAO version 0.0.43, released Mon Dec 15 22:31:50 1997. - -Mon Dec 15 19:13:51 1997 Carlos O'Ryan - - * tao/Timeprobe.cpp: - Removed Solaris specific code, somehow it survived from some - debugging session. Thanks to Arturo Montes - for pointing out this bug. - -Mon Dec 15 16:52:58 1997 Nanbor Wang - - * TAO-INSTALL.html: Added some explanations for setting CPP_PATH - on NT. - -Mon Dec 15 16:49:58 1997 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (cube_sequence): declare - local variables "l" and "j" as u_int instead of int, to avoid - signed/unsigned comparison. - -Thu Dec 11 16:44:26 1997 Carlos O'Ryan - - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - Fixed typo missed on the previous release. - -Thu Dec 11 22:18:52 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Moved the code generation for the - _var and _out classes before the actual class declaration, but - after the forward declaration. This was necessary if any elements - in the scope of the interface are defined to be of the same type - as that interface. In such a situation those elements are defined - to be of the _var type. Hence the declaration for _var and _out - must precede the class declaration. - -Thu Dec 11 22:00:52 1997 Sergio Flores - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Fixed a bug - related to returning an empty string as the ior in the reply from - the multicast request. - -Thu Dec 11 14:06:50 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_exception,be_state_exception}.cpp: Support for - exceptions added. Added a new file called - "be_state_exception.cpp". - - * TAO_IDL/be_include/be_state.h: Added a new singleton for - be_state_exception. - - * TAO_IDL/be/be_state.cpp: Template instantiations for - be_state_exception. - - * TAO/docs/releasenotes/index.html: Updated to include exception - support. - - * TAO/tao/except.{h,cpp}: Moved the TypeCode member from the - private section to the protected section so that derived classes - can set it. Also, changed the variable from _type to type_ to - stick to the ACE design standards. - -Thu Dec 11 00:01:41 1997 Chris Cleeland - - * TAO version 0.0.42, released Thu Dec 11 00:01:41 1997. - -Wed Dec 10 23:04:04 1997 Carlos O'Ryan - - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - Still struggling with g++, it seems to use the wrong cast for - IDL generated T_out classes. - - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/clnt.h: - * orbsvcs/tests/Logger/svr.cpp: - These files were missed in the orbsvcs hierarchy - reorganization. - -Wed Dec 10 22:38:08 1997 Aniruddha Gokhale - - * TAO/tests/Cubit/TAO/DII_Cubit: Fixed the hand-crafted code to - make use of the many changes that were made to the dispatching - scheme as well as changes made to the signature of the skeletons - for operations of interfaces. - -Wed Dec 10 21:41:48 1997 Sergio Flores - - * docs/releasenotes/index.html: Updated the release notes on the - Naming Service. - -Wed Dec 10 20:13:57 1997 Carlos O'Ryan - - * Makefile: - Added orbsvcs to the hierarchy. - - * The orbsvcs directory was completely reorganized, in preparation - for its official release. The new hierarchy is: - - orbsvcs/orbsvcs: Contains a library with: - + The client stubs for the services. - + Common utility classes to access the services. - + The server skeletons, but not their implementation. - - orbsvcs/Naming_Service: the COSS Naming Service. - - orbsvcs/Scheduling_Service: TAO Real-Time Scheduling Service. - - orbsvcs/Event_Service: TAO Real-Time Event Service. - - orbsvcs/tests: test programs and examples. - - * docs/releasenotes/index.html: - Updated documentation on the Event Service and its friends. - -Wed Dec 10 19:57:07 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (Cubit_i::cube_sequence): - Changed to explicitly use the vector_out::ptr() method to get a - ptr. It seems that g++ wanted to interpret this expression - (output == 0) differently from Sun's C++, and this made both - interpret it in the desired way. - -Wed Dec 10 14:23:24 1997 Carlos O'Ryan - - * TAO_IDL/be/be_state_structure.cpp: - Fixed a bug when handling typedefs. - It was generating code for imported types, we protected the - generation with a !imported(), thank to Andy Gokhale - for helping me on this. - - * tao/connect.cpp: - Set the TCP_NODELAY option by default, otherwise oneway calls - are considerably slower. It should have no effect for twoway - calls. Anyway an option should be added to control this - behavior. - -Wed Dec 10 13:15:11 1997 Aniruddha Gokhale - - * TAO_IDL/be_include/{be_array, be_decl, be_field, be_module, - be_operation, be_predefined_type, be_structure, be_typedef}.h: - Added a protected function called "compute_size_type" which is - invoked if the size type of a data structure is not known in - advance. This happens for structs, unions, arrays, and typedefs - whose size type depends on their base types. - - * TAO_IDL/be/{be_array, be_decl, be_field, be_module, - be_operation, be_predefined_type, be_structure, be_typedef}.cpp: - Implementation of the "compute_size_type". - - * TAO_IDL/be/be_decl.cpp: Changed code that sets "size_type" so - that we first see if we are unknown in which case we set our size - type. However, once we are VARIABLE, no body can reset us to - fixed. Similarly, the overloaded size_type method that return the - size type first checks if our size is still unknown in which case - it calls for "compute_size_type". This is very essential for data - types defined in an imported (included) *.idl file. Thanks to Tom - Richards (tomr@mcmenterprise.com) for reporting the bug with - included file which resulted in this change. - - * TAO_IDL/be/be_state_attribute.cpp: Included a case for - IN_PARAM_TYPE_CH for strings (had previously forgotten to do so). - - * TAO_IDL/be/{be_state_structure, be_structure, be_field}.cpp: - Revamped so that we use the same switch based technique in - be_state_structure.cpp to generate code. For fields that are - sequences or structures or unions, we also generate their code. - - * TAO_IDL/be/be_state_argument.cpp: Thanks to Tom Richards and - Carlos O'Ryan for noticing a bug when we use out sequences. There - used to be a seg fault in deep_free.cpp because a NUL pointer was - being owned by an Any and getting freed. In the server skeleton, - for out params we now generate code after the upcall is made so - that for out parameter value is inserted in the NVList that is - marshaled by the server. - - * TAO_IDL/be/be_interface.cpp: In the generated call to _is_a, we - were calling CORBA::Object::_is_a if a remote call is - necessary. However, MSVC++ cannot handle a call of the form - CORBA::Object::_is_a. So we have to generate code that uses - ACE_CORBA_3 so as to be portable. Thanks to Nanbor Wang - (nw1@cs.wustl.edu). - - * TAO/test/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed the type of the - variable that was passed as the out parameter to cube_sequence. - -Wed Dec 10 01:02:36 1997 Chris Cleeland - - * tao/iiopobj.cpp (set): Added a special case to IIOP Profile::set - so that if the address is INADDR_ANY, it uses the host name, but - otherwise uses the IP address. This eliminates the cryptic - appearance of the address "0.0.0.0" in a server's IOR. - -Tue Dec 9 21:48:52 1997 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - The sequence test is not running right now, I'm commenting it - out until we can make it work properly. - -Tue Dec 9 18:02:43 1997 Chris Cleeland - - * tao/orb_core.cpp: The moral of this changelog entry is to be - VERY careful when cutting and pasting code...the - resource_factory() accessor should not be setting the - client_factory_ member at all! - -Tue Dec 9 11:55:50 1997 Chris Cleeland - - * tao/compat/objbase.h: Added NOERROR as #define if we're not on - WIN32 so that IDL-generated code would continue to work. - - * tao/tao_internals.cpp: Changed faked Resource Factory resource - source specifier to "tss" rather than "global". - - * tao/orb_core.*: Added resource_factory() accessor to - TAO_ORB_Core. This will create a default instance if it can't - locate one in the Service Repository, which will allow - applications to not encounter a hard failure when a svc.conf file - is missing. A warning message is emitted stating that a default - is being used. Applications should not rely on the default - settings, as it is very likely that the applicat might require - alternate settings for proper desired operation. - - * tao/default_server.*: Added TAO_Reactive_Strategy template - class to use in place of the ACE_Reactive_Strategy. It's only - difference from ACE_Reactive_Strategy is that instead of using the - reactor provided in the open method, it always uses that found - through the TAO_ORB_Core_instance(). This fix was motivated by a - general problem which was only observable on VxWorks with a - special pseudo-network transport. - - * tao/connect.cpp: Added code to fail gracefully if socket buffer - size changes are not supported. - -Mon Dec 8 13:11:46 1997 Carlos O'Ryan - - * docs/releasenotes/index.html: - Added more information on how the Event Channel and friends are - going. - - * orbsvcs/bin/Naming_Service/svc.conf: - Removed some foreign ^M from the file. - - * tao/Makefile: - * tao/connect.cpp: - * tao/giop.cpp: - * tao/orbobj.cpp: - * tao/Timeprobe.i: - * tao/Timeprobe.h: - * tao/Timeprobe.cpp: - Added a instrumentation class to measure time interval, also - instrumented some code, as part of the ongoing effort to - optimize the EC, unfortunately the problems are not in TAO ;-) - The code is only instrumented if compiled using probe=1, no - overhead is introduced in normal compiles. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - Addded code to test sequences (as input and output parameters) - they don't work (yet). - - * orbsvcs/lib/Makefile: - * orbsvcs/lib/Timeprobe.h: - * orbsvcs/lib/Timeprobe.i: - * orbsvcs/lib/Timeprobe.cpp: - The file was moved toTAO_ROOT/tao. - - * orbsvcs/lib/Scheduler_Factory.cpp: - Fixed default dump file, it was using stdout! - -Sat Dec 06 15:42:25 1997 - - * tests/Cubit/TAO/IDL_Cubit/{server,client}.dsp: Updated link time - library names. - - * tao/any.cpp: - * tao/any.h: - * tao/corba.h: - * tao/corbacom.h: - * tao/decode.cpp: - * tao/encode.cpp: - * tao/except.cpp: - * tao/except.h: - * tao/giop.cpp: - * tao/iiopobj.cpp: - * tao/iiopobj.h: - * tao/iioporb.cpp: - * tao/iioporb.h: - * tao/nvlist.cpp: - * tao/nvlist.h: - * tao/object.cpp: - * tao/object.h: - * tao/object.i: - * tao/orbobj.cpp: - * tao/orbobj.h: - * tao/orbobj.i: - * tao/poa.cpp: - * tao/poa.h: - * tao/principa.cpp: - * tao/principa.h: - * tao/request.cpp: - * tao/request.h: - * tao/stub.h: - * tao/svrrqst.cpp: - * tao/svrrqst.h: - * tao/typecode.cpp: - * tao/typecode.h: - * tao/compat/initguid.h: - * tao/compat/objbase.h: Removed dependencies on Microsoft's DCOM - files. Below is a list of names that got changed. - - HRESULT -> TAO_HRESULT - IID -> TAO_IID - IUnknown -> TAO_IUnknown - IID_IUnknown -> IID_TAO_IUnknown - SCODE -> TAO_SCODE - NOERROR -> TAO_NOERROR - E_NOINTERFACE -> TAO_E_NOINTERFACE - VARTYPE -> TAO_VARTYPE - VARENUM -> TAO_VARENUM - CY -> TAO_CY - VARIANT -> TAO_VARIANT - DATE -> TAO_DATE - -Fri Dec 5 11:42:25 1997 Chris Cleeland - - * tao/iiopobj.cpp (set): Changed the IIOP::Profile::set() methods - which take an ACE_INET_Addr to retrieve the host IP address rather - than host name for storage in the profile. This is motivated by - the following situation: machine has 3 interfaces (not including - loopback), and it is desired that clients and servers communicate - across only one interface. - - When our IDL_Cubit example's factory created new Cubit instances, - the set() method would set the host name for that IIOP::Profile to - whatever ACE_INET_Addr::get_host_name() returned. In this case, - the IP addr for interface 3 (which is not the primary interface) - would return a *LIST* of names in which the first name was that of - the primary interface. Thus, the IP address used by the client - would be wrong. - - * tao/object.h: Minor corrections to header comments. - - * tao/{orb_core,orbobj}.{h,cpp}: Moved server_factory and - client_factory ptr storage from CORBA_ORB to TAO_ORB_Core. It - really didn't belong there in the first place. - - * tao/poa.cpp: CTOR now fetches server factory ptr from the - TAO_ORB_Core rather than from the ORB. - -Thu Dec 4 18:20:55 1997 Chris Gill - - * TAO_IDL/tao_idl.dsp: Changed hard coded path for cl.exe to CPP_PATH - environment variable - -Thu Dec 4 11:23:55 1997 Aniruddha Gokhale - - * TAO_IDL/include/{idl,ast,utl_idlist, utl_identifier}.h: removed - #include "ace/stdcpp.h" since this file was removed from - ACE. Instead we now include "ace/streams.h" in idl.h - - Also made make depend on all the Makefiles. - -Wed Dec 3 16:08:34 1997 Carlos O'Ryan - - * orbsvcs/lib/Event_Utilities.cpp: - * orbsvcs/lib/Event_Utilities.i: - * orbsvcs/lib/RtecEventComm.idl: - Added some more time-stamps to the events to track and measure - the delays as they move on the EC. - - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventChannelAdminS.i: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecEventCommS.i: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - * orbsvcs/lib/RtecSchedulerS.cpp: - * orbsvcs/lib/RtecSchedulerS.h: - * orbsvcs/lib/RtecSchedulerS.i: - Thanks to Andy Gokhale efforst the IDL compiler is able to emit - proper code for the EC&friends, hence I'm removing the - hand-crafted files. - -Wed Dec 3 11:12:48 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Had forgotten to emit code that - adds one more cast to the base POA_* class in the generated *S.i - file. - -Wed Dec 03 09:40:36 1997 David L. Levine - - * tao/Makefile: added TAO_PLATFORM_SVC_CONF_FILE_NOTSUP to - CPPFLAGS on CHORUS. Thanks to Wei Chiang for this change. - -Tue Dec 2 15:47:09 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.h: Added some helper methods to generate - additional code in the form of larger operation tables, and - skeletons. This situation arises when we have single/multiple - inheritance of interfaces. - - * TAO_IDL/be_include/be.h: Included ace/Containers.h for the - ACE_Unbounded_Queue that uses the breadth-first strategy used in - be_interface.cpp - - * TAO_IDL/be/{be_interface,be_operation,be_attribute}.cpp: Added code - to generate a new "virtual void dispatch" method on the skeleton - classes. The dispatch method enables us to access the most derived - type when invoking the skeleton for a method. The skeletons - instead of taking a CORBA::Object_ptr, now take void*. The - skeletons themselves cast this void* to the appropriate POA_* - type. - - In addition to the above, for the case of inheritance of - interfaces, it is not appropriate to pass a pointer to the most - derived class as a void* to the skeleton of a base class and cast - that to the POA_* of the base class. So we generate inlined code - for skeletons of methods in the most derived class even if those - methods were defined in the base classes. These inlined skeletons - simply cast the object pointer to the right type and invoke the - corresponding skeleton of the base class method. - - be_interface.cpp defines a template method to traverse the entire - inheritance graph. This traversal is done using a breadth-first - traversal. This traverse method takes a pointer to one of the - static helper methods defined on class be_interface. Each helper - achieves a different purpose such as generation of extended - operation tables, providing comparisons of repositoryIDs of base - classes in the _is_a methods of derived classes. - - The client-side class now defines a virtual CORBA::Boolean _is_a - method. This uses local knowledge of repository ids thereby - preventing the expensive remote call in most cases. All changes - made in be_interface.cpp - - * TAO/tao/corbacom.h: Changed the signature of TAO_Skeleton so that - it uses void*obj and a void *context. - - * TAO/tao/object.h: Added a virtual dispatch method as explained - above. - - * TAO/tao/orb.h: Redefinition of TAO_Skeleton removed. - - * TAO/tao/poa.cpp: Changed the demultiplexing code to reflect the - change made with the dispatch method. The poa on finding the right - object corresponding to the key, now invokes the dispatch method - on that object which by dynamic binding invokes the dispatch - method of the POA_* class. - -Tue Dec 02 15:29:41 1997 - - * tao/{connect,orb_core}.h: Moved Win32 specific template - specialization declaration from connect.h to orb_core.h because - the definition had moved to orb_core.i. - - * tao/object.cpp: Removed conditional directives around - DEFINE_GUID for IID_IUnknown. This is now defined for Win32 - also. - - * tao/TAO.dsp: Removed macro definition __IIOP_BUILD. It was not - used anywhere. - -Tue Dec 2 10:25:47 1997 Carlos O'Ryan - - * tao/corba.h: - Fixed some problems with the ACE_RETHROW macros. - - * orbsvcs/lib/Makefile: - * orbsvcs/lib/Timeprobe.h: - * orbsvcs/lib/Timeprobe.i: - * orbsvcs/lib/Timeprobe.cpp: - Added a high resolution timer facility, to measure the delays in - the Event Channel and in its client. - - * orbsvcs/lib/RtecEventComm.idl: - Changed the time_ field of Event to a double. It should be an - structure or a long long, but double is big enough to store - - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - * orbsvcs/lib/RtecSchedulerS.cpp: - * orbsvcs/lib/RtecSchedulerS.h: - Regenerated the files using the newest IDL compiler; still some - hand crafting due to inherited classes. - -Tue Dec 2 03:12:50 1997 Sergio Flores - - * tao/orbobj.cpp (resolve_name_service): Check for errors when - resolving using the "NameService" environment variable. - - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp (NS_NamingContext): - * orbsvcs/bin/Naming_Service/CosNaming_i.h (NS_NamingContext): - - Added constructor that takes a key to initialize the object, - instead of using the default name generation. - - Enabled some exceptions that are already supported. - - * orbsvcs/bin/Naming_Service/svr.cpp (main): Create first naming - context with key "NamingContext". And minor changes. - - * tests/Cubit/CORBAplus/IDL_Cubit/Makefile: - * tests/Cubit/CORBAplus/IDL_Cubit/README: - * tests/Cubit/CORBAplus/IDL_Cubit/clnt.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/clnt.h: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit.idl: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.h: - * tests/Cubit/CORBAplus/IDL_Cubit/svr.cpp: Ported the IDL cubit - example to CORBAplus. Currently, the calls using DII are not - ported, so only the "cube average" and the "cube_union_stub" stats - are printed. - -Mon Dec 1 16:51:08 1997 Chris Cleeland - - * tao/except.{h,cpp}: Changed semantics of CORBA::Exception so - that the mere creation of them does not take a reference. - Instead, the user of the exception is expected to call AddRef(). - CORBA::Environment has been modified (and even documented!) to - reflect that as well. - -Sun Nov 30 17:08:56 1997 Carlos O'Ryan - - * orbsvcs/lib/RtecSchedulerC.cpp: - Added missed parameter in do_call() for - RtecScheduler::Scheduler::set(). - -Sat Nov 29 13:34:58 1997 Carlos O'Ryan - - * tao/stub.i (STUB_Object): - No need to release type_id, since it is a String_var now. Thanks - to Wei Chiang for pointing this out. - - * giop.cpp: - If things go wrong TAO_GIOP::send_request will close the - handler and set it to zero, but only a temporary was - affected, I decided to set the original value to zero also; - based on the return value. - -Wed Nov 26 23:24:57 1997 - - * TAO version 0.0.41, released Wed Nov 26 23:24:57 1997. - -Wed Nov 26 16:40:29 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed release calls to use - the CORBA standard version rather than the non-standard TAO - Release() method. Also moved the client's parse_args() AFTER the - ORB_init() so that -ORB parameters were parsed correctly. - - * tao/params.*: Added storage for send and receive socket buffer - size to be used for all newly created sockets. These sizes are - initialized to ACE_DEFAULT_MAX_SOCKET_BUFSIZ, and can be changed - by the user by using -ORBsndsock and -ORBrcvsock. - - * tao/orbobj.h: Added documentation. - - * tao/orb_core.i: Changed system-specific conditional compilation - to use the more general ACE_LACKS_TEMPLATE_SPECIALIZATION. - - * tao/orb_core.cpp: Added code to make -ORBsndsock and -ORBrcvsock - options actually work. Added -ORBpreconnect option to implement - pre-cached connections. - - * tao/giop.cpp: Removed the old static inline version of - start_message(). Also changed to use send_n() to guarantee - correct blocking nature on Win32 with the WFMO Reactor. - - * tao/connect.cpp: Changed set_option() calls to use the socket - buffer sizes stored in the TAO_ORB_Parameters instance. Also - added a correct environment-clearing call before initializing a - request. - - * tao/client_factory.h: Removed extraneous code. - - * tao/{connect,any,giop,iiopobj,marshal,nvlist,objtable,optable, - orb_core,poa,principa,stub,svrrqst,typecode}.h: - Addressed or assigned some '@@' comments. - - * docs/releasenotes/orbcore.html: Added information regarding new - options, known bugs, etc. - - * docs/Options.html: Added documentation for new -ORBpreconnect - option. - - * TAO_IDL/be/Makefile: Added an explicit PIC=-fPIC for when g++ is - being used as the compiler. This fixes the linker complaints. - -Sat Dec 20 14:57:30 1997 - - * All MSVC 5.0 project files: Removed unnecessary library - inclusions. Most of them are not necessary. - -Tue Nov 25 20:49:24 1997 Carlos O'Ryan - - * tao/orbobj.h: - * tao/orbobj.cpp: - * tao/orb_core.cpp: - * tao/params.h: - * tao/params.cpp: - Removed the parameters to specify the event service and schedule - service IOR, the naming service is working now so it can be - used. And the support in "resolve_initial_references". - - * tao/corbacom.i: - * tao/decode.cpp: - Reverted the previous change, but this time added proper - comments: the spec says that a Naming_var taking a is - *not* supposed to copy it. Hence the ObjRef decoder cannot - release the string it just read. - -Mon Nov 24 20:40:47 1997 Carlos O'Ryan - - * tao/corbacom.i: - Fixed string allocation problem for String_var(char*): if it - does not copy the string we run into problems with the - demarshalling code. - - * orbsvcs/lib/Event_Utilities.cpp: - * orbsvcs/lib/Event_Utilities.h: - * orbsvcs/lib/Event_Utilities.i: - * orbsvcs/lib/RtecEventChannelAdmin.idl: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - Removed the unused forward_event parameter in the ConsumerQoS. - - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - Hand crafted the T_out constructors to take a "const T_out&" - instead of just "T_out&". - -Sat Nov 22 18:21:10 1997 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h, be/be_codegen.cpp: Added a - number of states to handle attributes - - * TAO_IDL/be/{be_attribute,be_state_attribute}.cpp: Code added to - handle attributes. This code is a mix of code that is used to - handle operations as well as arguments because for attributes we - have 2 methods, one to set the value and one which returns the - value. For a readonly attribute, there is only the get method. - - A special note: Due to the large switch statement, I had to use - -fPIC for g++. We are working on abstracting all the commin - functionality once we have the basic IDL compiler working. - - * TAO_IDL/be/be_interface.cpp: Operation table now also includes - methods to set and get the attributes if they are present. In - addition, the variable name for the operation tables is now the - full flattened name to avoid conflicts. - - * TAO_IDL/be/be_sequence.cpp: In the length method, the index of - lookp variable "i" is changed from "int" to CORBA::ULong as g++ - was issuing a warning. - - * TAO_IDL/be/be_string.cpp, be_state_argument,cpp: Proper handling - of in, inout, and out strings that are either anonymous or are - typedefed. - -Fri Nov 21 13:22:39 1997 Douglas C. Schmidt - - * TAO version 0.0.40, released Fri Nov 21 13:22:39 1997. - -Thu Nov 20 10:31:24 1997 Chris Cleeland - - * tao/orbconf.h (SIZEOF_LONG_DOUBLE): Made sure this is defined - properly for Chorus. Thanks to Wei Chiang - for submitting these! - - * tao/orb_core.cpp (init): Added some changes for Chorus. Thanks - to Wei Chiang for submitting these! - - * tao/object.cpp (_is_a): Explicitly specify which conversion - operator to use when comparing type_id to 0. - -Thu Nov 20 00:10:52 1997 Sergio Flores - - * orbsvcs/tests/Logger/clnt.h : - * orbsvcs/tests/Logger/clnt.cpp (Logger_Client): Fixed a bug - dealing with using "_bind" when the naming service is not - available. - -Thu Nov 20 00:06:03 1997 Douglas C. Schmidt - - * TAO version 0.0.39, released Thu Nov 20 00:06:03 1997. - -Thu Nov 20 00:01:06 1997 Douglas C. Schmidt - - * tao/Makefile: Reordered the files so they are built in - alphabetic order (within each grouping of targets). This makes it - easier to see how the compilation process is doing ;-). - -Wed Nov 19 22:59:18 1997 Sergio Flores - - * tao/orbobj.cpp (resolve_name_service): Minor change to output - debug statement. - -Wed Nov 19 23:01:46 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_state_operation.cpp: Fixed the problem with - strings as return values. Thanks to Mark L Boriack - for reporting this. - -Wed Nov 19 20:48:01 1997 James C Hu - - * tests/Thruput_test/server.cpp: Commented out some unreachable - code at the bottom of main. - -Wed Nov 19 19:04:53 1997 Sergio Flores - - * tao/decode.cpp (decode): Added a cast so that compiler would - know which operator to call. - - * orbsvcs/bin/Naming_Service/svr.cpp (handle_input): Change port - number received to host byte order. Minor changes. - - * tao/orbobj.cpp (resolve_name_service): Send port number in - network byte order. - -Wed Nov 19 17:45:52 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Put in proper release of - resources after _narrow operation. - - * tao/stub.h: Used CORBA::String_var as the underlying type for - 'type_id' in STUB_Object. In the long run this may be a bad idea - for performance considerations, but we may be able to improve that - by improving the implementation of String_var. - - * tao/orbobj.cpp: Removed unreachable ACE_NOTSUP_RETURN. - - * tao/decode.cpp: Made allocation and free semantics of - 'type_hint' consistent with its type of CORBA::String. - -Wed Nov 19 17:33:42 1997 Sumedh Mungee - - * Task_Client.cpp: Fixed error_count.. Thanks to James Hu. - -Wed Nov 19 17:20:45 1997 James C Hu - - * TAO_IDL/be/be_operation.cpp: Removed an unreachable return - statement. There was already a return above it. - - * TAO_IDL/ast/ast_expression.cpp: Added casts to comparisons of - char variables to 0, since chars are unsigned by default in - SGI. - - * tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp: Removed a - couple of unreachable return statements. There are still - unreachable statements remaining. Need help with them. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: - Meaningless type qualifier (const ...) removed. - - Some functions were returning `retval' before it was set. I had - these functions return a passed in paramenter instead. - -Wed Nov 19 13:50:36 1997 Douglas C. Schmidt - - * TAO version 0.0.38, released Wed Nov 19 13:50:36 1997. - -Wed Nov 19 13:11:53 1997 David L. Levine - - * orbsvcs/lib/Scheduler_Factory.cpp (dump_schedule): changed loop - index from int to u_int to avoid signed/unsigned comparison. - (use_runtime): return 0. - - * orbsvcs/lib/Event_Utilities.cpp (debug): changed loop - index from int to u_int to avoid signed/unsigned comparison. - -Wed Nov 19 12:22:50 1997 Chris Cleeland - - * tao/orbobj.cpp (resolve_name_service): Reverted some of the - minor changes below, specifically the use of ACE_ERROR_RETURN - rather than ACE_ERROR/return. ACE_ERROR_RETURN cannot be used - as-is because the 2nd parameter is used as an 'int' to specify the - operational status, and the return value of this function is NOT - an int. Also had to add a missing semi-colon which caused none of - the code to compile. - -Wed Nov 19 12:07:42 1997 Douglas C. Schmidt - - * TAO version 0.0.37, released Wed Nov 19 12:07:42 1997. - -Wed Nov 19 10:37:19 1997 Carlos O'Ryan - - * orbsvcs/lib/Scheduler_Factory.cpp: - The type declared for the rt_info array was wrong. - -Wed Nov 19 09:18:30 1997 Douglas C. Schmidt - - * TAO version 0.0.36, released Wed Nov 19 09:18:30 1997. - -Wed Nov 19 09:15:15 1997 Douglas C. Schmidt - - * tao/orbobj.cpp (resolve_name_service): Made a bunch of minor - Changes for resolving the Naming service. - -Wed Nov 19 08:44:12 1997 Brian Mendel - - * tests/Cubit/TAO/DII_Cubit/default.bld: - * tests/Cubit/TAO/DII_Cubit/clnt.bld: - * tests/Cubit/TAO/DII_Cubit/svr.bld: - * tests/Cubit/TAO/IDL_Cubit/default.bld: - * tests/Cubit/TAO/IDL_Cubit/clnt.bld: - * tests/Cubit/TAO/IDL_Cubit/svr.bld: - * tests/Cubit/TAO/MT_Cubit/default.bld: - * tests/Cubit/TAO/MT_Cubit/clnt.bld: - * tests/Cubit/TAO/MT_Cubit/svr.bld: Added build files in the new - test structure for VxWorks using the GHS compiler. - - * tests/Cubit/Build: Removed the obsolete build directory for vxWorks. - -Wed Nov 19 07:47:13 1997 Douglas C. Schmidt - - * TAO version 0.0.35, released Wed Nov 19 07:47:13 1997. - -Wed Nov 19 05:53:42 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: - * tests/Cubit/TAO/DII_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: Changed code to add loop - around all cube calls, and make output more consistent. - - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/ior_multicast.cpp: - * orbsvcs/tests/Logger/ior_multicast.h: Removed unneeded - ior_multicast.* source files from the logger example. It now uses - the resolve_initial_references() to use the naming service for its - advertisement. - - * orbsvcs/lib/Makefile (realclean): Updated with realclean & clean - rules to delete CosNamingS.* and CosNamingC.* - - * docs/releasenotes/index.html: Updated status of the naming - service to working implementation. - - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/CosNamingS.i: - * orbsvcs/lib/CosNamingS.h: - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingC.i: - * orbsvcs/lib/CosNamingC.h: Removed these files from the - repository, since the IDL compiler generates these correctly. - - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp (list): Remove - warning for unused variable. - - * orbsvcs/bin/Naming_Service/svr.h: Constructor of event handler - for multicast doesn't need reply port anymore. - - * orbsvcs/bin/Naming_Service/svr.cpp (handle_input): Now receives - the port number in the multicast request. Suggested by Doug - Schmidt. - - * tao/orbobj.cpp (resolve_name_service): changed return value - variable to be signed. Added code to send the port number in the - multicast resolution mechanism as a CORBA::Short. - - * orbsvcs/bin/Naming_Service/NS_CosNaming.cpp (NS_ExtId): - Reordered initializers in the constructor. - - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (run): Added a loop around - all cube calls and added calls/sec stats for them. - - * tao/corba.h: Changed order of inclusion of marshal.i, due to - warnings of the declaration of the inline function - make_marshal_object(). - - * tao/orbobj.i: reorder the declaration of inline - CORBA_OBJ::Add_Ref(), to remove a warning. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (main): - removed return statement that was causing a warning. - -Wed Nov 19 04:22:48 1997 Douglas C. Schmidt - - * TAO version 0.0.34, released Wed Nov 19 04:22:48 1997. - -Tue Nov 18 01:29:00 1997 - - * tao/TAO.dsp: Added Arg_Shifter.cpp into project file. - -Tue Nov 18 18:53:57 1997 Sergio Flores - - * TAO_IDL/be/be_state_typedef.cpp (gen_code): - * TAO_IDL/be/be_state_structure.cpp (gen_code): - * TAO_IDL/be/be_state_sequence.cpp (gen_code): - * TAO_IDL/be/be_state_operation.cpp (gen_code): - * TAO_IDL/be/be_state_array.cpp (gen_code): Comment out - unreachable break statements. - - * TAO_IDL/ast/ast_array.cpp (n_dims): - * TAO_IDL/include/ast_array.h (AST_Array::n_dims): - * TAO_IDL/ast/ast_attribute.cpp (readonly): - * TAO_IDL/include/ast_attribute.h (AST_Attribute::readonly): - * TAO_IDL/ast/ast_argument.cpp (direction): - * TAO_IDL/include/ast_argument.h (AST_Argument::direction): - * tao/nvlist.h (CORBA_NamedValue::name): - * TAO_IDL/include/utl_scope.h (UTL_Scope::scope_node_type): - * TAO_IDL/ast/ast_predefined_type.cpp (pt): - * TAO_IDL/include/ast_predefined_type.h (AST_PredefinedType::pt): - removed const from declarations that it didn't have a meaning for. - Also from return statements. These changes were suggested by - James Hu and the SGI compiler. - -Tue Nov 18 18:34:16 1997 Sumedh Mungee - - * tests/Cubit/COOL/client.cpp: ORB_init is now called in - Task_Client.cpp instead of the main program, to insure that its - called in the right thread. - - * tests/Cubit/COOL/Task_Client.{h,cpp}: Used the COOL_Activity to - create threads instead of ACE_Task. - - * tests/Cubit/COOL/server.cpp: Used the createActivity stuff to - create threads. The server now creates two servants, one for high - and the other for low priority clients. - -Tue Nov 18 17:44:02 1997 Chris Cleeland - - * tao/corbacom.h: Added special case for CORBA::WChar to be a - short on VxWorks/GreenHills. - - * TAO_IDL/be/be_state.cpp: Added template instantiations for SGI. - - * tao/deep_free.cpp (deep_free): Removed unused 'alignment' - variable. - - * tao/deep_copy.cpp (deep_copy): Removed unused 'alignment' - variable. - - * tao/encode.cpp (encode): Removed unused 'continue_encoding' - variable. - - * tao/orbobj.cpp (POA_init): Removed options which were no longer - supported/necessary, as well as their corresponding variables. - -Tue Nov 18 17:33:20 1997 Carlos O'Ryan - - * orbsvcs/lib/RtecEventChannelAdmin.idl: - * orbsvcs/lib/RtecEventComm.idl: - Changed several operations to "oneway" to avoid dead-locks in - the Event Channel tests. - - * orbsvcs/lib/Runtime_Scheduler.h: - * orbsvcs/lib/Runtime_Scheduler.cpp: - This class is a servant, event though it is only used - collocated, so it must inherit from the POA class. - - * orbsvcs/lib/Scheduler_Factory.cpp: - Care must be exercised to create the Runtime_Scheduler instance - only once the ORB is up and running. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingC.h: - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/CosNamingS.h: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerS.cpp: - * orbsvcs/lib/RtecSchedulerS.h: - Regenerated all the stubs and skeletons using the latest IDL - compiler, but still some hand crafting is required, namely for - operations in base classes. - -Tue Nov 18 14:27:02 1997 Chris Cleeland - - * tao/cdr.cpp (CDR): Changed TAO_PURIFY to ACE_PURIFY. - - * tests/Cubit/TAO/MT_Cubit/serdatever/svr.cpp: Added code to put use a - kinder, gentler high priority value on VxWorks. This makes it - easier for the machine to remain running. :-\ - - * tao/corbacom.h: Added CVS id keyword. - - * tao/{corba.h,tao_internals.h,tao_internals.cpp}: Backed out - tao_internals.h, which is not intended to be publicly visible. - corba.h should contain only headers/inlines for things which - should be externally visible. - -Tue Nov 18 04:00:46 1997 Carlos O'Ryan - - * tao/poa.cpp: - An operation lookup on the dispatching code will cause an error - message and the CORBA::BAD_OPERATION exception to be raised. - - * tao/orb_core.cpp: - Somehow the options for setting the Event Service and the - Scheduling Service IOR were lost. Eventually they must be - removed, but we are still testing the Naming Service. - -Tue Nov 18 02:17:24 1997 Douglas C. Schmidt - - * TAO version 0.0.33, released Tue Nov 18 02:17:24 1997. - -Tue Nov 18 02:03:22 1997 Sergio Flores - - * orbsvcs/tests/Logger/svr.cpp: - * orbsvcs/tests/Logger/clnt.cpp: This test example now uses the - naming service in the server and client. Also changed the code to - have a default use in case the naming service is not available. - - * tao/orbobj.cpp (resolve_name_service): Fixed a bug, dealing with - closing the endpoint of communication for the response of the - multicast mechanism. - -Tue Nov 18 01:37:42 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_operation.cpp,be_state_operation}.cpp: We now - properly handle the declaration and assigning to the return value. - - * TAO_IDL/be/be_state_argument.cpp: Removed a spurious () - appearing after a function call. - - * TAO_IDL/be/{be_structure,be_union}.cpp: Carlos had removed the - if !imported check in the member counting function, but it had - crept in again, maybe due to me. So this is fixed again. - - * test/Cubit/TAO/IDL/svr.cpp: Removed the hack which was - separating command line arguments starting with O. We leave this - task to the newly added Arg_Shifter. - - * tao.orbobj.cpp: In ORB_init, the call to - TAO_ORb_Core_instance->init needed a char ** argv and we were - passing a char * const* argv. So we cast this. g++ was giving this - error. - - * TAO_IDL/be_include/be_codegen.h, TAO_IDL/be/be_codegen.cpp: - Added 5 new states for code generation. All of these for - operations and arguments. - - * TAO_IDL/be/be_argument.cpp: Made all methods uniform so that the - state will be set by the corresponding be_operation method. Thus - the be_operation method will vary the state but still invoke the - same be_argument method. - - * TAO_IDL/be/be_enum.cpp, be_structure.cpp, be_union.cpp, be_field.cpp, - be_sequence.cpp: Some reformatting, removed unused variables. - - * TAO_IDL/be/be_scope.cpp: Changes include adding ACE_ERROR_RETURN - with file name, line number capability. In addition, we were not - testing for return status of the various gen methods called. - - * Most important changes in these files: - - TAO_IDL/be/{be_operation,be_state_argument,be_state_operation}.cpp: - - Large scale changes that include a uniform way to invoke methods - of the be_argument class from the be_operation methods. Added the - 5 new states. Added proper handling of _out parameters in stubs - and skeletons. - -Mon Nov 17 20:05:40 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Cleaned up lots of places - where the allocated stuff wasn't being deallocated. - - * tao/request.cpp: Insured that the CTOR adds a reference for the - dynamically-allocated NamedValue. - - * tao/orb_core.cpp: Freed the faked service configurator argv. - - * tao/iiopobj.h: Removed anachronistic comments. - - * tao/iiopobj.{i,cpp}: Changed allocation of IIOP::Profile.host to use - new/delete rather than strdup/free b/c the decoder, which is - generic, must use new to allocate the space. Thus, the strdup had - to go. Purify now happier. - - * tao/cdr.cpp: Added call to memset bracketed by #if - defined(TAO_PURIFY) in order to appease the purify gods. - -Mon Nov 17 20:05:16 1997 Seth Benjamin Widoff - - * arg_shifter.cpp: - fixed a bug where in new, gcc used the address of an integer - reference rather than its value. weird. - - * tao/orb_core.cpp: - Modified the init routine to "consume" command line arguments it - recognizes by placing them in the rear of argv, and adjusting - argc. It uses the Arg_Shifter class to accomplish this. - - * tao/arg_shifter.h: - * tao/arg_shifter.cpp: - The Arg_Shifter class is an iterator that, as it iterates over - argv, places consumed arguments at the end of the vector, - ignored ones in their original order at the beginning of the - vector, and adjusts argc to hide the consumed arguments. - -Mon Nov 17 18:40:49 1997 Carlos O'Ryan - - * tao/orb_core.i: - Some data was not initialized when used from a thread different - than the one doing ORB_init (even though we choose a global ORB - in the svc.conf file). Chris found a fix for this. The affected - methods are reactor(), thr_mgr(), connector() and acceptor(). - - * TAO_IDL/be/be_sequence.cpp: - length was not working if the value was <= than the maximum. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerS.cpp: - Fixed the length() problem by hand, even though the new IDL - compiler should do it right. - -Mon Nov 17 11:52:54 1997 Douglas C. Schmidt - - * TAO_IDL/be/be_codegen.cpp (server_header), - TAO_IDL/util/utl_global.cpp (be_change_idl_file_extension): - Updated several methods to ensure const correctness for the - updated ACE_OS::str*() methods. Thanks to David Levine for - reporting this. - -Mon Nov 17 02:40:14 1997 Douglas C. Schmidt - - * TAO version 0.0.32, released Mon Nov 17 02:40:14 1997. - -Mon Nov 17 01:48:17 1997 Carlos O'Ryan - - * TAO_IDL/be/be_scope.cpp: - TypeCode generation was failing for imported members. - - * TAO_IDL/be/be_structure.cpp: - Member count must include all members, imported or not. - - * TAO_IDL/be/be_typedef.cpp: - Added missing decr_indent() in the typecode generation which was - making the generated code completely unreadable. - - * orbsvcs/lib/RtecEventChannelAdmin.idl: - * orbsvcs/lib/RtecEventComm.idl: - Removed the PullConsumer and PullSupplier classes, they are not - supported. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventChannelAdminS.i: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecEventCommS.i: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerS.cpp: - New version of the generated files, this last version is almost - making in it, but still needs hand crafting. - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_typedef.cpp: - Fixed buggy TypeCode lenght computation, it was only taking into - account the tc_encap_len() for the base type but it should use - the full tc_size(). - - * tao/encode.cpp: - Object references *must* be passed a pointer to Object_ptr in - the marshalling code. - - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_state_operation.cpp: - Fixed generated code for Object references as return values. It - allocates the Object_ptr in the heap, stores the result there - and creates an Any for it. - -Sun Nov 16 23:30:26 1997 Sergio Flores - - * orbsvcs/tests/Logger/svr.cpp (main): - Changed the code to use the resolve_initial_references () - interface to get the object refrence to the naming service. - - * orbsvcs/tests/Logger/clnt.cpp (main): Now uses the - resolve_initial_references() to get the naming service object - reference, to get the logger factory object reference. - - * orbsvcs/bin/Naming_Service/svr.cpp (main): - * orbsvcs/bin/Naming_Service/svr.h: - Added code to respond to multicast requests for the IOR. - - Added code to respond to multicast requests for the IOR. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Fixed some formatting - problems dealing with the precision of the output. - -Sun Nov 16 14:48:00 1997 - - * test/Cubit/TAO/IDL_Cubit/{server,client}.dsp: Updated library - path for release version. - - * TAO_IDL/TAO_IDL.mak: - * TAO_IDL/tao_idl.dsp: Added new files (be_state_*.cpp) into - project file. - -Sun Nov 16 12:56:24 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: The _is_a_skel method's signature - had an Object_ptr obj parameter which was unused. Instead of - generating the ACE_UNUSED_ARG (obj) line of code, we use /* obj */ - in the signature. - -Sun Nov 16 05:51:38 1997 Douglas C. Schmidt - - * TAO version 0.0.31, released Sun Nov 16 05:51:38 1997. - -Sun Nov 16 00:22:04 1997 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - Fixed output for structs and union test. - - * tao/iiopobj.cpp: - If the user provides no key for an object we generate one, based - on the object address. - - * TAO_IDL/be/be_sequence.cpp: - The length() method should get the maximum if reallocation - occurs. - - * tao/orb_core.cpp: - * tao/orbobj.cpp: - * tao/orbobj.h: - * tao/params.cpp: - * tao/params.h: - Added new options to the ORB (-ORBeventserviceior, - -ORBscheduleserviceior), this should go away once the Naming - Service works properly, but are needed now to locate this - services. - - * orbsvcs/lib/Makefile: - Added several small classes that help when using the Scheduling - and/or the Event Service. - - * orbsvcs/lib/Scheduler_Factory.cpp: - * orbsvcs/lib/Scheduler_Factory.h: - * orbsvcs/lib/Scheduler_Factory.i: - Encapsulate the construction and configuration of the Scheduling - Service. - - * orbsvcs/lib/Runtime_Scheduler.cpp: - * orbsvcs/lib/Runtime_Scheduler.h: - * orbsvcs/lib/Runtime_Scheduler.i: - Implement a simple, but fast, Scheduling Service based on a - precomputed scheduling. - - * orbsvcs/lib/Event_Utilities.cpp: - * orbsvcs/lib/Event_Utilities.h: - * orbsvcs/lib/Event_Utilities.i: - Simplify the creation of QoS structures for the Event Service. - - * orbsvcs/lib/Scheduler_Utilities.cpp: - * orbsvcs/lib/Scheduler_Utilities.h: - * orbsvcs/lib/Scheduler_Utilities.i: - Simplify manipulation of the RT_Infos for the Scheduling - Service. - - * orbsvcs/lib/Channel_Clients.cpp: - * orbsvcs/lib/Channel_Clients.h: - * orbsvcs/lib/Channel_Clients_T.cpp: - * orbsvcs/lib/Channel_Clients_T.h: - Helpers to adapt PushSuppliers and PushConsumers. - - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingC.h: - * orbsvcs/lib/CosNamingC.i: - * orbsvcs/lib/CosNamingS.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventComm.idl: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecSchedulerC.cpp: - * orbsvcs/lib/RtecSchedulerC.h: - * orbsvcs/lib/RtecSchedulerC.i: - * orbsvcs/lib/RtecSchedulerS.cpp: - This files were generated by the IDL compiler and don't need any - hand crafting (so far). I still maintain them in CVS because the - compiler is not stable enough. - - * orbsvcs/bin/Naming_Service/Makefile: - Removed spurious call to rm. - - * orbsvcs/lib/RtecEventComm.idl: - Removed the (already commented out) include of "orb.idl". - -Sat Nov 15 21:38:48 1997 Carlos O'Ryan - - * TAO_IDL/be/be_sequence.cpp: - The generated length() method will reallocate the sequences - now. - - * TAO_IDL/be/be_constant.cpp: - It was initializing nested constants in the client header file, - Andy told me how to fix it. - - * TAO_IDL/be/be_operation.cpp: - Fixed typo in generated code: - s/_tao_enviroment/_tao_environment/ - - * TAO_IDL/be/be_field.cpp: - Only generate the inline members of the field type if the type - is not imported. - - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - Removed old code to support plain fork (without ACE). - Also removed temporary files *unless* we are on Win32, were - removing the file and keeping it open fails. - - * TAO_IDL/include/idl_global.h: - * TAO_IDL/util/utl_global.cpp: - Added routines to obtain the generated names of any IDL file, - not only the one we are processing. - - * TAO_IDL/be/be_codegen.cpp: - The compiler now generate all the required include directives - when the IDL file contains some. - - * tao/params.cpp: - Initialize name_service_port_ to zero in the constructor. - -Sat Nov 15 21:20:01 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_string.cpp: The typecode info was getting - generated in a wrong file because of setting the worng file to - generate it in. - - * TAO_IDL/be/be_typedef.cpp: Some extra indentation was getting - generated for typecodes. This is fixed. - - * TAO_IDL/be/be_state_argument.cpp: For parameters of type - ObjRefs, we were not passing the address of the object_ptr to the - Any constructor. This would have caused seg faults when - decoding. This is now fixed. - - * TAO_IDL/be: Split be_state.cpp into a number of files based on - the IDL types, e.g., be_state_struct.cpp, be_state_union.cpp, ... - - * TAO_IDL/be/be_sequence.cpp: Name creation now uses a uniform - strategy rather than typedefed sequences assuming the name of the - typedef and anonymous sequences getting a generated name. This was - required to eliminate a number of multiple declarations errors. - - * TAO_IDL/be/be_state_union.cpp: Since C++ does not allow - instances of classes to appear inside a union declaration, the - private data members for data members of type objref, strings, - sequences, and anys must be pointers. This changes code in the - accessor methods defined in the generated *.i files for the union. - - * TAO_IDL/be/be_operation.cpp: There were some instances of the - incorrectly spelled _tao_enviroment remaining which have been - corrected. - - * TAO/tao/managed_types.{h,i,cpp}: Added these 3 files that define - the self managed data type similar to a String_var. These self - managed data types are required for struct/union members that are - strings or obj references, as well as for element types of - sequences. - - * TAO_IDL/be/be_typedef.cpp: Added code to generate the typecode - structure for typedefs. These use the tk_alias kind field. - - * TAO_IDL/be/{be_union,be_state}.cpp: Improvements to union with - string members. However, this is still incomplete and will be - done by the next couple of commits. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Removed the ACE_DEBUG - stmt for printing object keys. - -Sat Nov 15 18:03:39 1997 Douglas C. Schmidt - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (make_cubit): We don't - need to free up the object key since it's no longer allocated - dynamically. - - * tao/object: Changed the _get_name() method to return const char - * to be consistent with the iiopobj change below. - - * tao/iiopobj: Fixed _get_name() so that it doesn't allocate - memory by having it return const char * and just return the - pointer. This should fix some subtle problems. - -Sat Nov 15 12:19:55 1997 Nanbor Wang - - * TAO_IDL/be/be_codegen.cpp: Changed two loop counters from type - int to type size_t. - -Sat Nov 15 01:33:08 1997 Douglas C. Schmidt - - * TAO version 0.0.30, released Sat Nov 15 01:33:08 1997. - -Fri Nov 14 19:45:01 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp : - * tests/Cubit/TAO/DII_Cubit/clnt.h : - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp : - - Fixed the difference in latency problem from DII and IDL. - - Changed the DII_Cubit client interface to be similar to IDL, now - you can specify hostname and port number, instead of the IOR. - -Fri Nov 14 17:48:14 1997 Carlos O'Ryan - - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp: - Fixed problem with the new Environment parameter for _narrow (). - - * orbsvcs/bin/Naming_Service/Makefile: - No need to include rules.bin.GNU. - -Fri Nov 14 17:08:20 1997 Douglas C. Schmidt - - * tao/iiopobj.cpp: Make sure that host is set to 0 in all the - constructors. - - * tao/iiopobj.cpp (Profile): Modified the code to consistently - store a NUL at the end of each object key string. - -Fri Nov 14 17:10:20 1997 Sumedh Mungee - - * cubit_i.cpp: Changed &d to %d in ACE_ERROR - -Fri Nov 14 16:42:21 1997 Chris Cleeland - - * tao/tao_internals.cpp (fake_service_entries_i): Made sure that - the resource factory faked entry had the proper number of - arguments specified. - -Fri Nov 14 14:11:47 1997 Carlos O'Ryan - - * orbsvcs/lib/Makefile: - Added new library that contains the stubs and skeletons for the - TAO services. - - * orbsvcs/Makefile: - * orbsvcs/bin/Makefile: - * orbsvcs/tests/Makefile: - Added top level Makefiles. - - * orbsvcs/bin/Naming_Service/Makefile: - * orbsvcs/bin/Naming_Service/svr.cpp: - * orbsvcs/bin/Naming_Service/svc.conf: - * orbsvcs/bin/Naming_Service/NS_CosNaming.h: - * orbsvcs/bin/Naming_Service/NS_CosNaming.cpp: - * orbsvcs/bin/Naming_Service/CosNaming_i.h: - * orbsvcs/bin/Naming_Service/CosNaming_i.cpp: - Moved the naming service implementation from the TAO - subdirectory to this place. - - * orbsvcs/tests/Simple_Naming/Makefile: - * orbsvcs/tests/Simple_Naming/svc.conf: - * orbsvcs/tests/Simple_Naming/clnt.h: - * orbsvcs/tests/Simple_Naming/clnt.cpp: - A simple test program for the naming service, it simply tries to - locate it and connect to it. - - * orbsvcs/bin/Naming_Service/Orbix/Client.cpp: - * orbsvcs/bin/Naming_Service/Orbix/CosNaming.idl: - * orbsvcs/bin/Naming_Service/Orbix/Makefile: - * orbsvcs/bin/Naming_Service/Orbix/NS_CosNaming.cpp: - * orbsvcs/bin/Naming_Service/Orbix/NS_CosNaming.h: - * orbsvcs/bin/Naming_Service/Orbix/logger-main.cpp: - * orbsvcs/bin/Naming_Service/Orbix/logger.idl: - * orbsvcs/bin/Naming_Service/Orbix/logger_tie.cpp: - * orbsvcs/bin/Naming_Service/Orbix/logger_tie.h: - * orbsvcs/bin/Naming_Service/Orbix/server-main.cpp: - * orbsvcs/bin/Naming_Service/TAO/CosNaming.idl: - * orbsvcs/bin/Naming_Service/TAO/CosNaming_i.cpp: - * orbsvcs/bin/Naming_Service/TAO/CosNaming_i.h: - * orbsvcs/bin/Naming_Service/TAO/Makefile: - * orbsvcs/bin/Naming_Service/TAO/NS_CosNaming.cpp: - * orbsvcs/bin/Naming_Service/TAO/NS_CosNaming.h: - * orbsvcs/bin/Naming_Service/TAO/clnt.cpp: - * orbsvcs/bin/Naming_Service/TAO/clnt.h: - * orbsvcs/bin/Naming_Service/TAO/svc.conf: - * orbsvcs/bin/Naming_Service/TAO/svr.cpp: - We will only maintain the TAO version for the naming service, no - need to keep this subdirectories. - - * orbsvcs/lib/RtecScheduler.idl: - The Real Time Scheduling Service. This module declares the QoS - structures (RT_Info) and the interface for the global scheduler. - - * orbsvcs/lib/RtecEventComm.idl: - Part of the Real Time Event Services interface, this file - contains the Event type, the basic interfaces for consumers and - suppliers and some exceptions. - - * orbsvcs/lib/RtecEventChannelAdmin.idl: - Part of the Real Time Event Services interface, in particular - this module defines the event channel, the proxy interfaces and - the QoS aware subscription and registration interfaces. - - * orbsvcs/lib/Event_Service_Constants.h: - The Event Service implementation and the Scheduling Service - implementation require this file, which defines some constants - and static limits. For lack of a better place I putted it here. - - * orbsvcs/lib/CosNaming.idl: - Moved the IDL file to the library, otherwise it cannot be used - by clients. - - * tao/corba.h: - Added some macros that support portable exception handling, - either through C++ exceptions or the CORBA::Enviroment - parameter. - - * orbsvcs/lib/RtecEventCommC.h: - * orbsvcs/lib/RtecEventCommC.i: - * orbsvcs/lib/RtecEventCommC.cpp: - * orbsvcs/lib/RtecEventCommS.h: - * orbsvcs/lib/RtecEventCommS.i: - * orbsvcs/lib/RtecEventCommS.cpp: - * orbsvcs/lib/RtecEventChannelAdminS.h: - * orbsvcs/lib/RtecEventChannelAdminS.i: - * orbsvcs/lib/RtecEventChannelAdminS.cpp: - * orbsvcs/lib/RtecEventChannelAdminC.h: - * orbsvcs/lib/RtecEventChannelAdminC.i: - * orbsvcs/lib/RtecEventChannelAdminC.cpp: - * orbsvcs/lib/CosNamingC.h: - * orbsvcs/lib/CosNamingC.i: - * orbsvcs/lib/CosNamingC.cpp: - * orbsvcs/lib/CosNamingS.h: - * orbsvcs/lib/CosNamingS.i: - * orbsvcs/lib/CosNamingS.cpp: - I had to modify the IDL compiler generated files, I will keep - the files in CVS until we no longer need to modify it. - -Fri Nov 14 13:02:52 1997 Aniruddha Gokhale - - * tao/decode.cpp: TAO_Marshal_Objref::decode line 615 which tried - to set the underlying object_addr was invoking an incorrect inline - function because of lack of passing an argument to the object_addr - () method. Specifically, due to the lask of argment, the - "retrieve" method was getting called whereas we wanted the "set" - method. All we do is pass a 0 (NUL) argument. This suffices - because we have already decoded the host and port number. So all - information is with us to set the server address. - -Fri Nov 14 00:29:09 1997 David L. Levine - - * TAO_IDL/fe/lex.yy.cpp: set RCS -ko option so that the Id keyword - won't get expanded on checkout. That was causing CVS to think - that a merge was needed. - -Thu Nov 13 19:11:36 1997 Douglas C. Schmidt - - * tao/giop.cpp (start): Updated the code to use the new - object_addr() style. - - * tao/iiopobj: Added many fixes to the Profile code to fix nasty - bugs. Also, renamed {get|set}_object_addr() to simply - object_addr(), which is the correct style. - - * tao/iiopobj.h: Replaced the use of "localhost" with - ACE_DEFAULT_SERVER_HOST. This is necessary to support broken - platforms like MVS that don't support "localhost"... - - * TAO/tests/Cubit/TAO/IDL_Cubit/svr.cpp (parse_args): Assume for - the moment that any arguments starting with `-O' are `-ORB' or - `-OA'. This should be fixed by having the ORB_init() and - POA_init() methods consume their argv/argc's. - -Thu Nov 13 16:18:32 1997 - - * tao/orb_core.h: - * tao/default_client.h: - * tao/default_server.h: Changed ACE_SVC_FACTORY_DECLARE to - ACE_FACTORY_DECLARE. - - * tao/orb_core.cpp: - * tao/default_client.cpp: - * tao/default_server.cpp: Changed ACE_SVC_FACTORY_DEFINE to - ACE_FACTORY_DEFINE. - - * tao/corba.h: Added include "tao/tao_internals.h". - - * tao/tao_internals.h: Disable header file inclusions. I've put - this file into corba.h. - - * tao/tao_internals.cpp: Changed to use "tao/corba.h". - - * tao/TAO.mak: - * tao/TAO.dsp: Replaced ACE_BUILD_SVC_DLL with TAO_BUILD_DLL. - - * tao/corba.h: Added TAO_Export definition. - - * tao/*.h: Replaced ACE_Svc_Export with TAO_Export. Added - default definition to build TAO DLL on Win32. - -Thu Nov 13 01:47:02 1997 Chris Cleeland - - * tao/iiopobj.cpp (IIOP_Object): Removed the duplicate CTORs that - I'd accidentally included here during the prior merge/commit - phase. - -Wed Nov 12 23:59:29 1997 - - * TAO/TAO_IDL/tao_idl.dsp: Changed to generate multithreaded codes - on NT. - - * TAO/TAO_IDL/be/be_scope.cpp: - * TAO/TAO_IDL/fe/idl.ll: - * TAO/TAO_IDL/fe/lex.yy.cpp: - * TAO/TAO_IDL/fe/y.tab.cpp: - * TAO/TAO_IDL/include/ast_decl.h: - * TAO/TAO_IDL/include/idl.h: - * TAO/TAO_IDL/include/utl_identifier.h: - * TAO/TAO_IDL/include/utl_idlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h: - * TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h: Changed to use - "ace/stdcpp.h" and removed inclusion of header files that - conflict with standard C++ library. - -Wed Nov 12 18:59:20 1997 Chris Cleeland - - * tao/iioporb.cpp: Added call to set object address in Profile. - - * tao/iiopobj.cpp: Corrected code in the copy CTOR where the host - was being copied over the old host. This could prove bad if the - amount of space allocated previously was too small for the - hostname we're copying in. Ideally we'd use something smarter - than this, but hopefully (if you read the comment below) this will - go away soon. - - * tao/iiopobj.*: Added an ACE_INET_Addr to IIOP::Profile so that - we only need to do a gethostbyname() once. After that we can used - the cached information. I'd really like to remove the host/port - as explicit public data members, but for now we take one step at a - time. - - * tao/giop.cpp: Use the IIOP::Profile object address when making a - connection. - - * tao/decode.cpp: Added code to set the object address in the - Profile when an object ref is decoded. - - * tao/debug.h: Removed old questions in comments. - - * tao/connect.h: Added some documentation. - -Wed Nov 12 17:41:02 1997 Aniruddha Gokhale - - * tao/iiopobj.cpp: I had forgotten to update the return type of - _get_name in iiopobj.cpp to "char *" instead of "const char *". - -Wed Nov 12 14:28:48 1997 Aniruddha Gokhale - - * TAO_IDL/ast/ast_union.cpp: Fixed a problem where the front end - would not give any error if there were duplicate case labels. This - was happening since an overloaded == operator taking an - AST_Expression* was not getting called. Instead a simple - comparison of addresses was taking place. We now use the "compare" - method defined on the AST_Expression class to fix this problem. - - * TAO_IDL/be/be_interface.cpp: Removed some code under #if 0. The - noteworthy change, however, has to do with code that gets - generated for the "_is_a_skel". Some compilers were issuing a - warning saying "unused argument obj". Since we cannot change the - signature of the generated "_is_a_skel", we use the trick of - generatung ACE_UNUSED_ARG (obj); in the code. Some other - formatting changes made. - - * TAO_IDL/be/be_operation.cpp: Some very minor changes so that the - generated code is properly indented. - - * tao/{iiopobj,object,stub}.h, iiopobj.cpp: Changed the return - type of _get_name to return a heap-allocated "char *". In the - earlier case we were erroneously returning a pointer to local - array. This was a change I made a couple of days back to deal with - the fact that object keys are octet arrays and are not null - terminated. Now we take the object key and make a NULL terminated - copy in a heap allocated string. It is the caller's responsibility - to free this. - - * tao/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Used string_free to - free the string returned by _get_name. - - * tao/tests/Thruput/client.cpp: _narrow now uses the additional - env parameter. - -Wed Nov 12 09:22:47 1997 David L. Levine - - * tao/tao_internals.cpp (open_services): added ACE_UNUSED_ARGs - for argc and argv if TAO_PLATFORM_SVC_CONF_FILE_NOTSUP. - - * TAO_IDL/Makefile: disabled clean and realclean targets on VxWorks, - so that they don't remove tao_idl from the host build tree. - -Tue Nov 11 23:50:06 1997 Douglas C. Schmidt - - * TAO version 0.0.29, released Tue Nov 11 23:50:06 1997. - -Tue Nov 11 20:45:26 1997 Douglas C. Schmidt - - * tao/default_server.cpp (parse_args): Replaced NULL with 0. - - * tao/corbacom.h: Fixed the macro for TAO_SYSTEM_EXCEPTION so - compilers don't whine about extra semi-colons. - - * tao/iioporb.cpp (iiop_string_to_object): Added a cast of (char - *) 0 to disambiguate one of the methods. - - * tao/iiopobj.cpp: Moved the constructors and destructors of - IIOP_Object from the *.i file to the *.cpp file and made them - non-inline. - -Tue Nov 11 18:19:16 1997 Aniruddha Gokhale - - * tao/iiopobj.{h,cpp}: Added two new constructors one of which is - useful for the _bind call generated by the IDL compiler. This - constructor takes the host name, port number, and key value - thereby avoiding the costly string2object call inside the _bind - method. The second constructor is used to reduce the amount of - code that gets generated to set a IIOP_Object in the constructor - of the skeleton class. - - Additionally, these constructors use the REENTRANT get_host_name - method of the INET_Addr class to retrieve the host name. - - * tao/iiopobj.h,stub.h: Modified the signature of _get_name to - return a const char*. So users will have to copy this value. - - * tao/iiopobj.cpp: The method _get_name uses an internal character - array in which the object key is copied. This is necessary so that - we can NULL terminate the opaque key and return it to the user. - - * tao/orbconf.h,cdr.h: Commented (and will eventually remove) the - defintion of MY_BYTE_SEX from cdr.h. Instead, we now use the macro - TAO_ENCAP_BYTE_ORDER which gets defined in orbconf.h. The files - affected due to this renaming are: - - tao/{iioporb.cpp, giop.cpp, except.cpp, cdr.cpp, encode.cpp, - interp.cpp, tc_const.cpp} - - The following files in the IDL compiler source were affected since - they had to generate TAO_ENCAP_BYTE_ORDER instead of MY_BYTE_SEX. - TAO_IDL/be/{be_array,be_enum,be_interface,be_sequence,be_structure, - be_union}.cpp - - * tao/{typecode,decode}.cpp: some reformatting, indentation. - - * TAO_IDL/be/be_interface.cpp: code generated for _bind uses the - newly added constructor to class IIOP_Object. - - * TAO_IDL/be/{be_interface.be_state}.cpp: Code generated for - _narrow now takes an additional CORBA::Environment parameter. - - * tests/Cubit/TAO/IDL_Cubit: cubit_i.cpp - in the method - make_cubit, we make a copy of the string returned by _get_name and - then free that memory. - - clnt.cpp: The tests for unions have been uncommented. The reason - they were not working and resulting in seg fault was that methods - of the cubit interface were being invoked on the factory object. - -Tue Nov 11 10:07:04 1997 David L. Levine - - * tests/Cubit/TAO/DII_Cubit/Makefile: added missing before (VAR) - in VBIN definition. - - * tao/orbconf.h: added __i386 to TAO_WORDS_BIGENDIAN check, - because that's what g++/VxWorks uses. Also added __alpha - to little endian CPUs. - - * tao/orb_core.i: fixed preprocessor test for using the - ACE_Hash_Addr::hash_i specialization. - -Tue Nov 11 04:22:44 1997 Douglas C. Schmidt - - * TAO version 0.0.28, released Tue Nov 11 04:22:44 1997. - -Tue Nov 11 01:16:07 1997 Douglas C. Schmidt - - * tao/orbobj.cpp (resolve_name_service): Reformatted the - multicast Name Service locator just a bit. - - * tao/orbconf.h: Started putting a more sane way of automatically - determining the size of various datatypes into TAO. - -Tue Nov 11 00:36:39 1997 Sergio Flores - - * orbsvcs/bin/Logger/ior_multicast.h: - * orbsvcs/bin/Logger/ior_multicast.cpp: - * orbsvcs/bin/Logger/clnt.cpp: - * orbsvcs/bin/Logger/clnt.cpp: - * orbsvcs/bin/Logger/svr.cpp: - * orbsvcs/bin/Logger/Makefile: - Added multicast resolution of the logger service example. - -Tue Nov 11 00:36:39 1997 Sergio Flores - - * tao/orbobj.cpp (resolve_name_service): changed macro for default - multicast port. - - Added support for multicast mechanism to resolve the name - service. - - * tao/orbconf.h: Added some definitions for TAO's default - multicast and reply port, and the default timeout value. - -Tue Nov 11 00:00:25 1997 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/Makefile: removed MUNCHED because - it's no longer needed for g++/VxWorks. - -Mon Nov 10 22:02:42 1997 Douglas C. Schmidt - - * tao/interp.cpp (declare_entry): Moved TAO_ALIGNMENT_MAGIC_NUMBER - to orbconf.h instead of burying it in interp.cpp. - - * tao/corbacom.h: Rather than trying to guess what the size of - wchar_t, let's just use what's in ACE. - -Mon Nov 10 19:26:03 1997 Sumedh Mungee - - * tao/orbconf.h (SIZEOF_INT): FreeBSD and NetBSD have 4 byte - ints. Thanks to Nanbor for pointing this out. - - * tao/orbobj.cpp: Added template instantiation for ACE_Atomic_Op. - - * tao/orbconf.h: NetBSD has a long double of size 12, as does - FreeBSD. Fixed SIZEOF_LONG_DOUBLE to fix this. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (main): Removed cerr's - and replaced them with ACE_ERROR_RETURN's and the like. - -Mon Nov 10 01:25:19 1997 - - * tao/giop.h: Added ACE_Svc_Export to classes - (TAO_GIOP_Request_Header, TAO_GIOP_Invocation, TAO_GIOP.) Some - of them may not be necessary. - -Mon Nov 10 00:09:24 1997 Douglas C. Schmidt - - * TAO version 0.0.27, released Mon Nov 10 00:09:24 1997. - -Sun Nov 09 23:43:04 1997 - - * tao/corba.h: Reordered the inclusion of poa.i, giop.i, - iioporb.i, and iiopobj.i - - * tao/tao_internals.cpp (close_services): Fixed typo. - -Sun Nov 09 23:32:58 1997 Douglas C. Schmidt - - * TAO version 0.0.26, released Sun Nov 09 23:32:58 1997. - -Sun Nov 09 22:04:12 1997 - - * tao/orbobj.cpp (ORB_init): - * tao/tao_internals.cpp (close_services): - - Changed ACE_Recursive_Thread_Mutex to ACE_SYNCH_RECURSIVE_MUTEX. - -Sun Nov 9 16:05:56 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: * - tests/Cubit/TAO/DII_Cubit/clnt.h: Added clnt.h and restructured - the code so it is similar to the IDL_Cubit example. It doesn't, - however, have the same options because the DII example uses an ior - as input. - - * tao/debug.cpp: Added dummy function to get rid of - "'debug_stream' defined but not used" warning. - -Sun Nov 9 13:03:37 1997 Douglas C. Schmidt - - * tao: Removed the svc.conf.eg file since it was out of date. - - * tao/svrrqst: Removed the #include for svrrqst.i since we don't - need any inline functions now. - - * tao/tao_internals: Removed the #include for tao_internals.i - since we don't need any inline functions now. - - * tao/varout.h: Cleaned up the programming style. - - * tao: Continued to replace all fields with names _foo to foo_. - - * tao/iioporb.cpp: Move the hex routines into ACE since they are - more general. - - * tao/iioporb.cpp: Removed the inclusion of iioporb.i since it is - already included in corba.h. - - * tao: Replaced all uses of ACE_Thread_Mutex with ACE_SYNCH_MUTEX - since this is portable... - - * tao/iiopobj.cpp: Removed the inclusion of iiopobj.i since it is - already included in corba.h. - - * tao/giop.cpp: Moved several large inlined methods into the *.cpp - file. - - * tao/giop: Removed the enormous (and unused) incoming_message() - method. - - * tao/giop.cpp: Removed the inclusion of giop.i since that is - handled in corba.h. - - * tao: Removed the factories.i and factories.cpp files since they - don't seem to be used by anything. - - * tao/{corbacom,except}.*: Changed SYSEX to the more politically - correct TAO_SYSTEM_EXCEPTION. - - * tao: Replaced all uses of wslen() and wscpy() with the - corresponding ACE_OS wide string functions. - - * tao/orbconf.h: Removed all the HAVE_WIDEC_H stuff. This should - be handed by ACE. - - * tao/connect.i: Removed the template instantiations since they - were commented out and didn't appear to be used. - - * tao/connect.cpp: connect.i was already being included in corba.h, - so don't include it again. - - * tao/client_factory.cpp: Moved inlined constructor/destructor - from the *.i file into the *.cpp file. - - * tao/cdr.cpp (CDR): Moved a bunch of absurdly long inlined methods - from the *.i file into the *.cpp file. - - * tao/any.cpp (CORBA_Any): refcount_ has previously been - uninitialized. I gave it a value of 1. - - * tao/any.cpp (CORBA_Any): Moved the initialization into the - base/member section, where it belongs. - - * tao/any.h: Corrected a spelling mistake in an enumeral and - upper-cased the minor codes for exceptional returns. Are these - actually used anywhere? - - * tao: Removed all the unnecessary #if 0 ... #endif header files. - I don't know why there were still there. - - * tao/except.h: Moved the #ifdef for minor and major into - orbconf.h, where they belong. - - * tao/orbconf.h: Removed all the DECLARED_* macros since they - no longer made sense once we've got ACE. - - * tao/orbconf.h: Moved the TAO_DEFAULT* macros from ace/OS.h - here, which is more where they belong. - - * tao/default_server.cpp (TAO_Default_Server_Strategy_Factory): - - * tao/{debug.h,orbconf.h}: Removed the DECLARED_STRERROR macro - since ACE handles this. - -Sun Nov 09 10:18:06 1997 David L. Levine - - * tao/connect.cpp: fixed RCS keyword (Id instead of id). - -Sat Nov 08 23:23:41 1997 Douglas C. Schmidt - - * TAO version 0.0.25, released Sat Nov 08 23:23:41 1997. - -Sat Nov 8 21:27:34 1997 Douglas C. Schmidt - - * tao/orb_core.cpp (init): Removed the code that always binded us - to our hostname. This is unnecessary and makes it hard to use - other interfaces on the same host (such as localhost or some ATM - interface, etc.). With this change (and the corresponding - changes to ACE_INET_Addr::get_host_name()), we can now bind to - INADDR_ANY. - - * docs/releasenotes: Added Marina's documentation for the Trader - and cleaned up all the other entries to make them consistent. - - * tao: Changed ProfileBody to Profile, TaggedProfile to - Tagged_Profile, ProfileSeq to Profile_Sequence, and ProfileId to - Profile_ID. - - * tao/iiopobj.cpp (ProfileBody): For some god knows why reason, - the CORBA::String and CORBA::UShort parameters to ProfileBody - where being passed as references. This is silly, so I changed - them to non-references. - - * tao/connect.cpp (open), - tao/poa.cpp (create): Replaced a use of - ACE_INET_Addr::get_host_name(void) with - ACE_INET_Addr::get_host_name (char *, size_t), which is - reentrant. - - * tao/Makefile: Removed the DCFLAGS, OCFLAGS, and the TAO_ORB_CORE - target macros from the Makefile since they were unnecessary. - Thanks to Arturo for reporting this. - - * tao/except.cpp (print_exception): Fixed a strange format code in - print_exception that was causing a seg fault. What the heck - does %#lx mean? Thanks to Mark L Boriack for - reporting this. - -Fri Nov 07 21:23:35 1997 Carlos O'Ryan - - * tao/orb_core.h: - * tao/marshal.h: - * tao/corbacom.h: - Added ACE_Svc_Export to some classes. - - * tao/any.cpp: - Removed delete after DEEP_FREE call, it crashes on NT and it - should be unneeded. - - * TAO_IDL/be/be_state.cpp (gen_code): - When generating arguments for the server header don't use nested - types. The fully qualified type name is needed, even on NT. - - * TAO_IDL/be/be_exception.cpp: - Added code to generate a default constructor. - -Fri Nov 07 17:26:49 1997 - - * tao/TAO.dsp: - * tests/Cubit/TAO/DII_Cubit/{client,server}.dsp: - * tests/Cubit/TAO/IDL_Cubit/{client,server}.dsp: - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: Removed - ACE_HAS_TSS_ORB_CORE flag. - - * tests/Cubit/TAO/MT_Cubit/client/client.cpp (main): Added a - return statement to satisfy MSVC. - -Fri Nov 7 18:20:46 1997 Chris Cleeland - - * tests/Cubit/TAO/MT_Cubit/{client,server}/svc.conf: Updated to - reflect the proper combination of options to achieve the - thread-per-ORB-per-rate concurrency model. - - * docs/components.html: Updated to refer to seminal documentation - referred to below. - - * docs/configurations.html: Started some new documentation. It's - got a ways to go right now. :-) - -Fri Nov 07 15:42:45 1997 David L. Levine - - * tao/default_server.cpp (parse_args): check for 0 argv[curarg] - before calling strcmp on it. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: added MUNCHED for - VxWorks/g++. - -Fri Nov 7 10:30:59 1997 Chris Cleeland - - * tao/tao_internals.cpp (fake_service_entries_i): Updated faked - service entries to include new Resource Factory. This is the - fallback for VxWorks. - - * tao/orb_core.h (TAO_Resource_Factory): Added much comments. - -Fri Nov 07 02:45:56 1997 Douglas C. Schmidt - - * TAO version 0.0.24, released Fri Nov 07 02:45:56 1997. - -Fri Nov 7 01:58:30 1997 Nanbor Wang - - * TAO_IDL/driver/drv_preproc.cpp: - * TAO_IDL/driver/drv_fork.cpp: Added the (__FreeBSD__) flag to - correctly include wait.h file. - - * tao/orb_core.cpp: Replaced ACE_NETBSD with ACE_HAS_THREADS in - template instantiation segment. - - * tao/orbconf.h: Added the (__FreeBSD__) flag to exclude inclusion of - widec.h. - - * tao/orbobj.cpp (Release): Wrapped ACE_GUARD with ACE_MT macro. - -Fri Nov 07 01:46:04 1997 - - * tests/Cubit/TAO/DII_Cubit/(cubitC.cpp, cubit.cpp): Byte order - changed from 1 to MY_BYTE_SEX. - -Thu Nov 6 23:59:45 1997 Douglas C. Schmidt - - * tao/params.cpp: Moved all the inlined methods out of the header - file and put them in the *.cpp file. I hope this doesn't cause - problems for GCC on VxWorks. - - * tests/Thruput_test/client.cpp: Fixed a mistake with how - the long string constant was defined. The scheme being - used wasn't portable. - -Thu Nov 06 20:58:52 1997 - - * tao/connect.cpp: Made sure that TAO_Server_Connection_Handler - and TAO_Client_Connection_Handler have a zero Reactor pointer. - If this is not the case, they will try to deregister from a - sometimes non-existent Reactor. - -Thu Nov 6 19:06:59 1997 Sergio Flores - - * docs/releasenotes/index.html: Updated status of Naming Service - port to TAO. - - * TAO_IDL/be/be_exception.cpp (gen_client_header): - removed warning for unused variable. - -Thu Nov 6 17:07:58 1997 Chris Cleeland - - * tao/tao_internals.i: Added missing #include file. - - * tao/tao_internals.i: Change lock used as monitor for service - count to use ACE_Static_Object_Lock::instance(). This pleases - VxWorks (but makes me nauseous). - - * tao/tao_internals.h: Removed static instances of locks to please - VxWorks. - - * tao/orbobj.cpp (ORB_init): Changed lock used for the monitor - here to be ACE_Static_Object_Lock::instance(). This pleases - VxWorks (but makes me nauseous). - - * tao/orb_core.cpp (init): Merged in changes for new Naming - Service-related options that got accidentally overwritten last - night. - - * docs/Options.html: Added documentation for new Naming - Service-related options in. - - * tao/orbobj.h: Added documentation for a few static methods. - - * tao/params.h: Changed LOCAL_INLINE macro to TAO_LOCAL_INLINE to - avoid possible collisions with application macros. - -Thu Nov 6 14:51:22 1997 Sumedh Mungee - - * TAO_IDL/Makefile: Renamed libutil to libtao_idl_util. libutil is - a system library on NetBSD. Updated TAO_IDL/util/Makefile to be - compatible with this. - - * TAO_IDL/be/be_codegen.cpp (server_header): Changed ::toupper to - be toupper, since toupper is a macro on some platforms (like - netbsd). - - * TAO_IDL/driver/{drv_preproc.cpp, drv_fork.cpp}: NetBSD has - sys/wait.h, instead of wait.h. Added #define to fix it. - -Thu Nov 6 01:40:29 1997 Sumedh Mungee - - * tao/tao_internals.h: #defined ACE_Thread_Mutex to be - ACE_Null_Mutex for NetBSD. - - * tao/orbconf.h: Added NetBSD to the #define around HAVE_WIDEC_H. - - * tao/orb_core.cpp: #defined around some thread-specific template - instantiations which are not needed on NetBSD. - - * tao/except.h: Undefined "minor" and "major, since these are - defined in NetBSD. - -Thu Nov 06 14:47:15 1997 David L. Levine - - * tao/params.[hi]: inlined some functions in the class declaration - because g++ for VxWorks couldn't deal with them in the .i file. - - * tao/tao_internals.*,orbobj.cpp: fixed replacement of orbinit_lock_ - and service_lock_ with ACE_Static_Object_Lock::instance (). - -Thu Nov 06 02:17:02 1997 Douglas C. Schmidt - - * TAO version 0.0.23, released Thu Nov 06 02:17:02 1997. - -Wed Nov 5 23:44:42 1997 Douglas C. Schmidt - - * tao/{orbobj,iioporb}.h: Made the first parameter to - string_to_object() a const CORBA::String rather than just a - CORBA::String. - - * tao/params (addr): Fixed a bug where we should have been using - const ACE_INET_Addr & rather than just ACE_INET_Addr &. - - * tao/orbobj: Began adding the hooks for a multicast-based - implementation of resolve_initial_references(). - - * tao/params: Added a new set/get interface to optionally set/get - the IOR of the configured Naming Service. - - * tao/orb_core.cpp (init): Added a -ORBnameservice command-line - option. If this option is given, it indicates the IOR where the - Naming Service resides. - - * tao/params: Changed the signature of TAO_ORB_Parameters::addr() - to return a const ACE_INET_Addr & rather than an ACE_INET_Addr. - - * tao/params: Added new get/set name_service_port() methods to - get/set the name service multicast port. - -Wed Nov 5 22:38:08 1997 Sergio Flores - - * tests/Thruput_test/client.cpp (main): - * tests/Thruput_test/server.cpp (main): Fixed missing declarations - and unused variables and labels. Fixed uninitialized and unused - variables. - - * tests/Thruput_test/ttcp_i.cpp (ttcp_sequence_i): - * tests/Thruput_test/ttcp_i.h (class ttcp_sequence_i): Change to - use POA. - - * tests/Cubit/TAO/DII_Cubit/README (server): Changed comment on - how to start the server to indicate the use of "-d" to see the - IOR. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (Cubit_Client): Reordered - member initializers to match declaration order - - * tests/Cubit/TAO/DII_Cubit/svr.cpp (main): Fixed comparison of - ">=" on an unsigned variable to compare only ">". - -Wed Nov 05 20:35:52 1997 - - * tao/orb_core.cpp (fini): Close down the connector. Other - ORB_Core specific objects also need to be cleaned up (and - deleted). - - * tests: Made sure that the orb pointer returned by ORB::init() is - correctly freed up. Following files were updated: - - TAO/tests/Cubit/TAO/DII_Cubit/clnt.cpp - TAO/tests/Cubit/TAO/DII_Cubit/svr.cpp - TAO/tests/Cubit/TAO/IDL_Cubit/clnt.cpp - TAO/tests/Cubit/TAO/IDL_Cubit/clnt.h - TAO/tests/Cubit/TAO/IDL_Cubit/svr.cpp - TAO/tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp - TAO/tests/Cubit/TAO/MT_Cubit/server/svr.cpp - TAO/tests/Cubit/VisiBroker/base_server/server.cpp - -Wed Nov 5 19:37:25 1997 Aniruddha Gokhale - - * TAO_IDL compiler: - - files be_array.cpp, be_interface.cpp, be_sequence.cpp, - be_structure.cpp, be_union.cpp, be_enum.cpp - Added MY_BYTE_SEX to - the typecode generation methods. - - be_operation.cpp, be_argument.cpp, be_state.cpp, be_codegen.* - - Modified to deal with _out parameters that are passed to the - actual upcalls in the server-side skeleton. - - Some minor changes involving removing commented-out code in the - constructors of some classes. - - * tests/Thruput_test: Some modifications. Still needs more work - get it to run. - -Wed Nov 05 19:26:44 1997 - - * tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsp: - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsp: - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: - * tests/Cubit/TAO/MT_Cubit/server/server.dsp: - * tao/TAO.dsp: Renamed debeg version of TAO library to TAO.dll for - NT. - -Wed Nov 05 13:39:19 1997 David L. Levine - - * TAO_IDL/Makefile: more hacks to not build the IDL compiler - on VxWorks. - -Wed Nov 05 12:53:53 1997 - - * tao/interp.cpp: - - - Win32 does not use "fixed" byte alignment. Fixed the - setup_entry macro to take this into account. - - - (declare_entry) Seperated the declaration of the structs from - their use. This is necessary for the VC++4.2 compiler. - - * tests/Cubit/TAO/DII_Cubit/svr.cpp (main): Commented out debug - message, since obj is not declared. - -Wed Nov 05 01:41:34 1997 Douglas C. Schmidt - - * TAO version 0.0.22, released Wed Nov 05 01:41:34 1997. - -Wed Nov 5 00:48:58 1997 Sergio Flores - - * tests/Thruput_test/utils.cpp: Delete static definitions of - functions. - - * tests/Thruput_test/ttcpS.cpp: - * tests/Thruput_test/ttcpC.cpp (_duplicate): - * tests/Thruput_test/client.cpp (main): - * tests/Thruput_test/ttcp_i.cpp (sendStructSeq): - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: - * tests/Cubit/TAO/DII_Cubit/svr.cpp: Removed a couple of warnings - of unused and uninitialized variables. Included "ace/ACE.h" to - be able to have the _REENTRANT flag. - -Wed Nov 5 00:18:17 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_sequence.cpp: Added code to generate the missing - operator [] for sequences. - -Tue Nov 4 23:38:54 1997 Sumedh Mungee - - * tests/Cubit/TAO/MT_Cubit/{server,client}/Makefile: Removed the - (evil) TAO_HAS_TSS_ORB_CORE flag. Now this functionality is - provided by svc.conf. - - * tests/Cubit/TAO/MT_Cubit/: Fixed the server code to use the new - IDL compiler generated code. - - * TAO/tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp: Changed the - order of the initializers to remove g++ warnings, and added some - ACE_UNUSED_ARGs. Also removed the hand-crafted stubs, to make way - for the idl-compiler generated files. - -Tue Nov 4 23:21:29 1997 Sergio Flores - - * tests/Cubit/TAO/DII_Cubit/clnt.cpp (main): - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (run): Changed the format of the - output to be more readable. Also, fixed resolution of the time for - the cube_struct_dii() call. - -Tue Nov 4 21:12:48 1997 Douglas C. Schmidt - - * tao/except.h: Removed print_exception(). It seems unnecessary - and pollutes the global namespace. - -Tue Nov 4 16:58:12 1997 Chris Cleeland - - * {tests/Cubit/TAO/DII_Cubit,tests/Cubit/TAO/IDL_Cubit, - tests/Cubit/TAO/MT_Cubit,tests/Demux_Test, - tests/Thruput_test}/Makefile: Added an explicit definition for - VBIN so that VxWorks can build properly. - - * tao/orb_core.*: Modified TAO_Resource_Factory so that it divides - the information that it tracks between pre-allocated resources and - resources which are allocated by the application. Specifically, - the orb and root poa pointers are in here (though it's possible - that when we move to a full POA implementation that the root poa - can be pre-allocated as well). These pointers are initialized to - zero and are given values by the TAO_ORB_Core instance writing - through back to the TAO_Resource_Factory instance. - - Also, this implementation reduced the number of singletons/TSS - singletons utilized by the resource factory. The initial - "get-it-working" cut used a singleton/tss singleton pair for every - resource, which was quite wasteful in environments such as NT that - don't have many TSS slots available. Perhaps if we get even more - clever this can be reduced even further. - - * tao/except.*: Added print_exception() function for backwards - compatibility. It simply calls - CORBA::Environment::print_exception(). - -Tue Nov 04 10:45:07 1997 - - * TAO_IDL/fe/y.tab.cpp: Enclosed a #pragma ident with #if !defined - ACE_WIN32. Compilers other than SunCC might also need this. - -Tue Nov 4 13:47:26 1997 Aniruddha Gokhale - - * TAO/tests/Cubit/TAO/MT_Cubit: Modified the Makefiles in the - client and server directory so that they use the TAO IDL - compiler. Also added the clean and realclean targets. Updated the - server side cubit.idl because it was different from what the - client was using. - - * TAO_IDL compiler: Fixed the following problems - - (1) Removed the extra call to Release in the generated _narrow - method in be_interface.cpp - - (2) Used ACE_CORBA_1 (Object) instead of CORBA::Object in the - class declaration for interfaces - in be_interface.cpp - - (3) be_interface_fwd.cpp - var_impl had to be updated to generate - code that uses the ptr () method in the calls to _duplicate - - * TAO/tests/Cubit/TAO/IDL_Cubit: Fixed some outstanding issues and - made sure that it works. Updated the README file. - -Tue Nov 04 09:48:51 1997 David L. Levine - - * tao/orb_core.i: disabled the ACE_Hash_Addr::hash_i () - template specialization on g++/VxWorks because g++ - cygnus-2.7.2-960126 can't handle it. - - * tao/except.h (line 118): removed backslash at end of comment line. - Some compilers complain about that. - - * tao/except.cpp (CORBA_SystemException): reordered initializers to - match declaration order. - - * TAO_IDL/Makefile: don't build the IDL compiler on VxWorks. - -Tue Nov 04 06:26:14 1997 Carlos O'Ryan - - * TAO_IDL/be/be_state.cpp: - It still generated fully qualified names for some sequences, - that will not work on NT. - -Tue Nov 04 05:32:44 1997 Douglas C. Schmidt - - * TAO version 0.0.21, released Tue Nov 04 05:32:44 1997. - -Tue Nov 4 04:42:17 1997 Sergio Flores - - * tests/Thruput_test/server.cpp: - * tests/Thruput_test/client.cpp: - * tests/Thruput_test/ttcpS.cpp: - Fixed "print_exception" errors and errors due to some changes in - the orb compiler. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (svc): Use unsigned - int for variable that is used for positive comparisons only. - -Tue Nov 04 01:00:51 1997 - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw: Renamed former test.dsw - to IDL_Cubit.dsw. - - * tests/Cubit/TAO/IDL_Cubit/{client,server}.dsp: Renamed - executables for debug version to client.exe and server.exe on - NT. - - * tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw: Renamed former test.dsw - to DII_Cubit.dsw. - - * tests/Cubit/TAO/DII_Cubit/{client,server}.dsp: Renamed - executables for debug version to client.exe and server.exe on - NT. - - * tests/Cubit/TAO/IDL_Cubit/Cubit.mak: Added cubit.idl into - makefile and its custom build settings. - - * tests/Cubit/TAO/MT_Cubit/MT_Cubit.dsw: Renamed former - MTCubit.dsw to MT_Cubit.dsw. - -Mon Nov 03 23:16:06 1997 - - * TAO_IDL/ast/ast_expression.cpp (coerce_value): Added an explicit - cast (float) to avoid NT warnging messages. - - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp (svc): Removed - declaration of function print_exception. It's now a member - function of CORBA_Environment. - - * TAO_IDL/fe/y.tab.cpp: Commented out include . This - was causing compilation errors on NT. - - * tests/Cubit/TAO/DII_Cubit/svr.cpp: - * tests/Cubit/TAO/DII_Cubit/clnt.cpp: Changed to use the new - CORBA_Environment::print_exception. - - * tao/except.h (CORBA_Environment): Added ACE_Svc_Export to this - class. - - * tests/Cubit/TAO/MT_Cubit/MTCubit.dsw: - * tests/Cubit/TAO/MT_Cubit/client/client.dsp: - * tests/Cubit/TAO/MT_Cubit/server/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/test.dsw: Added new workspace and - project files. - - * TAO_IDL/tao_idl.dsp: Moved the output executables to the usual - place. - - * TAO_IDL/be/be.h: Added #ifdef'ed pragma to diable warning 4250 - on NT. This is only temporary and should be fixed later. - - * TAO_IDL/be/be_union.cpp (gen_var_defn): - * TAO_IDL/be/be_structure.cpp (gen_var_defn): - * TAO_IDL/be/be_array.cpp (gen_var_defn): Removed unused local - variables declaration (s). - -Mon Nov 3 23:25:30 1997 Aniruddha Gokhale - - * TAO_IDL Compiler: Files be_sequence.cpp, be_typedef.cpp, - be_state.cpp: Lots of improvements to get sequences to - work. Support for sequences of strings or obj references is - limited. But for all other cases, this seems to be working fine. - - There were some unnecessary lines of code in be_state.cpp that - were giving rise to multiple declarations errors. These are - removed. - -Mon Nov 3 18:30:09 1997 Sergio Flores - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (main): compare with - "!= 0" rather than "== -1" for errors. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl (enum discrim): Deleted - enumerations not used. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (please_exit): Fixed - unused variable. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h (Cubit_Factory_i): - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h (objrefs): Fixed invalid - comparison between a signed and unsigned variable. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp (main): Fixed comparison of - ">=" on an unsigned variable to compare only ">". - - * TAO_IDL/be/be_typedef.cpp (gen_client_stubs): Removed unused - variable warning. - - * TAO_IDL/fe/y.tab.cpp (yytoks): Added brackets to the array - of structures being initialized. - -Mon Nov 03 18:43:37 1997 Carlos O'Ryan - - * TAO_IDL/be/be_operation.cpp: - "Fixed" skeleton generation code. Sometimes the formal parameter - names for the skeleton can clash with the user defined names for - the (IDL) method parameter names. - To minimize the chances of such a problem I choose very long - parameter names for the skeleton (things like <_tao_enviroment> - instead of just ), but the right solution is to ignore the - user defined parameter names and generate them using some - numbering scheme. - - * TAO_IDL/be/be_predefined_type.cpp: - Generate CORBA::_tc_Object as the TypeCode for all pseudo - object, this is a hack but works for the files we are using - right now (maybe it will fail for complex things, like the - interface repository). - - * TAO_IDL/be/be_sequence.cpp: - Fixed a number of minor problems: - Missing _ptr type for sequences. - The return type for T_var::operator-> was different in the - .h and .i file. - - * TAO_IDL/be/be_type.cpp: - tc_name_ and type_name_ were not initialized, producing some - segfaults under NT. - -Mon Nov 3 13:45:54 1997 Chris Cleeland - - * {tao,TAO_IDL/util,TAO_IDL/narrow,TAO_IDL/fe,TAO_IDL/driver, - TAO_IDL/be,TAO_IDL/ast,Benchmark/benchmark}/Makefile (SHLIB): - Fixed definition so that the extension was(SOEXT) rather than - hard-coded to "so". This makes things compile on VxWorks better. - Thanks to David Levine for pointing this out. - -Sun Nov 02 19:42:08 1997 Douglas C. Schmidt - - * TAO version 0.0.20, released Sun Nov 02 19:42:08 1997. - -Sun Nov 2 19:20:57 1997 Aniruddha Gokhale - - * TAO/tao/except.*: Made the "print_exception" utility function - as a method of class Environment. - - * TAO/tao/giop.cpp: In the TAO_GIOP_Invocation::start method, we - were previously not returning even if the connection establishment - phase was failing. A return statement is inserted. However, there - still are problems when the GIOP_Invocation variable called "call" - goes out of scope. - - * TAO_IDL Compiler: be_interface.cpp - The _bind call now - generates a "char IOR" instead of "static char IOR" since the - latter will be problematic with multiple threads. Thanks to - Arturo Montes for pointing that out. - - * TAO/test/Cubit/TAO/IDL_Cubit : Improved the code so that it uses - the "print_exception" which is now defined on class - CORBA::Environment. The clnt still needs improvement in terms of - handling invalid parameters and gracefully exiting. - - * IDL_Compiler: The bug resulting out of encoding object - references has been fixed atleast on Solaris using g++ as well as - SunCC. Changes made to be_operation.cpp and be_state.cpp such that - the return value for object references is always of type - CORBA::Object_ptr rather than the real interface type. In - addition, keeping in perspective the change that Irfan made and - described below (in encode.cpp), the Any that holds the result - *does not* own the value. In contrast, for the rest of the cases - the result (of type Any) owns the result. - - * be_sequence.cpp: Additional work in progress. Full changelog - entry will be available in the next commit. - -Fri Oct 31 22:20:06 1997 - - * tao/encode.cpp (encode): Changed cast of data from - *(CORBA::Object_ptr *) to (CORBA::Object_ptr). - - * tao/default_server.cpp (parse_args): Manipulation of curarg was - all messed up. Fixed it such that it was not incremented - unnecessarily. - -Fri Oct 31 13:46:04 1997 Chris Cleeland - - * docs/Options.html: Updated to specify new TAO_Resource_Factory - service and its options. - - * docs/releasenotes/orbcore.html: Updated to reflect recent work. - - * tao/orb_core.*: Added the acceptor and related members and - methods from CORBA_ORB. Made TAO_Resource_Factory a Service - Object so that it can be loaded via the Service Configurator. The - option to change its resources between global and thread-specific - is "-ORBresources global" and "-ORBresources tss", respectively. - - * tao/orbobj.*: Moved the acceptor and related members and methods - to TAO_ORB_Core. - - * tests/.../svc.conf: Added Resource Factory as a service. - - * tests/Cubit/TAO/{DII_Cubit,MT_Cubit}/cubitS.cpp, - tests/Thruput_test/ttcpS.cpp, tao/poa.cpp: Changed acceses that - used to go to CORBA_ORB::params() to go to TAO_ORB_Core::params(). - -Fri Oct 31 08:39:54 1997 Aniruddha Gokhale - - * TAO_IDL Compiler - Intermediate commit of all improved features. - - * be/be_type.* : Improved the nested_type_name method such that it - now takes an additional parameter called suffix that has a default - value of NULL. Carlos, Sergio, and myself independently found an - extremely bad piece of code that was getting generated that looked - like the following: - ACE_NESTED_CLASS (XXXX, YYYY)_ptr - - The new convention is to pass the suffix such as "_ptr", or "_var" - or "_out" to this method so that it can generate valid code of the - form: - ACE_NESTED_CLASS (XXXX, YYYY_ptr) - - * be/be_decl.cpp : All the methods such as repoID (), flatname - (), etc now check if the corresponding data member was created or - not. If they are not, the corresponding private method e.g., - compute_repoID (), are invoked. This way we do not have to call - all these private methods in the constructors of all the derived - be classes. The one compelling reason to do it this way is because - the "names" for certain types are not available at construction - time, e.g., sequences. A name to a sequence is assigned from the - context it is in i.e., whether it was a named sequence in the form - of a "typedef" statement or it was an anonymous sequence. - - As of this commit, all calls to such compute_* methods in the - constructors of all the derived be classes are commented out and - will eventually disappear in the next commit. - - * be/be_decl.cpp : One more change in be_decl.cpp is to add the - case for "interface_fwd" in the generation of the _var and _out - definitions and implementations. - - * be/be_helper.* : Added two new methods called "gen_ifdef_macro" - and "gen_endif". These are required to generate the #if !defined - (...) #endif macros. These are very essential if the IDL - has forward declarations of interfaces. Forward declarations of - interfaces must generate a forward class declaration. In addition, - it has to typedef the "_ptr" type and define the "_var" and "_out" - types. However, the real "be_interface" class does this too which - can result in "multiple declarations" errors from the C++ - compiler. Hence we use this scheme. As in the case of the - nested_type_name method mentioned above, this method also takes a - default "suffix" parameter (= 0). This is required for the "_var", - "_ptr", and "_out" suffixes. - - * be/be_interface.cpp - be/be_interface_fwd.cpp: - - Used the TAO_OutStream::gen_ifdef_macro () and gen_endif methods - for the definitions of the _ptr, _var, and _out classes and their - implementations. - - *be/be_sequence.* : Lot of modifications and change in the design - in terms of handling the base types that themselves could be - sequences. Although the AST_Sequence i.e., OMG IDL does not define - a "sequence" to be a scope producing construct like structs or - unions, we choose to make "be_sequence" to be a scope producing - construct. This is no way alters the OMG IDL language because the - front-end is still the same. "be_sequence" was made to inherit - from scope because the sequence mapping gives rise to a C++ class - which is a scoping construct. This way, base types that turn out - to be anonymous sequences can be assigned a parent scope and their - name generation will fall in line with other classes. - - There are certain features missing with sequences at this commit - time, but this should reduce tweaking the generated code to a - large extent. - - * be/be_state.cpp: Update the code for handling sequences and - typedefs. Typedefs should be handled properly now. - - * All other *.cpp files: Either commented out the compute_* calls - in the constructors or removed them. - -Fri Oct 31 03:00:09 1997 Chris Cleeland - - * tao/orb_core.cpp: Moved call to connector's open() into init(), - thus insuring that it gets called only AFTER all the resources are - available from the Resource Factory. - - * tao/orb_core.*: Changed data members to be associations rather - than containment. This allows decoupling of the - "thread-specificness" of these resources from the - thread-specificness of the general TAO_ORB_Core container. Also - added set accessors for those resources. - - Added TAO_Resource_Factory class from which the TAO_ORB_Core - container initializes itself. For now this remains a singleton - which is, at compile-time, determined to be either TSS or not. - But, soon, it will be loaded via the Service Configurator and its - TSS nature determined at runtime. - - * tao/giop.h: Updated to use the new ACE macro - ACE_CLASS_IS_NAMESPACE. - - * tao/default_server.*: Implemented the new open() method so that - it initializes the Reactive and Threaded strategies from the - information in TAO_ORB_Core. - - * tao/server_factory.*: Added open() method to be called after all - ORB resources are loaded up. This method can then be used by a - strategy factory to further initialize its contained strategies if - they require handles to resources to which the ORB might legislate - access. The default implementation does nothing. - -Fri Oct 31 01:03:05 1997 - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp (main): obj was not declared. - Commented out use of obj in dmsg1. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (Cubit_Factory_i): - numobjs_ was used before it was assigned. - - * TAO/TAO_IDL/TAO_IDL.{mak,mdp}: Added VC++4.2 make files. - - * TAO_IDL/ast/ast_expression.cpp (dump): Streaming the enum was - ambiguous. Therefore the enum was cast to an int. - -Thu Oct 30 22:50:44 1997 Carlos O'Ryan - - * tao/corba.h: - Added a definition for ACE_NESTED_CLASS, maybe it is defined in - some place else, but I couldn't find it. - - * TAO_IDL/be/be_interface.cpp: - Fixed the definition for skeleton destructors. - - * TAO_IDL/be/be_helper.cpp: - Added a lot of redundant ACE_OS::fflush() calls. Apparently we - have two FILE* or file descriptors over the same file, bt the - fflush hides the problem. - - * TAO_IDL/be/be_decl.cpp: - Fixed inconsistency between operator-> declaration and - definition for _out classes. - -Thu Oct 30 14:06:54 1997 Sergio Flores - - * TAO_IDL/fe/Makefile: - Added an expression to the sed command in the rule to construct - lex.yy.cpp, that replaces ECHO with TAO_ECHO, because a - different ECHO macro is already defined in - /usr/include/sys/termios.h - - * TAO_IDL/fe/idl.ll: - Fixed some warnings about nested comments. - Changed the declaration of variable i to outside of - the 'for' initialization to avoid obsolete binding warnings. - - * TAO_IDL/be/be_interface_fwd.cpp (gen_client_header): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable i. - - * TAO_IDL/be/be_constant.cpp (exprtype_to_string): - * TAO_IDL/util/utl_error.cpp (exprtype_to_string): - Added case statements to handle the rest of un-handled - enumerations from AST_Expression::ExprType. These will - handle a default value (i.e. NULL). Enumerations added are: - AST_Expression::EV_wstring - AST_Expression::EV_wchar - AST_Expression::EV_longdouble - AST_Expression::EV_ulonglong - AST_Expression::EV_longlong - -Thu Oct 30 09:56:41 1997 Chris Cleeland - - * tao/giop.h: Added comments to TAO_GIOP class explicitly pointing - out its use as a namespace. Concurrently, I also scoped the CTOR, - Copy CTOR, and DTOR as 'private' so nobody can mistakenly - instantiate one of these puppies. - -Thu Oct 30 03:40:26 1997 - - * tests/Cubit/TAO/DII_Cubit/client.dsp: - * tests/Cubit/TAO/DII_Cubit/server.dsp: Updated include files - path and libarary path. - - * tao/giop.cpp (close_connection): Use ACE_HANDLE instead of int. - -Thu Oct 30 02:53:20 1997 Douglas C. Schmidt - - * TAO version 0.0.19, released Thu Oct 30 02:53:20 1997. - -Thu Oct 30 02:20:21 1997 Sergio Flores - - * tests/IDL_Cubit: - Added more comments and changed the header to be ACE'ified. - Make output more consistent. - -Thu Oct 30 02:12:27 1997 Sumedh Mungee - - * tests/{TAO, Cubit}: Changed the directory heirarchy to the - following: tests/Cubit/TAO/ now contains all the Cubit examples, - i.e. IDL_Cubit, MT_Cubit and DII_Cubit, instead of tests/. Updated - the README and Makefiles to reflect this. DII_Cubit is the - handcrafted "original" Cubit example. - - * tests/Cubit/COOL: Added the COOL version of the Cubit test. The - COOL version is written for Chorus COOL version 4.1. - -Wed Oct 29 22:26:10 1997 Douglas C. Schmidt - - * tests/IDL_Cubit/clnt.cpp (init): Fixed the error handling so we - exit correctly when things go wrong. - - * tao/connect.cpp (open): Revised the code to use the new - ACE_LACKS_SOCKET_BUFSIZ to detect when this feature isn't - supported. - - * tao/{giop,connect}: Added a nifty typedef called TAO_SVC_HANDLER - to remove the drudgery of expanding the template each time. - - * tao: Changed the name of TAO_OA_Connection_Handler to - TAO_Server_Connection_Handler to be compliant with the - TAO_Client_Connection_Handler. - -Wed Oct 29 20:47:47 1997 Sergio Flores - - * tests/IDL_Cubit/clnt.cpp: - * tests/IDL_Cubit/clnt.h: - Cleaned up the code. Added ACE_Profile_Timer to time the calls. - Changed copyright header. Added more comments. - -Wed Oct 29 18:55:57 1997 Douglas C. Schmidt - - * tao/giop: Added "_"'s to the data members in - TAO_GIOP_Invocation. - - * tao/giop (send_request): Swaped the order of the parameters for - send_request() so that it would be consistent with recv_request. - - * tao/{connect,giop}: Changed read_message() to recv_request(), - and send_message() to send_request() since these things really - work on GIOP requests. - - * tao/{connect,giop}: Changed read_message() to recv_message(), - which is more like other parts of ACE. - - * tao/connect.cpp: Fixed the calls to read_message() and - send_message() so that they don't try to modify "this." - - * tao/giop: Changed the send_message() and read_message() in the - TAO_GIOP class to take ACE_Svc_Handler rather than TAO_Client_Connection_Handler. - -Wed Oct 29 17:53:12 1997 - - * tao: Added TAO_HAS_TSS_ORB_CORE to tao and Cubit NT makefiles. - This probably needs to be added to the other NT makefiles. - - * tests/Cubit/TAO/svc.conf: Updated files to pass the correct - options to the factory. - -Wed Oct 29 16:07:20 1997 Chris Cleeland - - * tao/giop.*: Changed most methods that took ACE_SOCK_Stream& - parameters to take TAO_Client_Connection_Handler*& parameters. - This makes it easier to clean up properly after errors. Also - #ifdef'd out seemingly unused code (TAO_GIOP::incoming_message). - Fixed call to ACE_Svc_Handler::idle() to not contain an argument. - - * docs/Options.html: Updated the documentation to reflect recent - changes. - -Wed Oct 29 15:59:30 1997 Sergio Flores - - * tests/IDL_Cubit/clnt.cpp: OO'ified the code. Added class - Cubit_Client. - * tests/IDL_Cubit/clnt.h: added this file to contain the class - definition. - -Wed Oct 29 11:01:11 1997 Aniruddha Gokhale - - * TAO_IDL compiler: be_type.cpp::nested_type_name: A quick commit - made that includes an improvement over the previous scheme of - generating ACE_NESTED_CLASS macros. We handle the problem of - generating fully scoped names for types that were defined in some - ancestor of the scope in which that type is being used. - - * Makefiles under TAO_IDL: Fixed a bug in the Makefiles under all - the subdirectories. This bug was reported by "ARTURO MONTES" - . The bug was causing circular - dependencies on the libraru that was getting compiled. - -Wed Oct 29 06:17:36 1997 Nanbor Wang - - * tao/default_server.cpp (parse_args): Must increase the loop - counter. - -Wed Oct 29 02:11:43 1997 Douglas C. Schmidt - - * TAO version 0.0.18, released Wed Oct 29 02:11:43 1997. - -Wed Oct 29 00:56:26 1997 Chris Cleeland - - * tests/Cubit/TAO/svc.conf: Updated documentation comments to - reflect factory option changes. - - * tao/orbobj.*: Wiped argvec_shift and all its bugs off the face - of the earth. Manojkumar Acharya should prove - to be very happy about this turn of events. :-) - - * tao/orbobj.cpp: Weeded out old, dead code here and there and - migrated much of what had been in ORB_init() into - TAO_ORB_Core::init(). - - * tao/orb_core.*: Added methods init() and fini() which perform - ORB Core-related initializations and cleanups, respectively. This - is all in anticipation of having a Unified Factory which provides - ORB Core as well as other information. Also began stubbing out - and migrating various data members and associated accessors so - that they are pointers rather than actual members. The next step - is to actually make them pointers and have everything get - initialized properly and deterministically and keep everything - working. - - * tao/{giop,orb_core}.cpp: Revised code due to recent changes in - ACE related to the Caching connector. - - * tao/default_server.{h,cpp} (parse_args): This method now uses - options of the style -ORBfoo rather than the previously-cryptic - single-letter options. This should allow us to eventually allow - this same routine to parse args from the command line as well as - inside the svc.conf file. The price we pay for consistency, - however, is verbosity to the point of insanity (e.g., - -ORBconcurrency...blech!) These options are briefly documented in - the method header as well as in subsequent svc.conf files. - - * tao/decode.cpp: Added some comments for arguments. - - * tao/connect.{h,cpp}: Moved Connector-related typedefs and - corresponding template instantiations into the proper - file--orb_core.*. - - * tao/orb_core.cpp (init): Moved much of what used to be - ORB_init() into here. Changed the manner in which objref style - was determined--it's no longer via a special ORB name but rather - by the -ORBobjrefstyle option which can have either the value - "IOR" or "URL" (default is URL). - -Tue Oct 28 21:15:36 1997 Douglas C. Schmidt - - * build/SunOS5.5/TAO/tests/IDL_Cubit/clnt.cpp (main): Fixed the - code so that if you give incorrect parameters the program exits - cleanly, rather than segfaulting. - -Tue Oct 28 20:49:28 1997 Nanbor Wang - - * tao/giop.cpp (start): NT Access Violation error, AGAIN! Added - codes to reset this->handler_ so that - ACE_Cached_Connect_Strategy won't complain. - -Tue Oct 28 19:19:05 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_state.cpp, be_union.cpp, be_struct.cpp}: Added code - that will generate the ACE_NESTED_CLASS macro - - *TAO_IDL/be/be_type.cpp: Implemented be_type::nexted_type_name - that will generate the ACE_NESTED_CLASS macro. However, this may - not be completely correct at this point because we want to see if - teh compiler fails for types defined in some ancestor and whose - fully scoped names are generated . - - * TAO_IDL/be/be_interface.cpp: Added code that will generate the - _bind call on the interface class. - - * TAO/tests/IDL_Cubit: Added the _bind call in clnt.cpp. Improved - the README file. - - *MAXNAMELEN : There was a clash with TAO_CodeGen::MAXNAMELEN. So - it has been substituted by NAMEBUFSIZE as a macro in be_codegen.h - -Mon Oct 27 22:22:22 1997 Aniruddha Gokhale - - * TAO_IDL/be_decl.cpp: Added a ptr () function to the _var classes - hat returns the underlying ptr_ data member. This ptr () member - function is now used to pass a pointer type to constructor and - assignment operator from a T_var class. - - * TAO_IDL/be_state.cpp: Important changes related to generation of - return values of operations in the stubs. In addition, an & was - missing for passing string types. Some additional bugs arising out - of operations with void return type have been fixed. - - * ./tests/IDL_Cubit: This test has been modified to include a - factory interface that reads a key for the cubit object and - produces an obj reference for Cubit. In addition, a preliminary - version of the _bind call has been tested with IDL_Cubit. - - *MAXNAMELEN : Carlos informed me that MAXNAMELEN was a small - constant on some platforms. This has been changed to - TAO_CodeGen::MAXNAMELEN with a value of 100. - -Mon Oct 27 22:07:58 1997 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_helper.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - Set this->cli_stub_gen_ to I_TRUE once the code has been - emitted. - -Mon Oct 27 19:34:08 1997 Carlos O'Ryan - - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_enum.cpp: - Set this->cli_stub_gen_ to I_TRUE at the end. - - * TAO_IDL/be/be_typedef.cpp: - Set the state to TAO_CodeGen::TAO_TYPEDEF_CH instead of just - struct. - -Mon Oct 27 15:22:24 1997 Sergio Flores - - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be_include/be_codegen.h: - * TAO_IDL/be_include/be_factory.h: - * TAO_IDL/be_include/be_state.h: - * tao/iioporb.cpp: - * tao/marshal.cpp: - * tao/optable.cpp: - * tao/optable.h: - * tao/singletons.h: - The ACE_Singleton lock type needs to be changed from - ACE_SYNCH_MUTEX (or ACE_SYNCH_RW_MUTEX) ACE_SYNCH_RECURSIVE_MUTEX. - ACE handles those more efficiently for its singletons. Change - suggested by David Levine. - -Mon Oct 27 11:59:51 1997 Chris Cleeland - - * tao/orbconf.h: Made it so _FAR is defined all the time. Thanks - to Manojkumar Acharya for reporting this. - -Sun Oct 26 22:18:01 1997 Douglas C. Schmidt - - * TAO version 0.0.17, released Sun Oct 26 22:18:01 1997. - -Sun Oct 26 17:53:25 1997 Douglas C. Schmidt - - * {tao,tests}/Makefile: Commented out the TAO_HAS_TSS_ORBCORE in - these Makefiles since it is going away anyhow and is confusing... - - * tests/IDL_Cubit/svc.conf, - tests/Cubit/TAO/svc.conf: - Changed the default concurrency policy to be reactive so that - things work correctly if TAO_HAS_TSS_ORBCORE. Thanks to Sumedh - for pointing this out. - - * tao/orbobj.cpp (ORB_init): Put the TAO_DEFAULT_SERVER_PORT into - ACE's OS.h file and used it in TAO. - -Sun Oct 26 15:07:18 1997 Chris Cleeland - - * tao/params.h: Eliminated forward decls of the now-defunct ROA - class. - - * tao/orb_core.h (TAO_DEFAULT_PORT): Added manifest constant for - default port. - - * tao/orbobj.cpp (ORB_init): Eliminated ugly anonymous constant - use for hbuf's size. Utilized manifest constant for default port. - - * tao/giop.cpp: Changed calls to - TAO_Client_Connection_Handler::in_use() to call the underlying - Svc_Handler::idle(). - - * tao/connect.{h,i}: Eliminated in_use() flags because they're no - longer needed with the new Strategy Connector. - - * tao/iioporb.cpp (string_to_object): Removed setting of the orb - in the underlying CORBA::Object because it's no longer there. - - * tao/object.{h,i} (CORBA_Object): Eliminated the pointer to an orb - within this object. This should help solve some problems in - passing object references across the wire. - - * tao/connect.cpp: Added template instantiations for - ACE_Hash_Map_Iterator to reflect Irfan's recent changes. - - * tests/IDL_Cubit/README: Updated documentation on the server to - reflect current reality. - -Sun Oct 26 01:01:32 1997 Douglas C. Schmidt - - * tao/orbobj.cpp: Redid the template specialization of Hash_Addr - to account for the new changes. - -Sun Oct 26 01:05:36 1997 - - * tao/corba.h: Changed from using Strategies_T.h to Strategies.h. - - * tao/connect.h: Removed a template argument form ACE_Hash_Addr. - Removed explicit instantiation of compare_i. - - * tao/connect.cpp: Removed a template argument from explicit - instantiation of ACE_Hash_Addr. - - * tests/Cubit/TAO/clnt.cpp (main): Added a simple class - ACE_Winsock_proper_shutdown here to shutdown winsock properly. - This class should be removed later once we figure out how to - close down winsock properly from ACE. - - * tests/Cubit/TAO/svc.conf: Changed the name of shared object from - libTAO to TAO. Added configuration lines for using debug - version of TAO library on NT. - -Sun Oct 26 01:47:04 1997 Sergio Flores - - * TAO_IDL/be/be_codegen.cpp (upcase): - * TAO_IDL/util/utl_string.cpp (canonicalize): - * TAO_IDL/be/be_decl.cpp (tc_name2long): - Added "unsigned" to index variable "i" used in for() loop, - to avoid warning "comparison between unsigned and signed" - - * TAO_IDL/be/be_decl.cpp (compute_flatname): - * TAO_IDL/be/be_decl.cpp (compute_repoID): - * TAO_IDL/be/be_interface.cpp (compute_fullskelname): - Fixed error "second - I_FALSE;", should be "second = I_FALSE;" - - * TAO_IDL/be/be_operation.cpp (gen_server_skeletons): - * TAO_IDL/be/be_state.cpp (gen_code): - Initialized pointers to 0 - - * TAO_IDL/driver/drv_preproc.cpp (DRV_pre_proc): - * TAO_IDL/be/be_operation.cpp (gen_server_header): - * TAO_IDL/be/be_operation.cpp (gen_client_header): - * TAO_IDL/be/be_decl.cpp (gen_out_defn): - * TAO_IDL/be/be_decl.cpp (gen_var_defn): - * TAO_IDL/be/be_scope.cpp (gen_client_header): - * TAO_IDL/be/be_state.cpp (gen_code): - * TAO_IDL/be/be_helper.cpp (operator<<): - * TAO_IDL/be/be_union.cpp (tc_encap_len): - * TAO_IDL/be/be_typedef.cpp (gen_client_stubs): - * TAO_IDL/be/be_string.cpp (gen_client_header): - * TAO_IDL/be/be_root.cpp (gen_idl2cplusplus_mapping): - * TAO_IDL/be/be_predefined_type.cpp (gen_typecode): - * TAO_IDL/be/be_interface.cpp (gen_client_stubs): - * TAO_IDL/be/be_interface.cpp (gen_server_skeletons): - * TAO_IDL/be/be_interface.cpp (gen_operation_table): - * TAO_IDL/be/be_interface.cpp (gen_server_inline): - * TAO_IDL/be/be_interface.cpp (tc_encap_len): - * TAO_IDL/be/be_field.cpp (gen_encapsulation): - * TAO_IDL/be/be_field.cpp (tc_encap_len): - * TAO_IDL/be/be_enum_val.cpp (gen_encapsulation): - * TAO_IDL/be/be_enum.cpp (tc_encap_len): - * TAO_IDL/be/be_constant.cpp (gen_client_header): - * TAO_IDL/be/be_constant.cpp (gen_client_stubs): - * TAO_IDL/be/be_argument.cpp (gen_client_header): - * TAO_IDL/be/be_argument.cpp (gen_client_stubs): - * TAO_IDL/be/be_argument.cpp (gen_server_header): - * TAO_IDL/be/be_argument.cpp (gen_server_skeletons): - * TAO_IDL/be/be_array.cpp (be_array): - * TAO_IDL/be/be_array.cpp (gen_client_header): - * TAO_IDL/be/be_array.cpp (gen_client_inline): - * TAO_IDL/be/be_array.cpp (gen_forany_defn): - * TAO_IDL/be/be_array.cpp (gen_forany_impl): - * TAO_IDL/util/utl_stack.cpp (push): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable slen. - - * TAO_IDL/be_include/be_helper.h (class TAO_OutStream): - Made destructor virtual; we have virtual member functions. - - * TAO_IDL/be/be_codegen.cpp (TAO_CodeGen): - * TAO_IDL/be/be_decl.cpp (be_decl): - * TAO_IDL/util/utl_stack.cpp (UTL_ScopeStack): - * TAO_IDL/util/utl_scope.cpp (UTL_ScopeActiveIterator): - Reordered member initializers to match declaration order to - satisfy the compiler. - - * TAO_IDL/util/utl_scope.cpp (lookup_primitive_type): - Added "default" case to switch to return NULL. - - * TAO_IDL/util/utl_scope.cpp (add_attribute): - * TAO_IDL/util/utl_scope.cpp (add_operation): - * TAO_IDL/util/utl_scope.cpp (add_argument): - * TAO_IDL/util/utl_scope.cpp (add_union_branch): - * TAO_IDL/util/utl_scope.cpp (add_field): - * TAO_IDL/util/utl_scope.cpp (add_typedef): - * TAO_IDL/util/utl_scope.cpp (add_sequence): - * TAO_IDL/util/utl_scope.cpp (add_array): - Use 0 instead of NULL to initialize pointers in the - member initialization list, again to avoid ANSI C++ forbids - implicit (void *) conversions warnings. - -Sun Oct 26 01:01:32 1997 Douglas C. Schmidt - - * TAO version 0.0.16, released Sun Oct 26 01:01:32 1997. - -Sun Oct 26 00:32:29 1997 Douglas C. Schmidt - - * TAO/TAO_IDL/fe/idl.ll: Reverted a change that Carlos had - overwritten. I guess he's not getting enough sleep these - days... ;-) - -Sun Oct 26 00:31:38 1997 - - * tao/orb_core.i (hash_i): Redid the specialization in view of the - new changes. - -Sat Oct 25 18:14:14 1997 Douglas C. Schmidt - - * TAO_IDL/be/be_interface.cpp (be_interface): Worked around a - nasty MSVC++ compiler bug that doesn't like CORBA::Object - (object_ptr). So we use an existing ACE macro for this. - - * TAO_IDL/be/be_interface.cpp (be_interface): Fixed yet another - round of uninitialized data members. It is clear that the - original authors of this code wouldn't pass my ugrad programming - course... - - * TAO_IDL/fe/idl.ll (idl_parse_line_and_file): Had to make a minor - change to skip over the #line directive from Microsoft. In - addition, had to add some code to put Microsoft-style pathnames - into a canonical form (i.e., replacing = '\\' with '\'). Thanks - to Darrell for helping with this. - - * TAO_IDL/fe/idl.ll: Added a new rule to handle the fact - that the Microsoft C++ preprocessor generates tags of the - form - - #line 1 "bar.idl" - - rather than - - #1 "bar.idl" - - which is what UNIX C++ compilers seem to do. - - * TAO_IDL/be/be_decl.cpp (compute_fullname, compute_flatname): - Fixed a nasty bug where the original author thought new always - returned 0'd memory... Sheesh! - - * TAO_IDL/driver/drv_preproc.cpp: Changed fd < 0 to fd == - ACE_INVALID_HANDLE to be more portable. - - * TAO_IDL/be/be_decl.cpp (be_decl): There were two fields, - flatname_ and repoID_, that weren't given initial values of 0. - Thanks to Purify for finding this! - - * TAO_IDL/fe/idl.{yy,ll}: Replaced all uses of type names - (e.g., FLOAT) with IDL_ (e.g., IDL_FLOAT) so that the code - won't bomb on lame systems like NT that typedef basic types to all - capitals (e.g., typedef float FLOAT). - -Sat Oct 25 22:28:42 1997 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: Since yytext may be an "unsigned char*" under - HP-UX they define an "alias" __yytext. This hack fails miserably - when using flex, since then the yytext thing can change on the - fly. I use an inline function instead. Added support for #line - preprocessor directives. - - * TAO_IDL/driver/drv_preproc.cpp: Documented some of my changes - for NT, namely the fact that unlinking the output file while - still open causes the parsing to fail on NT. - - * TAO_IDL/tao_idl.dsp: Added new folders for source files, header - files, template files, etc. I modelled this based on the ACE - project files. - -Sat Oct 25 22:05:43 1997 Sergio Flores - - * TAO_IDL/ast/ast_constant.cpp (exprtype_to_string): - Added case statements to handle the rest of un-handled - enumerations from AST_Expression::ExprType. These will - handle a default value (i.e. the same case as - AST_Expression::EV_none). - - * TAO_IDL/ast/ast_expression.cpp (operator==): - * TAO_IDL/ast/ast_expression.cpp (compare): - Make the default return value I_FALSE instead of NULL which - was giving "lacks a cast" warning. - - * TAO_IDL/ast/ast_expression.cpp (fill_definition_details): - Use 0 instead of NULL to initialize pointers in the - member initialization list, again to avoid ANSI C++ forbids - implicit (void *) conversions warnings. - - * TAO_IDL/ast/ast_expression.cpp (eval_symbol): - Initialized pointers to 0. - -Sat Oct 25 17:45:17 1997 Aniruddha Gokhale - - * TAO_IDL/driver/drv_preproc.cpp: Fixed the same bug that Sumedh - fixed. In addition, ACEified the calls to strcat and strcmp in - that file. - - * TAO_IDL/fe/idl.ll: Used %array in the defintion section so that - flex uses yytext as an array of characters rather than pointer to - char. The pointer case was resulting in a segmentation fault due - to lack of memory allocation for the yytext variable. However, we - choose to use the array approach to be compatile with "lex" - behavior. - -Sat Oct 25 1997 Sumedh Mungee - - * TAO_IDL/driver/drv_preproc.cpp: Fixed proper tmp filename - creation. - -Sat Oct 25 14:14:53 1997 Carlos O'Ryan - - * TAO_IDL/tao_idl.dsw: - * TAO_IDL/tao_idl.dsp: - Added a MSVC++ project file for the IDL compiler, needs several - revisions byt the NT experts before shipping, but it has served - me well. - - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - We use ACE components to fork&exec subprocesses, get the default - TMP directory and generate protable pathnames. - In one case the mapping to NT is not clear: the use case is fork - to get a "fresh" copy of the process and provide a unit of - protection for the parent; this feature is only used if more - than one IDL file is compiled at the same time. - - * TAO_IDL/be/be_decl.cpp: - Fixed minor bug, it said "second - I_FALSE;", it should be - "second = I_FALSE - - * TAO_IDL/ast/ast_argument.cpp: - * TAO_IDL/ast/ast_array.cpp: - * TAO_IDL/ast/ast_attribute.cpp: - * TAO_IDL/ast/ast_check.cpp: - * TAO_IDL/ast/ast_concrete_type.cpp: - * TAO_IDL/ast/ast_constant.cpp: - * TAO_IDL/ast/ast_decl.cpp: - * TAO_IDL/ast/ast_enum.cpp: - * TAO_IDL/ast/ast_enum_val.cpp: - * TAO_IDL/ast/ast_exception.cpp: - * TAO_IDL/ast/ast_expression.cpp: - * TAO_IDL/ast/ast_field.cpp: - * TAO_IDL/ast/ast_generator.cpp: - * TAO_IDL/ast/ast_interface.cpp: - * TAO_IDL/ast/ast_interface_fwd.cpp: - * TAO_IDL/ast/ast_module.cpp: - * TAO_IDL/ast/ast_operation.cpp: - * TAO_IDL/ast/ast_predefined_type.cpp: - * TAO_IDL/ast/ast_recursive.cpp: - * TAO_IDL/ast/ast_redef.cpp: - * TAO_IDL/ast/ast_root.cpp: - * TAO_IDL/ast/ast_sequence.cpp: - * TAO_IDL/ast/ast_string.cpp: - * TAO_IDL/ast/ast_structure.cpp: - * TAO_IDL/ast/ast_type.cpp: - * TAO_IDL/ast/ast_union.cpp: - * TAO_IDL/ast/ast_union_branch.cpp: - * TAO_IDL/ast/ast_union_label.cpp: - * TAO_IDL/be/be_args.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_generator.cpp: - * TAO_IDL/be/be_init.cpp: - * TAO_IDL/be/be_produce.cpp: - * TAO_IDL/be_include/be.h: - * TAO_IDL/be_include/be_generator.h: - * TAO_IDL/driver/drv_args.cpp: - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_init.cpp: - * TAO_IDL/driver/drv_main.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - * TAO_IDL/driver/drv_private.cpp: - * TAO_IDL/fe/fe_declarator.cpp: - * TAO_IDL/fe/fe_extern.cpp: - * TAO_IDL/fe/fe_init.cpp: - * TAO_IDL/fe/fe_interface_header.cpp: - * TAO_IDL/fe/fe_private.cpp: - * TAO_IDL/fe/lex.yy.cpp: - * TAO_IDL/fe/y.tab.cpp: - * TAO_IDL/include/ast.h: - * TAO_IDL/include/ast_argument.h: - * TAO_IDL/include/ast_array.h: - * TAO_IDL/include/ast_attribute.h: - * TAO_IDL/include/ast_concrete_type.h: - * TAO_IDL/include/ast_constant.h: - * TAO_IDL/include/ast_decl.h: - * TAO_IDL/include/ast_enum.h: - * TAO_IDL/include/ast_enum_val.h: - * TAO_IDL/include/ast_exception.h: - * TAO_IDL/include/ast_expression.h: - * TAO_IDL/include/ast_extern.h: - * TAO_IDL/include/ast_field.h: - * TAO_IDL/include/ast_generator.h: - * TAO_IDL/include/ast_interface.h: - * TAO_IDL/include/ast_interface_fwd.h: - * TAO_IDL/include/ast_module.h: - * TAO_IDL/include/ast_operation.h: - * TAO_IDL/include/ast_predefined_type.h: - * TAO_IDL/include/ast_root.h: - * TAO_IDL/include/ast_sequence.h: - * TAO_IDL/include/ast_string.h: - * TAO_IDL/include/ast_structure.h: - * TAO_IDL/include/ast_type.h: - * TAO_IDL/include/ast_typedef.h: - * TAO_IDL/include/ast_union.h: - * TAO_IDL/include/ast_union_branch.h: - * TAO_IDL/include/ast_union_label.h: - * TAO_IDL/include/be_extern.h: - * TAO_IDL/include/drv_extern.h: - * TAO_IDL/include/drv_private.h: - * TAO_IDL/include/fe_declarator.h: - * TAO_IDL/include/fe_extern.h: - * TAO_IDL/include/fe_interface_header.h: - * TAO_IDL/include/fe_private.h: - * TAO_IDL/include/global_extern.h: - * TAO_IDL/include/idl.h: - * TAO_IDL/include/idl_bool.h: - * TAO_IDL/include/idl_defines.h: - * TAO_IDL/include/idl_extern.h: - * TAO_IDL/include/idl_fwd.h: - * TAO_IDL/include/idl_global.h: - * TAO_IDL/include/idl_narrow.h: - * TAO_IDL/include/intlmacros.h: - * TAO_IDL/include/nr_extern.h: - * TAO_IDL/include/util.h: - * TAO_IDL/include/utl_decllist.h: - * TAO_IDL/include/utl_error.h: - * TAO_IDL/include/utl_exceptlist.h: - * TAO_IDL/include/utl_exprlist.h: - * TAO_IDL/include/utl_identifier.h: - * TAO_IDL/include/utl_idlist.h: - * TAO_IDL/include/utl_indenter.h: - * TAO_IDL/include/utl_labellist.h: - * TAO_IDL/include/utl_list.h: - * TAO_IDL/include/utl_namelist.h: - * TAO_IDL/include/utl_scope.h: - * TAO_IDL/include/utl_scoped_name.h: - * TAO_IDL/include/utl_stack.h: - * TAO_IDL/include/utl_string.h: - * TAO_IDL/include/utl_strlist.h: - * TAO_IDL/include/utl_tmpl/utl_decllist.h: - * TAO_IDL/include/utl_tmpl/utl_exceptlist.h: - * TAO_IDL/include/utl_tmpl/utl_exprlist.h: - * TAO_IDL/include/utl_tmpl/utl_idlist.h: - * TAO_IDL/include/utl_tmpl/utl_labellist.h: - * TAO_IDL/include/utl_tmpl/utl_list.h: - * TAO_IDL/include/utl_tmpl/utl_namelist.h: - * TAO_IDL/include/utl_tmpl/utl_strlist.h: - * TAO_IDL/narrow/narrow.cpp: - * TAO_IDL/util/utl_decllist.cpp: - * TAO_IDL/util/utl_error.cpp: - * TAO_IDL/util/utl_exceptlist.cpp: - * TAO_IDL/util/utl_exprlist.cpp: - * TAO_IDL/util/utl_global.cpp: - * TAO_IDL/util/utl_identifier.cpp: - * TAO_IDL/util/utl_idlist.cpp: - * TAO_IDL/util/utl_indenter.cpp: - * TAO_IDL/util/utl_labellist.cpp: - * TAO_IDL/util/utl_list.cpp: - * TAO_IDL/util/utl_namelist.cpp: - * TAO_IDL/util/utl_scope.cpp: - * TAO_IDL/util/utl_stack.cpp: - * TAO_IDL/util/utl_string.cpp: - * TAO_IDL/util/utl_strlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_decllist.cpp: - * TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_exprlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_idlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_labellist.cpp: - * TAO_IDL/util/utl_tmpl/utl_list.cpp: - * TAO_IDL/util/utl_tmpl/utl_namelist.cpp: - * TAO_IDL/util/utl_tmpl/utl_strlist.cpp: - Removed a *big* number of warnings, in an attempt to surface - real problems. The main one was "#pragma ident" and some unused - variables. - -Sat Oct 25 06:22:03 1997 Aniruddha Gokhale - - * TAO_IDL/fe/idl.yy: I got errors parsing the idl.yy thru - bison. There were errors indicating "type clash on default action". - - This had to do with the fact that the non-terminal "type_dcl" did not - have any type defined for it, but it had "struct_type", "union_type" - and others on the right-hand side of the rules. The default action of - YACC is supposed to assign1 to. So the type for "struct_type" - that happened to be a AST_Decl node was getting assigned to the - non-terminal "type_dcl" who had no type. - - I am very surprised that the "yacc" on our Sparcs never ever gave this - error, but bison did. - - Hence I have modified idl.yy slightly so that I have {$$ = 0;} as the - default action. In addition, the non-terminal "type_dcl" is now - defined to be of type "ival" which is defined as long inside the - %union clause. - - Above all, the bison generated files required some prototypes. So I - had to add the following to idl.yy in the declarations section. - - int yylex (void); - void yyerror (char *); - extern "C" yywrap (void); - - Somehow, this yywrap had to be under extern "C". I don't know why the - others need not be under extern "C". - - -Sat Oct 25 00:05:05 1997 Douglas C. Schmidt - - * TAO version 0.0.15, released Sat Oct 25 00:05:05 1997. - -Sat Oct 25 02:46:05 1997 Sergio Flores - - * TAO_IDL/fe/Makefile: - Changed the YACC variable to use the bison compiler. - Added "-y" to YFLAGS to make bison generate output files like yacc. - Changed the LEX variable to use the flex parser instead of lex. - These programs generate code that has less warnings and is better - code in general. - Added "-D_REENTRANT" to CPPFLAGS, to be able to eliminate the warnings - in lex.yy.cpp. This could also be fixed if we include "ace/ACE.h" at - the beginning of lex.yy.cpp, but this file is generated with flex. - - * TAO_IDL/fe/idl.yy: - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable "AST_Decl *v". - - * TAO_IDL/fe/idl.ll (idl_atof): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable f and h. - - * TAO_IDL/include/idl.h: - Added include file "ace/ACE.h". This was necessary to eliminate - warnings of implicit declarations, which were because the _REENTRANT - flag was not defined. - - * TAO_IDL/ast/ast_operation.cpp (AST_Operation): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/ast/ast_operation.cpp (fe_add_exceptions): - Added ACE_UNUSED_ARG macro to avoid unused variable warning, - for variable fs. - - * TAO_IDL/ast/ast_interface.cpp (AST_Interface): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/ast/ast_expression.cpp (operator==): - * TAO_IDL/ast/ast_expression.cpp (coerce): - * TAO_IDL/ast/ast_expression.cpp (coerce_value): - * TAO_IDL/ast/ast_expression.cpp (compare): - * TAO_IDL/ast/ast_expression.cpp (dump_expr_val): - Added case statements to handle the rest of un-handled - enumerations from AST_Expression::ExprType. These will - handle a default value (i.e. the same case as - AST_Expression::EV_none). Enumerations added are: - AST_Expression::EV_wstring - AST_Expression::EV_wchar - AST_Expression::EV_longdouble - AST_Expression::EV_ulonglong - AST_Expression::EV_longlong - - * TAO_IDL/ast/ast_expression.cpp (AST_Expression): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/ast/ast_decl.cpp (AST_Decl): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - Also, use 0 instead of NULL to initialize pointers in the - member initialization list, again to avoid ANSI C++ forbids - implicit (void *) conversions warnings. - - * TAO_IDL/ast/ast_array.cpp (dump): - Added "unsigned" to index variable "i" used in for() loop, - to avoid warning "comparison between unsigned and signed" - - * TAO_IDL/ast/ast_array.cpp (compute_dims): - Added "unsigned" to index variable "i" used in for() loop, - to avoid warning "comparison between unsigned and signed" - - * TAO_IDL/ast/ast_array.cpp (AST_Array): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/fe/fe_declarator.cpp (FE_Declarator): - Reordered member initializers to match declaration order to - eliminate warnings from the compiler. - - * TAO_IDL/driver/drv_main.cpp (DRV_drive): - Added ACE_UNUSED_ARG macro to avoid unused variable warning. - - * TAO_IDL/ast/ast_recursive.cpp (AST_illegal_recursive_type): - Initialized pointer variables to avoid warnings. - -Fri Oct 24 19:18:22 1997 Douglas C. Schmidt - - * tao: Changed remaining uses of BOA to POA. - - * cubit_i.cpp (please_exit): Replaced the call to - please_shutdown() on the POA (which no longer exists) with the - shutdown() call on the ORB. - - * tests/IDL_Cubit/svr.cpp: Removed - - oa_ptr->clean_shutdown (env); - - since this is no longer supported in TAO's POA. - - * tao/poa.h: Changed the get_boa() method to get_poa(). Even this - will probably go away soon. - -Fri Oct 24 18:25:00 1997 Aniruddha Gokhale - - * TAO/tao/svrrqst.cpp: Method params was allocating memory even - when the Any's already had memory allocated for the IN and INOUT - parameters. Due to this the params would retrieve results in the - allocated storage whereas the stubs/skeletons would continue to - use variables that they had defined to hold the values. - -Fri Oct 24 17:33:21 1997 Chris Cleeland - - * tao/poa.*: #ifdef'd out the IIOP 1.4 references to shutdown. - I'm leaving them in there right now because they might be useful - as private member later when we need to figure out how to get OAs - to cooperate and shut themselves down in the face of an ORB - shutdown. - - * tao/orbobj.h (shutdown): Fixed up documentation. - - * tao/orbobj.i (shutdown): Provided appropriate arg default. - - * tests/Cubit/TAO/svr.cpp: Eliminated unnecessary Object Adapter - name from POA_init() invocation. - - * tests/Cubit/TAO/cubit_i.cpp (Cubit_please_exit): Revised to use - the new ORB::shutdown() method. - - * tests/Cubit/TAO/clnt.cpp: Got rid of IIOP 1.4-style debug - message calls. - - * tao/orbobj.cpp (CORBA_ORB::ORB_init): Corrected a heinous - problem in the option parsing loop where argvec_shift() would be - asked to shift two argv elements when there was only one. This - could cause problems if an option that required an argument didn't - include the argument. Thanks to Manojkumar Acharya - for sending in a bug report that lead to my - finding this! - -Fri Oct 24 14:08:12 Aniruddha Gokhale - - * Improved the compiler to make Unions work. The most subtle error - was the way the private section of the class for unions was being - generated. TAO's Typecode library expected the union members to be - inside of a C++ union declaration inside the private - section. Whereas the compiler was generating each member - separately. - - Another source of error was bad typecode tables getting - generated. This is now fixed. - - * TAO/tests/IDL_Cubit: The cubit_i.cpp for cube_union was doing - wrong calculations for structs. This was due to my copy-paste - tendency and not verifying if it was correct or not. This has been - fixed. The README file is updated to reflect the fact that this - directory contains code that uses the IDL compiler. - -Fri Oct 24 01:54:00 1997 Douglas C. Schmidt - - * TAO version 0.0.14, released Fri Oct 24 01:54:00 1997. - -Fri Oct 24 01:02:01 1997 Douglas C. Schmidt - - * clnt.cpp: Removed mysterious obsolete definitions of - cube_union_stub() and cube_union_dii(). - - * be_state.h: Added definitions for the methods in class - be_state_attribute. For some reason, they were missing. - - * TAO_IDL/be/be_state.cpp: Added the necessary template - specializations so that the TAO IDL compiler will work with GCC. - -Thu Oct 23 22:46:10 1997 Aniruddha Gokhale - - * TAO IDL Compiler: More progress in terms of getting the Cubit - example to work with the IDL generated code. However, we are still - finding some problems with using the client-side cubit_union_dii - to work properly. - - Much of the improvements were to the server-side skeletons for - operations. In addition, code for union constructors, assignment - operator, and accessor for discriminant added. - - Some bugs in typecode generation are fixed. This had to do with - the encapsulation length for predefined types. It was returning -1 - as opposed to 0. - - * TAO/tests/IDL_Cubit: Added this directory with the cubit - example. Use this to test the IDL compiler. The makefile will - invoke the IDL compiler to create the required files. - -Thu Oct 23 18:34:02 1997 Douglas C. Schmidt - - * tests/*/Makefile: Fixed the Makefiles so that it has the correct - files and dependencies. Thanks to Steven Wohlever - for reporting this. - -Wed Oct 22 20:02:39 1997 Chris Cleeland - - * README.sun: Added an explicit reminder at the top that the - information in this file is historical in nature and does not - necessarily apply to current reality. - - * tao/orbobj.* (shutdown): Added code to the run() event loop so - that it will terminate when it finds a flag set. This involved - adding the flag to the ORB's state and minimally implementing the - shutdown() method. The shutdown method still does not honor the - "wait for completion" flag which can be passed to it, though. - - * README: Updated the season from "summer" to "Fall" ;-) Also - added a note that warned people not to try to link TAO with a - version of ACE that's linked with another ORB library, e.g., - liborbix.so. Thanks to Steven Wohlever for - bringing this instructional omission to our attention. - - * tao/tao_internals.cpp (fake_service_entries_i): Made the body of - this function conditional on the TAO_PLATFORM_SVC_CONF_FILE_NOTSUP - preprocessor definition since it doesn't need to exist in - platforms that grok the Service Configurator. This will also - reduce the memory footprint :-). Thanks to David Miron - for pointing this out! - - * tao/orb_core.cpp (TAO_ORB_Core): Removed explicit CTOR - initialization of reactor_ member. - -Wed Oct 22 19:37:22 1997 Aniruddha Gokhale - - * TAO IDL Compiler: Improvements made so that the server-side - skeletons for operations now generate valid code. The code - generated for the Cubit.idl was compiling cleanly. It is under - test currently to see if it runs. - - * Some progress in handling forward declarations of interfaces. - -Wed Oct 22 12:55:19 1997 - - * tao/poa.h: Added ACE_Svc_Export to class CORBA_POA. - - * tao/TAO.{mdp,mak}: Updated files in project file. - - * tao/TAO.dsp: Removed boa, Orb_Core and added poa, orb_core to - the project file. - -Tue Oct 21 17:21:51 1997 Chris Cleeland - - * docs/releasenotes/orbcore.html: Updated to reflect daily - progress. - - * tests/Cubit/TAO/Makefile: Updated dependencies. - - * tests/Cubit/TAO/svc.conf: Updated to eliminate empty quotes at - the end that tickled a deficiency in the Service Configurator's - grammar. - - * tests/multiCubit/svr.cpp: Updated to reflect POA_init change. - - * tests/Thruput_test/Makefile: Modified to reflect filename - changes. - - * tests/Thruput_test/server.cpp: Changed type of argv so that it - matched properly. - - * tao/boa.*: Renamed to tao/poa.*. - - * tao/Orb_Core.*: Renamed to tao/orb_core.*. - - * tao/{Makefile,corba.h,default_client.cpp,default_server.cpp,orb.h,orbobj.cpp,params.h}: - Modified to reflect filename changes. - -Tue Oct 21 13:23:48 1997 Brian Mendel - - * tao/connect.i: Moved hash_i and compare_i template - specialization to Orb_Core.i. Original code was left comment - out until this mod is checked on all platforms. - - * tao/Orb_Core.i: Added hash_i and compare_i code from connect.i. - -Tue Oct 21 03:23:29 1997 Nanbor Wang - - * tao/Orb_Core.cpp: Removed conditional inclusion of Orb_Core.i - since, according to corba.h, it is always included as an inline - function file. - -Tue Oct 21 02:24:14 1997 Douglas C. Schmidt - - * TAO version 0.0.13, released Tue Oct 21 02:24:14 1997. - -Mon Oct 20 23:42:48 1997 Douglas C. Schmidt - - * TAO/boa: Changed BOA_init() to POA_init() to be - more consistent... - - * TAO_IDL/be/be_interface.cpp, - tests/TAO/Thruput_test/server.cpp, - tests/TAO/Thruput_test/ttcpS.cpp, - tests/TAO/RT_test/Task_Client.cpp, - tests/TAO/RT_test/cubit_impl.cpp, - tests/TAO/multiCubit/cubitS.cpp, - tests/TAO/multiCubit/svr.cpp, - tests/TAO/Demux_Test/server.cpp, - tests/TAO/Demux_Test/CodeGen/skel.cpp, - tests/TAO/MT-Cubit/client/Task_Client.cpp, - tests/TAO/MT-Cubit/server/cubitS.cpp, - tests/TAO/MT-Cubit/server/svr.cpp, - tests/TAO/cubitS.cpp, - tests/TAO/svr.cpp, - tests/TAO/test1_svr.cpp: Changed BOA to POA to reflect the - new naming conventions. - - * tao/stub.i (STUB_Object): Removed a stray default value from the - STUB_Object constructor... Thanks to Carlos for noticing this. - -MOn Oct 20 10:14:09 1997 Aniruddha Gokhale - - * Improved version of the TAO IDL compiler. The executable has - been renamed to tao_idl. There are a number of improvements as - well as shortcomings. These are explained in the - docs/releasenotes/index.html page, which can be viewed online at - http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO/docs/releasenotes/. - -Mon Oct 20 16:30:29 1997 Chris Cleeland - - * tao/tao_internals.cpp (fake_service_entries_i): Based the - arguments to the faked server service entry for VxWorks on the - TAO_HAS_TSS_ORBCORE compilation flag. This should hopefully - eliminate the problems Boeing was seeing in the early rounds of - testing the most recent release of TAO. - - * tao/{iiopobj.*,giop.h}: Moved a lock that had been in - TAO_GIOP_Invocation (why? I don't know) into IIOP_Object. It - protects the fwd_profile_ pointer, which has now become private. - Also added accessors for the data member as well as the lock. - Accessors come in two flavors--thead-safe (fwd_profile()) and - non-thread-safe (fwd_profile_i()). The non-thread-safe variety - expect that the lock will be taken and held for the duration of - their usage, but no checking is performed in this respect. - - * tao/giop.cpp: Changed references to the IIOP_Object::fwd_profile - data member to go through the new accessors (see above). - - * tao/stub.i: Created new file with inline methods for - STUB_Object. - - * tao/stub.h: Moved inline method definitions into a new - file--stub.i. - - * tao/orbobj.cpp (BOA_init): Eliminated dead code and unused - variable. - - * tao/except.cpp (print_exception): Eliminated unused argument - warning detected by gcc. - - * tao/corba.h: Re-ordered inclusion of Orb_Core.i to eliminate - 'function used before declared inline' errors detected by gcc. - - * tao/{Orb_Core,boa,corbacom,orb,orbobj,svrrqst}.*: Renamed BOA to - POA. - - * docs/releasenotes*: Moved releasenotes.html into a directory - named "releasenotes" so that the various status pages can live - independently. Currently only the ORB Core's status page is - broken out, but the documentation should eventually turn into two - frames with the one at the top acting as the guide and the lower - frame being the actual status document. - -Fri Oct 17 17:42:27 1997 Chris Cleeland - - * docs/releasenotes.html: Updated to reflect current status. - - * tao/orbobj.*: Added some documentation for open() method. - - * tao/roa.*: Gone. Bye-bye. Removed. - -Fri Oct 17 15:43:04 1997 - - * tao/connect.h: Added template instantiation supression directive - for Win32. VC was complaining about duplicate symbols definition. - -Fri Oct 17 06:25:23 1997 Chris Cleeland - - * tao/{boa,roa}.*: Merged class ROA into class - CORBA_BOA. Hopefully everything still works ;-) - - * docs/releasenotes.html: Quick update for new TODO list. Will be - updated within the next day or so with dates, too. - - * tao/{server_factory,orbobj,Orb_Core}.cpp: Corrected incorrect - explicit template instantiations and added missing ones. - -Thu Oct 16 23:48:04 1997 Douglas C. Schmidt - - * TAO version 0.0.12, released Thu Oct 16 23:48:04 1997. - -Thu Oct 16 11:15:00 1997 Brian R. Mendel - - * tao/server_factory.cpp: Added instantiation pragma for VxWorks for - ACE_Acceptor. Added the template to the specialization section, also. - - * tao/orbobj.cpp: Added instantiation pragma for VxWorks for - ACE_Cached_Connect_Strategy and ACE_Hash_Map_Manager for - ACE_Null_Mutex instantiations. Also, added these to the template - specialization sections. - - * tests/Cubit/Build/default.bld: Added TAO_PLATFORM_SVC_CONF_FILE_NOTSUP - to defines section of GHS build file. - -Tue Oct 14 21:11:20 1997 Douglas C. Schmidt - - * tao/xdr.h: Changed int _fd to ACE_HANDLE _fd to work on NT. - Thanks to Satheesh Kumar for reporting - this. - -Tue Oct 14 02:48:21 1997 Douglas C. Schmidt - - * TAO version 0.0.11, released Tue Oct 14 02:48:21 1997. - -Mon Oct 13 23:30:16 1997 - - * tao/connect.h: If we are using TSS, there is no reason to use - locking in the connector. Therefore, I added a new typedef that - defines the type of lock that should be used for the - cached_connect_strategy. It is ACE_SYNCH_RW_MUTEX in the - non-TSS case, and ACE_SYNCH_NULL_MUTEX in the TSS case. - -Mon Oct 13 21:34:00 1997 Douglas C. Schmidt - - * tao/svrrqst.cpp (oa): Cleaned up the coding style a bit. - -Sun Oct 12 15:38:35 1997 Douglas C. Schmidt - - * tao/client_factory: Gutted the client factory code related to - the Strategy_Connector so that it's either in the TAO_Orb_Core. - - * tao/default_client.h: Removed the connector() from the - Default_Client_Factory entirely since it's all been put into the - TAO_ORB_Core now. - - * tao/giop.cpp (start): Hacked up the code so that we extract our - connector from thread-specific storage if we're using the - thread-per-rate concurrency model. This needs to be integrated - more cleverly in the ORB. - - * tao/orbobj.h: Put an instance of the TAO_CONNECTOR into each - TAO_ORB_Core object so that we don't have to share these things - among all of the threads in a process, but instead can have them - be located in thread-specific storage. - - * tao/orbobj.cpp (perform_work): Updated the run() and - perform_work() methods to take optional ACE_Time_Value *'s (so - they can return from timeouts) and to return error flags if - things go wrong. - - * tao/orbobj.h (CORBA_ORB): Changed the set_up_for_listening() - call to open(), which is more consistent with other usage in - ACE/TAO. - - * tao/orbobj: Changed the name client_acceptor_ to peer_acceptor_ - to reflect the fact that the connection model is more generic - than the notion of client/server interactions (which really take - place as the result of particular communication roles). - - * tao/corba.h: Moved the order of #includes around so that - "connect.h" is included before "client_factory.h" - - * tao/connect.h: Moved the typedef of the ACE_Strategy_Connector<> - from the TAO_Client_Strategy_Factory into the global space and - renamed it TAO_CONNECTOR file so that it will be equivalent with - the TAO_ACCEPTOR. - -Thu Oct 9 23:17:37 1997 Douglas C. Schmidt - - * tao/giop.cpp (invoke): If an error occurs, make sure to mark the - handler_ as no longer being in use before we set it to 0. - - * tao/giop.cpp (TAO_GIOP_Invocation): We need to make sure that - handler_ isn't 0 before we mark it as no longer being in use. - -Thu Oct 9 11:33:46 1997 Carlos O'Ryan - - * tao/giop.cpp: - There was a minor sintax error. - -Tue Oct 07 09:34:35 1997 - - * tao/Orb_Core.h{cpp}: Added ACE_Svc_Export label to global - TAO_ORB_Core_instance() method. Needed for DLL support on NT.i - - * default.bld, tao.bld: Modified VxWorks build files to add new files. - -Tue Oct 07 07:05:38 1997 Douglas C. Schmidt - - * TAO version 0.0.10, released Tue Oct 07 07:05:38 1997. - -Mon Oct 06 22:11:40 1997 - - * tests/Cubit/TAO/cubit_i.cpp (Cubit_please_exit): - * tests/Cubit/TAO/cubitS.cpp (_skel_Cubit): Changed to use the new - TAO_ORB_CORE_instance () global function. - -Mon Oct 6 20:06:05 1997 Chris Cleeland - - * tao/{boa.h,connect.cpp,giop.cpp,giop.h,roa.cpp,roa.h}: - Eliminated unused methods and code. - - * tao/Orb_Core.*: Created new global function called - TAO_ORB_Core_instance() which will return the correct instance of - the ORB Core state. This had previously been accessed using - TAO_ORB_CORE::instance(), but Win32s linking procedures made the - template for TAO_ORB_CORE expand in both the application and the - library/DLL, thus creating two singletons. Bad scene. The - function should force the expansion of the template to only be in - the DLL. - - * tao/{connect,default_client,default_server,orbobj,roa}.cpp: - Changed references to TAO_ORB_CORE::instance() to - TAO_ORB_Core_instance(). - - * tao/singletons.h: Removed definition of TAO_ORB_CORE. - -Sat Oct 4 20:08:57 1997 Nanbor Wang - - * tao/TAO.{dsp,dsw}: Added tao_internals.cpp into project file - list. - - * tao/tao_internals.h (TAO_Internal): Added ACE_Svc_Export and - I d. - - * tao/tao_internals.i (open_services): Added default return value - 0. - - * tao/tao_internals.cpp: Added #include "tao/tao_internals.h" and - the CVS I d field. Also, we should include inline (.i) file - for inline code. - -Fri Oct 3 09:29:05 1997 Chris Cleeland - - * tests/multiCubit/svr.cpp: Changed the key naming scheme back to - not be unique throughout the process. Process-unique code is - still there, but conditionally compiled mutually-exclusive to the - other scheme. - - * tao/server_factory.*: The object_lookup_strategy method is gone - and is replaced by the create_object_table factor method. See - more information below. - - * tao/default_server.*: The server factory no longer holds on to a - single pointer for the object lookup strategy. In previous - incarnations of TAO, this didn't cause problems, but the advent of - ORB-per-thread highlighted the inherent badness in this - implementation choice. Gone is the object_lookup_strategy method, - and in comes the create_object_table factory method, which creates - and returns (and doesn't hold onto) an object table in accordance - with parameters such as size and search algorithm. - - * tao/roa.cpp: Changed to use the create_object_table method. - -Thu Oct 2 13:48:31 1997 Chris Cleeland - - * tests/multiCubit/svr.cpp: Modified the key generation scheme to - include thread ID. This works around a current shortcoming in the - ORB Core in which the object table is shared throughout all object - adapters (yes, this is being fixed). - - * tao/tao_internals.*: Added new class to scope static operations - and data completely internal to the ORB. - - * tao/orbobj.{i,cpp}: Moved CORBA_ORB DTOR into cpp file. Finally - got rid of icky static mutex in ORB_init(). Moved service config - initialization into TAO_Internal method. - - * tao/Orb_Core.h: Added comments. - -Wed Oct 1 12:51:48 1997 Nanbor Wang - - * tao/corbacom.h: Removed CORBA:: name resolution from the class - String_out which is itself defined in class CORBA. MSVC doesn't - like that. - -Wed Oct 1 10:44:55 1997 Aniruddha Gokhale - - * tao/varout.h: Fixed some template errors in class - TAO_Object_out. This was pointed to me by Carlos as he was - compiling TAO in SGI. - -Wed Oct 1 09:10:38 1997 Carlos O'Ryan - - * docs/releasenotes.html: - Updated information on the Event Channel, the use of the Naming - Service is no longer a plan, it is done already. - -Tue Sep 30 20:14:29 1997 Douglas C. Schmidt - - * TAO version 0.0.9, released Tue Sep 30 20:14:29 1997. - -Tue Sep 30 19:42:09 1997 Douglas C. Schmidt - - * Makefile: Removed "docs" from DIRS so we don't try to run - make in this directory. - -Tue Sep 30 17:27:00 1997 Chris Cleeland - - * : Tagged a release for limited consumption until the - Service Configurator bug is fixed. - - * tests/multiCubit/svr.cpp: Added code to properly release CORBA - objects. Delays between task activations simply aid in debugging - and are not necessary. - - * tao/singletons.h: Made TAO_ORB_Core's singleton type - compile-time selectable via the TAO_HAS_TSS_ORBCORE compiler flag. - - * tao/orbobj.cpp: Corrected an incorrect shift count, and the ORB - Core now defaults to using the host name of the local host. - - * tao/Orb_Core.[hi]: Added explicit CTOR. - - * tao/Orb_Core.cpp: Insured that the correct template type was - instantiated. - - * tao/Makefile: Added -DTAO_HAS_TSS_ORBCORE to CPPFLAGS. - -Tue Sep 30 16:43:12 1997 Chris Cleeland - - * docs/releasenotes.html: Added some notes on the ORB Core. - -Mon Sep 29 14:39:51 1997 Chris Cleeland - - * docs/{index,components,releasenotes}.html: Added additional - documentation. - -Mon Sep 29 13:50:34 1997 Aniruddha Gokhale - - * TAO ORB changes: - - any.*: Added _var and _out classes. - - corbacom.{h,i} : Added _out types for primitive types, added _out and - updated _var classes for String. Added corbacom.i for implementing - the String's _var and _out classes - - sequence.{h,i}: Added a number of templates for _var and _out - classes. However, these are yet to be used and tested. - - * Alpha release of TAO IDL compiler added to this release. This is - an alpha release and we are currently putting it to rigorous - test. A large amount of code for the back end is added under the - TAO/TAO_IDL/be_include and TAO/TAO_IDL/be/ directories. - - In addition, some amount of ACEification done to methods belonging - to the TAO/TAO_IDL/utils/ classes. - - A few errors in the IDL grammar have been fixed in - fe/idl.yy. These had to do with the valid types for parameters and - operation return types. There are still some errors recognizing - unions which will be fixed later. The scanner (fe/idl.l) was - modified to recognize the OMG IDL data type "any". - - * The ChangeLog file under TAO/TAO_IDL is removed and its contents - are inserted appropriately in this ChangeLog file - -Sun Sep 28 17:01:27 1997 Chris Cleeland - - * tests/multiCubit: Added a multi-threaded version of Cubit. - - * tao/orbobj.cpp: At long last, Andy has his wish for not having - to provide a "-ORBhost " argument to a server. It now uses - ACE_OS::hostname() to determine the canonical hostname, and - listens on that address. - - * tao/singletons.h: Changed the ORB Core singleton to be a TSS - singleton; this will eventually be conditionally compiled in - (before release). Also added comments and "safety defines". - - * tao/except.cpp: Changed some usage of fputs() in - print_exception() to use ACE_DEBUG. - -Sun Sep 28 03:18:24 1997 Nanbor Wang - - * tests/Cubit/TAO/cubitC.h (Object): Changed references of base - class from "CORBA::Object" to "CORBA_Object." MSVC doesn't - allow this. - - * tao/Orb_Core.h: Added ACE_Svc_Export to TAO_Orb_Core class. - - * tao/corbacom.h: Added ACE_Svc_Export to all IID constants. - Notice that we must put ACE_Svc_Export _after_ extern "C". - -Sat Sep 27 09:31:42 1997 Chris Cleeland - - * tao/Orb_Core.h: Fixed the friend declaration for - CORBA::ORB_init(). - - * tests/Cubit/TAO/svr.cpp: Modified to use ORB::run() for event - loop and eliminated code cruft. - - * tao/orbobj.*: Added stubs for 4 methods on the ORB from the - POA spec: work_pending, perform_work, run, and shutdown. Of all - of these, only run is reasonably implemented, and there not even - according to the spec (because the way the spec works isn't really - good for our purposes...need to work on that). See the docs for - information. - - Moved the initialization of the Acceptor into its own method, - set_up_for_listening (which is a one-shot style method), and - placed a call to this within the aforementioned run method. - - * tao/default_client.h: Miscellaneous comments added. - - * tao/connect.cpp: Corrected an errant ACE_DEBUG () call. - - * tao/Orb_Core.*: Added private methods to allow setting of the - orb and extended the laurel of friendship to CORBA::ORB_init(). - -Fri Sep 26 10:20:06 1997 Chris Cleeland - - * tao/orbobj.*: Added acceptor initialization code to CORBA_ORB - CTOR. (We still need to find a way to NOT do this on the client - side.) Moved CORBA_ORB CTOR into .cpp to avoid nasty - interdependencies caused when it was in the .i file. Moved the - specification of host and port to be ORB parameters rather than OA - parameters, i.e., -OAhost is now -ORBhost and -OAport is now - -ORBport. - - * tao/roa.*: Removed server-side connection endpoint - initialization (Acceptor stuff) and put it into the ORB. - - * tao/connect.h: Renamed ROA_Acceptor to TAO_Acceptor (since it's - not related to the OA any longer), and restored explicit inclusion - of ace headers to avoid having to include "corba.h". - - * tao/boa.h: Removed unneeded get_addr() method. - - * tests/Cubit/TAO/cubitS.cpp: Updates to support changes in ORB - Core. - -Thu Sep 25 12:28:02 1997 Chris Cleeland - - * tao/params.*: Added explicit CTOR & DTOR for - TAO_{OA,ORB}_Parameters classes that somehow got removed in the - previous round of attacks. Also specified all methods which go - into the .i file as "LOCAL_INLINE" within the header. This avoids - having to unravel ugly, complex order interdependencies. - -Thu Sep 25 03:48:02 1997 Chris Cleeland - - * docs/Options.html: Terse documentation on options available for - the abstract factories. - - * tao/Orb_Core.*: Added this class (TAO_ORB_Core) to hold the - "state" of an ORB. The intent is that as we move towards - different concurrency models, this can be thrown into - thread-specific storage and remain a singleton, essentially - allowing the running of an ORB-per-thread. - - * tao/singletons.h: Added this file to contain type definitions - for *ALL* ACE_Singleton<> types used within TAO. This was - motivated by a desire to eliminate the multitude of warnings - generated by g++ regarding methods being called before declared - inline, and the only way to eliminate this was to insure that all - inlined methods were seen by the compiler before the - ACE_Singleton<> definition. Thus, corba.h includes singleton.h as - the very last thing that it does. - - * tao/params.*: TAO_OA_Parameters is no longer a singleton, and - because of new recognition of associations in the object model for - an ORB, lots of data members and their methods have been shuffled - to other places or eliminated. addr() now belongs in - TAO_ORB_Parameters, and root_poa_ is in TAO_ORB_Core. The - using_threads_, thread_flags_, upcall_, and forwarder_ members - have been eliminated and their roles taken over by the Concurrency - Strategies and the new Dispatch call chain implemented in my last - round of changes. - - * tao/orbobj.cpp: Changed references to the ORB singleton to go - through TAO_ORB_CORE::instance(). Also eliminated an unnecessary - global function (_orb()). - - * tao/marshal.h: Moved all ACE_Singleton<> typedefs into - singleton.h. See comment on tao/corba.h for more information. - - * tao/iioporb.h: Removed unnecessary TAO_ORB singleton. This is - now assumed by TAO_ORB_Core instances. - - * tao/corbacom.h: Added CORBA::POA_ptr for upward compatibility. - - * tao/corba.h: Added Orb_Core.[hi] to the appropriate places. - Moved iiop{orb,obj}.i inclusions around and moved typedef'ing of - all ACE_Singletons into singletons.h, which must be #included - AFTER all the inline files. This eliminated all of the - used-before-declared-inline warnings. - - * tao/{connect,default_client,default_server,roa}.*: Updated - singleton usages to go through the TAO_ORB_CORE singleton. - - * tests/Cubit/TAO/{cubitS,cubit_i}.cpp: Updated singleton usages - to go through the TAO_ORB_CORE singleton. - -Wed Sep 17 12:26:56 1997 Nanbor Wang - - * tao/TAO.dsp: Updated source file list. - -Mon Sep 15 16:52:28 1997 Chris Cleeland - - * tests/Cubit/TAO/{cubitS,cubit_i}.cpp: Updated references to oa() - to root_pos(). - - * tao/orbobj.cpp: Corrected some adjustments made for Service - Configurator rework. - - * tao/giop.h: Moved the def for TAO_GIOP_EndOfFile out of the - range of valid GIOP messages. - - * tao/connect.cpp: Added special case for TAO_GIOP_Reply to break - out, and distinguished TAO_GIOP_EndOfFile from other errors by - setting errno. - - * tao/boa.cpp: The complete reply header is now stuck into the - response stream...what a novel concept! - -Fri Sep 12 05:40:50 1997 Chris Cleeland - - * params.h: Renamed oa() method to be root_poa() in preparation - for the future. - - * orbobj.cpp: Adjusted the FAKE_SVC_ENTRY macro to catch up to - recent changes in ACE. - - * giop.*: Major surgery including elimination of GIOP as a giant - namespace (now only static methods are in it). Changed names of - things to TAO_*. - - * {encode,decode,iiopobj,invoke,roa}.*: Name changes resulting - from giop.cpp surgery. - - * corbacom.h: Moved TAO_opaque decl into here. - - * corba.h: Re-ordered the inline #includes so that the stuff that - is ALWAYS inlined is included prior to the stuff that's only - inlined when __ACE_INLINE__ is turned on. - - * connect.*: Modified handle_input() substantially. Added 3 - template methods: read_message, handle_message, and send_response. - - * {cdr,marshal,object,typecode}.h: Removed the old "always include - inlines" hackery. - - * boa.*: Added handle_request() method. - -Wed Sep 03 06:15:00 1997 Brian Mendel - - * tao/default_client.cpp: Added conditional sections around the code for setting the - socket options for VxWorks. VxWorks does not support a 64K buffer size. - -Tue Sep 02 18:32:12 1997 Brian Mendel - - * tao/orbobj.cpp: Added include for Service_Repository.h to orbobj.h - - * tao/debug.cpp: Removed the TAO_NEEDS_UNUSED_VARIABLES #defines - around the debug_stream declaration. debug_stream is used by - dmsg_filter in debug.cpp. Changed SYSTEM_EXCEPTION to - CORBA::SYSTEM_EXCEPTION. - - * tao/default_client.cpp: Removed extra parameter from - ACE_Hash_Map_Entry #pragma instantiate statement. - - * tao/objtable.cpp: Deleted pragmas for instantiating ACE_Guard, - ACE_Read_Guard, and ACE_Write_Guard to eliminate duplicate - instantiations. Also, removed the instantiations from - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION for the same reason. - - * tao/orbobj.cpp: Added a typecast to void * in argvec_shift - method. - - * tao/default.bld - Modified VxWorks Build File to change template - instantiation modes. - - * tao/tao.bld - Added default_client.cpp, default_server.cpp, - client_factory.cpp, and server_factory.cpp to the VxWorks build - file. - - * tao/tao.dsp - Added default_client.cpp, default_server.cpp, - client_factory.cpp, and server_factory.cpp to the Win NT project - file. - -Tue Sep 2 07:31:45 1997 Chris Cleeland - - * tao/orbobj.cpp (ORB_init): VxWorks doesn't use - ACE_Service_Config for now; the default factories are used. The - Service Repository is still used, but the appropriate values are - "stuffed" in manually. - -Sat Aug 30 17:07:18 1997 Aniruddha Gokhale - - * tests/Thruput: First attempt at ACEifying it and removing the - tremendous amount of unnecessary stuff that was in there. This - modified version still needs testing on other platforms. - -Fri Aug 29 10:59:34 1997 Chris Cleeland - - * tao/Makefile (TAO_ROOT): FINALLY corrected the default - definition of TAO_ROOT. - -Thu Aug 28 14:04:44 1997 Chris Cleeland - - * tao/orbobj.i (CORBA_ORB): Removed assertion that was incorrect - b/c our ORB object is a singleton and not dynamically allocated, - thus the refcount can only reach zero at the end of its life. - - * tao/typecode.cpp (TC_Private_State): Relocated the delete of - tc_discriminator_type_ to be after the deletion of the label list. - This is because the discriminator will be inside each of the - CORBA::Any instances within the label list, and deleting it before - deleting the label list results in extreme badness. - - * tao/typecode.* (operator delete): Added CORBA_TypeCode::operator - delete() to simplify deletion of both automatically and - dynamically allocated instances of CORBA_TypeCode. This fixes the - problem of freeing non-heap memory. - - * tao/nvlist.h (CORBA_NamedValue): Initialized refcount_ in the - CTOR. - -Mon Aug 18 16:39:40 1997 Carlos O'Ryan - - * Makefile for TAO compiler: - (SOEXT) must be used instead of just .so, the former does not - work on all platforms, notably HP-UX. - -Mon Aug 18 16:39:29 1997 Carlos O'Ryan - - * tao/Makefile: - * tests/Demux_Test/CodeGen/Makefile: - (SOEXT) must be used instead of just .so, the former does not - work on all platforms, notably HP-UX. - -Sun Aug 17 16:53:42 1997 Carlos O'Ryan - - * IIOP/test/Orbeline/client/Profile_Timer.h: - * IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp: - * IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h: - * IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp: - * IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h: - * tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp: - * tests/Cubit/VisiBroker/base_server/Profile_Timer.h: - * tests/Cubit/VisiBroker/client/Profile_Timer.cpp: - * tests/Cubit/VisiBroker/client/Profile_Timer.h: - We no longer use timestruct_t in ACE, it is a SYSVism; we use - timespec_t instead. - -Sat Aug 16 01:11:56 1997 Chris Cleeland - - * tests/Cubit/TAO/svc.conf: Added this as an example of an - application's service config configuration file. It also serves - as the documentation for various strategy factory options at the - moment. - - * tao/orbobj.cpp: Options parsed by the ORB are now - -ORBsvcconf specifies the service configurator - file to be used - -ORBdaemon turn this into a daemon - -ORBdebug turns debugging on in the service - configurator - - BOA_init() now sets the itself in the TAO_OA_Parameters singleton. - - * tao/orbobj.*: Changed client_factory(), server_factory(), and - params() to return pointers rather than references. - - * tao/{roa,giop}.cpp: Updated code that uses the - CORBA::ORB::client_factory() to deal with the fact that it now - returns a pointer rather than a reference. - - * tao/default_server.cpp (init): This method now properly - initializes the contained reactive and threaded strategies so that - they're actually usable! - - * tao/connect.cpp: Added #endif comments. - -Wed Aug 13 17:42:39 1997 Chris Cleeland - - * tests/Cubit/TAO/*: Converted to the CORBA:: namespace. - - * tao/default_server.h: Eliminated a few strategy accessors since - they aren't provided by this implementation. - - * tao/default_server.cpp: Made this compile. - - * tao/corbacom.h: Slight reformatting of code. More importantly, - added 'static' to the decl of ORB_init(). - - * tao/corba.h: Added fake comment to trigger C++ mode. - - * tao/any.h: Added #endif comments. - -Tue Aug 12 22:37:06 1997 Douglas C. Schmidt - - * tao/{any,typecode,cdr}.h: Finished appeasing the compiler gods - so that we can remove the ACE_INLINE hack. Things now seem to be - in order. - - * tao/corba.h: Got all the frigging header *.i files #included in - the right order so that the GCC compiler stops complaining. - - * tao/giop.cpp: We had method definitions that were defined inline - within the giop.h file. This was causing problems for GCC, which - kept warning that methods in the cdi.i file were being used before - being inlined. I've fixed this by creating a giop.i file. - - * tao/corba.h: Add #include files should be prefixed by "tao/". - I've fixed this in the release. - -Tue Aug 12 16:23:17 1997 Chris Cleeland - - * tao/any.i: Added a missing replace() method used by overloaded - operators. - - * tao/{any,cdr}.h: Added conditional ACE_INLINE before the decl - for a few methods whose usage in other inlined methods appears - prior to their definition. - - * tao/default_client.cpp: Eliminated names of unused arguments to - stop the compiler from complaining. - - * tao/server_factory.cpp: Properly scoped return type names for - several methods. - - * tao/{typecode,decode,deep_copy,debug}.cpp: Bracketed unused - variables with #if defined(TAO_NEEDS_UNUSED_VARIABLES)/#endif; - this leaves them around for right now in case they're important. - - * tao/client_factory.i (connector): Properly scoped return type's - name. - - * tao/{client_factory,default_client}.cpp: Added necessary - template instantiations. - - * tao/{typecode,cdr}.h: Added conditional ACE_INLINE in front of - inlined methods to appease the compiler gods. - - * tao/boa.cpp (dispatch): Declared argument unused to get rid of - warnings. - - * tao/corbacom.h: Moved #include of sequence.h before the decl for - class CORBA. - -Sun Aug 10 10:58:21 1997 Douglas C. Schmidt - - * tao/client_factory: Moved the template specializations from the - *.cpp file into the *.i file in order to get this stuff to link - without multiply defined symbols. Thanks to Brian Mendel for - giving me the idea to do this. - - * tao/client_factory.cpp: Added a template specialization for - ACE_Hash_Addr. - -Sun Aug 10 08:56:20 1997 Aniruddha Gokhale - - * CORBA_ to CORBA:: transformation complete. All the files in the - TAO/tao distribution have been affected. The most notable changes - are: - (1) A file called "tao/corba.h" is now the master file. All *.cpp - files include *just* this file and nothing else. - - (2) "tao/corbacom.h" is the file that defines the CORBA namespace - i.e., class CORBA. Individual CORBA classes such as TypeCode, BOA, - etc are now defined inside the CORBA namespace. This will allow - users and developers to use CORBA::TypeCode as opposed to the - previous CORBA_TypeCode. Instead of nesting the classes, however, - we use typedefs to define individual CORBA classes inside class - CORBA e.g., typedef CORBA_TypeCode TypeCode; - - (3) All *.i files are included at the end of "tao/corba.h" and - nowhere else. However, if __ACE_INLINE__ isnot defined, then each - individual *.i file is not yet included in their corresponding - .cpp file. This will be done next. - - * TAO/tests/Demux_Test: Included code that tests various - demultiplexing strategies in TAO. At this point, however, the code - will not work because of changes in TAO. This will be done - next. A README file provides additional details. - - * TAO/Benchmark: A suite of benchmarking tests have been - included. This is still in the preliminary stages of - development. The idea is to compare various aspects of CORBA such - as marshaling overhead, demux costs, throughput, latency, and - others for a range of ORBs including TAO. Since there are - differences in programming different ORBs, this suite tries to - abstract out all the common features or atleast provide a uniform - interface so that minimal efforts are required to port an - application from one ORB to another. - - Benchmark/benchmark: This directory contains thecommon features - Benchmark/Marshal_Test: Tests marshaling overhead in 3 ORBs - - Orbix, VisiBroker, and TAO. More will be added. There are a few - problems getting DSI to work. The tech support at IONA and - VisiBroker have been contacted. - -Sat Aug 9 14:05:08 1997 Douglas C. Schmidt - - * tao: Continued to clean up all the code so that it is more - consistent with ACE programming style. - - * tao/orbconf.h: Cleaned up a lot of the unnecessary #defines. - - * tao/default_server.h: Make sure we inherit from - TAO_Server_Strategy_Factory, not TAO_Server_Factory. - - * tao/server_factory.cpp: Moved all the inline methods to be - non-inline since this code will always be dynamically bound. - - * tao/client_factory.cpp: Cleaned things up a bit. - -Sat Aug 9 12:37:05 1997 Brian Mendel - - * tao/corba.h: Deleted include for xdr.h from corba.h. xdr.h - is obsolete. - - * tao/objtable.cpp: Deleted pragmas for instantiating ACE_Guard, - ACE_Read_Guard, and ACE_Write_Guard to eliminate duplicate - instantiations. The templates are instantiated by ACE. Can these - templates also be removed from the - ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION section as well? - - * tao/default.bld: Added build file for VxWorks. - - * tao/tao.bld: Added build file for VxWorks. - -Fri Aug 8 14:25:20 1997 Chris Cleeland - - * tao/orbobj.*: Updated various methods to use the new - dynamically-linked strategy factories discussed below. - - * tao/default_client.*: This file now contains the default client - strategy factory which is (a) dynamically linkable by the service - configurator and (b) can be configured by flags passed in via - service configurator. - - * tao/client_factory.*: This file now contains the abstract base - class for the client strategy factory. - - * tao/default_server.*: This file now contains the default server - strategy factory which is (a) dynamically linkable by the service - configurator and (b) can be configured by flags passed in via - service configurator. - - * tao/server_factory.*: This file now contains the abstract base - class for the server strategy factory. - - * tao/params.*: Renamed DEMUX_STRATEGY enum to TAO_Demux_Strategy - and put it at global scope instead of within TAO_OA_Parameters. - - * tao/svc.conf.eg: Created this file to serve as an example of - various lines one might find in an application's svc.conf. - -Thu Aug 7 09:51:31 1997 Aniruddha Gokhale - - * factories.cpp: Incorrect use of ACE_ASSERT in - TAO_Server_Factory::object_lookup_strategy removed. - - * objtable.cpp: The octet sequence object key was being cast into - a char* resulting in undefined behavior at times due to the lack - of a NULL character to terminate it. Changes were made in the bind - and find methods of TAO_Active_Demux_Table. - -Thu Aug 07 03:52:31 1997 Douglas C. Schmidt - - * TAO version 0.0.8, released Thu Aug 07 03:52:31 1997. - -Thu Aug 7 00:43:14 1997 Douglas C. Schmidt - - * tao/typecode.cpp: A couple of errors involving TAO_CONST crept - in when Brian checked in his code. I fixed these. - -Wed Aug 6 18:28:41 1997 Chris Cleeland - - * tests/Cubit/TAO/clnt.cpp (main): Corrected the format - specifications when timing was printing out from %ld to %d. For - some reason this never caused a problem on other platforms. - -Wed Aug 6 17:27:44 1997 Brian R. Mendel - - * tao/typecode.h: Removed qualified name in typecode.h to eliminate - compiler warnings by the GHS compiler. Line 297. - - * tao/decode.cpp: Changed wchar_t* to CORBA_WChar* to eliminate - compiler errors on GHS compiler. Lines 142, 216, 729, 1371, and 1475. - - * tao/typecode.cpp: Deleted unreachable break statements at lines - 429, and 477, 904, and 947. - -Wed Aug 6 16:31:29 1997 Chris Cleeland - - * tao/*: Changed 'const' to 'TAO_CONST' in contexts where the - const didn't make sense. For example, this occurred in situations - where methods declared their return type as 'const CORBA_String', - which does not translate to 'const char*' but rather 'char* - const'. - - * tao/corbacom.h: Added #define for TAO_CONST. See above for - explanation. - - * tao/{connect,factories,giop,iiopobj,marshal,objtable, - optable,orbobj,roa}.cpp: Removed errant trailing semi-colon on all - the #pragma instantiate directives. - -Wed Aug 6 13:56:40 1997 Chris Cleeland - - * tao/{connect,factories,giop,iiopobj,marshal,objtable, - optable,orbobj,roa}.cpp: Changed explicit template instantiations - to use the new ACE enabling macro as well as adding the #pragma - instantiate to placate Edison Design Group compilers. - - * tao/cdr.h: Changed default for CDR CTOR marshal factory to - reflect the new name of the default marshal factory variable. - - * tao/orbobj.cpp (CORBA_ORB_init): Inserted call to - TAO_Marshal::initialize(). - - * tao/marshal.*: Added TAO_Marshal class to scope static - initialization methods for the marshalling engine. - TAO_DEFAULT_MARSHAL_FACTORY has moved inside of this. - -Sun Aug 3 13:12:03 1997 Douglas C. Schmidt - - * tests/Cubit/TAO: Continued to improve the formatting of these - tests. - -Sat Aug 2 13:55:40 1997 Douglas C. Schmidt - - * tests/Cubit/TAO: Cleaned up some of the formatting so that - it is easier to read. - -Thu Jul 31 16:19:43 1997 Chris Cleeland - - * tao/corba.h: Removed incorrect #include "tao/corba.h" in this - file. Bad form. - -Thu Jul 31 15:19:43 1997 Chris Cleeland - - * tests/Cubit/TAO/*.{h,i,cpp}: Changed all #include of specific - header files to include the application-level "tao/corba.h". - - * tests/Cubit/TAO/Makefile (BIN): Removed test1_svr and test1_clnt - for now until we can get them working again. They stopped working - after the BOA API changed and the non-standard get_request() - method removed. - - * tao/any.h: Inserted #includes which insure that this header file - is not position-dependent on other header files. - - * tao/corba.h: Created this catch-all header file for APPLICATIONS - to use as a single entry point. Currently it just includes all - TAO header files, but will eventually be pared down to only those - headers which warrant public exposure. - -Wed Jul 30 16:55:02 1997 Chris Cleeland - - * tao/typecode.i (CORBA_TypeCode): Re-ordered member - initialization to correspond to declaration order. - - * tao/{typecode,orbobj,optable,decode,cdr}.cpp: Added explicit - typecast to CORBA_ULong/unsigned long to eliminate warnings about - comparisons btw. signed and unsigned entities. - - * tao/optable.cpp (bind): Put in explicit return type for - TAO_Active_Demux_OpTable::bind(). - -Wed Jul 30 14:18:02 1997 Chris Cleeland - - * tao/Makefile: Corrected automatic definition of TAO_ROOT and - fixed all dependencies on tao header/inline files. - - * tao/{typecode,object}.i: Moved a few methods to the beginning of the file - so that the compiler KNOWS that they are inlined when it hits the - first reference to them later in the file. - - * tao/object.cpp: Added an end-of-line to silence a very picky SGI - compiler. - -Wed Jul 30 10:05:38 1997 Douglas C. Schmidt - - * tao/connect.cpp: Removed a number of explicit template - instantiations that are already included in ACE. - -Wed Jul 30 14:20:18 1997 Darrell Brunsch - - * tao/boa.{i,h,cpp}: Removed the #include of "tao/objtable.h" and - instead moved the methods that needed it from boa.i to boa.cpp - -Wed Jul 30 13:58:02 1997 Darrell Brunsch - - * tao/boa.h: Added #include of "tao/objtable.h" since it is needed - in boa.i (which is included here when inlining is turned on) - -Wed Jul 30 10:05:38 1997 Douglas C. Schmidt - - * tao/boa.h: Removed the #include of "tao/objtable.h" which seems - to be unnecessary and may cause problems for template - specialization. - - * tao/iiopobj.i (IIOP_Object): Changed the second parameter to the - IIOP_Object constructor so that we can is a const - IIOP::ProfileBody &. This prevents a compiler warning. - - * tao/typecode.cpp (private_id): Removed unused variable status. - - * tao/objtable.cpp (bind): Removed the temp variable, which - was unused. - -Tue Jul 29 19:31:11 1997 Douglas C. Schmidt - - * tao/boa.cpp (get_boa): Added casts of ACE_UINT32 so that we - don't have ambiguous calls to the constructor of ACE_INET_Addr. - - * tao/deep_copy.cpp (deep_copy): Removed an unreachable return - value. - -Mon Jul 21 15:08:36 1997 Chris Cleeland - - * TAO version 0.0.7, released Mon Jul 21 15:08:36 1997. - -Mon Jul 21 12:06:16 1997 Darrell Brunsch - - * tao/object.cpp: removed the #include of object.i since it will - always be #included in object.h - -Thu Jul 17 16:54:38 1997 Douglas C. Schmidt - - * TAO version 0.0.6, released Thu Jul 17 16:54:38 1997. - -Thu Jul 17 16:43:23 1997 Chris Cleeland - - * tao/{optable,objtable}.cpp: Updated the explicit template - instantiations at the end of these files to reflect the changes - that Andy made. - -Thu Jul 17 10:08:45 1997 Aniruddha Gokhale - - * tao/align.h: A very subtle error in "align_binary" was corrected. I - was assuming that align_binary is always called by - "ptr_align_binary". In the original inline function versions of - align_binary and ptr_align_binary, the function align_binary would - subtract 1 from the specified alignment that ptr_align_binary - provided. Since I assumed that "align_binary" would always be - called by "ptr_align_binary", I subtracted the 1 in - ptr_align_binary and passed the result to "align_binary". This - caused all sorts of problems for application code that directly - called "align_binary". This error has been fixed. The macros for - align_binary and ptr_align_binary are now exactly as the original - inline functions. - - * tao/any.{h,cpp}: Added comments. In addition, in the code for - Any::replace, we check if "_value" exists before trying to - DEEP_FREE it. Otherwise this was resulting in a segmentation fault - violation. - - * tao/boa.{h,i}: Added comments and changed "release" to CORBA_release - - * tao/cdr.{h,cpp}: Added some comments and removed some stuff that was - under #if 0 .. #endif - - * tao/corbacom.h: Added lots of comments for the CORBA_String_var class - - * tao/decode.cpp: Made TAO_Marshal_Union::decode to work, added comments. - - * tao/encode.cpp: Made TAO_Marshal_Union::encode to work, added comments. - - * tao/factories.{h,cpp}: Added lots of comments. Removed "void - object_lookup_strategy" method since we do this in the parameters - class. Added code that will use a user defined lookup strategy if - the corresponding flag is set. This needs to be tested. - - * tao/iiopobj.{i,cpp}: In the allocation and deallocation of the buffer - for object key, we now use "new/delete" instead of "malloc/free". - - * tao/interp.cpp: commented out a line that decremented 4 from the - offset provided for indirected typecodes. I guess this was plain - hack to get some broken things to work. - - * tao/objtable.{h,cpp}: Added lots of comments. Added code that will use - template specialization for the dynamic hashing case. In addition, - improved the destructors of the classes since previously, these - were not releasing occupied memory. - - * tao/optable.{h,cpp}: Added lots of comments. Added template - specialization for dynamic hashing scheme. Made dynamic hashing - scheme the default. Added a new definition for "struct - TAO_operation_db_entry". The idea is that an IDL compiler will - generate a database of operations and their corresponding - skel_ptrs. Such a database is now passed to teh constructors of - the operation lookup tables. This way, only one instance of such - lookup tables can be shared by any number of objects implementing - the same interface. - - * tao/params.{h,i,cpp}: Made dynamic hashing the default. Added a hook - by which users can supply their lookup strategies. *Needs testing*. - - * tao/typecode.{h,i,cpp}: Added comments and many changes. The private - state's constructor now takes an argument that is a TCKind - representing the TypeCode kind of the object of which we are the - private state. Removed "child_free". Instead, we introduced a - destructor for the private state that frees all the - children. Another important change is to the constructor of the - TypeCode class. We pass a "parent" pointer, if any, to the - constructor. All children typecodes will share the octet buffer of - the parent. Only freestanding typecodes will allocate octet - buffers. We have a new data member called "non_aligned_buffer_" - because the buffer we allocate may not be aligned on a 4 byte - boundary. As a result, we may start using the buffer at a shifted - position to the right. However, we do not want to lose a handle to - the original buffer that was allocated because at the time of - freeing, this pointer needs to be freed. - - * tests/Cubit/TAO: Modified a few files (method_db.i, cubitS.cpp) - so that they use the modified optable and objtable classes. Added - a README file to indicate how to run the example. - - * tests/Thruput_test: Modified virtually all the files to make it - work with the latest TAO release and its include files. Also, - changes similar to Cubit were necessary due to changes in the - objtable and optable classes. - -Wed Jul 16 14:17:01 1997 Chris Cleeland - - * tao/params.*: Eliminated unnecessary - ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES checks from - TAO_OA_Parameters (unnecessary b/c it's not a template). Also - corrected the type of TAO_OA_Parameters::ace_singleton_lock_. - -Wed Jul 16 11:34:36 1997 Chris Cleeland - - * tao/boa.cpp: Removed some unused code. - - * tao/compat/objbase.h: Added explicit check for prior inclusion - of ace/OS.h, with an error being produced if it's not included. - This will help keep me honest and remember to always include OS.h - beforehand, since I do most of my development on non-WIN32 - platforms. - - * tao/*.{h,cpp}: Added #include "ace/OS.h" before every inclusion - of . This is required on WIN32 platforms because - objbase.h eventually ends up including , which is the - wrong version of winsock from what ACE requires. Thus, by - including OS.h prior to objbase.h, objbase.h ends up not trying to - include a winsock header. - - * tao/orbobj.cpp: Added missing #include for tao/debug.h. - -Wed Jul 16 10:55:55 1997 Darrell Brunsch - - * tao/PC_Install.bat: removed it since it isn't needed anymore - - * tao/TAO.dsp: Changed include path and removed calling of - PC_Install.bat - - * tests/Cubit/TAO/{client,server}.dsp: Changed include path - -Tue Jul 15 16:13:53 1997 Chris Cleeland - - * tests/Cubit/TAO/cubitC.cpp: Added missing calls to Release() - after QueryInterface() calls. The tip-off that this wasn't - happening was the fact that, upon client exit, there were upwards - of 15 references to the object references. Now it's only 5-7 - (more work to go). - - * tests/Cubit/TAO/*: Changed all #include paths to be "tao/...". - Also, changes to orb.h (see below) obviated additional header - inclusion in certain files. - - * tao/compat/*.h: Changed the guts of these files so that they - work more like their "real" counterparts in the VC++ 5.0. This - should encourage compatibility. Note that, unlike the previous - files, objbase.h MUST be included before initguid.h; this is - consistent with the model on WIN32. - - * tao/*.{h,cpp}: Changed all #include paths to be "tao/...". - Also, changes to orb.h (see below) obviated additional header - inclusion in certain files. - - * tao/giop.cpp: Removed get_request() crufty old code. - - * tao/iiopobj.cpp: Backed out many prior special-code additions - for defining IIDs. Hopefully the need for these is negated by - changes elsewhere in the "compat" files. - - * tao/object.cpp: Corrected the conditional compilation switch - used to determine if we define IID_IUnknown. This now happens - whenever WIN32 isn't defined, instead of before when it was only - on unix or vxworks platforms. - - * tao/Makefile: Eliminated the need to copy files into a "proto/" - directory; now, everything is built into and used from the "tao" - directory. - - There is also a new, optional, environment - variable--TAO_ROOT--which should be set to the ".../TAO" - directory. If it's not set, the Makefile will set it to - WRAPPER_ROOT/TAO. - - Lastly, libcorba.* has changed to libTAO.*. - - * tao/orb.h: Eliminated many header files which had been - explicitly included here and were causing all manner of problems - with circular includes. Library components must now be careful to - include appropriate headers for all components they use, and we - will likely have to create a corba.h file for clients to use. - -Fri Jul 11 12:12:40 1997 Darrell Brunsch - - * tao/TAO.dsp: changed to use ace-r.dll in the release - version - - * tests/Cubit/TAO/{client,server}.dsp: changed to use ace-r.dll - and tao-r.dll for the release versions. - -Thu Jul 10 15:47:24 1997 Chris Cleeland - - * docs/: Removed the following obsolete files: README.apm, - BUILDING, and TESTS. - - * tao/params.*: Moved the instance() methods into the .cpp from - the .i, as well as the declaration for the singleton locks. - Having the singleton locks declared in the .i file caused much - consternation when ACE inlining was turned on. - - * tao/iiopobj.cpp: #ifdef'd the IID_STUB_Object declaration added - a few days ago so that it happens one way on NT, and another in - the rest of the Universe. I would have preferred to find a more - general solution, but didn't find one quickly enough to satisfy my - current requirements. - - * tao/roa.*: Removed get_request() method. This should improve - our McCabe scores ;-) - - * tao/boa.h: Removed get_request() method. - -Wed Jul 9 14:44:31 1997 Darrell Brunsch - - * TAO-Install: Added installation instructions for NT - -Tue Jul 8 20:52:06 1997 Darrell Brunsch - - * tao/PC_Install.bat: Made it very quiet. - - * tao/params.{cpp,h,i}: Changed TAO_OA_PARAMS from a - ACE_Singleton to a plain singleton by just integrating the - ACE_Singleton code into the class. - -Tue Jul 8 14:27:47 1997 Darrell Brunsch - - * tao/except.h: added ACE_Svc_Export to SYSEX macro - - * tao/iiopobj.cpp: changed declaration of IID_STUB_Object - to include ACE_Svc_Export - - * tao/stub.h: added ACE_Svc_Export to IID_STUB_Object - -Tue Jul 8 12:44:14 1997 Darrell Brunsch - - * tao/orbobj.cpp: Put the "*" in before the comment since it is - supposed to be there. Put a space between it and the comment - to get rid of the warning which VC was giving originally. - -Tue Jul 8 10:21:27 1997 Darrell Brunsch - - * tao/typecode.cpp: Changed a few loop counters from int to - CORBA_ULong to get rid of unsigned/signed comparison warnings - - * tao/orbobj.cpp: Got rid of a "*" before a comment. Looked like - a typo - - * tao/PC_Install.bat: Replaced "#...." with "rem ...." - -Mon Jul 7 20:59:05 1997 Douglas C. Schmidt - - * tests/Cubit/TAO/test1_{svr,clnt}.cpp (main): Added template - specialization code and updated the formatting. Thanks to Arturo - Montes for reporting this. - - * tests/Cubit/TAO/test1_svr.cpp (main): Added the -i options to - getopt(). Thanks to Arturo Montes for - reporting this. - - * TAO/tao/orbconf.h (SIZEOF_LONG_DOUBLE): Added a - #define for M_UNIX. Thanks to Arturo Montes - for reporting this. - -Sun Jul 06 02:37:24 1997 Douglas C. Schmidt - - * TAO version 0.0.5, released Sun Jul 06 02:37:24 1997. - -Sun Jul 6 00:10:28 1997 Douglas C. Schmidt - - * tao: Fixed all the code so that we put ACE_MT around all the - ACE_GUARD_RETURN macros. - - * tao: Updated all of TAO to make sure we use [] when deleting - arrays in order to avoid memory leaks. This looks like lots of - sloppiness left over from the original SunSoft IIOP code. - -Sat Jul 5 16:12:31 1997 Douglas C. Schmidt - - * tao/{any,iiopobj,nvlist,principa,request,roa,svrrqst,typecode}.cpp: - Fixed a double-deletion of a lock. - - * tao/typecode.i: Cleaned up lots of minor warnings with the code - that are only revealed when running GCC. The code should now - compile almost completely cleanly with -wall. - - * tao/typecode.{i,h}: Changed the name of TC_PRV_State to - TC_Private_State. - - * tao: Replaced ACE_Thread_Mutex with ACE_SYNCH_MUTEX so that the - code will compile on non-threaded and threaded platforms alike. - - * tao/marshal.cpp: Added template specializations for the Marshal - primitives. Thanks to Arturo Montes for - reporting this. - - * tao/Makefile (LDLIBS): Replaced -lcorba with -lACE so that we no - longer have problems with circular link dependencies. Thanks to - Arturo Montes for reporting this. - -Sat Jul 05 13:25:23 1997 Douglas C. Schmidt - - * TAO version 0.0.4, released Sat Jul 05 13:25:23 1997. - -Sat Jul 5 12:39:57 1997 Douglas C. Schmidt - - * tao: All throughout TAO I removed the direct use of system - include files in lieu of using ace/OS.h. - - * tao/{orbobj,typecode}.cpp: orb.h must be included before others - include files. Previous includes prevent correct use of ACE config - flags, therefore, I removed them. Thanks to Arturo Montes - for reporting this. - - * tao/{debug,roa}.cpp: changed _POSIX_THREADS to ACE_HAS_PTHREADS. - Thanks to Arturo Montes for reporting - this. - - * tao/decode.cpp (decode): The casting (CORBA_ULong) kind is - unnessary and wrong so I removed it. Thanks to Arturo Montes - for reporting this. - - * tao/debug.cpp (emit_prefix): Changed line 99 from - - #define emit_prefix (stream) ... - - to - - #define emit_prefix(stream) ... - - The blank character prevent after macro name (emit_prefix) prevent - correct definition. Thanks to Arturo Montes - for reporting this. - -Sat Jul 5 01:04:24 1997 Douglas C. Schmidt - - * TAO/tao/xdr.cpp: Removed unistd.h and string.h from the xdr.cpp - file since those aren't necessary. Thanks to Arturo Montes - for reporting this. - -Fri Jul 4 00:18:21 1997 Douglas C. Schmidt - - * tao/roa.h: Removed derogatory COMments ;-). Thanks to Anton van - Straaten for reporting this. - -Thu Jul 3 16:16:14 1997 Darrell Brunsch - - * Added ACE_Svc_Export to a couple of declarations to make NT - happier - -Thu Jul 3 13:43:20 1997 Darrell Brunsch - - * Added Visual C++ 5.0 project and workspace files for the TAO - library and Cubit test - -Wed Jul 2 12:44:42 1997 Aniruddha Gokhale - - * TAO/tests: Moved tests from TAO/IIOP/tests to TAO/tests - -Wed Jul 02 00:20:28 1997 Douglas C. Schmidt - - * Compiled the first alpha release of TAO on Solaris just - to make sure it still works. So far, so good... hence, - the first alpha release is out the door! - -Tue Jul 1 23:35:53 1997 Douglas C. Schmidt - - * VERSION: Added a VERSION file, starting at version 0.0.0... - -Tue Jul 1 23:00:15 1997 Aniruddha Gokhale - - * Added a new tests directory with the Cubit and TTCP - examples. The older test directory will be deleted soon. - - In addition, the tc_constants in the tc_constants.cpp file are - declared with an ACE_Svc_Export to make the Win NT compiler - happy. Extern declarations in typecode.h had the same changes. - - * Updated the PC_install.bat file. In addition, there was one more - warning in typecode.cpp (Win NT compiler) that was fixed. Finally, - in the the tc_const.cpp file, the ACE_Svc_Export was used - accidently. This has been fixed. - - * A number of files were updated with ACE_Svc_Export so that - variables and classes do not remain unresolved for Win32 - platform. Similarly, Irfan had sent me a list of warnings that the - Win NT compiler was giving. These are fixed. - - * marshal.*: Changed the way make_marshal_object works. Instead of - having a switch statement, we index into a private table of - marshal objects using the TypeCode _kind field. MarshalFactory now - maintains this private table. - -Mon Jun 30 17:39:02 1997 Douglas C. Schmidt - - * Added a new README file and a COPYING file that explains the - contents of TAO and clarifies its copyright status. - -Sun Jun 29 10:06:50 1997 Aniruddha Gokhale - - * marshal.*: Added CORBA_Environment as a parameter to - make_marshal_object factory method. The reason for doing this was - to enable inlining of the CDR::encode and CDR::decode methods. - - * typecode.*: Changed the way typecodes get deleted. Constant - typecodes are now owned by the ORB and their private state freed - when the ORB dies. IDL generated typecodes are not owned by the - ORB and are the only ones whose refcount matters. Typecodes - belonging to the IDL generated typecodes are also not owned by the - ORB and there is no effect on their refcount. They get freed only - if the parent is destroying itself. - - In typecode.i, methods such as length and content_type were not - getting inlined due to presence of switch statements. Converted to - if/else. - - * interp.cpp: Bug fix: Had previously forgotten to update the - size/alignment of the private state of the typecode. - -Fri Jun 27 14:27:49 1997 Aniruddha Gokhale - - * any.cpp: The deep_copy and deep_free optimizations applied. In - the previous release, I had forgotten to add these to the Any - constructor (that calls deep_copy) and Any destructor/replace - (that call deep_free). - - * connect.cp, factories.cpp: Added code that hardcodes the socket - buffer sizes to 64K. This is a hack for the time being. - -Thu Jun 26 10:02:47 1997 Aniruddha Gokhale - - * Some more progress on IDL compiler. Generates the client and - server side files without much contents in it. - -Thu Jun 26 09:49:38 1997 Aniruddha Gokhale - - * Added a full range of optimizations to the TAO IIOP interpretive - marshaling engine. The static methods encoder and decoder have - been removed from the CDR class. Instead, separate classes for - marshaling have been created for each individual data type. The - CDR stream maintains a factory that returns an appropriate - marshaling object depending on the data type to be - marshaled. Files added include marshal.h, marshal.i, encode.cpp, - decode.cpp, deep_free.cpp, and deep_copy.cpp. The marshal.h file - defines classes for an abstract MarshalObject. The factory is - responsible to return a concrete specialized instance of the - MarshalObject. - - * Updated the CORBA_TypeCode class so that it now provides all the - CORBA_2.0 compliant operations. These include length(), - content_type(), member_type(), member_label(), - discriminant_type(), id(), default_index(). The equal() operations - is still not implemented. In addition, precomputation - optimizations are applied to the TypeCode class. This includes - precomputing various parameters (if any) of a TypeCode. For - example, a struct TypeCode keeps track of the member count and - member types. As a result, it is not necessary to interpret the - CDR encapsulated stream to retrieve these parameters. - - * At this time, there are some problems getting the Unions to work. - -Thu Jun 12 15:45:49 1997 Chris Cleeland - - * IIOP/lib/objtable.cpp: Added explicit template instantiations - for ACE_Hash_Map_Manager<>. - - * IIOP/lib/giop.*: Finally got rid of all those methods that took - ACE_HANDLE as the argument. Now, all those operate on - ACE_SOCK_Streams. - -Thu Jun 5 10:15:21 1997 Chris Cleeland - - * IIOP/lib/giop.cpp: Corrected output format in error message. - -Thu Jun 5 10:09:01 1997 Chris Cleeland - - * IIOP/test/svr.cpp: Added a new class to catch SIGINT and - terminate. This was necessary to Quantify the server process. - - * IIOP/lib/orbobj.h: Added ACE_INLINE to forward decls of - CORBA_release() and CORBA_is_nil(). - -Wed May 23 14:39:01 1997 Brian Mendel - - * IIOP/lib/objtable.{h,cpp}: Added template specialization of - ACE_Hash_Map_Manager for char*'s. - - * IIOP/test/cubitS.cpp: Fixed type_id to be of type CORBA_String_var. - Also, added a debug msg to print the object address to show the - object for which the request is made. - - * IIOP/test/svr.cpp: Added capability to create multiple Cubit - objects via command line options. Added -n for number of objects and - -k for specifying a base name. For instance, -k Beevis -n 2 creates - Beevis1 and Beevis2 objects. The clnt can then specify a specific - object for the request as usual. - -Wed May 22 12:28:45 1997 Brian Mendel - - * IIOP/test/clnt.cpp: Deleted VxWorks specific sections. Command - line is now working for VxWorks. - * IIOP/test/svr.cpp: Deleted VxWOrks specific sections. Command line - is now working for VxWorks. - -Wed May 22 11:31:42 1997 Chris Cleeland - - * IIOP/test/svr.cpp: Added better error checking and messages, and - performed general re-formatting. - - * IIOP/test/method_db.i (initialize_method_db): Changed arg type - to use a pointer to the abstract class TAO_Operation_Table. - - * IIOP/test/cubitS.cpp (_skel_Cubit::_skel_Cubit): Added better - error checking and messages. Also defaulted to use the linear - object table implementation rather than the hashed to simplify - debugging. - - * IIOP/test/clnt.cpp: Moved some code around so that more of the - code is common is less is specific to VxWorks and other platforms. - Also did general re-formatting. - - * IIOP/lib/optable.cpp (TAO_Linear_OpTable::find): Initialization - of the loop variable makes the loop work properly. - - * IIOP/lib/objtable.cpp (TAO_Dynamic_Hash_ObjTable::find): - Explicitly specified length of object key in CTOR for ACE_CString - because object keys are not zero-terminated. - - * IIOP/lib/giop.cpp: Added newlines to the end of all ACE_DEBUG() - messages. - - * IIOP/lib/factories.cpp: Added template specializations for - ACE_Hash_Addr. - -Tue May 22 09:32:41 1997 Brian Mendel - - * IIOP/lib/cdr.h: Deleted #define old_value ACE_INLINE and - #define ACE_INLINE old_value lines. Added #undefs for ACE_INLINE - prior to redefines. Changes required to compile on Windows NT. - -Tue May 20 14:47:46 1997 Chris Cleeland - - * IIOP/test/cubitS.h: Removed forward decl of - TAO_Active_Operation_Table. - - * IIOP/test/{cubitC,cubitS}.*: Changed include quoting characters - from [<>] to double-quotes. - - * IIOP/test/Makefile: Removed cubit.o from clnt and svr target - (this has been subsumed by cubit[CS]). - - * IIOP/lib/optable.h: Changed ACE_RW_Mutex to ACE_SYNCH_RW_MUTEX. - - * IIOP/lib/optable.cpp: Inserted explicit template instantiations. - - * IIOP/lib/Makefile: Added optable to the Makefile. - - * IIOP/lib/optable.cpp: Moved ~TAO_Operation_Table() into here. - - * IIOP/lib/object.i: Moved find() and bind() into the cpp file. - Moved ~TAO_Operation_Table() into optable.cpp. - -Tue May 20 14:39:00 1997 Brian Mendel - - * IIOP/test/*: Commited changes to Cubit Example as a current snapshot - of required changes. - - * IIOP/lib/*: Changes required for header file includes. Added - conditionals around _IIOP_BUILD_ - -Tue May 20 13:55:58 1997 Chris Cleeland - - * IIOP/test/*: Commited this stuff in-process so that Brian - M. doesn't have to duplicate effort. - -Tue May 20 13:04:00 1997 Brian Mendel - - * IIOP/lib/debug.cpp: Deleted spaces between flockfile (f) and - funlockfile (f). Changed instances of debug_filter to - TAO_debug_filter. Deleted space between emit_prefix (stream). - - * IIOP/lib/cdr.cpp Added undef(s) for ACE_INLINE and - do_undef_on_ACE_INLINE to eliminate redefinition problems. - - -Tue May 20 10:55:09 1997 Chris Cleeland - - * IIOP/lib/cdr.h: Fixed the automatic inclusion of cdr.i into - cdr.h by checking to see if __ACE_INLINE__ is not defined and, if - so, defining ACE_INLINE to be "inline" (we tidy up the namespace - immediately after the inclusion of cdr.i, too). See source for - comments regarding why this is done. - - * IIOP/lib/optable.cpp (TAO_Linear_OpTable_Entry): Removed setting - of opname and skel_ptr to zero in CTOR since the CTOR for those - already insures this. Moreover, NT's compiler was complaining - about ambiguous resolutions. - - * IIOP/lib/{orbobj,giop,debug,boa}.cpp: Fixed reference to - debug_level so it's TAO_debug_level. - - * IIOP/lib/object.h: Replaced inclusion of optable.h with forward - decl of TAO_Operation_Table. - - * IIOP/lib/optable.cpp: Fixed names of methods that were changed - in the header but never changed in the source. Amazing that - neither g++ nor Sun C++ caught these gaffs! (Finally, the NT - compiler wins). - - * IIOP/lib/{orbobj,object}.h: Changed the forward decls of - CORBA_release() and CORBA_is_nil() so that they are only in effect - when inlining is NOT being used. - - * IIOP/lib/giop.cpp: Fixed incorrect passing of an object to - ACE_DEBUG() where an int is expected. - -Mon May 19 17:16:34 1997 Chris Cleeland - - * IIOP/lib/roa.cpp: Explicit cast rids us of a warning. - - * IIOP/lib/params.h: Fixed CTOR name. Once again I'm surprised - G++ didn't catch this. - - * IIOP/lib/optable.h: Corrected erroneous method signature on - bind(). - - * IIOP/lib/objtable.cpp: Corrected erroneous method signature on - TAO_Linear_ObjTable::bind(). - - * IIOP/lib/{object,orbobj}.h: Forward declaration of - CORBA_release(CORBA_Object_ptr) and CORBA_is_nil(CORBA_Object_ptr) - were commented out. I think this will cause a problem when we - DON'T inline, but I'll cross that bridge later. - - * IIOP/lib/{orb,factories}.h: Made inclusion of some headers - conditional on the compilation phase (building the library or an - application). - - * IIOP/lib/cdr.i: Removed incorrect default arguments (g++ didn't - catch them). - - * IIOP/lib/Makefile: Removed thread from the header list. - -Mon May 19 10:07:00 1997 Chris Cleeland - - * IIOP/lib/optable.cpp: Changed implementation of the operation - table and the parameters repository so that they use the right - class names. - -Sat May 17 17:18:38 1997 Aniruddha Gokhale - - * First pass at providing a backend to the SunSoft's CORBA IDL - compiler front end. - -Fri May 16 17:30:31 1997 Chris Cleeland - - * IIOP/lib/svrrqst.*: Corrected some comments, adjusted some - argument type names to reflect their new, namespace-sanitized - names, and moved short methods into a new inline file. - - * IIOP/lib/stub.h: Corrected some comments and adjusted some - argument type names to reflect their new, namespace-sanitized - names. - - * IIOP/lib/roa.cpp: Corrected syntax error and fixed up typedef. - - * IIOP/lib/params.*: Removed extraneous comments and fixed - argument type on demux_strategy(). - - * IIOP/lib/orbobj.*: Added comments, removed static pointer to - the ORB. - - * IIOP/lib/optable.h: Removed extraneous comments and fixed - typedefs. - - * IIOP/lib/objtable.cpp: Fixed some syntax errors introduced by - reformating. - - * IIOP/lib/object.cpp: Adjusted some argument type names to - reflect their new, namespace-sanitized names. - - * IIOP/lib/invoke.cpp: Removed crufty #includes and adjusted some - argument type names to reflect their new, namespace-sanitized - names. - - * IIOP/lib/iioporb.*: Moved short methods into inline file, added - IIOP_ORB_ptr typedef, and changed data member to conform to ace - standards. - - * IIOP/lib/iiopobj.*: Added the second CTOR that I forgot last - time and adjusted some argument type names to reflect their new, - namespace-sanitized names. - - * IIOP/lib/giop.h: Added comments for various enums and - structures. - - * IIOP/lib/giop.cpp: Switched various GIOP::Invocation methods to - use handler_->peer() for socket communication rather than going - through a file descriptor. Also began the arduous (no other word - could explain it!) process of converting the homegrown debugging - message macro uses into ACE_DEBUG() uses. - - * IIOP/lib/factories.*: Added explicit DTOR for TAO_Client_Factory - and completed all the darn explicit template instantiations. - Changed 'Svc_Handler' to 'TAO_Client_Connection_Handler', and - added the forgotton TAO_Client_Factory::connector() method. - - * IIOP/lib/debug.*: Added 'TAO_' prefix to global debug state - variables and removed crufty #includes. - - * IIOP/lib/connect.cpp: Change ROA_Handler to - TOA_OA_Connection_Handler (missed these the last time through). - - * IIOP/lib/cdr.cpp: Added responsive commentary. - - * IIOP/lib/boa.cpp: Added comments to the dispatching code. - - * IIOP/lib/{any,boa,request,typecode}.cpp: Removed references to - thread.h/connmgr.*. - -Thu May 15 19:08:16 1997 Douglas C. Schmidt - - * Finished updating all the reformatting. - -Thu May 15 15:54:49 1997 Chris Cleeland - - * IIOP/lib/principa.h: Corrected syntax error which eliminated the - _refcount data member. - - * IIOP/lib/{params,roa}.*: Updated class names to reflect ROA --> - TOA_OA pseudo-namespace change. - - * IIOP/lib/orbobj.*: Updated CORBA_ORB_init() to return pointer to - new ORB singleton. - - * IIOP/lib/orb.h: Commented out some include files to eliminate - wierd circular dependencies. - - * IIOP/lib/optable.h: Moved TAP_Operation_Table into here. Put - OpTable* classes into the TAO_Operation_Table* pseudo-namespace. - - * IIOP/lib/objtable.*: Moved TAO_Object_Table into here. Moved - the Entry classes out of the scope of their respective concrete - operation tables, so they're now named _Entry. - - * IIOP/lib/object.*: Moved TAO_Operation_Table into optable.*, and - added a data member which carries a pointer to the ORB with which - the object is associated. - - * IIOP/lib/iioporb.*: Added a singleton typedef for the ORB which - is what CORBA_ORB_init() will now return. Modified - string_to_object() so that it sets the ORB on the CORBA_Object - that it returns. - - * IIOP/lib/{iiopobj,nvlist}.h: Added some responsive commentary. - - * IIOP/lib/giop.cpp: Modified connection establishment code in - GIOP::Invocation::start() to utilize the client connection manager - in the ORB. - - * IIOP/lib/giop.h: Put a TAO_Client_Connection_Handler* into - GIOP::Invocation in place of the client_endpoint. - - * IIOP/lib/factories.*: Updated explicit template instantiations, - added TAO_Client_Connection_Handler. - - * IIOP/lib/connect.*: Renamed things--ROA_Parameters --> - TOA_OA_Parameters, ROA_Handler --> TOA_OA_Connection_Handler. - - * IIOP/lib/boa.h: Moved TAO_Object_Table into objtable.*, added - comments where appropriate. - - * IIOP/lib/{any,cdr,iioporb,invoke}.*: Re-formatting and creation - of inline method file. - -Tue May 13 21:51:22 1997 Douglas C. Schmidt - - * Continued to update the format of the TAO source code so that it - will be consistent with the style used in ACE. - -Mon May 12 17:02:29 1997 Chris Cleeland - - * IIOP/lib/roa.*: Moved short method into an inline file. - Miscellaneous reformatting. Adjustment to new type names - (prefaced by TAO_ for namespace protection). - - * IIOP/lib/object.*: Moved short methods into an inline file. - Changed lookup()/register_op() to find()/bind() for consistency - with established ACE APIs. Miscellaneous reformatting. - - * IIOP/lib/iiopobj.*: Moved short methods into an inline file. - Added CTOR for IIOP::Version and IIOP::ProfileBody. Added - convenience CTOR for IIOP_Object where the profile can be - supplied. Miscellaneous reformatting. - - * IIOP/lib/boa.*: Moved short methods into an inline file. Changed - lookup()/register_obj() to find()/bind() for consistency with - established ACE APIs. - - * headers: Added comments to force C++ mode in emacs for header - files, and changed SCCS version tag info to RCS version tag info. - -Wed May 7 14:49:46 1997 Aniruddha Gokhale - - * IIOP/lib/corbacom.cpp: Some bugs from the CORBA_String_var class - have been fixed. Thanks to Brian Mendel for noticing these. - - * IIOP/lib/boa.cpp: In CORBA_BOA::dispatch, the opname local - variable of type CORBA_String_var is changed to be of type - CORBA_String. This was because the String_var class would assume - ownership of the quantity assigned and delete it. Thanks again to - Brian Mendel for noticing this. - -Tue May 6 14:06:49 1997 Aniruddha Gokhale - - * IIOP/lib/boa.hh: the register_obj's 2nd argument is changed from - CORBA_Object_ptr& to CORBA_Object_ptr - - * IIOP/lib/object.hh: the return type for register_op method on - CORBA_Object is changed from void to int to be consistent. - - Added a new method "get_subclass" to CORBA_Object that returns a - pointer to the subclass. Typeically, this would be pointer to an - object that implements an interface. - - * IIOP/lib/objtable.{hh,cpp}: @nd argument of register_obj changed - from CORBA_Object_ptr& to CORBA_Object_ptr. - - * IIOP/lib/orb.hh: the type signature of "skeleton" is changed to - take CORBA_Object_ptr rather than CORBA_Object_ptr& as its 2nd argument. - -Mon May 5 20:28:54 1997 Aniruddha Gokhale - - * IIOP/lib/boa.cpp: commented out code that uses the "void - *context" field. It doesn't make any sense to have it. - - * IIOP/lib/boa.hh: Added 2 pure virtual methods (shutting_down and - clean_shutdown). - - In addition, the "register_obj" method was added. It was missing before. - - * IIOP/lib/corbacom.cpp: String_var's constructor bug is fixed. It - was trying to free storage that was never allocated. - - * IIOP/lib/iiopobj.{hh,cpp}: Added a method - "get_name" that - retrieves the object name. - - * IIOP/lib/object.{hh,cpp}: Added a method - "get_name" that - retrieves the object's name or key. This is for debugging purposes. - - * IIOP/lib/orbobj.cpp: There was an infinite loop in parsing the - options to BOA_init. Fixed. - - * IIOP/lib/stub.hh: Added the "get_name" virtual method. - -Sat May 3 22:45:23 1997 Aniruddha Gokhale - - * IIOP/lib/boa.cpp: Added code temporarily that invokes the - skeleton that is looked up. We still need to add code that will - handle the case when no match is found on the operation names. - - * IIOP/lib/boa.hh: The register_obj method on TAO_Object_Table - now returns an integer indicating status of registering (-1 => - failure, 0 for success). - - * IIOP/lib/object.hh: The register_op method on - TAO_Operation_Table now returns an integer code (O for success, -1 - for failure). - - * IIOP/lib/objtable.{hh,cpp}: The register_obj method returns an - integer code representing either success or failure. - - * IIOP/lib/optable.{hh,cpp}: Added new files that implement - concrete strategies for operation name lookup. - -Fri May 2 08:48:29 1997 Aniruddha Gokhale - - * IIOP/lib/object.hh: Modified the signature of register_op on - TAO_Operation_Table to take a second argument to be a pointer to - the actual skeleton. - - Thanks to Brian Mendel for reporting this. - -Thu May 1 16:46:11 1997 Aniruddha Gokhale - - * IIOP/lib/object.{hh,cpp}: Added a method that can set the parent - pointer. - - * IIOP/lib/params.cpp: A hook has been provided in ROA_Factory to - enable the user to use a user-defined demux strategy. - -Wed Apr 30 22:00:51 1997 Aniruddha Gokhale - - * IIOP/lib/objtable.{hh,cpp}: Added two new files that define - different object demultiplexing strategies. - - * IIOP/lib/Makefile: Added objtable as additional source file to compile. - - * IIOP/lib/boa.cpp: Provided the default destructor for the - TAO_Object_Table. - - * IIOP/lib/boa.cpp: Provided the default destructor for the - TAO_Operation_Table. - - * IIOP/lib/orbobj.cpp: Added support for the -OAtablesize option - in the call to CORBA_ORB::BOA_init method. - - * IIOP/lib/params.{hh,i,cpp}: Added support to ROA_Factory to return - a specific object lookup strategy. - - *IIOP/lib/roa.cpp: The ROA constructor initializes its "objtable_" - private data member with the object lookup strategy returned by - ROA factory. - -Tue Apr 29 11:52:48 1997 Aniruddha Gokhale - - * IIOP/lib/any.hh: Moved CORBA_Any_ptr declaration to orb.hh. - - * IIOP/lib/boa.{hh,cpp}: Renamed BOA to CORBA_BOA. The CORBA_BOA class - maintains a pointer to an abstract TAO_ObjectTable class. Concrete - classes inheriting from TAO_ObjectTable will provide strategies - for lookup. - - Added virtual functions to do dispatch based on object key. In - addition, added a lookup method based on object key that delegates - the task of looking the object to the object table it maintains. - - Changed the signature of typedef CORBA_BOA::dsi_handler to be pointer to - member function of class CORBA_BOA. Eventually, this will point to - the dispatch method of class CORBA_BOA. - - Moved "struct Dispatch_Context" from roa.hh to boa.hh since we - want BOA to be a full fledged OA eventually and not remain an - abstract class as it is now. All other OA's such as ROA inherit - from BOA and only add extra functionality. - - * IIOP/lib/connect.cpp: There was a syntax error (missing comma) - in one of the ACE_DEBUG statements which has been fixed. - - * IIOP/lib/corbacom.{hh,cpp}: Added class CORBA_String_var as well - as the CORBA compliant CORBA_string_dup. - - * IIOP/lib/except.hh: Moved CORBA_Exception_ptr declaration to orb.hh. - - * IIOP/lib/object.hh: Added an abstract class - TAO_Operation_Table. CORBA_Object maintains a pointer to this - abstract class. The IDL compiler will eventually generate concrete - classes that employ different lookup strategies for operation name - lookup. - - * IIOP/lib/orb.hh: Added forward declarations to all CORBA_* - classes. In addition, moved all the CORBA_*_ptr declarations here. - - * IIOP/lib/orbobj.{hh,cpp}: Added the CORBA compliant BOA_init - method to class CORBA_ORB. Users can now pass arguments to - BOA_init. Eventually, we want to make this method return any of - the specialized OA's depending on the arguments. Right now, we get - a pointer to the ROA. - - * IIOP/lib/params.{hh,i}: Added some more methods and enum - declarations to the ROA_PARAMS singleton. - - * IIOP/lib/principa.hh: Moved the CORBA_Principal_ptr declaration - to orb.hh. - - * IIOP/lib/roa.{hh,cpp}: Moved some functionality to boa.hh. ROA - is now only a specialized form of BOA. - - * IIOP/lib/stub.hh: Moved the typedef for "skeleton" to orb.hh. - - * IIOP/lib/svrrqst.{hh,cpp}: Had to rename BOA to CORBA_BOA. - - * IIOP/lib/typecode.hh: Moved the CORBA_TypeCode_ptr declaration - to orb.hh. - -Tue Apr 22 23:30:19 1997 Chris Cleeland - - * IIOP/lib/connect.cpp (open): Added log message. - - * IIOP/lib/params.cpp (concurrency_strategy): Uses reactive - strategy when appropriate. - - * IIOP/lib/params.hh: Reactive strategy added. - -Tue Apr 22 21:03:15 1997 Chris Cleeland - - * IIOP/lib/giop.cpp: Changed erroneous ACE_GUARD calls to ACE_GUARD_RETURN - calls. - -Tue Apr 22 16:15:52 1997 Chris Cleeland - - * IIOP/lib/roa.cpp: Removed more POSIX thread calls. - - * IIOP/lib/invoke.cpp: Changed ForceSynchronousCancellation to - ACE_Synchronous_Cancellation_Required and made it use the ACE_OS - calls. - - * IIOP/lib/{typecode,svrrqst,request,principa,orbobj,nvlist,iiopobj,giop,except,any}.*: - Removed all vestiges of pthread mutexes...they are now - ACE_Thread_Mutexes. This will likely have to change if we want to - compile something completely devoid of threads, but that's another - day. Also, the mutexes have moved from being globals to being - members on the respective classes. No files should be dependent - on thread.hh any longer. - - * IIOP/lib/connect.cpp (open): Removed code obsoleted by use of - the Strategy_Acceptor. - - * IIOP/lib/{roa.cpp,connect.cpp},IIOP/tests/svr.cpp: Changes to - use new singletons described below. - - * IIOP/lib/params.*: Changed ROA_Parameters and ROA_Factory to use - ACE_Singleton<>. The singleton types are now named ROA_PARAMS and - ROA_FACTORY. - -Mon Apr 21 23:44:34 1997 Douglas C. Schmidt - - * IIOP/lib/roa.cpp (ROA): Changed spelling of clientAcceptor_ to - client_acceptor_ to be consistent with ACE style conventions. - -Mon Apr 21 10:52:42 1997 Chris Cleeland - - * IIOP/test/clnt.cpp: Moved call to CORBA_ORB_init() prior to the - parsing of the command line args. This got switched around during - porting to VxWorks. - - * IIOP/lib/roa.cpp: Changed calls using clientAcceptor_to use APIs - vended by ACE_Strategy_Acceptor. - - * IIOP/lib/roa.hh: Moved default thread flags into ROA_Factory. - - * IIOP/lib/params.*: Added ROA_Factory, a singleton which is the - beginning of an abstract factory dynamically producing runtime - strategies based on information found in ROA_Parameters. - - * IIOP/lib/connect.cpp: Added call to ROA_Handler's base class - CTOR in initializer list. - - * IIOP/lib/connect.hh: Changed ROA_Handler's CTOR so that it can - take an optional ACE_Thread_Manager* arg. This makes it - compatible with the CTORs for the base class. Also changed base - class for ROA_Acceptor to ACE_Strategy_Acceptor. - - * IIOP/lib/svrrqst.*: Changed references to BOA_ptr from TOA_ptr. - - * IIOP/lib/connect.*: ROA_Handler/ROA_Acceptor moved from roa.* - into here. - - * IIOP/lib/params.*: ROA_Parameters moved from roa.* into here. - - * IIOP/lib/boa.*: What used to be TOA is now BOA, and lives in - here. - - * IIOP/lib/roa.*: Major restructuring required removal of all - classes (see other log entries) from here. This file now houses - only the ROA class. - - * IIOP/lib/{tcpoa.*,toa.*}: Removed because of name changes from - TCP_OA->ROA and TOA->BOA. - -Fri Apr 18 08:09:19 1997 Brian Mendel - - * cdr.hh,corbacom.{hh,cpp},giop.cpp,marshall.cpp,typecode.cpp: - Changes required for WChar missed in earlier committed code. - - * connmgr.cpp: Changes required for select statement. - - * nvlist.cpp: Conditional include for memory.h added. VxWorks - does not have memory.h. - - * object.cpp: Added conditional for VXWORKS to define - IID_IUnknown. - - * orbconf.hh: Minor tuning of the configuration file. - - * tcpoa.{hh,cpp}: Added VXWORKS conditional includes. - - * toa.cpp: Added VXWORKS conditional includes. - - -Mon Apr 15 17:01:00 1997 Brian Mendel - - * roa.cpp: Added return statement to ROA_Handler::open(void*) - method. - - * giop.cpp: Modified giop::read_buffer to replace undefined fc - with peer.get_handle(). Modified giop::incoming_message method - parameter list to match function prototype exactly. - - * tcpoa.cpp: Replaced fd instances in debug messages with - peer.get_handle() calls. - -Mon Apr 14 13:45:54 1997 Chris Cleeland - - * roa.{hh,i,cpp},tcpoa.cpp,svr.cpp: Replaced ACE_ROA with - ROA_Parameters, which is a GoF-style singleton. - -Sun Apr 13 00:01:56 1997 Chris Cleeland - - * roa.cpp: Fix continuation condition in ROA_Handler::svc()'s loop - so that it doesn't stop after one iteration. Also added some - debug messages. - - * giop.cpp: Fixed some returns being called with no value. This - should have been caught in the previous round of changes. - -Sat Apr 12 23:10:08 1997 Chris Cleeland - - * tcpoa.{hh,cpp}: TCP_OA::handle_message() now returns a value - indicating how a message was handled. - - * roa.cpp: ROA_Handler::handle_input() now returns a meaningful - value based on what TCP_OA::handle_message() returns. - - * giop.{hh,cpp}: Added end-of-file detection on socket - connections, and that is now propagated all the way back up - through GIOP::incoming_message(). I don't know if I violated - something in the spec by doing this, but it was necessary. I'll - look into it later. - -Thu Apr 10 11:49:44 1997 Chris Cleeland - - * giop.{hh,cpp}: Overloaded all methods dealing with connections - so that there are two, one taking a file descriptor as argument, - the other taking an ACE_SOCK_Stream. Right now, the *_Stream - version simply forwards to the fd-based one. I would have - preferred to get rid of the fd-based methods altogether, but we've - only converted the server runtime; the client is still using the - original sun code, which is effectively fd-based. In the course - of doing this, I also simplified the decls for incoming_message by - creating typedefs for some of the function pointers passed as - args. - - * orbconf.hh: Fixed the stupid auto-endian-ness detector - AGAIN...had my logic reversed! - - * roa.cpp: Adjusted code in accordance with changes to tcpoa.hh. - - * tcpoa.hh: Moved and renamed TCP_OA::dispatch_context to be - ::Dispatch_Context, and changed its endpoint member to be an - ACE_SOCK_Stream. - - * roa.hh: Fixed handle_input() to use the underlying peer() data - member for reading data, rather than using its argument. This is - so that when a different thread handles each connection, - handle_input() can simply be called repeatedly by svc(). - -Wed Apr 9 16:19:21 1997 Chris Cleeland - - * tcpoa.cpp: Fixed a problem that G++ didn't notice regarding - changing the notion of endpoints in servers from server_endpoint - to an ACE_HANDLE. - -Wed Apr 9 15:43:37 1997 Chris Cleeland - - * svr.cpp: The -p option is gone, and -e takes its place and is - required. This requires the user to specify not only the port - number, but also the IP address of on which the server should - listen for requests. See ACE_INET_Addr documentation for valid - string formats for addresses. Also, the -t option sets the "use - threads" global. - - * orbconf.hh: Hopefully resolved the tension between MS and Unix - platforms in inferring endian-ness of the target platform based on - preprocessor defines. We now check for i386, _M_X86, and vax - (yeah, like we really worry about that, but it's easy to do). - - * roa.{hh,i,cpp}: Added support for spawning threads to handle - incoming requests. This involves a state flag for whether or not - to use threads, calling activate() in ROA_Handler::open() if that - flag is set, and creating ROA_Handler::svc() that simply loops - calling handle_input(). - -Tue Apr 8 11:14:57 1997 Chris Cleeland - - * IIOP/test/svr.cpp: Moved setting of upcall(), forwarder(), - context(), etc. into here rather than in TCP_OA::TCP_OA(), which - is where I mistakenly stuck them a few days ago (duh!). - - * IIOP/lib/tcpoa.cpp: Removed setting of ACE_ROA::upcall(), which belongs - in the server code. I got confused because the function names - were so similar: tcpoa.cpp contains ::tcp_oa_dispatcher(), and - svr.cpp contains ::tcpoa_dispatch(). - - * IIOP/lib/roa.{hh,i,cpp}: Added forwarding function to ACE_ROA global namespace - hack. - - * IIOP/lib/orbconf.hh: Fixed preprocessor checks that auto-detect - endian-ness of this processor. - -Mon Apr 7 21:08:24 1997 Chris Cleeland - - * IIOP/test/test1_{clnt,svr}.cpp: THESE HAVE NOT BEEN CONVERTED TO - USE ACE EVENT HANDLING!! This round of changes explicitly - instantiates templates where required. - - * IIOP/test/svr.cpp: Global function ::OA_listen() no longer - exists; its functionality is now fully contained within ::main(). - If USE_ACE_EVENT_HANDLING is defined, a Reactor-based event loop - is used. The original intent was to allow conditional compilation - to select btw. the original method and a Reactor-based method. - However, weaving that into the library proved far more difficult - than anticipated, so more than likely not defining - USE_ACE_EVENT_HANDLING will cause massive grief. - - * IIOP/lib/toa.cpp: Changed call to TCP_OA::init() to reflect new - ACE_INET_Addr argument type. - - * IIOP/lib/tcpoa.cpp (TCP_OA): All initialization methods were - changed, specifically the CTOR and TCP_OA::init, to reflect the - introduction of ACE_INET_Addr. Two side-effects of using - ACE_INET_Addr are that (1) a server can specify the address on - which it wants to listen and (2) best that I can tell, the server - MUST specify the address on which it wants to listen because - otherwise it won't be able to publish a rational IOR. The event - loop is now changed to simply loop on Reactor::handle_events(). - - * IIOP/lib/tcpoa.hh (TCP_OA): Removed vestiges of this component's - use of the original connection management scheme. Where - appropriate, hostnames and ports were replaces by ACE_INET_Addr, - endpoints by ACE_HANDLEs, etc. One particularly nasty thing done - was to declare ROA_Handler as a friend so that handle_message() - can be called from ROA_Handler::handle_input(), which to me - exposes a hole in the original architecture wherein input is - "pulled" rather than waited-for. We might need to re-think how - this is handled within TAO. - - * IIOP/lib/roa.{hh,i,cpp}: These files contain the required - components to support the new server-side ACE-based - connection/event substrate. The client side remains, as always, - using the connection mgmt scheme used by the original Sun IIOP - code. - - * IIOP/lib/giop.cpp: Added explicit template instantiation for - when this is needed. - - * IIOP/lib/corbacom.hh: Now protects itself from multiple - inclusion. - - * IIOP/lib/Makefile: Added roa.* where appropriate. - -Wed Mar 19 10:25:21 1997 Chris Cleeland - - * IIOP/docs/us/codecount/*.count: Added to repository. - - * Makefile: Added to repository. - - * IIOP/objbase.h: Moved to IIOP/compat. - - * IIOP/initguid.h: Moved to IIOP/compat. - -Thu Mar 13 14:06:28 1997 Chris Cleeland - - * ChangeLog: Added the ChangeLog. diff --git a/TAO/ChangeLog-98a b/TAO/ChangeLog-98a deleted file mode 100644 index acc16c9b32b..00000000000 --- a/TAO/ChangeLog-98a +++ /dev/null @@ -1,11670 +0,0 @@ - -Sat Jun 27 11:38:27 1998 Douglas C. Schmidt - - * TAO version 0.1.35 released. - -Sat Jun 27 10:32:46 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Log/Logger_i.cpp (log): Must use a u_short cast - rather than an int cast to avoid ambiguity. Thanks to David - Levine for detecting this. - - * orbsvcs/orbsvcs/Log/Logger_i.cpp: Fixed some minor problems with - constness. Thanks to David Levine for reporting this. - -Sat Jun 27 07:15:49 1998 Douglas C. Schmidt - - * tests/NestedUpcall: Added a Makefile. - -Sat Jun 27 07:15:49 1998 Douglas C. Schmidt - - * TAO version 0.1.34 released. - -Sat Jun 27 00:27:29 1998 Irfan Pyarali - - * orbsvcs/orbsvcs/Event/{RT_Task.cpp, Event_Channel.cpp, - ReactorTask.cpp, Dispatching_Modules.cpp}: Moved the - ACE_TIMEPROBE_EVENT_DESCRIPTIONS use inside - #if defined (ACE_ENABLE_TIMEPROBES). This will help prevent - compiler warnings when time probes are not used. Also, added a - semi-colon at the end of the ACE_TIMEPROBE_EVENT_DESCRIPTIONS line. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp, - orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.cpp, - orbsvcs/tests/Simulator/Event_Supplier/Event_Con.cpp, - orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - - Removed extra include of Timeprobe.h - - * Added the following comment to all uses of enums for time - probes. This way it should be easy (relatively) to find a unique - starting key for the next set of descriptions. - - // Timeprobe description table start key - -Sat Jun 27 01:06:24 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Log/Logger_i.cpp (log): Commented out unused. - Cast the 0 passed to ACE_INET_Addr to int explicitly. - (Otherwise, the compiler can't tell whether it's a NULL ptr or - int 0.) - -Fri Jun 26 21:24:58 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/Makefile: Removed DII_Cubit for now until - Jeff fixes it. - - * orbsvcs/tests/Logger: Rename clnt.{cpp,h} and svc.cpp to - client.{cpp,h} and server.cpp to be more consistent with other - naming schemes in TAO. - -Fri Jun 26 16:57:54 1998 Carlos O'Ryan - - * tao/encode.cpp: - Check the length of a string before encoding. - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - Added operations to write strings with known lengths - - * tests/Param_Test/Makefile: - * tests/Param_Test/README: - * tests/Param_Test/tests.h: - * tests/Param_Test/bd_string.h: - * tests/Param_Test/bd_string.cpp: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/helper.h: - * tests/Param_Test/helper.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/options.cpp: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/param_test_i.cpp: - Added a test for bounded strings. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Use the TAO extensions to create an octet sequence using a - message block. - -Fri Jun 26 16:45:00 1998 Michael Kircher - - * orbsvcs/tests/Simulator/README: Added information about the - new version of the event service. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: removed the - "cout" commands. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Con.cpp: Made the - Event consumer work. - -Fri Jun 26 14:22:40 1998 Aniruddha Gokhale - - * tests/Param_Test: - - The ever increasing tests.{h, cpp} files have been broken down - into the following files to make modifications and adding new - tests simpler. The tests.cpp file is removed. Any new tests that - are added will have their individual *.h and *.cpp files. - - We now keep a tests.h file that includes all the individual *.h - files for each test. This way, we just need to include the tests.h - file. Individual files for different tests are given below. - - any.h - bd_long_seq.h - bd_short_seq.h - bd_str_seq.h - bd_struct_seq.h - fixed_array.h - fixed_struct.h - nested_struct.h - objref.h - short.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 - - These are the different *.cpp files implementing various tests. - - any.cpp - bd_long_seq.cpp - bd_short_seq.cpp - bd_str_seq.cpp - bd_struct_seq.cpp - fixed_array.cpp - fixed_struct.cpp - nested_struct.cpp - objref.cpp - short.cpp - typecode.cpp - ub_any_seq.cpp - ub_long_seq.cpp - ub_objref_seq.cpp - ub_short_seq.cpp - ub_str_seq.cpp - ub_string.cpp - ub_struct_seq.cpp - var_array.cpp - var_struct.cpp - - We use the bd_* convention for the bounded sequences/strings tests - and the ub_* convention for the unbounded cases. - - *NEW TESTS* : - - Tests for arrays of fixed and varying sizes are included in this - release. - -Fri Jun 26 14:20:58 1998 Carlos O'Ryan - - * tao/Sequence.h: - * tao/Sequence.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: - TAO provides an extension for octet sequences: a constructor - taking a Message_Block. - - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_native.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_native.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - Removed a method that was not used anymore. - -Fri Jun 26 12:54:25 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation/{rettype_post_docall_cs, - rettype_pre_docall_cs}.cpp: We were using the underlying node - names in the generated code even when those nodes were Typedefed - to other names. So in such cases, we should use the typedef name. - Thanks to John Geiss for reporting the - problem. - -Fri Jun 26 11:46:46 1998 David L. Levine - - * TAO_IDL/be/be_visitor_sequence/gen_{,un}bounded_sequence_ch.cpp: - added ACE_CAST_CONST to get_buffer () const member functions, to - avoid Sun C++ warning about casting away constness. Thanks to - J. Russell Noteworthy for - reporting this. - -Fri Jun 26 09:48:55 1998 Douglas C. Schmidt - - * VERSION: Updated this file to direct bug reports to - the ACE mailing list. - -Thu Jun 25 19:35:50 1998 Michael Kircher - - * tests/NestedUpcall/{Triangle_Test, Reactor}: Added the - Triangle test to examine ORB behavior doing nested upcalls. - Also moved the Reactor test one level down in the hierarchy - which means it is now in ../NestedUpcall/Reactor - -Thu Jun 25 17:57:50 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/DII_Cubit/Makefile: Integrated the new DII_Cubit - test into the Makefile scheme. - -Thu Jun 25 17:17:01 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - We disconnect all consumers and suppliers at shutdown. - - * orbsvcs/orbsvcs/Event/Task_Manager.h: - * orbsvcs/orbsvcs/Event/Task_Manager.cpp: - Once the class is shutdown it cannot start again. This last two - changes make shutdown clean for the test. - - * orbsvcs/orbsvcs/Event/ReactorTask.cpp: - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - The debugging messages start with "EC" to spot (or ignore) - them more easily. - - * orbsvcs/orbsvcs/RtecEventComm.idl: - I added an octet sequence payload, just to make things more - interesting. - -Thu Jun 25 16:31:00 1998 Seth Benjamin Widoff - - * tao/GIOP.cpp: - In method TAO_GIOP_Invocation::invoke, when the method being - invoked threw an exception, invoke would iterate over the list of - possible thrown exceptions, the TAO_Exception_Data for the method, - but wasn't breaking when it matched exception names. Added a break - statement. - -Thu Jun 25 12:54:09 1998 Carlos O'Ryan - - * tao/Sequence.h: - * tao/Sequence.i: - For octet sequences the method to obtain the underlying messsage - block was too expensive (it created a duplicate). This also - solve a memory leak in the operator<< for OutputCDR and octet - sequences. - -Thu Jun 25 11:57:27 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp - (visit_union): We were "memset"ing the return value to 0. In our - changed scenario where the Union class now derives from a base - class, this memsetting results in the vptr becoming 0. This was - causing seg faults. Thanks to Carlos for his help in the debugging - efforts. - -Thu Jun 25 11:18:32 1998 Darrell Brunsch - - * TAO_IDL/tao_idl.dsp: Removed the use of CPP_PATH altogether. - The location now defaults to "C:\Program Files\DevStudio\bin\cl.exe". - If this is not the case, then use the environment variable - CPP_LOCATION to override it. - - * TAO-INSTALL.html: Changed the paragraph that talked about - CPP_PATH to mention the default and CPP_LOCATION. - -Thu Jun 25 10:53:12 1998 Nagarajan Surendran - - * tests/NestedUpcall/NestedUpCalls_Test.cpp: Removed unnecessary - Backing store code. - -Thu Jun 25 08:44:03 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - The generated _access method was missing a return statement for - the default case. Thanks to David Levine for pinpointing this. - - * TAO_IDL/be/be_visitor_attribute/attribute.cpp: - For the TIE classes, we had forgotten to generate the "set" - attribute operation (for attributes that are not readonly). Again - thanks to David Levine for pinpointing this. - - * tao/IIOP_Object.i: A newline was missing at the end of the file - which resulted in a huge number of compile errors from SunCC. This - is now fixed. - - * tao/append.cpp: Unused variables in Union::append removed. - -Thu Jun 25 06:57:43 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_union/union_ch.cpp: - Added a new virtual overridden method that returns a pointer to - the discriminant. - - In addition, we now name the underlying private union as u_. - - * TAO_IDL/be/be_visitor_union/union_ci.cpp: - - In the default constructor, we were setting the entire class - object to 0 which was making the virtual pointers 0. We now only - initialize the union and the discriminant. - - Added the implementation of the virtual overridden _discriminant - method. Also, the _reset method was moved here from the - union_cs.cpp file. - - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - Moved the _reset method to the union_ci.cpp file - - * TAO_IDL/be/be_visitor_union_branch/{public_access_cs, - public_reset_cs, public_assign_cs, public_ci}.cpp: - - The generated code now has to use the named underlying union. SO - every field must now be accessed as u_.. - - * tao/Union.h: - - Added a pure virtual method returning pointer to void. This will - be overridden by subclasses and a pointer to the discriminant will - be returned. - - * tao/{encode, decode}.cpp (TAO_Marshal_Union::{encode, decode}): - - We now use the _discriminant () method on the union class to - access the discriminant. This is much safer than simply casting - it. - -Wed Jun 24 21:41:21 1998 Michael Kircher - - * tao/GIOP.cpp: Added a lock to - - * tao/Connect.cpp: Added a lock to the access of the - forwarding profile. Some overhead might be due to that, - but we don't want to sacrifice stability. - - * tao/IIOP_Object.{h,icpp}: Added thread safe access functions - for the forwarding profile. - -Wed Jun 24 18:13:21 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - * orbsvcs/orbsvcs/Event/Task_Manager.h: - * orbsvcs/orbsvcs/Event/Task_Manager.cpp: - The multiple EC is not shutting dows cleanly, apparently it is a - synchronization problem between the two processes. These changes - try to minimize the problem by making shutdown() (and activate) - idempotent in the EC internal threads. - -Wed Jun 24 15:55:33 1998 Irfan Pyarali - - * tao/ORB.cpp (resolve_root_poa): Changed resolve_poa() to - resolve_root_poa(). - - * tao/ORB.cpp (resolve_poa): Rearranged this method so that the - user can specify the name, POA Manager, policies, and active - object map of a root poa. Use this method instead of - resolve_initial_reference("RootPOA"). This method also allows - the user the specify the policies used by the root POA - the - most common change will be to switch the lifespan policy of the - root POA from TRANSIENT to PERSISTENT. resolve_poa() is - non-standard. - -Wed Jun 24 15:49:19 1998 Aniruddha Gokhale - - * tao/Union.{h, cpp}: - - Added a base sequence definition for Unions. This uses the same - logic as the Base sequences. We need such a base sequence to - provide us virtual methods called "_access" and "_reset". The - _access method us ised to access the right union member at the - right offset. The reset method is used to free the storage. - - *NOTE* these are new files - - * tao/{encode, decode}.cpp: For Union::{encode, decode}, we now - use the Base Union class on which we invoke the virtual methods. - - * TAO_IDL/be_include/be_codegen.h: Added a new enumeration for - generating the overloaded _access method on the union class. - - * TAO_IDL/be/be_visitor_union/union.cpp: - - Handled the case for the access method generating visitor. - - * TAO_IDL/be/be_visitor_union/union_ch.cpp: - - The union class now inherits from the TAO_Base_Union class. In - addition, it defines the virtual overloaded _reset and _access - methods. - - * TAO_IDL/be/be_visitor_union/union_ci.cpp: - - Since the reset method was renamed to _reset, we now use this - name. - - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - - Added code for the overloaded _reset and _access method. - - * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp: - All calls to reset converted to _reset. - - * TAO_IDL/be_visitor_union_branch/public_access_cs.cpp: - TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h: - - New visitor to generate the code for the access method. - *NOTE* these are new files. - - * TAO_IDL/be_visitor_union_branch.cpp: - TAO_IDL/be_include/be_visitor_union_branch.h: - - Includes the new files. - - * TAO_IDL/be/be_interpretive.cpp: Handled the case for the new - visitor on unions that generates the _access method. - -Wed Jun 24 14:29:56 1998 Seth Benjamin Widoff - - * docs/releasenotes/index.html: - Updated the Trader portion of the releasnotes. - -Wed Jun 24 12:02:40 1998 Alexander Babu Arulanthu - - * tests/POA/RootPOA/RootPOA.cpp (main): Replaced the exception - checking/printing code by TAO_CHECK_ENV_PRINT_RETURN. - -Wed Jun 24 11:52:12 1998 Alexander Babu Arulanthu - - * tao/corba.h: Added the exception macros - TAO_CHECK_ENV_PRINT_RETURN(ENV, PRINT_STRING, RETURN) and - TAO_CHECK_ENV_PRINT_RETURN_VOID(ENV, PRINT_STRING). - -Wed Jun 24 11:38:00 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{cpp, h}: - Removed runtime dynamic dispatch strategy classes, - as these are now provided by the ACE dynamic message - strategy classes for the dynamic message queue. For - performance and architectural reasons, it is better to - strategize the dispatch queue itself, rather than have - the *ACE* dispatch queue call out to a *TAO* strategy. - -Wed Jun 24 11:13:32 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h: Added a new state for resetting - the appropriate element of a union. - - * TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h: - Added a new visitor that generates code for resetting elements of - a union. This is required in 3 scenarios: (1) for destructor, (2) - for union's assignment operator, and (3) individual modifier - operations in which a new value is set. This will require freeing - of previous value. - - *NOTE* this is a new file. - - * TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h: - Added a bunch of methods to the visitor that visit the - "type". This was necessary since simple assignment is not - enough. We must ensure that old values are freed and the - assignment results in deep copies wherever necessary. All this is - required for the assignment operator of the union. - - * TAO_IDL/be/be_interpretive.cpp: Handled the newly added case for - the union reset visitor. - - * TAO_IDL/be/be_visitor_argument/docall_cs.cpp: - TAO_IDL/be/be_visitor_argument/marshal_ss.cpp: - TAO_IDL/be/be_visitor_argument/pre_docall_cs.cpp: - TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp: - - Added support for Arrays as in, inout, out parameters. - - * TAO_IDL/be/be_visitor_array/array_ch.cpp: - TAO_IDL/be/be_visitor_array/array_ci.cpp: - - For fixed size arrays, the _out definition is simply a - typedef. Whereas for arrays whopse base type is of variable - size, we define the _out class. - - * TAO_IDL/be/be_visitor_structure/structure_ch.cpp: - the export macro for structures is always generated, even if it - is nested. This is only valid for the Windows platform since for - the other cases the export macro is NUL. - - * TAO_IDL/be/be_visitor_union/union.cpp: - The generic visitor now also handles the union reset visitor - case. - - * TAO_IDL/be/be_visitor_union/union_ch.cpp: - The union mapping that generates a class now uses the Export - macro even if it was nested. Seth Widoff reported that this was - necessary. - - * TAO_IDL/be/be_visitor_union/union_ci.cpp: - - The constructor now zeros the entire union on - initialization. Thus, at the start, all the fields will be 0s. - - The destructor now calls the private "reset" method with the - finalize flag=1 to indicate freeing of all allocated resources. - - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - - Added code for the reset method. In addition, the assignment - operator first invokes the reset method to clean up old - storage. - - * TAO_IDL/be/be_visitor_union_branch/private_ch.cpp: - - Members of the private anonymous union inside the union class - may either be pointers or scalar variables. They will be - pointers if their types are aggregate classes or structures that - have ctors. C++ does not allow using the instances of such - aggregate classes. - - * TAO_IDL/be/be_visitor_union_branch/private_assign_cs.cpp: - - Added code for all the methods that visit the type. Each method - tries to free previous storage (if any) and then does the - necessary deep copying. - - * TAO_IDL/be/be_visitor_union_branch/public_ch.cpp: - - Some modifier and access methods that were generated had - errors w.r.t the parameters they take. This is now fixed. - - * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp: - - All the modifier methods now call reset to free old storage and - then do the appropriate deep copying of the new value. - - * TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp: - - Code for the reset visitor. - - *NOTE* this is a new file. - - * tao/decode.cpp: Released the IIOP_Object that is created during - the ObjRef::decode method. This was necessary to overcome a - memory leak. Thanks to Irfan and Jeff. - - -Wed Jun 24 09:56:13 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/client_i.h: - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp: - Removed DII test. - Print clearer messages for sequences (to distinguish octet vs - long sequences). - Print the results for each test (long, short, octet, structs - and unions) and *also* a mixin of lonng/short/octet. - -Wed Jun 24 02:23:38 1998 Douglas C. Schmidt - - * TAO version 0.1.33 released. - -Tue Jun 23 17:30:14 1998 Carlos O'Ryan - - * orbsvcs/Scheduling_Service/Makefile: - Updated dependencies. - - * orbsvcs/Event_Service/Event_Service.cpp: - Improved a debug message. - - * orbsvcs/Event_Service/svc.conf: - The options are more realistic now. - - * orbsvcs/tests/start_services: - No need to run the Scheduling Service now; the Event_Service - program has a collocated one (by default). - - * docs/releasenotes/ec.html: - Updated the release notes to reflect the latest changes. - -Tue Jun 23 16:47:43 1998 Nanbor Wang - - * tao/ORB_Core.{h,cpp} (class TAO_Collocation_Table_Lock): Rename - TAO_COLTBL_Lock TO TAO_Collocation_Table_Lock. COLTBL was a bit - cryptic. Changed its implementation to use the new - ACE_Adaptive_Lock class. - -Tue Jun 23 12:34:23 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Trader/Trader.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_T.{h,cpp}: - Merged Attributes(_T).{h,cpp} into the above files. Updated the - Makefile. - -Tue Jun 23 12:18:39 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Task_Manager.h: - * orbsvcs/orbsvcs/Event/Task_Manager.i: - * orbsvcs/orbsvcs/Event/Task_Manager.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.i: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - * orbsvcs/orbsvcs/Event/ReactorTask.cpp: - The Event Channel can be shutdown cleanly using the destroy() - method. The problem was that two components (the Dispatching - Module and the TaskManager or the handler for Timer threads) - were not waiting for their threads to shutdown. - The modules keep their own Thread_Manager to wait for shutdown. - Startup was also changed: the event channel constructor - receives a new argument to control the creation of the internal - threads; if the argument is FALSE the user must call the - activate() method to start the threads. - - * orbsvcs/orbsvcs/RtecEventComm.idl: - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - Many operations were oneways because early releases of TAO did - not support nested upcalls. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - use the activate method to start the threads. - - * orbsvcs/Event_Service/Event_Service.cpp: - Added support for a collocated Scheduling Service; this is the - common use case that we wish to implement, improves performance - and works around some nested upcall problems in the ORB. - The user can select the old behavior using the <-s global> - flag. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Only shutdown the EC once our event loop exits - - * orbsvcs/tests/EC_Multiple/histo.pl: - Fixed typo in a comment. - -Tue Jun 23 11:59:12 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/Makefile,tests/Thruput/TAO/Makefile, - tests/NestedUpcall/Makefile,tests/Quoter/Makefile, - tests/OctetSeq/Makefile: - added S_T.* files to realclean target. - -Mon Jun 22 21:30:00 1998 Michael Kircher - - * TAO_IDL/be/be_sequence.cpp - * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: Making - a special treatment for sequence of octets. - -Mon Jun 22 20:32:25 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Attributes.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Attributes_T.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_l.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_y.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Dynamic_Property.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Offer_Database.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Offer_Iterators.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Offer_Iterators_T.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_T.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Utils.{h,cpp}: - * orbsvcs/orbsvcs/Makefile: - By having related classes share a file, reduced the number of - files in the Trading Service by half. Updated the Makefile to - reflect the changes. - - * orbsvcs/tests/Trading/Makefile: - * orbsvcs/tests/Trading/Offer_Exporter.cpp: - * orbsvcs/tests/Trading/Offer_Importer.cpp: - * orbsvcs/tests/Trading/TT_Info.cpp: - * orbsvcs/tests/Trading/export_test.cpp: - Updated the Trading tests to use the new header file scheme. - -Mon Jun 22 11:54:20 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Updated dependencies. - -Mon Jun 22 11:32:00 1998 Michael Kircher - - * docs/releasenotes/index.html: Added documentation - about the changes in the TAO IDL compiler. - -Mon Jun 22 11:32:00 1998 Michael Kircher - - * TAO_IDL/be/{be_helper.h, be_sequence.h}: see comment below, - only the declarations were added. - - * TAO_IDL/be/be_visitor_sequence/sequence_{ch,cs}.h: Added - the declarations of the things mentioned below. - -Mon Jun 22 11:15:40 1998 Michael Kircher - - * TAO_IDL/be/be_helper.cpp: Added gen_ifdef_AHETI(), gen_else_AHETI() - and gen_endif_AHETI() to write the proper #ifdef. - - * TAO_IDL/be/be_sequence.cpp: Added instance_name() to create - a unique instantiation name for the instantiated templates. - Added object_manager_name () to create a unique object_manager - name. - - * TAO_IDL/be/be_visitor_sequence.cpp: Added the new files. - - * TAO_IDL/be/be_visitor_sequence/elemtype.cpp: Added ifdefs - for generating appropriate code to handle Object Manager - references. - - * TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: Added - the hook-up to generate the instantiated templates. Basically - the hook-up is the method instantiate_sequence(). - - * TAO_IDL/be/be_visitor_sequence/sequence_c{i,s}.cpp: Added - the ifdef distinguishing. - - * TAO_IDL/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp, - TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp, - TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp, - TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp, - TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_ch.cpp, - TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp: - New files for code generation. - -Mon Jun 22 11:12:54 1998 David L. Levine - - * orbsvcs/orbsvcs/Scheduler_Factory (preemption_priority): - use ACE_TSS_Type_Adapter instead of specializing the - adaption of RtecScheduler::Preemption_Priority here. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: made some - ACE_hrtime values non-const so that Sun C++ 4.2/SunOS 5.6 - doesn't complain about casting away constness. Thanks to - J. Russell Noteworthy for - reporting this. - - * test/Cubit/TAO/IDL_Cubit/collocation_test (main): - changed the static_cast of svr_worker to a reinterpret_cast, - and added a & in front of it for good measure. Thanks to - J. Russell Noteworthy for - reporting this, and to Carlos for recommending the use of - reinterpret cast. - - * tao/GIOP.cpp,ORB.cpp,IIOP_Object.cpp,POA.cpp,Server_Request.cpp, - Connect.cpp, - orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp,Event_Channel.cpp, - RT_Task.cpp,ReactorTask.cpp, - orbsvcs/tests/Event_Latency/Event_Latency.cpp, - tests/Cubit/TAO/IDL_Cubit/client_i.cpp,cubit_i.cpp: - removed trailing semicolon from ACE_TIMEPROBE_EVENT_DESCRIPTIONS, - now that it is part of the macro definition. - -Mon Jun 22 09:19:40 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp: The typecode - declarations now have the appropriate export macro generated for - them. This is required for the DLLs. Seth Widoff pointed out this - requirement. - -Mon Jun 22 00:09:23 1998 Douglas C. Schmidt - - * TAO version 0.1.32 released. - -Mon Jun 22 00:01:44 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs.dsp: This project file no longer copies - the orbsvcs.dll to $TAO_ROOT/tao/. Be sure to remove this file: - $TAO_ROOT/tao/orbsvcs.dll. - -Sun Jun 21 23:59:06 1998 Douglas C. Schmidt - - * TAO version 0.1.31 released. - -Sun Jun 21 16:29:49 1998 Seth Benjamin Widoff - - * tao/ORB.cpp: - * tao/Params.cpp: - Wasn't initializing Params::trading_service_{ior,port}_ or - CORBA_ORB::trading_service_. - -Sun Jun 21 14:36:26 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/*.*: - Trading Service now compiles without warnings or link errors on - Windows NT (MSVC++). - -Sun Jun 21 08:39:38 1998 Aniruddha Gokhale - - * tests/Param_Test/tests.cpp: Removed a bunch of warnings related - to creation of a temporary when a var or ptr type is passed as an - out parameter. - -Sat Jun 20 14:22:22 1998 David L. Levine - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: wrapped - RtecScheduler::Preemption_Priority (int) with a struct - when used with ACE_TSS. ACE_TSS::operator-> () returns - TYPE *, so it cannot be instantiated with built-in types: - "ace/Synch_T.h", line 267: Error: Cannot have a return type - of int* for ACE_TSS::operator->() const. - Where: While specializing "ACE_TSS". - Where: Specialized in non-template code. - -Sat Jun 20 03:31:28 1998 Irfan Pyarali - - * tao/POA: - - - Added TAO_POA_locking as a new policy to the POA. This policy - is used to control the kind of lock created for POA state - synchronization. Previously, the user could only specific the - synchronization choice at an application level in the svc.conf - file. This approach did not allow a scheme where some POAs - had thread safe synchronization, while others had no - (null) synchronization. - - The new policy has three options: - - - USE_DEFAULT_LOCK: This option is the default value for this - policy. This option indicates that the application level - choice for POA synchronization specified in the svc.conf - file be used. Currently, this defaults to thread safe - synchronization. - - This option allows the programmer to make application level - decisions about the synchronization in the POA. Hence, - unless specified otherwise in create_POA, all POAs in the - application will have thread safe synchronization or null - (no) synchronization depending on the chioce made in - svc.conf. - - - USE_NULL_LOCK: Use null (no) synchronization to protect the - state of this POA. - - - USE_THREAD_LOCK: Use thread synchronization to protect the - state of this POA. - - - Changed POAC.{h,i,cpp}, POAS.{h,i,cpp} and POA{h,i,cpp} to - support this new policy. - - - Removed Strategy_POA and Strategy_POA_Manager. Both were - rather unnecessary in view of the above changes. - - * tests/POA/locking/locking.cpp: New test for showing off new POA - locking policy. - - * tao/Sequence.h (Octet>): Removed extra operator<< and operator>> - declarations, and changed the implementation to use non-private - members. - - * tao/Principal.i: Added new file (empty). - -Sat Jun 20 01:39:35 1998 Nanbor Wang - - * tao/TAO4.{mdp,mak}: Defined TAO_BUILD_DLL, undefined - TAO_NO_COPY_OCTET_SEQUENCES. Added Current{C,S}.cpp and - Forward_Servant.cpp into project. Removed timeprobe.cpp from - project. - - * tao/Forwarding_Servant.h: - * tao/POA{C,S,_CORBA}.h: Changed to use the underbar class names - for better portability. Thanks to Ernesto Guisado - for providing the perl script to - automate the process. - -Sat Jun 20 00:00:56 1998 Carlos O'Ryan - - * tao/GIOP.h: - * tao/GIOP.cpp: - * tao/Server_Request.cpp: - Used compiled encoding and decoding for the GIOP and Request - headers, thus reducing the time on the critical path. - Removed a memory allocation on the server side by using ad-hoc - marshalling for the object key: it does not need to increase the - reference count on the CDR message block because its lifetime is - shorter that the CDR stream. - Added compiled marshalling methods for the ServiceContextList, - this is mostly a waste because the context list is always - empty. - - * tao/CDR.h: - * tao/CDR.i: - Enabled >> and << operators for CDR and basic types, added new - operators for strings. - - * tao/corba.h: - * tao/ORB.cpp: - Added operators to marshal octet sequences. - - * tao/decode.cpp: - Use the new replace() method to set the message block on octet - sequences. - - * tao/Sequence.h: - * tao/Sequence.i: - Added new replace() method that set the internal message block - in an octet sequence. - - * orbsvcs/tests/start_services: - Recommend the $USER instead of the $login macro for bash. - -Fri Jun 19 21:30:22 1998 David L. Levine - - * TAO version 0.1.30 released. - -Fri Jun 19 15:18:04 1998 David L. Levine - - * orbsvcs/orbsvcs/Scheduler_Factory.{h,cpp} (preemption_priority, - set_preemption_priority): added these static functions. They are for - use by applications and the Event Channel, to get/set the - preemption priority of the calling thread. - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: replaced the static - ACE_Runtime_Factory instance with an ACE_Singleton instance - of a locally-defined struct. In addition, the struct - contains the ACE_TSS instance that is used by the static - {set_,}preemption_priority functions. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp (svc): register each - Event Channel dispatch thread with the Scheduler's - set_preemption_priority () function. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp (svc): suppress the - warning about thr_setprio failure on Solaris, if the - priority is 0 and not running as root. It's a no-op, - in that case, but Solaris' ::thr_setprio fails with EINVAL. - - * orbsvcs/tests/Concurrency/lex.CC_command.cpp{,.diff} - (ace_cc_yyinput): don't compile this function in if - ACE_CC_YY_NO_INPUT is defined, to avoid compile warning about - unused static function. - -Fri Jun 19 12:07:30 1998 Chris Gill - - * tests/Quoter/Generic_Factory.cpp: added .in() to passed - object reference parameter to remove compiler error - using g++ on Solaris 2.6 for Intel x86 - -Fri Jun 19 11:29:24 1998 David L. Levine - - * TAO version 0.1.29 released. - -Fri Jun 19 10:14:22 1998 Carlos O'Ryan - - * tests/POA/On_Demand_Activation/Servant_Activator.h: - * tests/POA/On_Demand_Activation/Servant_Activator.cpp: - * tests/POA/On_Demand_Activation/Servant_Locator.h: - * tests/POA/On_Demand_Activation/Servant_Locator.cpp: - * tests/POA/On_Demand_Activation/server.cpp: - The Locator and Activator objects require an ORB_ptr now (that - in turn is passed to the MyFooServant). - - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/Forwarding/Makefile: - Updated dependencies. - -Fri Jun 19 09:56:55 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/README: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - (1) Minor aesthetic changes and code cleanup. - (2) Changes to the utilization tests of the server and client. We - now make the utilization "scavenger" thread run for a determined - period of time and report the number of computations performed. - The client thread that performs CORBA calls also reports the - number of calls performed. - -Fri Jun 19 07:25:41 1998 David L. Levine - - * orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp (Next): removed - break following a TAO_THROW to avoid compiler warning about - unreachable statement. - - * tao/ORB.cpp (run): #ifdef'ed out unused locals max_iterations and - counter. - - * tests/NestedUpcall/client.cpp: removed unused static - max_sequence_length. - - * tests/Param_Test/tests.cpp: removed or commented out some - unused variables. - -Thu Jun 18 18:33:34 1998 Carlos O'Ryan - - * tao/GIOP.cpp: - Added a few more Timeprobes to the client side. - Removed another memory allocation by using a buffer on the stack - for the (initial) output CDR stream. - - * tao/ORB.cpp: - No automatic printing of Timeprobes in the ORB anymore. The - application is responsible of invoking the ACE_TIMEPROBE_PRINT - macro as needed. - - * tao/IIOP_Object.cpp: - Added more Timeprobes. - - * tests/POA/Generic_Servant/Foo.idl: - * tests/POA/Generic_Servant/MyFooServant.h: - * tests/POA/Generic_Servant/MyFooServant.cpp: - Added methods to request a shutdown of the server. - - * tests/POA/Generic_Servant/client.cpp: - Added an option (-x) to shutdown the server. Also added support - for Timeprobe. - - * tests/POA/Explicit_Activation/server.cpp: - Print the timeprobes at exit. - -Thu Jun 18 14:17:35 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Attributes_T.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Validator.cpp: - * orbsvcs/orbsvcs/Trader/Lookup.cpp: - * orbsvcs/orbsvcs/Trader/Policies.cpp: - * orbsvcs/orbsvcs/Trader/Policy_Manager.cpp: - * orbsvcs/orbsvcs/Trader/Property_Filter.cpp: - * orbsvcs/orbsvcs/Trader/Property_Evaluator.cpp: - * orbsvcs/orbsvcs/Trader/Register.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - Eliminated warnings on NT compilation. - -Thu Jun 18 14:07:57 1998 David L. Levine - - * orbsvcs/tests/start_services: use port 0, use the -o and - -p Naming_Service options and use URL objrefstyle. Thanks - to Carlos for these suggestions. Also, write outputs to - different log files, and added note about setting the NameService - environment variable. - -Thu Jun 18 12:07:32 1998 Michael Kircher - - * tests/Quoter/{Factory_Finder, Generic_Factory}_Impl.cpp: - removed unneccessary code. - - * orbsvcs/LifeCycle_Service/LifeCycle_Service_Impl.cpp: - removed unneccessary code. - -1998-06-18 Torben Worm - - * orbsvcs/tests/Concurrency/CC_command.tab.cpp - orbsvcs/tests/Concurrency/Makefile - Now the yacc generated file is patched too. - -Thu Jun 18 11:38:32 1998 Seth Benjamin Widoff - - * orbscvs/tests/AVStreams/server_discovery/TS_Resolve.java: - * orbscvs/tests/AVStreams/server_discovery/Property_Evaluator.java: - * orbscvs/tests/AVStreams/server_discovery/Discover_Server.java: - * orbscvs/tests/AVStreams/server_discovery/Makefile: - * orbsvcs/tests/AVStreams/server_discovery/remote_netscape: - The beginnings of a Java tool to locate a best matched server for - the A/V demo's client using the Trading Service. - - -1998-06-18 Torben Worm - - * orbsvcs/tests/Concurrency/CC_command.cpp - orbsvcs/tests/Concurrency/CC_command.l - orbsvcs/tests/Concurrency/CC_command.tab.cpp - orbsvcs/tests/Concurrency/CC_test_utils.h - orbsvcs/tests/Concurrency/Makefile - orbsvcs/tests/Concurrency/lex.CC_command.cpp: - Removed warnings reported by DU cxx - Now a patch file is used to patch the output from flex. - -Thu Jun 18 10:21:28 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Comparing an _var to a 0 is non-portable (and non-complaint), - the right thing to do is CORBA::is_nil. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - Comparing a Time_Value to 0 is a bad idea (we can convert the 0 - to a Time_Value or the Time_Value to an int), we compare to - ACE_Time_Value::zero. - -Thu Jun 18 09:34:18 1998 David L. Levine - - * TAO_IDL/util/utl_scope.cpp (UTL_Scope ctor): removed - extraneous ; following the function definition. - - * orbsvcs/Event_Service/Event_Service.cpp (main), - orbsvcs/Scheduling_Service/Scheduling_Service.cpp (main): - added filename to debug messages. - -Wed Jun 17 22:03:42 1998 Aniruddha Gokhale - - * TAO_IDL: Massive restructuring of directories for be_include and - the "be" directories. Since each individual file was getting too big - with a large number of visitors, we have now subdivided them and - grouped them under individual subdirectories. - - The original header files (e.g., be_include/be_visitor_interface.h), - now only include their subdivided header files. This way the rest of - the code does not need to "#include" every individual file. They - still deal with the higher level include files only. This avoids - any modification of existing code. - - The new directory structure for the be_include directory and the - newly added files are shown below: - - - be_visitor_argument/arglist.h - be_visitor_argument/argument.h - be_visitor_argument/docall_cs.h - be_visitor_argument/marshal_ss.h - be_visitor_argument/post_docall_cs.h - be_visitor_argument/post_marshal_ss.h - be_visitor_argument/post_upcall_ss.h - be_visitor_argument/pre_docall_cs.h - be_visitor_argument/pre_upcall_ss.h - be_visitor_argument/upcall_ss.h - be_visitor_argument/vardecl_ss.h - be_visitor_array/any_op_ch.h - be_visitor_array/any_op_cs.h - be_visitor_array/array.h - be_visitor_array/array_ch.h - be_visitor_array/array_ci.h - be_visitor_array/array_cs.h - be_visitor_attribute/attribute.h - be_visitor_constant/constant_ch.h - be_visitor_constant/constant_cs.h - be_visitor_enum/any_op_ch.h - be_visitor_enum/any_op_cs.h - be_visitor_enum/enum_ch.h - be_visitor_enum/enum_cs.h - be_visitor_exception/any_op_ch.h - be_visitor_exception/any_op_cs.h - be_visitor_exception/ctor.h - be_visitor_exception/ctor_assign.h - be_visitor_exception/exception.h - be_visitor_exception/exception_ch.h - be_visitor_exception/exception_ci.h - be_visitor_exception/exception_cs.h - be_visitor_exception/exception_ctor.h - be_visitor_field/field_ch.h - be_visitor_field/field_ci.h - be_visitor_field/field_cs.h - be_visitor_interface/any_op_ch.h - be_visitor_interface/any_op_cs.h - be_visitor_interface/collocated_sh.h - be_visitor_interface/collocated_ss.h - be_visitor_interface/interface.h - be_visitor_interface/interface_ch.h - be_visitor_interface/interface_ci.h - be_visitor_interface/interface_cs.h - be_visitor_interface/interface_sh.h - be_visitor_interface/interface_si.h - be_visitor_interface/interface_ss.h - be_visitor_interface/tie_sh.h - be_visitor_interface/tie_si.h - be_visitor_interface_fwd/interface_fwd_ch.h - be_visitor_interface_fwd/interface_fwd_ci.h - be_visitor_module/any_op.h - be_visitor_module/module.h - be_visitor_module/module_ch.h - be_visitor_module/module_sh.h - be_visitor_operation/arglist.h - be_visitor_operation/argument.h - be_visitor_operation/collocated_sh.h - be_visitor_operation/collocated_ss.h - be_visitor_operation/exceptlist_cs.h - be_visitor_operation/operation_ch.h - be_visitor_operation/operation_cs.h - be_visitor_operation/operation_sh.h - be_visitor_operation/operation_ss.h - be_visitor_operation/rettype.h - be_visitor_operation/rettype_assign_ss.h - be_visitor_operation/rettype_docall_cs.h - be_visitor_operation/rettype_marshal_ss.h - be_visitor_operation/rettype_post_docall_cs.h - be_visitor_operation/rettype_post_upcall_ss.h - be_visitor_operation/rettype_pre_docall_cs.h - be_visitor_operation/rettype_return_cs.h - be_visitor_operation/rettype_vardecl_cs.h - be_visitor_operation/rettype_vardecl_ss.h - be_visitor_operation/tie_sh.h - be_visitor_operation/tie_si.h - be_visitor_root/any_op.h - be_visitor_root/root.h - be_visitor_root/root_ch.h - be_visitor_root/root_ci.h - be_visitor_root/root_cs.h - be_visitor_root/root_sh.h - be_visitor_root/root_si.h - be_visitor_root/root_ss.h - be_visitor_sequence/any_op_ch.h - be_visitor_sequence/any_op_cs.h - be_visitor_sequence/buffer_type.h - be_visitor_sequence/elemtype.h - be_visitor_sequence/sequence_base.h - be_visitor_sequence/sequence_ch.h - be_visitor_sequence/sequence_ci.h - be_visitor_sequence/sequence_cs.h - be_visitor_structure/any_op_ch.h - be_visitor_structure/any_op_cs.h - be_visitor_structure/structure.h - be_visitor_structure/structure_ch.h - be_visitor_structure/structure_ci.h - be_visitor_structure/structure_cs.h - be_visitor_typecode/typecode_decl.h - be_visitor_typecode/typecode_defn.h - be_visitor_typedef/any_op_ch.h - be_visitor_typedef/any_op_cs.h - be_visitor_typedef/typedef.h - be_visitor_typedef/typedef_ch.h - be_visitor_typedef/typedef_ci.h - be_visitor_typedef/typedef_cs.h - be_visitor_union/any_op_ch.h - be_visitor_union/any_op_cs.h - be_visitor_union/discriminant_ch.h - be_visitor_union/discriminant_ci.h - be_visitor_union/discriminant_cs.h - be_visitor_union/union.h - be_visitor_union/union_ch.h - be_visitor_union/union_ci.h - be_visitor_union/union_cs.h - be_visitor_union_branch/private_ch.h - be_visitor_union_branch/public_assign_cs.h - be_visitor_union_branch/public_ch.h - be_visitor_union_branch/public_ci.h - be_visitor_union_branch/public_cs.h - - The same logic of breaking up individual files and grouping them - under individual subdirectories is used for the be_visitor_*.cpp - files. Each individual file "#include"s their individual - subfiles. This way, we do not have to modify the Makefile to - compile individual file. In addition, the Makefile would have - required each individual subdirectory in its VPATH. Furthermore, - it does not compile files with the same name in different - directories. The new structure is shown below. - - be_visitor_argument/arglist.cpp - be_visitor_argument/argument.cpp - be_visitor_argument/docall_cs.cpp - be_visitor_argument/marshal_ss.cpp - be_visitor_argument/post_docall_cs.cpp - be_visitor_argument/post_marshal_ss.cpp - be_visitor_argument/post_upcall_ss.cpp - be_visitor_argument/pre_docall_cs.cpp - be_visitor_argument/pre_upcall_ss.cpp - be_visitor_argument/upcall_ss.cpp - be_visitor_argument/vardecl_ss.cpp - be_visitor_array/any_op_ch.cpp - be_visitor_array/any_op_cs.cpp - be_visitor_array/array.cpp - be_visitor_array/array_ch.cpp - be_visitor_array/array_ci.cpp - be_visitor_array/array_cs.cpp - be_visitor_attribute/attribute.cpp - be_visitor_constant/constant_ch.cpp - be_visitor_constant/constant_cs.cpp - be_visitor_enum/any_op_ch.cpp - be_visitor_enum/any_op_cs.cpp - be_visitor_enum/enum_ch.cpp - be_visitor_enum/enum_cs.cpp - be_visitor_exception/any_op_ch.cpp - be_visitor_exception/any_op_cs.cpp - be_visitor_exception/ctor_assign.cpp - be_visitor_exception/exception.cpp - be_visitor_exception/exception_ch.cpp - be_visitor_exception/exception_ci.cpp - be_visitor_exception/exception_cs.cpp - be_visitor_exception/exception_ctor.cpp - be_visitor_field/field_ch.cpp - be_visitor_field/field_ci.cpp - be_visitor_field/field_cs.cpp - be_visitor_interface/any_op_ch.cpp - be_visitor_interface/any_op_cs.cpp - be_visitor_interface/collocated_sh.cpp - be_visitor_interface/collocated_ss.cpp - be_visitor_interface/interface.cpp - be_visitor_interface/interface_ch.cpp - be_visitor_interface/interface_ci.cpp - be_visitor_interface/interface_cs.cpp - be_visitor_interface/interface_sh.cpp - be_visitor_interface/interface_si.cpp - be_visitor_interface/interface_ss.cpp - be_visitor_interface/tie_sh.cpp - be_visitor_interface/tie_si.cpp - be_visitor_interface_fwd/interface_fwd_ch.cpp - be_visitor_interface_fwd/interface_fwd_ci.cpp - be_visitor_module/any_op.cpp - be_visitor_module/module.cpp - be_visitor_module/module_ch.cpp - be_visitor_module/module_sh.cpp - be_visitor_operation/arglist.cpp - be_visitor_operation/argument.cpp - be_visitor_operation/collocated_sh.cpp - be_visitor_operation/collocated_ss.cpp - be_visitor_operation/exceptlist_cs.cpp - be_visitor_operation/operation_ch.cpp - be_visitor_operation/operation_cs.cpp - be_visitor_operation/operation_sh.cpp - be_visitor_operation/operation_ss.cpp - be_visitor_operation/rettype.cpp - be_visitor_operation/rettype_assign_ss.cpp - be_visitor_operation/rettype_docall_cs.cpp - be_visitor_operation/rettype_marshal_ss.cpp - be_visitor_operation/rettype_post_docall_cs.cpp - be_visitor_operation/rettype_post_upcall_ss.cpp - be_visitor_operation/rettype_pre_docall_cs.cpp - be_visitor_operation/rettype_return_cs.cpp - be_visitor_operation/rettype_vardecl_cs.cpp - be_visitor_operation/rettype_vardecl_ss.cpp - be_visitor_operation/tie_sh.cpp - be_visitor_operation/tie_si.cpp - be_visitor_root/any_op.cpp - be_visitor_root/root.cpp - be_visitor_root/root_ch.cpp - be_visitor_root/root_ci.cpp - be_visitor_root/root_cs.cpp - be_visitor_root/root_sh.cpp - be_visitor_root/root_si.cpp - be_visitor_root/root_ss.cpp - be_visitor_sequence/any_op_ch.cpp - be_visitor_sequence/any_op_cs.cpp - be_visitor_sequence/buffer_type.cpp - be_visitor_sequence/elemtype.cpp - be_visitor_sequence/sequence_base.cpp - be_visitor_sequence/sequence_ch.cpp - be_visitor_sequence/sequence_ci.cpp - be_visitor_sequence/sequence_cs.cpp - be_visitor_structure/any_op_ch.cpp - be_visitor_structure/any_op_cs.cpp - be_visitor_structure/structure.cpp - be_visitor_structure/structure_ch.cpp - be_visitor_structure/structure_ci.cpp - be_visitor_structure/structure_cs.cpp - be_visitor_typecode/typecode_decl.cpp - be_visitor_typecode/typecode_defn.cpp - be_visitor_typedef/any_op_ch.cpp - be_visitor_typedef/any_op_cs.cpp - be_visitor_typedef/typedef.cpp - be_visitor_typedef/typedef_ch.cpp - be_visitor_typedef/typedef_ci.cpp - be_visitor_typedef/typedef_cs.cpp - be_visitor_union/any_op_ch.cpp - be_visitor_union/any_op_cs.cpp - be_visitor_union/discriminant_ch.cpp - be_visitor_union/discriminant_ci.cpp - be_visitor_union/discriminant_cs.cpp - be_visitor_union/union.cpp - be_visitor_union/union_ch.cpp - be_visitor_union/union_ci.cpp - be_visitor_union/union_cs.cpp - be_visitor_union_branch/private_ch.cpp - be_visitor_union_branch/public_assign_cs.cpp - be_visitor_union_branch/public_ch.cpp - be_visitor_union_branch/public_ci.cpp - be_visitor_union_branch/public_cs.cpp - - * TAO_IDL/be_include - TAO_IDL/be - - Renamed be_visitor_args.{h, cpp} to be_visitor_argument.{h, cpp} - to reflect the correct name used by the AST node. - -Wed Jun 17 23:29:06 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Fixed many bugs in the disconnection code. The main ones were - related to memory managment (missing _duplicate() calls for - ES_Consumer_Rep objects) and to agressive memory release - (disconnecting a consumer could result in removing a critical - entry for the map of type consumers in a supplier, rendering the - supplier unusable). - The code more transparent for CORBA exceptions (it just passes - them back); but some places still catch them or create new - CORBA::Environment and/or signal errors using return values. - Looked more carefully at memory managment, but we still need - clean startup and shutdown to really track any problems in this - area. - Some stylistic changes here and there. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added an option to connect and disconnect the consumers and/or - suppliers before doing anything else. This was useful to debug - the EC. - - * orbsvcs/tests/EC_Multiple/Makefile: - Updated dependencies. - - * orbsvcs/tests/EC_Multiple/svc.conf: - Added more options to control the kind of lock used in the POA - and similar things. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - Failing to run in the real-time class is only a warning, added - an explanation to the user in that sense. - - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - Added debug messages (now commented out). - - * orbsvcs/orbsvcs/Event/CORBA_Utils_T.i: - Fixed off-by-one bug in Simple_Array_Iterator. - - * orbsvcs/orbsvcs/Event_Utilities.cpp: - Initialize the rt_info field to 0. - -Wed Jun 17 23:21:45 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/DynSched.{cpp, h} - orbsvcs/orbsvcs/Sched/SchedEntry.{cpp, h, i} - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp - - Several bug fixes for consumers specifying a period - of 0. Incorrect handle was being used for the - dependency, framing/reframing caused divide-by-zero - errors, merging was not correctly picking up the - priority information from the supplier. - - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp - - Added a -n argument, - and command-line argument processing code to the - test so that multiple copies with differently - named scheduling services can run simultaneously - within the context of a single naming service. - -Wed Jun 17 17:07:12 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/README: added new options with - explanations. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: Changed the utilization - test to bound the test by time instead of by number of requests. - - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp:Minor changes to cleanup - code. - - * tests/Cubit/TAO/MT_Cubit/README: Updated the options and - explanation of the options. - -Wed Jun 17 16:58:26 1998 Michael Kircher - - * orbsvcs/tests/start_services: Moved this file form - orbsvcs/tests/Simulator/ to this location. David - made it more generic in order to allow it to work - on more Unix platforms. - - * orbsvcs/tests/Simulator/ss: See comment above. - - * orbsvcs/tests/Simulator/README: Added some comments about - the above mentioned. - -Wed Jun 17 16:14:26 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Makefile: minor fix for Chorus. - -Wed Jun 17 15:05:43 1998 Nanbor Wang - - * tao/Connect.cpp (activate): Set the thr_mgr of the service - handler so the newly spawned thread is created under the ORB's - Thread_Manager. - - * tao/ORB_Core.cpp (inherit_from_parent_thread): Inherit more - properties from the parent thread so the spawned thread has a - complete environment to run on. - - (add_to_collocation_table): - (get_collocated_poa): Changed to use the address in the - orb_params. - -1998-06-17 Torben Worm - - * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory: Changed the - factory not to use an ACE_Lock, but rather to use the - ACE_Thread_Mutex directly. - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet: Changed _d to _i - to be more consistent with ACE. - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet: Don't create the - Thread_Mutex as a pointer since it doesn't change. - - * orbsvcs/tests/Concurrency/CC_client.{h,cpp} - orbsvcs/tests/Concurrency/CC_command.l - orbsvcs/tests/Concurrency/CC_command.y - orbsvcs/tests/Concurrency/Makefile - Now using yacc. Now patching the generated files like SVC - in order to make them more portable. Patching not used yet. - - * orbsvcs/tests/Concurrency/CC_client.{h,cpp} - orbsvcs/tests/Concurrency/CC_command.l - orbsvcs/tests/Concurrency/CC_command.y - orbsvcs/tests/Concurrency/Makefile - Now using yacc. Now patching the generated files like SVC - in order to make them more portable. Patching not used yet. - -Wed Jun 17 11:46:49 1998 David L. Levine - - * TAO_IDL/Makefile: suppressed some warnings from DEC cxx. - - * TAO/tests/Cubit/TAO/MT_Cubit/Task_Client.h: removed unused - static variables. - -Tue Jun 16 17:00:14 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_interface.h: Added a helper called - "collocated_ctor_helper" that will be passed to the - traverse_inheritance_graph to generate calls to the CTORs of each - and every base class in the viryal inheritance hierarchy - - * TAO_IDL/be/be_interface.cpp: Added code for - collocated_ctor_helper method. - - * TAO_IDL/be/be_visitor_interface.cpp: In the constructor for the - collocated class, we now call the interface node's - traverse_inheritance_graph with collocated_ctor_helper method as - the callback. This will generate calls to the ctors of all the - base classes in the entire class hierarchy. - - * TAO_IDL/be/be_visitor_exception.cpp: On suggestions by Irfan, - the generated code no more duplicates the typecode. Instead, it - will be the receipient's responsibility to duplicate the typecode - for the exceptions. - - * TAO_IDL/be/be_visitor_union_branch.cpp: A quick fix has been - made in the generated modifier functions. We now make sure that - memory is allocated to pointer union members if they were not - already set. Note that this solution is simply a quick fix to - allow making progress for IDl using unions. We still need to make - sure that old storage is freed. Will be done in the next attempt. - Thanks to Seth for reporting the problem. - -Tue Jun 16 16:52:16 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - Updated dependencies. - -1998-06-16 Torben Worm - - * orbsvcs/tests/Concurrency/Makefile, CC_command.tab.cpp - Removed error detected by DU cxx. - -Tue Jun 16 15:39:43 1998 David L. Levine - - * orbsvcs/tests/Simulator/ss: use perl instead of cut to - extract uid and NameService IOR. It no longer extracted - the NameService IOR. The new method is based on regular - expressions instead of character counts, so is more resilient. - Ported to Linux (and many other Unix platforms that don't - have ksh). - - * tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp: added ACE_THR_FUNC - static cast of svr_worker to avoid warning on VxWorks. - -Tue Jun 16 15:14:50 1998 Nanbor Wang - - * tao/ORB_Core.cpp (inherit_from_parent_thread): Also inherit the orb - from the spawning thread. - -Tue Jun 16 15:10:11 1998 Chris GIll - - * orbsvcs/orbsvcs/Scheduler_Factory.{cpp,h,i} - - Added usability features. Added status enumerated - type and accessor so user can see if factory is - uninitialized, set up for a config run, or set up - for run time. Added explicit type casts for - enumerated types to output of dump_schedule, - added defaulted argument to allow a different format - string to be used in dump_schedule, made default - format print each struct initialization array on a - single column aligned line. - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp - - Removed duplicated explicit template instantiations for - scheduling strategy instantiations of strategy scheduler. - - * orbsvcs/orbsvcs/Sched/DynSched.cpp - - Fixed bug in add_dependency: put in a break so case - for ONE_WAY dependency does not fall through to default. - -Tue Jun 16 13:50:33 1998 Seth Benjamin Widoff - - * orbsvcs/test/AVStreams/mpeg/source/server/augmented_server.{h,cpp}: - This new version of the AVStreams demo server, augmented_server, - exports an offer to the Trading Service containing a reference to the - MMDevice and a number of properties describing the MMDevice. - - * orbsvcs/test/AVStreams/mpeg/source/server/Machine_Properties.{h,cpp}: - * orbsvcs/test/AVStreams/mpeg/source/server/Video_Repository.{h,cpp}: - Dynamic Property callback handlers that supply values - for AV server machine performance, and the names and descriptions - of movies offered by the AV server. - - * orbsvcs/test/AVStreams/mpeg/source/server/Property_Exporter.{h,cpp}: - Utility to make it simpler for the augmented_server to export an - offer to the Trading Service. - -Tue Jun 16 14:44:42 1998 Nagarajan Surendran - - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.cpp: - Added acceptor code to accept connection from the java GUI. - Added code to read the MMDevice ior and movie name from the - socket to java GUI. - -1998-06-16 Torben Worm - - * orbsvcs/tests/Concurrency/CC_command.h, CC_client.cpp - Removed errors detected by DU cxx - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.{h,cpp} - Cleaned up debugging code. - -Tue Jun 16 14:01:52 1998 Carlos O'Ryan - - * tao/CDR.cpp: - Fixed potential inifinite loop in buffer growth if the initial - buffer size was 0. Thanks to Stuart Myles - for detecting this. - -Tue Jun 16 10:33:20 1998 David L. Levine - - * TAO/orbsvcs/tests/Event_Latency/Event_Latency.cpp: - use ACE_U64_TO_U32 conversion macro. WIN32's __int64 - and ACE_U_LongLong need an explicit narrowing to 32 bits. This - macro provides a consistent way to do that on all platforms. - -Tue Jun 16 10:14:28 1998 Carlos O'Ryan - - * tao/CDR.cpp: - Fixed memory leak on OutputCDR streams, thanks to Lothar - Werzinger for reporting and tracking down - the problem. - -Mon Jun 15 23:13:46 1998 David L. Levine - - * TAO version 0.1.28 released. - -Mon Jun 15 20:56:20 1998 Irfan Pyarali - - * tao/POAC: Changed all the exception from user exceptions to - system exceptions. - - * tao/GIOP.cpp (convert_CORBA_to_GIOP_exception): Added new - function to convert CORBA Exception type to GIOP reply type. - - * tao/Exception.cpp - - (init): Register POA exceptions as system exceptions - - (exception_type): Added code to determine if exception is a POA - exception. - - (print_exception): Changed code to use exception_type. - - Removed sys_exceptions and NUM_SYS_EXCEPTIONS. They were not - being used. - - * tao/Connect.cpp (send_error): Cannot assume that the exception - is a system exception. Must use - TAO_GIOP::convert_CORBA_to_GIOP_exception to find the correct - type of the exception. - -Mon Jun 15 16:14:28 1998 Nanbor Wang - - * test/Cubit/TAO/IDL_Cubit/collocation_test.cpp: New program to - test the performance of collocation optimization. - - * test/Cubit/TAO/IDL_Cubit/server_i.{h,cpp}: - * test/Cubit/TAO/IDL_Cubit/client_i.{h,cpp}: - * test/Cubit/TAO/IDL_Cubit/server.cpp: - * test/Cubit/TAO/IDL_Cubit/client.cpp: Extracted out the - implementation of Cubit_Server and Cubit_Client to *_i.{h,cpp} - so that I can reuse them with collocation_test.cpp. - - When shutting down the ORB, the client side will first turn off - the collocation optimization and get the shutdown object from - Naming Service. Then, it calls the shutdown method of that - object. Without this, we can't shutdown the server ORB. - - * test/Cubit/TAO/IDL_Cubit/svc.conf: Changed to use TSS resource. - - * test/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * test/Cubit/TAO/IDL_Cubit/cubit.idl: Added a new interface for - shutting down the server ORB. This is necessary because we - can't use the shutdown in collocated object (which shuts down - the wrong ORB.) - - * test/Cubit/TAO/IDL_Cubit/Makefile: Added settings for building - collocation_test. Tidy up the Makefile a bit. - - * tests/Cubit/TAO/IDL_Cubit/README: Added documentation for - collocation_test. - - * tao/ORB_Core.{h,i} (using_collocation): Added a new method to allow - turn on/off collocation optimization at run time. - -Sat Jun 13 13:20:58 1998 David L. Levine - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: added explicit - template instantiations. - - * tao/POA.i (find_POA): rearranged to avoid use before - definition. - -Fri Jun 12 20:20:00 1998 Michael Kircher - - * tao/{Object_KeyC.cpp, Typecode_Constants.cpp}: Changed the - typecode manually. - -Fri Jun 12 19:34:00 1998 Michael Kircher - - * tao/POAC.cpp: The generation of the typecodes has changed, - this file had to be changed manually. - -Fri Jun 12 16:53:49 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_decl.cpp (gen_name2long): Michael found out that - the TAO_IDL compiler was generating non-portable code for the - TypeCode arrays of longs for the RepoID and the name. After - discussions with Doug and Irfan, we have decided to always - generate the arrays in network order (big endian) and add an - ACE_NTOHL macro as the static array is initialized. This way there - won't be any run-time penalty. At the same time, the code will be - portable. - - * TAO_IDL/{be_enum, be_exception, be_interface, be_structure, - be_typedef, be_union, be_predefined_type, be_field, be_enum_val, - be_union_branch}.cpp: Added the call to ACE_NTOHL macro for the - arrays of long that are generated for TypeCodes. - - * tests/Param_Test/params.idl: Added interface definition for - tests for arrays. This is still not working at this time. - -Fri Jun 12 15:39:41 1998 Irfan Pyarali - - * tests/POA/Generic_Servant: Added oneway calls. - -Fri Jun 12 15:01:16 1998 Marina Igorevna Spivak - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: Added _env parameter to - helper method, and added the check of environment in - all methods using . This is to allow exceptions - propagate back. - -1998-06-12 Torben Worm - - * orbsvcs/Concurrency/CC_LockSet.{h,cpp} - Added locks to avoid race conditions. - Corrected errors regarding the semantics of the service - One issue is still outstanding: The use of a semaphore to - lock the threads which do not preserve the ordering of the - locking. - -Fri Jun 12 11:48:00 1998 Michael Kircher - - * tao/POAC.cpp: The TAO_IDL compiler generates platform - dependent code for typecodes right now. POA.idl is !not! - recompiled on a compilation, because it has been customized. - This means, that a ifdef is needed to cover for the - platform dependence. - -Fri Jun 12 09:43:14 1998 David L. Levine - - * tao/Connect.cpp (send_error): dereferenced - forward_request_ptr->forward_reference so that it compiles - with g++. - -Fri Jun 12 9:00:00 1998 Michael Kircher - - * tao/Connect.cpp: Removed my own bug, using a var as a ptr. - -Thu Jun 11 21:30:00 1998 Michael Kircher - - * tests/POA/Forwarding/{client, server}.cpp: cleaned up the code. - -Thu Jun 11 21:15:00 1998 Michael Kircher - - * tao/Connect.cpp: Added send_error, which does proper system exception handling - and marshalling. - - * tao/Connect.h: Added the request_id as parameter to handle_message and - handle_locate - - * tao/GIOP.cpp: Changed the forwarding. A method named location_forward has been - introduced. It changes the IIOP_Profile of the object reference in copying the IIOP_Profile - from the object where the requests should go to, now. - - * tao/GIOP.h: Added the TAO_GIOP_Invocation::location_forward (CORBA::Environment &env); - - * tao/IIOP_ORB.cpp: The IIOP_Object pointer is now released in each case, not only - in the error case. This was necessary, because the control was given to the caller - and the ref_count was to high. - - * tao/IIOP_Object.cpp: Implemented the copy operator on IIOP_Profile, which is needed - by the above mentioned location_forward method. - - * tao/IIOP_Object.h: Removed old forward profile things and changed the copy operator - - * tao/IIOP_Object.i: Removed old forward profile stuff. - - * tao/Server_Request.cpp: Changed the exception handling. We have now a special - case of the forward_request exception. This exception contains an object reference - to a object at the new location. - - * tao/Server_Request.h: Added "CORBA::ULong request_id (void)" to query the request_id and - added a member "CORBA::Object_var forward_location_". - - * tao/Server_Request.i: added ACE_INLINE CORBA::ULong IIOP_ServerRequest::request_id (void) - - * docs/releasenotes/index.html: Added a reference to location forwarding. - - * docs/forwarding.html: Documentation about location forwarding. - -Thu Jun 11 21:09:30 1998 David L. Levine - - * tests/Quoter/Quoter_Impl.cpp (Quoter_Factory_Impl ctor): - dereference quoter_ior in ACE_DEBUG statement. - -Thu Jun 11 18:22:50 1998 Irfan Pyarali - - * tao/ORB_Core.cpp: Added template instantiations for Write_Guard - and Read_Guard. - -Thu Jun 11 16:45:11 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_array.cpp: (gen_encapsulation, gen_encap_len): - Added code that generates the TypeCode and encapsulations for - Arrays. - - be_array::gen_forany_{defn,impl}: Added a "nocopy ()" method that - returns the "nocopy" flag. This is useful for the <<+ and >>= - operators. - - Also, removed a lot of code that was commented out. - - * TAO_IDL/be_include/be_visitor_array.h - TAO_IDL/be/be_visitor_array.cpp: These are newly added files. - - Added a bunch of visitors that generate code for Arrays. As of now - only typedefined arrays have been handled. Work is still going on - for anonymous arrays. - - * TAO_IDL/Makefile: Added be_visitor_array.cpp for compilation - - * TAO_IDL/be/be_interpretive.cpp: Added cases for the Array - visitors. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: Fixed an error in the - generate code for the "non copying" and "copying" versions of the - <<= operators. - - * TAO_IDL/be/be_visitor_interface.cpp: After discussions with - Irfan, we now use POA_var as a data member inside the generated - TIE classes. In addition, the code for the _default_POA, which - previously was incorrect, is now fixed. - - * TAO_IDL/be/be_visitor_sequence.cpp: We now always create a name - for the sequence node even when it is imported. The reason we have - to do this is that an imported sequence node may very well be used - in another IDL file. Thus, while code generation, if the name was - not set, then it resulted in seg faults. Thanks to John Geiss" - for reporting the problem. - - * TAO_IDL/be/be_visitor_typedef.cpp: For typedefs of a typedef to - an array, we simply generate the typedefs for the _var, _out, - _forany types. In addition, inline functions for the _alloc, _dup, - _copy, and _free are generated. - - * orbsvcs/orbsvcs/Makefile: In the realclean target, added the - *_T.* files that need to be cleaned. - -Thu Jun 11 15:32:02 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp}: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.{h,cpp}: - * tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: Added the server utilization - test. Use "-U" on both the client and the server. - -Thu Jun 11 15:26:36 1998 Nanbor Wang - - * tao/ORB_Core.{h,cpp} (inherit_from_parent_thread): This new - method was added to TAO_ORB_Core to localize all inheriting - operations needed when spawning new threads to handle incoming - requests. - - * tao/Connect.cpp (svc): Changed to use - inherit_from_parent_thread. - -Thu Jun 11 13:01:11 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/DynSched.cpp: - - Changed ACE_Thread_Mutex to ACE_SYNCH_MUTEX in - template instantiation statements and pragmas - -Thu Jun 11 12:40:11 1998 Michael Kircher - - * tao/Exception.cpp: Method Release created an any, named - free_it_all, which was responsible in old time to - deep free memory. Now that that Any automatically - encodes its content in a CDR stream this is no more - the right thing to do. It actually can create a - infinite loop, if an exception is thrown within - the encoding code. So it has been replaced by a - delete this command. - -Thu Jun 11 11:25:11 1998 Michael Kircher - - * orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp: Added - proper multithreaded support. - - * orbsvcs/orbsvcs.dsw: Added the LifeCycle_Service - -Thu Jun 11 09:39:11 1998 David L. Levine - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: changed the - ACE_EC_Gateway template instantiations to TAO_EC_Gateway. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - changed types of local i, and global num_of_objs, to u_int - to avoid signed/unsigned comparisons. - -Thu Jun 11 00:14:25 1998 Irfan Pyarali - - * tao/Connect.cpp (TAO_Server_Connection_Handler): Reordered base - class / member initialization. - -Wed Jun 10 20:00:21 1998 Michael Kircher - - * tests/POA/Forwarding/*: enhanced the Forwarding test enormously. - -Wed Jun 10 19:00:21 1998 Carlos O'Ryan - - * tao/Sequence.cpp: - Fixed small bug in octet sequence assignment operator. - -Wed Jun 10 16:09:49 1998 Irfan Pyarali - - * tao/ORB.cpp: fixed template instantiations: ACE_SYNCH_MUTEX - instead of ACE_SYNCH_RW_MUTEX. - - * tao/POAS.h (POA_PortableServer): Added missing TAO_Exports. - - * tests/POA/DSI: New test directory to show DSI features in TAO. - - * tests/POA/TIE: New test directory to show TIE features in TAO. - -1998-06-10 Torben Worm - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.{h,cpp} - Added multiple possesion semantics. CC_Lock.{h,cpp} is - not used anymore. - -Wed Jun 10 14:29:55 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.{h,cpp}: - - Moved included header files from .cpp to .h to - fix incomplete types error when compiling files - that include the header file and are using the - strategized scheduler implementation - - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h - orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - - Fixed warning when compiling file that include these - header files: set all Info_Type values to 0 (Operation). - Values were 0-4, where the enum only goes 0-2 - -Wed Jun 10 13:03:03 1998 Irfan Pyarali - - * tests/POA/Explicit_Activation/server.cpp, - tests/POA/Generic_Servant/client.cpp, - tests/POA/NewPOA/NewPOA.cpp, and tests/POA/RootPOA/RootPOA.cpp: - Use ACE_DEBUG instead of cout. - - * tao/Server_Request.cpp (dsi_marshal): Only marshal if the params - are valid. - - * tao/ORB_Core.h: Changed the lock used by - ACE_Cached_Connect_Strategy from a rw_mutex to a regular mutex. - - * tao/ORB.cpp: Changed CORBA::B_TRUE and CORBA::B_FALSE from enums - to CORBA::Boolean. - - * tao/{Connect.cpp, ORB.cpp}: Fixed the template instantiations in - lieu of the changes to Hash_Addr. - - * tao/Any.h: Added ACE_Export to nested structs. - -Wed Jun 10 10:28:31 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Added support to automatically create the publication and - subscription lists for the gateways. - - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - Added fields to the QOS structures so gateways can be - distinguished in the EC. - Several field names were inconsistent (some had a trailing _ and - others won't). - - * orbsvcs/orbsvcs/Event_Utilities.h: - * orbsvcs/orbsvcs/Event_Utilities.i: - Adapted to use the changes in the QOS structures. - - * orbsvcs/orbsvcs/Event/EC_Gateway.h: - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - As part of the plan to support UDP and multicast gateways we - have a base class to handle all the different configurations for - a gateway. - - * orbsvcs/orbsvcs/Event/Local_ESTypes.h: - Removed a lot of BOAImpl typesdefs, they were completely - outdated and quite ugly. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - Added code to call ORB_init() no each thread, but it is - commented out until we know what arguments to pass and how. - - * orbsvcs/orbsvcs/Scheduler_Factory.h: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - We cannot use enums in the POD_RTInfo because those are hard to - generate correctly. - - * orbsvcs/tests/EC_Multiple/svc.conf: - I'm starting to set a more realistic config for the Event - Channel, but we still have a lot of work to do in this area. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test uses the automatic gateway connection now. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - The ConsumerQOS and SupplierQOS structure have changed. - - * TAO_IDL/driver/drv_preproc.cpp: - Fixed type in comment. - -Tue Jun 09 17:27:25 1998 Nanbor Wang - - * tao/Connect.{h,cpp} (activate): Added this method to - Default_Server_Connection_Handler so we can prepare information - for inheriting some objects/properties from the spawning thread. - (svc): Inherit and setup some properties/objects from the parent - thread. Currently, only root poa is inherited in spawned - threads. I should probably add another method called inherit () - to handle this. Anyhow, this solved the thread-per-connection - problem. - - * tao/ORB_Core.cpp (add_to_collocation_table): Removed the - explicit conversion from ACE_INET_Addr to ACE_Hash_Addr since - Irfan fixed ACE_Hash_Addr::operator==. - -Tue Jun 09 16:18:54 1998 David L. Levine - - * Makefile: removed old release targets. They're no longer - used, or maintained. Silenced the creation of INSTALL. - -Tue Jun 9 15:57:28 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader: The Trading Service now uses ACE - containers rather than stl containers. - - * orbsvcs/orbsvcs/Makefile: Since all stl containers in the - Trading Service have been replaced with ACE analogues, I've - updated the orbsvcs Makefile to eliminate the stl dependency. - -Tue Jun 09 15:41:53 1998 David L. Levine - - * TAO version 0.1.27 released. - -Tue Jun 9 15:14:09 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: There was an error in the - generated code for the variable declaration of return types for - type Anys in the skeletons. Fixed. - -Tue Jun 9 13:29:19 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_typedef (be_visitor_typedef_ch::visit_predefined) - - We had forgottent to generate the typedef for the _var types for - pseudo objects and Anys. Thanks to Seth Widoff for reporting - this. - -Tue Jun 09 12:52:59 1998 Nanbor Wang - - * tao/ORB_Core.cpp (add_to_collocation_table): ACE_Hash_Addr must - be created with recyclable flag set to 1 otherwise the - Hash_Map_Manager can't find the object. - -Tue Jun 09 11:43:19 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: added newline to - shutdown message. - -1998-06-09 Torben Worm - - * Updated orbsvcs/tests/Concurrency/CC_command.h - Removed warnings generated by g++ - -Tue Jun 9 08:53:30 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_codegen.h: Added two states (but no new - visitors) for argument passing to the upcall for the collocated - case. This was necessary since in this case, the argument is - passed as it is. In the skeleton case, we may have _var variables, - and hence we may have to pass the .in () or .inout () of those - _var variables. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - - Once again, due to the compulsions of the MSVC++ compiler and the - DLLs, we require the export/import macros for all the <<= and >>= - operators so that they are visible outside. - - * TAO_IDL/be/be_visitor_args.cpp: - TAO_IDL/be_include/be_visitor_args.cpp (be_visitor_upcall_ss): - - We were using _var variables to make sure that allocated memory - was released after the marshaling is done and the skeleton has - returned. However, for objrefs and strings, we ended up passing - the .in () values of these _var parameters. The expected value was - a pointer to the in () value. This is now corrected. - - Also dealt with the collocated case, where we simply pass the - argument from the parameter list to the upcall as it is. - - Due to these two differences, we had to add a bunch of visit_* - methods to the upcall_ss visitor. - - * TAO_IDL/be/be_visitor_operation.cpp: The same reasoning (case 1) - given for be_visitor_args.cpp holds here too for the return value - case. - -1998-06-08 Torben Worm - - * Updated orbsvcs/tests/Concurrency/CC_command.cpp because of an - error reported by g++ - - * Updated orbsvcs/tests/Concurrency/Makefile to reflect the - changed stated below - - * Added the following files: - orbsvcs/tests/Concurrency/CC_command.{h,cpp,y,l}: Command - interpreter for the test language for the concurrency service. - orbsvcs/tests/Concurrency/test.{basic,extended,e1,dinphil, - phil[1-5]: Tests for the concurrency service. - Updated: - orbsvcs/tests/Concurrency/{README,CC_client} to be aware of - the changes in CC_command. - -Mon Jun 08 09:41:52 1998 David L. Levine - - * tao/ORB_Core.cpp: added/fixed template instantiations. - -Sun Jun 7 17:54:31 1998 Nanbor Wang - - * docs/Options.html: Added options available for ORB, - Resource_Factory, and Default_Server_Strategy_Factory. - - * tao/IIOP_ORB.{h,cpp}: Removed _register_collocation from - IIOP_ORB and all usage of it. Also, when using a global - collocation table, it gets the table from the resource factory. - - * tao/ORB.h: Remove pure virtual function _register_collocation. - - * tao/ORB.cpp: Register the ORB's listening endpoint to the global - collocation table if we are using one. - - * ORB_Core.{h,i,cpp}: Added a new class TAO_COLTBL_Lock to choose - the lock to use in global collocation table at run time. - - Added a command option in ORB_Core to disable collocation - optimization and an option in Resource Factory to decide to use - a global collocation table or not. - - (using_collocation): Get whether we want to use the collocation - optimization. - - (add_to_collocation_table): Used to register a listening - endpoint when an ORB gets initialized. - - (get_collocated_poa): This function look thru the collocation - table and return the root poa associate with the ORB. - - (get_global_collocation_table): Return a pointer to the global - collocation table if we choose to use one, otherwise, return 0. - - * tao/Server_Strategy_Factory.{h,cpp} (create_coltbl_lock): Added - new method to allow not using a lock in the global collocation - table. - - * tao/default_server.{h,cpp} (create_coltbl_lock): Added - implementation of this method. - -Sat Jun 06 21:17:13 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/{server,client}.dsp: Both projects now - require to link against orbsvcs.lib. - -Sat Jun 6 20:32:26 1998 Douglas C. Schmidt - - * tests/OctetSeq/OctetSeq.cpp: Changed Test::_tc_CharSeq_seq and - Test::_tc_OctetSeq_seq to Test::_tc_CharSeq and - Test::_tc_OctetSeq. Thanks to David Levine for spotting this. - -Sat Jun 6 Alexander Babu Arulanthu - - * docs/orbsvcs.html: Changed the test directory from - CosPropertyService to Property. - -Sat Jun 6 Alexander Babu Arulanthu - - * Moved $TAO_ROOT/orbsvcs/tests/CosPropertyService to - $TAO_ROOT/orbsvcs/tests/Property. - -Sat Jun 6 18:55:51 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Changed the code to use the - same priority for all low priority clients. Deleted unnecessary - code that implemented a cubit factory, we now will use the file to - store/retrieve the iors. Fixed a bug having to with unsupported - fields in the rusage structure for NT. - -Sat Jun 6 17:35:59 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_visitor_interface.cpp: Added CORBA::Environment - &env to the _default_POA() tie method. Thanks to David Levine - for reporting this. - - * orbsvcs/orbsvcs/Log/Logger_i.cpp: Added a simple-minded - implementation of the log() method. This can certainly be - improved... - -Fri Jun 5 16:02:54 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - The output CDR class uses the Data_Block directly to minimize - memory allocation. - This has taken the count of memory allocations to 4 on the - client side and 4 on the server side. - - * tao/GIOP.cpp: - OutputCDR::stream() now returns a const message block. - - * tests/Param_Test/client.cpp: - * tests/Param_Test/driver.h: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/options.cpp: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/param_test_i.cpp: - It is now possible to shutdown the server using a method, this - is useful to test memory leaks because the client can request a - clean shutdown (using the option -x). - - * TAO_IDL/be/be_visitor_operation.cpp: - For some types the return values were not deleted at the end of - the upcall. I'm using T_var classes to automatically release the - memory. - -Fri Jun 5 12:22:44 1998 Darrell Brunsch - - * tao/debug.{h,cpp}: Added TAO_orbdebug flag so TAO code - does not check the flag in Service Configurator anymore. - That way, it should still work when there isn't a - Service Configurator. - - * tao/Connect.cpp: Made the switch to TAO_orbdebug. - - * tao/ORB_Core.cpp: First, since the semantics of the -d - flag in the Service Configurator now means to suppress - debug messages, it is now passed in by default unless - -ORBdebug was specified. Also sets TAO_orbdebug when - -ORBdebug is specified. - -Thu Jun 04 05:05:39 1998 Douglas C. Schmidt - - * TAO version 0.1.26 released. - -Thu Jun 04 03:45:12 1998 Nanbor Wang - - * TAO_IDL/be/be_visitor_interface.cpp - (be_visitor_interface_sh::visit_interface): Don't change the - output stream until the template declaration part is complete. - This delayed redirection of output writes the generated template - classes into regular *S.h file and get them enclosed by - appropriate namespace there. Perhaps we can put them in the - *S_T.h files, but that won't make platforms which don't have - namespace support happy. - - * TAO_IDL/be/be_visitor_module.cpp - (be_visitor_module_sh::visit_module): Changed to use - TAO_NAMESPACE as server side's module namescope. - -Wed Jun 3 17:50:09 1998 Aniruddha Gokhale - - Irfan Pyarali discussed the need to generate *_T.{h, i, cpp} files - that hold the generated code for the TIE classes. The *_T.h file - uses the ACE_TEMPLATES_REQUIRE_SOURCE and - ACE_TEMPLATES_REQUIRE_PRAGMA macros to conditionally include the - *_T.cpp files. The following changes were necessary to suport - these features. - - * TAO_IDL/be_include/be_codegen.h - TAO_IDL/be/be_codegen.cpp: - - Added more methods and data mebers for the server-side template - files that have the code for the TIE classes. The added methods - are: start_server_template_header, start_server_template_inline, - start_server_template_skeletons, end_server_template_header, and - end_server_template_skeletons. The corresponding data members were - added. - - * TAO_IDL/be_include/be_helper.h: Added 3 new enumerations for the - three newly introduced streams that will hold code for the TIE - classes. - - * TAO_IDL/be_visitor_interface.cpp: We now initialize the visitor - context of the TIE visitors with the appropriate *_T.{h, i} files. - - * TAO_IDL/be_visitor_root.cpp: Made calls to initialize and close - the newly added streams that hold the code for the TIE classes. - - * TAO_IDL/include/idl_global.h: - TAO_IDL/utils/utl_global.cpp: - - Added new methods that generate names for the newly introduced - streams that hold the code for TIE classes. These methods are: - be_get_server_template_fname, be_get_server_template_inline_fname, - be_get_server_template_inline_skeleton_fname and their - corresponding helper methods. - -Tue Jun 2 18:57:08 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - Factored out some code that should have been placed inside the - TypeCode visitors. - - * TAO_IDL/be/be_visitor_typecode.cpp: Added teh factored out code - mentioned above. - - * TAO_IDL/be_include/be_codegen.h: Added a few more enumerations - that deal with generation of the TIE classes and code for - interfaces, operations and attributes. - - * TAO_IDL/be/be_visitor_attribute.cpp: Added cases to deal with - attribute mapping inside a TIE class. - - * TAO_IDL/be_include/be_visitor_interface.h - TAO_IDL/be/be_visitor_interface.cpp: - - Added 2 new visitors for generation of the TIE class and its code - in the server header and server inline file. - - * TAO_IDL/be_include/be_visitor_operation.h - TAO_IDL/be/be_visitor_operation.cpp: - - Added 2 new visitors for generation of the operations and its code - inside the TIE class in the server header and server inline file. - - * TAO_IDL/be/be_interpretive.cpp: Added cases for the TIE visitors - for interfaces, operations and attributes. - - * docs/releasenotes.index.html: Updated to indicate support for - TIEs. - -Tue Jun 02 08:35:58 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/server.cpp: added cast to avoid - signed/unsigned comparison. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: added cast to avoid - signed/unsigned comparison. Reordered initializers to - match declaration order. - -Tue Jun 02 08:29:20 1998 David L. Levine - - * orbsvcs/Event_Service/Makefile,orbsvcs/tests/EC_Multiple/Makefile, - orbsvcs/tests/Event_Latency/Makefile,tao/Makefile: - moved probe=1 support from individual Makefiles to - wrapper_macros.GNU. - -Mo Jun 1 21:36:00 1998 Michael Kircher - - * tests/Quoter: Several files had to be modified in order - to use the LifeCycle Service now as a separate object as - part of the orbsvcs. - - * orbsvcs/LifeCycle_Service: Did some more customizations. - -Mon Jun 1 15:48:28 1998 Aniruddha Gokhale - - * tao/orbconf.h: Modified the TAO_NAMESPACE related macros. Added - some more to deal with the nested namespaces that can occur due to - nested modules. - - * TAO_IDL/be_include/be_visitor_typecode.h - TAO_IDL/be/be_visitor_typecode.cpp: - - Added two new files that define a new visitor which will - generate code for different types. The TypeCode generation now - uses the different NAMESPACE related macros described above. - - * TAO_IDL/be_include/be_codegen.h: Added two new enumerations for - the TypeCode generating visitors. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: Used the new TypeCode - visitors. One advantage of using these is that all code gets - factored into a visitor. At the same time, we can conditionally - opt not to generate the TypeCodes. This may be desired for - compiled marshaling. - - In be_visitor_sequence.cpp, we do not generate the typecode if the - sequences was typedefed. - - * TAO_IDL/be_include/be_visitor_constant.h - TAO_IDL/be/be_visitor_constant.cpp: Added similar logic to the - TypeCode generation when constants are defined insided modules - that get mapped to namespaces. - - * TAO_IDL/be/be_interpretive.cpp: Added cases to deal with the two - new TypeCode generating visitors. - - * TAO_IDL/fe/{idl.yy, y.tab.cpp}: Removed some incorrect code in - the action part of the idl.yy file. - - * TAO_IDL/Makefile: Reran make depend. - -Mo Jun 1 14:37:00 1998 Chris Gill - - * orbsvcs/orbsvcs/RtecScheduler.idl - orbsvcs/orbsvcs/Runtime_Scheduler.{cpp, h} - orbsvcs/orbsvcs/Scheduler_Factory.{cpp, h} - orbsvcs/orbsvcs/Event/Dispatching_Modules.{cpp, h, i} - orbsvcs/orbsvcs/Event/Event_Channel.cpp - orbsvcs/orbsvcs/Event/RT_Task.cpp - orbsvcs/orbsvcs/Sched/Config_Scheduler.{cpp, h} - orbsvcs/orbsvcs/Sched/DynSched.{cpp, h} - orbsvcs/orbsvcs/Sched/SchedEntry.h - orbsvcs/orbsvcs/Sched/Scheduler.{cpp, h} - - Removed Dynamic Subpriority from RtecScheduler IDL - interface: both static and dynamic subpriorities - now map into a single preemption subpriority value - - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp - orbsvcs/tests/Sched_Conf/Sched_Conf.{dsp, dsw} - orbsvcs/tests/Sched_Conf/Makefile - - Added a "test" program that simulates a configuration - run and generates a runtime scheduler header: to use - the strategized scheduler for static RMS scheduling, - put the following at the beginning of ace/config.h: - - #define TAO_USES_STRATEGY_SCHEDULER - #define TAO_USES_RMS_SCHEDULING - #define TAO_MIN_CRITICAL_PRIORITY 3 - -Mo Jun 1 10:16:00 1998 Michael Kircher - - * docs/orbsvcs.html: Added the LifeCycle Service to the list - of services. - - * docs/releasenotes/index.html: Added new information about - DOVE to the file. - -Mo Jun 1 10:16:00 1998 Michael Kircher - - * orbsvcs/LifeCycle_Service: Created the LifeCycle Service. - - * orbsvcs/Makefile: Added the LifeCycle Service to the list - of directories. - - * orbsvcs/orbsvcs/Makefile: Added the LifeCycleService* files. - - * orbsvcs/orbsvcs/LifeCycleService.idl: Created an IDL - file describing the interface of the LifeCycle Service. - -Fri May 29 17:58:16 1998 Douglas C. Schmidt - - * TAO version 0.1.25 released. - -Fri May 29 16:03:00 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp: Removed the - terminate calls by adding -x option to the client so that it shuts - down the server. - -Fri May 29 13:00:35 1998 Michael Kircher - - * tests/Quoter/Factory_Trader.cpp: CosTradingC.h is only - parsed when the trading service is available. - -Fri May 29 11:02:35 1998 Aniruddha Gokhale - - * tao/orbconf.h: Removed an unnecessary OR condition for the - TAO_NAMESPACE macro. - -Fri May 29 09:15:49 1998 Douglas C. Schmidt - - * tao/ORB_Core.cpp (init): Added code to pass svcconf directives - to the Service Configurator. Thanks to Mark Boriack for - contributing this. - - * tao/ORB_Core.cpp (init): Make sure that we dynamically - string_dup() ALL the argv/argc arguments, not just some of them, - so that we can correctly clean stuff up when we're done. - -Thu May 28 14:32:07 1998 Aniruddha Gokhale - - * tao/Server_Request.cpp:(demarshal, marshal): more optimizations - to get rid of the NVList and other DSI-centric logic in the - handling of static skeletons generated by the IDL compiler. These - optimizations are the result of my discussions with Irfan - Pyarali. - -Thu May 28 11:37:35 1998 Aniruddha Gokhale - - * tao/orbconf.h: Removed the TAO_NAMESPACE_STORAGE_CLASS macro. - - * tao/CurrentS.cpp: In the initialization of the constructor, we - were calling the default ctor of the base class. However, we now - call the other ctor that takes the stub object and servant as - arguments. - - * tao/{encode, decode}.cpp: In Struct::{encode, decode}, I had - made an erroneous change a few days back where I was passing the - address of a pointer. This was for the Objref and Typecode - cases. Carlos pointed this out. Seth was getting lots of errors - due to this. This has been fixed. - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - - Reverted my previous change where I generated the - TAO_NAMSPACE_STORAGE_CLASS macro if the data type was nested. We - no more generate this macro and this macro has been removed from - orbconf.h as explained above. - -Thu May 28 00:08:19 1998 Irfan Pyarali - - * tao/orbconf.h (TAO_NAMESPACE_STORAGE_CLASS): Changed it from - extern to static. - - * orbsvcs/orbsvcs/Naming/Entries.h: Removed the default for the - binding type in the constructor of NS_IntId. It was breaking - VC5.0 if CosNaming was a namespace. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (rebind): Added - CosNaming::nobject as the binding type to NS_IntId instances - since the default was removed in the constructor. - -Wed May 27 17:56:07 1998 Nanbor Wang - - * TAO_IDL/be/be_visitor_module.cpp (visit_module): Supress - generation of NT export specifier after TAO_NAMESPACE. - - * tao/CurrentS.cpp (_tao_collocated_Current): Changed - "ACE_NESTED_CLASS (CORBA,Current)" to "CORBA_Current". - - * tao/POAS.cpp (_tao_collocated_Current): Changed - "POA_CORBA::_tao_collocated_Current" to ACE_NESTED_CLASS - (POA_CORBA,_tao_collocated_Current). - - * tao/POA_CORBA.h (_tao_collocated_Current): Changed its base - class to CORBA_Current. - -Wed May 27 16:08:10 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_enum, be_visitor_exception, - be_visitor_interface, be_visitor_sequence, be_visitor_structure, - be_visitor_typedef, be_visitor_union}.cpp: - - The typecode declarations generated in the header file for - user-defined IDL types used to be "static" if the data type was - enclosed inside a module. However, for platforms that support - "namespaces", this should be extern. Hence we generate a macro - called "TAO_NAMESPACE_STORAGE_CLASS" defined in tao/orbconf.h - - * orbsvcs/orbsvcs/Makefile: Ran make depend since some files in - TAO/tao were removed. - - * tao/PolicyS.{h, i}: Removed from the CVS repository - - * tao/CurrentC.{h, i, cpp} - tao/CurrentS.cpp: Added to the repository. This defined the - interface Current in the CORBA namespace. *NOTE* these are newly - added files. - - * tao/ORB.h: Moved Declarations for RepositoryID and Identifier - from the POA namespace to the CORBA namespace. Also added some - more TypeCode declarations e.g., _tc_Current, _tc_Identifier, - others. - - * tao/POAC.{h, i, cpp}: Removed everything related to - CurrentBase. RepositoryID and Identifier are now in the CORBA - namespace instead of the PortableServer namespace. - - * tao/POAS.{h, cpp}: PortableServer::Current now inherits from - POA_CORBA::Current instead of PortableServer::CurrentBase. - - * tao/POA_CORBA.h: Merger of the PolicyS.h and CurrentS.h - files. It defines the POA_CORBA namespace which is the C++ mapping - for the CORBA module for the server-side. It defines the Policy - and Current classes for the server-side. *NOTE* This is a newly - introduced file. - - * tao/PolicyC.cpp: Moved the definition of the _tc_Policy typecode - to the TypeCode constants file since this is owned by the ORB. - - * tao/Servant_Base.{h, cpp}: PortableServer::RepositoryId is now - CORBA::RepositoryId. - - * tao/Typecode_Constants.cpp: Added new typecode definitions for - all the newly introduced stuff as well as moved stuff such as - Current, Policy, PolicyType, PolicyList, RepositoryId, and - Identifier. - - * tao/orbconf.h: TAO_NAMESPACE macro is now "namespace" for - platforms that supports it. Needs to be checked. - - * tao/Makefile: Did make depend. - -Wed May 27 12:53:01 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/Makefile: ran make depend to - remove dependency on tao/Timeprobe.i. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: added casts of - ACE_hrtime_t to long now that ACE_hrtime_t is an __int64 on WIN32. - Thanks to Irfan for reporting this. - -Tue May 26 22:25:23 1998 Nanbor Wang - - * tao/ORB.cpp (CORBA_ORB): Never assume a pointer will be - initialized to null. - -Tue May 26 21:32:03 1998 Douglas C. Schmidt - - * tao/GIOP.cpp (recv_request): Changed CDR::grow() to take an - ACE_Message_Block * rather than an ACE_Message_Block *& since we - don't seem to change the message block pointer in the method. - Thanks to Nanbor for reporting this. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (new_context): Add a - couple of calls to the new init() method in the appropriate - places. - - * orbsvcs/orbsvcs/Naming/CosNaming_i: Changed the implementation - so there's now an init() method that must be called before using - the NamingContext. This is necessary to make sure we don't try - to initialize the lock_ until the ORB has been initialized. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Changed the - implementation to call init() on the NamingContext - implementation. - -Tue May 26 20:22:12 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - * tao/GIOP.cpp: - I was able to remove a memory allocation on the client side by - playing some tricks with the underlying Data_Block. - - * tests/CDR/basic_types.cpp: - The ORB was destroyed before the test was run, hence all the - Typecodes were invalid. - - * tests/Param_Test/tests.cpp: - Disabled several DII tests because they will not compile. - -Tue May 26 18:39:11 1998 Carlos O'Ryan - - * tao/ORB.h: - * tao/ORB.cpp: - * tao/Server_Strategy_Factory.h: - * tao/Server_Strategy_Factory.cpp: - * tao/default_server.h: - * tao/default_server.cpp: - Added options to control the kind of locking in the ORB event - loop (i.e. ORB::run), by default it acquires no locks. - - * tao/Object.h: - * tao/Object.i: - All the objects in the ORB that are reference counted do *not* - have locks to protect the count. - -Tue May 26 16:24:41 1998 Carlos O'Ryan - - * tao/Server_Request.h: - * tao/Server_Request.cpp: - The Server Request does not need to copy the operation name from - the CDR stream. In TAO there is no translation for strings and - the underlying stream survives during all the invocation. - Fortunately the strings in CDR are zero terminated. - -Tue May 26 12:40:30 1998 Douglas C. Schmidt - - * tao/ORB.cpp: We seem to have an extra comma here... - -Tue May 26 10:32:12 1998 Nanbor Wang - - * TAO_IDL/tao_idl.dsp: Updated project files per Andy's changes. - -Tue May 26 10:03:51 1998 David L. Levine - - * tests/NestedUpcall/server.cpp (init_naming_service): dereferenced - the parameters to init () call. - - * tests/NestedUpcall/client.{h,cpp}: moved template instantiations - from .h file to .cpp file. Removed unused instantiations. - - * tests/NestedUpcall/NestedUpCalls_Test.cpp,NestedUpCalls_i.h, - client.{h,cpp},eh_i.{h,cpp},reactor_i.{h,cpp},server.h: - removed trailing ^M's from all lines. - -Tue May 26 09:51:20 1998 Aniruddha Gokhale - - This ChangeLog entry describes massive cleaning efforts to - remove all unwanted code as well as some more additions and - modifications to the TAO IDL compiler. - - * TAO_IDL/Makefile: Removed compilation of all the be_state* - files. - - * TAO_IDL/be_include/be_decl.h - TAO_IDL/be/be_decl.cpp: - Removed the gen_client_header, gen_client_inline, - gen_client_stubs, gen_server_header, gen_server_inline, - gen_server_skeleton methods. - - * TAO_IDL/be_include/ - - be_argument.h - be_array.h - be_attribute.h - be_constant.h - be_enum.h - be_enum_val.h - be_exception.h - be_field.h - be_interface.h - be_interface_fwd.h - be_module.h - be_native.h - be_operation.h - be_predefined_type.h - be_root.h - be_scope.h - be_sequence.h - be_string.h - be_structure.h - be_typedef.h - be_union.h - be_union_branch.h - - AND - - TAO_IDL/be/ - - be_argument.cpp - be_array.cpp - be_attribute.cpp - be_constant.cpp - be_enum.cpp - be_enum_val.cpp - be_exception.cpp - be_field.cpp - be_interface.cpp - be_interface_fwd.cpp - be_module.cpp - be_native.cpp - be_operation.cpp - be_predefined_type.cpp - be_root.cpp - be_scope.cpp - be_sequence.cpp - be_string.cpp - be_structure.cpp - be_typedef.cpp - be_union.cpp - be_union_branch.cpp - - Removed the gen_client_header, gen_client_inline, - gen_client_stubs, gen_server_header, gen_server_inline, - gen_server_skeleton methods. - - * TAO_IDL/be_include/be_codegen.h - TAO_IDL/be/be_codegen.cpp: - - Added a bunch of enumerations for code generation of the Any <<= - and >>= operators for all the IDL types - - Removed a bunch of methods and data members that were used for - the state based approach. - - * TAO_IDL/be_interpretive.cpp: Added cases for the newly - introduced enumerations for the <<= and >>= operators. - - * TAO_IDL/be_produce.cpp: added more documentation. - - * TAO_IDL/be_include/ - AND - TAO_IDL/be - - {be_visitor_enum, be_visitor_exception, be_visitor_interface, - be_visitor_module, be_visitor_root, be_visitor_sequence, - be_visitor_structure, be_visitor_typedef, be_visitor_union}.{h, - cpp}: - - Added visitors to each class called be_visitor_*_any_op_{ch,cs} to - each file. These generate the <<= and >>= operators for all the - types. - - * TAO_IDL/be_visitor_scope.cpp: Added a check to see if a node in - the scope is NUL or not. - - * TAO_IDL/be_include/be_state.h - - AND - - TAO_IDL/be/ - {be_state, be_state_argument, be_state_array, be_state_attribute, - be_state_exception, be_state_exception, be_state_operation, - be_state_sequence, be_state_structure, be_state_typedef, - be_state_union}.cpp: - - All these files are no longer needed. - -Tue May 26 09:40:42 1998 Carlos O'Ryan - - * tests/Makefile: - NestedUpcall was not on the list. - - * tests/NestedUpcall/Makefile: - Added a .PRECIOUS directive. - - * tests/NestedUpcall/Reactor.idl: - The file was full of ^M (i.e. it was using DOS end-of-line) - characters; that was confusing the IDL compiler. - - * TAO_IDL/be/be_visitor_args.cpp: - The code generation for strings and anys as out parameters was - broken. - -Tue May 26 01:46:23 1998 Irfan Pyarali - - * tao/Timeprobe.h: Broke up this file in small pieces. The time - probe map is now split over many files, reducing the - dependencies. - -Mon May 25 18:42:25 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp: added - -ORBobjrefstyle url and -ORBport 0 to both the client and server - arguments. - -Mon May 25 15:54:01 1998 Carlos O'Ryan - - * tao/Timeprobe.h: - Protected the file against multiple inclusion. - - * tao/Makefile: - * tao/orbsvcs/orbsvcs/Makefile: - Updated dependencies. - -Sat Apr 18 01:27:52 1998 Irfan Pyarali - - * tao/Timeprobe.h: Added more timeprobes to POA, ORB, and GIOP. - - * TAO: Change the use of time probes. The new ACE scheme is now - used. - -Mon May 25 11:58:35 1998 Carlos O'Ryan - - * tests/Quoter/client.cpp: - * tests/Quoter/Factory_Finder.cpp: - * tests/Quoter/Generic_Factory.cpp: - * tests/Quoter/Life_Cycle_Service.cpp: - Added several .in() calls to disambiguate things, otherwise g++ - gets really confused. - -Mon May 25 10:04:52 1998 Carlos O'Ryan - - * tao/GIOP.cpp: - Removed some superflous memory allocations and copys. - - * tao/CDR.cpp: - write_octet_array_mb() was returning -1, but it should return a - CORBA_Boolean, thanks to David Levine (levine@cs.wust.edu) for - detecting this one. - -Mon May 25 09:55:36 1998 David L. Levine - - * ace/Sequence.cpp (TAO_Unbounded_Sequence ctor): initialize base - class before data members. - -Sun May 24 22:04:34 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_args.cpp: - Fixed some mistakes in previous change. - -Sat May 23 21:50:00 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - The no copy marshalling of octet sequences can only be applied - if the octet sequence owns its memory through a message block. - - * tao/Connect.cpp: - The input stream is allocated from the heap to permit the no - copy optimizations to work. - - * tao/GIOP.cpp: - Fixed some unitialized memory read problems. - - * tao/Request.cpp: - The result was not released. - - * tao/Sequence.h: - * tao/Sequence.cpp: - Added constructor based on a Message_Block. - Fixed memory deallocation in _allocate_buffer() for octet - sequences. - - * tao/Typecode.cpp: - The buffer was not released every time. - - * TAO_IDL/be/be_visitor_args.cpp: - The return value must be allocated by the upcall and is held in - a _var variable to guarantee automatic release. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - The result is released by the request, no need to release it in - the invocation. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Initialize the octet sequence using a Message Block to exploit - the no copy marshalling. - - * tao/Any.cpp: - The cdr buffer must be released always. - -Fri May 22 16:39:14 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (NS_NamingContext): Use - the lock returned by server_factory ()-> create_servant_lock () - instead of hacking its own. - - * tao/default_server.cpp (create_servant_lock): Changed to use - ACE_Recursive_Thread_Mutex to avoid further trouble. - -Fri May 22 12:29:28 1998 Irfan Pyarali - - * tao/Connect.cpp (handle_message): Simplified code in this file. - - * tao/GIOP.cpp (writev_n): Changed TAO to use the new - ACE_IO_Vector class. - - * poaC.* (PortableServer): Updated the old exceptions in the POA - generated code. - - * tao/Server_Request.h (IIOP_ServerRequest): Merged the - ServerRequest and the GIOP_RequestHeader class into one - class. When these classes were separate, there were too many - questions about ownership of memory. The separation also caused - extra memory allocations and tight coupling between the two - classes. - -Fri May 22 10:24:48 1998 David L. Levine - - * tests/Quoter/Factory_Finder.cpp,Generic_Factory.cpp, - Life_Cycle_Service.cpp,Quoter_Impl.cpp: - added explicit int return value to function definition. - - * tests/Quoter/Criteria_Evaluator.cpp (getInitialization): - initialized sequence_ptr to 0 to avoid warning about use - of uninitialized variable. It looks like the implementation - is incomplete, though. - -Fri May 22 10:15:30 1998 Carlos O'Ryan - - * tao/ORB_Core.cpp: - The -ORBCDRtradeoff option had no effect, thanks to David Levine - (levine@cs.wust.edu) for catching that one. - -1998-05-22 Torben Worm - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp - Removed unreached statement - -Fri May 22 07:34:35 1998 David L. Levine - - * TAO version 0.1.24 released. - -Thu May 21 21:59:19 1998 David L. Levine - - * TAO version 0.1.23 released. - -Thu May 21 17:28:55 1998 David L. Levine - - * tao/GIOP.cpp (writev_n): added static cast of iov_len to - ssize_t to avoid signed/unsigned comparison. - - * tests/OctetSeq/OctetSeq.cpp (main): changed type of loop - index to u_int to avoid signed/unsigned comparison. - -Thu May 21 12:16:34 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - orbsvcs should go before TAO in the link line. - - * tests/Quoter/Makefile: - Pass a -I flag to the IDL compiler so it can find the - CosLifeCycle.idl file. - - * tests/POA/Default_Servant/Makefile: - * tests/POA/Generic_Servant/Makefile: - Added dependencies. - - * tests/OctetSeq/Makefile: - Updated dependencies. - - * tests/OctetSeq/OctetSeq.cpp: - Removed yet another signed/unsigned comparison. - Also was doing the wrong kind of cast. - - * tao/GIOP.cpp: - Fixed pointer airthmetic, it was done using "void*" instead of - "char*". - - * tao/CDR.cpp: - Fixed problems in error detection for OutputCDR::adjust. - -Wed May 20 21:25:33 1998 David L. Levine - - * tao/CDR.cpp: Changed a few locals from int to size_t to - avoid signed/unsigned comparison. Added const to a char * - reinterpret cast. Wrapped and unreachable return with - ACE_NOTREACHED. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: started migration - to ACE_Stats. - -Wed May 20 16:44:29 1998 Nanbor Wang - - * tao/tests/NestedUpcall/{server,client}.dsp: Updated settings. - -Wed May 20 12:54:40 1998 Irfan Pyarali - - * tao/POA: Added the following optimizations to the POA: - - - Use the new ACE_CString to make sure that no malloc/strcpy are - done while the IOR is being parsed. This optimization is - valid irrespective of how deep/long the POA name is. - - - The class that holds the ObjectId in the IOR is now allocated - off the stack instead of coming from the heap. - - - Timestamping and checking for persistent/transient Ids in the - POA can be disabled by using POA_NO_TIMESTAMP flag in the TAO - config file. - - * tao/ORB_Core.cpp (create_and_set_root_poa): Renamed the RootPOA - from "RootPOA" to "" (the empty string). - -Wed May 20 12:10:12 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - OutputCDR buffers grow by appending a message blocks using the - cont() field. - - * tao/GIOP.cpp: - When sending an OutputCDR use writev to send the message block - chain. - - * tao/decode.cpp: - Added support for no copy marshalling of octet sequences. - - * tao/decode.cpp: - * tao/encode.cpp: - Reverted part of a change by Andy because it simply breaks tons - of code. The change in question was passing the address of a - pointer to a string (or wstring) to the - marshlling/dermarshalling interpreter, but only when the string - was a field of a structure. - - * tao/orbconf.h: - * tao/params.h: - * tao/params.i: - * tao/params.cpp: - * tao/ORB_Core.cpp: - * docs/Options.html: - Added options to control the tradeoff between copy vs. no copy - marshalling of octet sequences. If the octet sequence is "small - enough" and the current CDR buffer contains enough space the - octet sequence is copied instead of chained with the buffer. - - * tao/Typecode.cpp: - More fixes to avoid crashes at shutdown. - - * tao/Any.cpp: - The start() method was changed to begin() it looks more STL - like. Also removed a bunch of casts that are no longer needed. - - * tao/Align.h: - Corrected a typo in a comment. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - Reduce the maximum number of suppliers, consumers and messages, - otherwise we exceed the maximum stack size on NT. - - * orbsvcs/Event_Service/Event_Service.cpp: - Fixed error message. - - * tests/CDR/CDR.dsw: - * tests/CDR/growth.dsw: - * tests/CDR/growth.dsp: - Added growth to the project file. - - * tests/CDR/growth.cpp: - Workaound MSVC++ bug wrt conversions from UINT64 to double. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - Use larger sequences. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Fixed ambiguous use of [] operator. - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - For Win32 Debug we use aced.lib. - - * tests/Cubit/TAO/MT_Cubit/server.dsp: - Added orbsvcs.lib to the library list. The client will not - compile due to unportable use of getrusage. - - * tests/OctetSeq/OctetSeq.dsw: - * tests/OctetSeq/OctetSeq.dsp: - Added a project file for this test. - - * tests/OctetSeq/OctetSeq.cpp: - Fixed several portability problems. - The OutputCDR is not preallocated. - - * tests/Param_Test/tests.cpp: - Fixed bug in bounded string sequence test. - -1998-05-20 Torben Worm - - * orbsvcs/tests/Concurrency/CC_client.cpp - Fixed errors causing compilation problems on VxWorks. - -Wed May 20 08:40:51 1998 David L. Levine - - * orbsvcs/orbsvcs/Propery/CosPropertyService_i.cpp: fixed - instantiation #pragmas. - - * orbsvcs/orbsvcs/Naming/Naming_Service.cpp (parse_args): - removed break; following an ACE_ERROR_RETURN, to avoid compile - warning. - - * tao/POAC.cpp: initialized some retvals, of enum types, to -1 - to avoid GHS compile warnings. The warnings were all in - exception handling blocks, so performance isn't an issue here. - - * tests/Cubit/TAO/IDL_Cubit/README: added instructions on how - to build the client without the ACE and TAO libraries for - VxWorks. Thanks to Umar Syyid for asking - about this. - -Tue May 19 12:19:42 1998 Carlos O'Ryan - - * tao/Typecode.cpp: - Fixed crash at shutdown, TypeCode is a reference counted type, - but in some points they were removed by a simple "delete". - -Mon May 18 16:46:46 1998 Irfan Pyarali - - * tao/POA.cpp (parse_key): Changed the processing of IORs so that - POA names are not copied. Only a pointer is kept to the correct - place in the IOR. - -Mon May 18 12:34:57 1998 Darrell Brunsch - - * tao/Connect.cpp: Debug messages now check - Service_Configurator::debug() to see if -ORBdebug - is specified. - -Mon May 18 09:00:00 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: added forward - declarations of scheduling strategy and dynamic scheduler - classes - - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: added - conditional inclusion of strategy scheduler header file. - -Sat May 16 13:56:01 1998 David L. Levine - - * orbsvcs/orbsvcs/Channel_Clients_T.h - (ACE_Push{Consumer,Supplier}_Adapter); added (private) - declarations of copy constructors. g++ 2.7.2.3/Solaris - needs them, to avoid missing definitions of the copy - constructors when linking with orbsvcs/EC_Gateway.cpp. - - * orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp: added TAO_Object_Manager - instantiations. g++/LynxOS 2.5.0 needs them. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp (print_priority_info): - replaced Solaris priocntl () system calls with a call to - ACE_OS::lwp_getparams (). This allowed removal of #includes - of the priocntl headers, which were causing warnings with - g++ because _REENTRANT was #defined after they were #included. - - * orbsvcs/orbsvcs/Propery/CosPropertyService_i.cpp: fixed - instantiation #pragmas. - -1998-05-15 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp - (delete_all_properties): Removed the warnings by having _out - variables instead of having _var variables. - -1998-05-15 Torben Worm - - * orbsvcs/orbscvs/Concurrency/CC_Lock: - Added some debugging statements - * orbsvcs/tests/Concurrency/CC_client.cpp - orbsvcs/tests/Concurrency/CC_client.h - orbsvcs/tests/Concurrency/CC_naming_service.cpp - orbsvcs/tests/Concurrency/CC_naming_service.h - orbsvcs/tests/Concurrency/CC_tests.cpp - orbsvcs/tests/Concurrency/CC_tests.h: - Added more tests and diagnostics - -Fri May 15 11:12:26 1998 David L. Levine - - * orbsvcs/orbsvcs/Makefile: re-enabled EC_Gateway build. The - problem appears to be only with g++. - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: added - template instantiations. - - * orbsvcs/orbsvcs/Makefile: re-enabled CosPropertyService_i.cpp - build. - - * Makefiles in orbsvcs and tests: removed DCFLAGS = -g. That - should only be defined in the ACE platform_macros file. - -Fri May 15 10:42:22 1998 Carlos O'Ryan - - * tests/POA/Makefile: - * tests/POA/Forwarding/Makefile: - Removed the Forwarding test because it only compiles on NT. - - * tests/POA/Generic_Servant/Makefile: - Removed outdated comment. - -Fri May 15 09:33:47 1998 David L. Levine - - * TAO version 0.1.22 released. - -Fri May 15 08:40:40 1998 David L. Levine - - * orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp: added template - instantiations. - - * orbsvcs/orbsvcs/Makefile: commented out Event/EC_Gateway and - Property/CosPropertyService_i because they cause build failures. - - * Makefile: added .PHONY for phony targets. - -Fri May 15 00:25:29 1998 Douglas C. Schmidt - - * TAO version 0.1.21 released. - -Thu May 14 16:39:15 1998 Aniruddha Gokhale - - * tao/Server_Request.{h,cpp}: Added an extra environment parameter - to the marshal method. This change was required since we wanted to - keep the ORB related exceptions and the user supplied - operation-raised exceptions to be separate. - - * tao/{POAS,PolicyS}.cpp: Made several changes to the IDL - compiler-generated code that were necessary due to the changes - made to the Server_Request's marshal interface explained above. - - * tao/{encode,decode}.cpp: Made a minor change by passing the - address of the void pointer for the string and object cases. This - needs to be thoroughly tested. - - * tao/orbconf.h: Added a conditional macro called TAO_NAMESPACE - that generates either "namespace" or "struct". - - * TAO_IDL/be/be_visitor_module.cpp: The code for the module now - uses the TAO_NAMESPACE macro. - - * TAO_IDL/be/be_visitor_constant.cpp: We were not checking of the - constant was imported or not. In addition, inside the stub - generation code, we were incorrectly checking if the header was - generated or not. Thanks to Andrew Harbick - for providing the bug report that led to - this fix. - - * TAO_IDL/be/be_visitor_operation.cpp: Modifications that were - necessary due to the changes in the Server_Request class and our - policy of distinguishing between ORB raised and user-raised - exceptions. - - * TAO_IDL/be/be_visitor_interface.cpp: Similar changes as in - be_visitor_operation.cpp for the _is_a_skel skeletons. - -Thu May 14 15:20:28 1998 David L. Levine - - * tests/Quoter/Makefile: moved TAO_ROOT definition outside of - "ifdef trader" block. - -Thu May 14 14:34:40 1998 Michael Kircher - - * orbsvcs/orbsvcs/Makefile: CosLifeCycle is now compiled - by default. - -Thu May 14 14:10:40 1998 Michael Kircher - - * tests/Quoter/{Factory_Trader.cpp, Factory_Trader.h - Makefile, run_test.sh}: Factored out the code depending - on the Trading Service. The standard compilation does - now not use the Trading Service. The Makefile has - to be called using the "trader=1" option to activate - compilation of the parts using the Trading Service. - "run_test.sh" will not use by default the - creation service "lifecycle service object", instead - it will ask the Generic Factory directly - -Thu May 14 14:10:26 1998 Carlos O'Ryan - - * tests/Param_Test/tests.cpp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added the right .in() or .out() calls for some T_var types - passed to functions expecting a T_ptr or T_out parameter. - -Thu May 14 13:14:40 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: - * tests/Cubit/TAO/IDL_Cubit/client.h: - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Added a simple test for octet sequences, it tries to compare the - end-to-end cost of a normal sequence (longs) vs an octet - sequence; it compares the cost for a small sequence vs a - small sequence and then repeats the test for a large - sequence. To make the comparison more acurate it uses the same - number of bytes in the sequence as in the sequence, - not the same number of elements. - - * tao/Sequence.h: - * tao/Sequence.i: - The message block accessor can be constant now. - - * tao/Typecode.h: - * tao/Typecode.i: - * tao/Typecode.cpp: - Clean up the destruction code: made the destructor nilpotent to - avoid double destructions. Also removed the redundant operator - new and operator delete; they were not doing any actual work. - -Thu May 14 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Makefile: Removed PropertyService from the - conditional compilation. - -Thu May 14 10:00:37 1998 Carlos O'Ryan - - * tests/OctetSeq/OctetSeq.cpp: - Removed signed/unsigned comparison warnings. - -Wed May 13 21:48:08 1998 David L. Levine - - * tests/Quoter/Makefile: define TAO_ROOT if it's not defined. - - * TAO/orbsvcs/tests/Concurrency/tmplinst.cpp, - TAO/tests/Cubit/TAO/{IDL,MT}_Cubit/tmplinst.cpp, - TAO/tests/Param_Test/tmplinst.cpp, - TAO/tests/Thruput/TAO/tmplinst.cpp: - removed TAO_Unbounded_Sequence instantiation - because it's now in libTAO. - -Wed May 13 18:18:56 1998 Douglas C. Schmidt - - * TAO version 0.1.20 released. - -Wed May 13 16:12:38 1998 Michael Kircher - - * tests/Quoter/Makefile: changed the compiling options for - the IDL compiler - - * tests/Quoter/Quoter.idl: changed the include path - -Wed May 13 06:58:38 1998 David L. Levine - - * tao/Makefile: added Forwarding_Servant. - - * tao/IIOP_Interpreter.cpp: added TAO_Unbounded_Sequence - template instantiation. - - * tao/IIOP_Interpreter.cpp,Typecode.cpp,append.cpp, - decode.cpp,encode.cpp,skip.cpp: - changed ~0 to ~0u to avoid signed/unsigned comparisons. - - * tao/IIOP_Interpreter.cpp (calc_seq_attributes): - replaced TAO_Unbounded_Sequence with - TAO_Unbounded_String_Sequence. For unknown reasons, - GreenHills couldn't compile it without this change. - Thanks to Carlos for providing the fix. - - * many *.{h,i,cpp,idl} files: inserted RCS keyword string. - - * tests/Param_Test/tests.cpp: moved some return statements - out of loops, and changed some loop indexes to CORBA::ULong - to avoid signed/unsigned comparison. - - * tests/Param_Test/run_tests.sh: fixed traps, and added - uid component to port number. - -Wed May 13 00:05:52 1998 Irfan Pyarali - - * tao/ORB.i (orb_free_resources): This should return - !CORBA_ORB::orb_init_count_ instead of simply - CORBA_ORB::orb_init_count_. Thanks to Pavel Motuzenko - for pointing these two problems out. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (TAO_Naming_Server): - Fixed the initialization of naming_context_name_. - - * tests/POA/Forwarding/: Added new test that shows the forwarding - features in TAO. - - * tao/default_server.cpp (concurrency_strategy): Made sure that - the reactive strategy is returned if no concurrency_strategy has - been explicitly set by the user. This should allow servers to - work without a svc.conf file. - - * tao/Server_Request.cpp (set_result and set_exception): These - should not raise exceptions if this->exception_ is set. - - * tao/Servant_Base.cpp: Removed implementation for - TAO_ServantBase::_dispatch() and made it pure virtual. Also, - passed the system environment to the DSI implementation class. - - * tao/POAC.cpp (ForwardRequest): Fixed old IDL code for this - exception. - - * tao/Forwarding_Servant: New DSI servant used by the POA for - forwarding. - - * tao/POA.cpp (forward_object): Adding forward support to the POA. - -Tue May 12 17:34:06 1998 Carlos O'Ryan - - * tests/OctetSeq/OctetSeq.cpp: - Added missing template instantiation. - - * tao/Sequence_T.i: - Fixed typo in Unbounded sequences. - -Tue May 12 16:53:18 1998 Carlos O'Ryan - - * tao/orbconf.h: - * tao/Sequence.h: - * tao/Sequence.i: - * tao/Sequence.cpp: - * tao/Sequence_T.h: - * tao/Sequence_T.i: - * tao/Sequence_T.cpp: - * tao/decode.cpp: - Unbounded Sequences of octets are specialized so their - demarshalling (and eventually their marshalling) is implemented - by increasing the reference count on the CDR stream message - block and then setting the buffer as a pointer to that stream. - The buffers are copied upon assingment or copy ctor. - The feature is enabled by the macro TAO_NO_COPY_OCTET_SEQUENCES, - by default the macro is defined inTAO_ROOT/tao/orbconf.h - and only applies if the CDR stream owns its buffer, in other - words the optimization is disabled when the buffer is allocated - on the stack or is not allocated by the CDR stream. - - * tao/IIOP_Interpreter.h: - * tao/IIOP_Interpreter.cpp: - If the octet sequence is enabled then the size of a sequence - depends on its basic type. - - * tao/ORB.cpp: - If the octet sequence optimization is enabled we don't need to - instantiate TAO_Unbounded_Sequence. - - * tests/Makefile: - * tests/OctetSeq/Makefile: - * tests/OctetSeq/svc.conf: - * tests/OctetSeq/test.idl: - * tests/OctetSeq/OctetSeq.cpp: - Added a simple test that just writes an octet sequence in a CDR - stream and then reads it back. The test compares the time - against a char sequence. - - * tao/GIOP.cpp: - Changed several system exceptions from COMPLETED_MAYBE to - COMPLETED_NO. - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: - Added missing forward declaration for ACE_Scheduler. - - -Tue May 12 16:48:46 1998 Seth Benjamin Widoff - - * tao/corba.h: - Added a new macro TAO_CHECK_ENV_RETURN_VOID -- same as - TAO_CHECK_ENV_RETURN, but for methods with no return value. - -Tue May 12 15:22:53 1998 Carlos O'Ryan - - * tests/Param_Test/driver.cpp: - * tests/Param_Test/tmplinst.cpp: - Added missing template instantiations. - -Tue May 12 13:45:45 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.{cpp,h}: - Fixed compile problem when using ACE_Scheduler - instead of ACE_DynScheduler - -1998-05-12 Torben Worm - - * Reordered initializers and added virtual destructors to - the files orbsvcs/tests/Concurrency/* files. - Updated README files in orbsvcs/tests/Concurrency and - orbsvcs/Concurrency_Service - -Mon May 11 18:11:03 1998 Carlos O'Ryan - - * tests/Param_Test/README: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/options.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/tests.cpp: - * tests/Param_Test/tests.h: - Added many tests including bounded sequences of different types, - sequences of Any, Typecode and others. We know that some of this - tests still do not work. Thanks to Rob E. Thornton - for his collaboration on this. - -Mon May 11 17:00:00 1998 Chris Gill - - * ace/ace_dll.dsp - orbsvcs/orbsvcs/RtecScheduler.idl - orbsvcs/orbsvcs/orbsvcs.dsp - orbsvcs/orbsvcs/Sched/Config_Scheduler.{cpp,h} - orbsvcs/orbsvcs/Sched/DynSched.{cpp,h} - orbsvcs/orbsvcs/Sched/Scheduler.h - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{cpp,h} - - Integrated strategized scheduler with off-line scheduling - interface in Config_Scheduler.{cpp,h}. To use the - strategized scheduler, define the following symbols - in ace/config.h (you can substitute RMS, etc for MUF, - and can choose a different value for the minimum critical - priority - more on this in the release notes, once the - dynamic portion is integrated): - - #define TAO_USES_STRATEGY_SCHEDULER - #define TAO_USES_MUF_SCHEDULING - #define TAO_MIN_CRITICAL_PRIORITY 0 - - -Mon May 11 07:57:47 1998 David L. Levine - - * orbsvcs/Naming_Service/Naming_Service.cpp (init): - dereferenced second arg in init () call. Thanks to - Kirill Rybaltchenko for - reporting this. - - * IIOP/test/Makefile, IIOP/tests/Cubit/TAO/Makefile, - orbsvcs/tests/Trading_Service/Makefile, tests/CDR/Makefile, - tests/Cubit/CORBAplus/MT_Cubit/{client,server}/Makefile, - tests/Cubit/TAO/{DII,MT}_Cubit/Makefile, - tests/POA/Generic_Servant/Makefile, tests/Param_Test/Makefile, - tests/Thruput/CORBAplus/Makefile: removed Log from clean target. - - * TAO/tests/Cubit/CORBAplus/MT_Cubit/client/Makefile, - TAO/tests/Demux_Test/CodeGen/Makefile, - TAO/tests/Thruput/COOL/Makefile: - replaced WRAPPER_ROOT with ACE_ROOT. - -Sat May 09 12:01:37 1998 David L. Levine - - * orbsvcs/orbsvcs/Makefile: removed Log from clean target, - because it's now a directory that we need to keep. - - * orbsvcs/tests/Concurrency/NS_client.cpp (CosNaming_Client ctor): - reordered initializers to match declaration order. - (list_contents): changed loop index type to CORBA::ULong to avoid - signed/unsigned comparison. - - * tao/Makefile: suppress -g when building POA.o with ghs for - VxWorks/i86. - - * tests/Cubit/COOL/{IDL,MT}_Cubit/Makefile: added(ACELIB)(LIBS) - to VLDLIBS. Thanks to Steve Kay for - reporting that link lines were missing -lACE on Chorus. - -Fri May 8 16:32:55 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_exception.cpp: In the typecode generation, we were - incorrectly generating the byte order flag as 0 meaning big - endian. This is now changed to TAO_ENCAP_BYTE_ORDER. - - * TAO_IDL/be/be_visitor_exception.cpp: A spurious "return 0;" - statement in the middle of the code led to generation of empty - code for exception constructors. - - * TAO_IDL/be/be_visitor_interface.cpp: Added the "ACE_CORBA_1" - macro to the generated code so that MSVC++4.2 will be able to - parse the generated code. - - * orbsvcs/orbsvcs/Naming_Service/Naming_Service.cpp: We were - passing a variable of type ORB_var to a method expecting an - ORB_ptr. g++ was not too happy with this. So now we use the in () - method on the _var variable. - - * tao/Connect.cpp: Removed a large segment of commented-out code - which I had kept to remind me to use it to handle the DSI - case. See the log entry for Server_Request.{h,cpp}. - - * tao/{POAC, PolicyC}.h: Used the ACE_CORBA_1 macro when the - classes inherit from CORBA::Object. MSVC++4.2 was not too happy - with CORBA::Object. It needed CORBA_Object. - - * tao/ServantBase.h: Removed the Environment parameter from the - invoke method of TAO_DynamicImplementation class. This was - suggested by Irfan. - - * tao/Servant_Base.cpp: (invoke): Added code after the invoke to - the DSI implementation is made. This code creates a REPLY message - and then uses the dsi_marshal method (described below) to marshal - outgoing parameters. These methods are called only if the request - was 2 way. - - * tao/Server_Request.{h, cpp}: Several changes made - - Added a data member that indicates if the request was oneway or - twoway. This is used by the DSI when it has to decide if a reply - message must be constructed or not. - - Changed the is_user_exception_ data member to - exception_type_. This now explicitly tells us if it was a - GIOP_USER_EXCEPTION or a GIOP_SYSTEM_EXCEPTION or - GIOP_NO_EXCEPTION. This change was required because we faced a - situation in which we not only needed to know if the exception was - a user or a system exception but we wnated to know if there was an - exception itself or not. So a boolean variable was not sufficient - for this. - - Added a new method called "dsi_marshal". This is used by the DSI - to marshal the outgoing parameters. - -Thu May 07 19:14:16 1998 Douglas C. Schmidt - - * TAO version 0.1.19 released. - -Thu May 07 17:55:07 1998 Nanbor Wang - - * TAO/orbsvcs/orbsvcs/orbsvcs.dsp: - * TAO/orbsvcs/tests/Logger/server.dsp: Updated. Thanks to Carlos' - instruction on how to make the change. - -Thu May 7 16:11:00 1998 Robert Eric Thornton - - * orbsvcs/tests/Naming/ns_tree.cpp: added the NamingService to this - test. - -Thu May 7 15:29:46 1998 Carlos O'Ryan - - * TAO_IDL/be/be_codegen.cpp: - The warning was disabled before including other headers, it is - possible (and in some cases certain) that the headers will - enable the warning again. We now disable *after* all the - includes and re-enable at the end. Thanks to Darrell Brunsch - for catching this one before we even - tried it :-) - - * Makefile: - * orbsvcs/README: - The README file is generated from the docs/orbsvcs.html page - whenever a release is made. - - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/logger_i.h: - * orbsvcs/tests/Logger/logger_i.cpp: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Log/Logger_i.h: - * orbsvcs/orbsvcs/Log/Logger_i.cpp: - Moved the logging service implementation to the library. - - * TAO_IDL/be/be_codegen.cpp: - Generated #pragma to disable the "inheritance via dominance" - warnings on MSVC++; the warning is left on its original state - after when leaving the generated include files. - - * docs/orbsvcs.html: - Updated the document to reflect the new location of the Logging - Service implementation. - - * docs/orbsvcs.html: - Updated the documentation on the directory hierarchy and - contents. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Fixed template instantiation pragmas. - - * tests/CDR/basic_types.cpp: - * orbsvcs/tests/Concurrency/NS_client.cpp: - * orbsvcs/tests/Concurrency/CC_client.cpp: - * orbsvcs/tests/Concurrency/CC_tests.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: - * tao/skip.cpp: - * tao/encode.cpp: - * tao/Server_Request.cpp: - Fixed several warnings, mostly unused variables. - -Thu May 7 14:28:01 1998 Douglas C. Schmidt - - * Moved the explanation about adding IDL files to MSVC++ from the - docs/releasenotes/index.html file to the TAO-INSTALL.html file. - -Thu May 07 11:19:25 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: added - ACE_Condition instantiation. - - * tao/Object_Key.idl,POA.idl,Policy.idl: moved *.idl files - to *.IDL, so that the Makefile rules won't automatically - regenerate them. Inserted RCS keyword string. - - * tao/Makefile: removed rule to suppress regeneration from - .idl files, because it's no longer needed. - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: reordered - initializers to match declaration order. - - * orbsvcs/tests/Sched/DynSched.cpp,Makefile: added Quantify probes. - -Thu May 7 00:44:55 1998 Douglas C. Schmidt - - * Reverted a bunch of s/_env/env/g changes... Thanks to Sumedh - for reporting these. - -Wed May 6 23:58:22 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor.h: - Added missing int in method declaration. - -Wed May 06 23:51:37 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.dsp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.dsw: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test now compiles on NT, it lacked a project file and we had - to workaround some MSVC++ bugs. - - * orbsvcs/orbsvcs.dsw: - Added the tests to the main workspace. - - * orbsvcs/orbsvcs/orbsvcs.dsp: - * orbsvcs/orbsvcs/Event/EC_Gateway.h: - The export macro was wrong and Event/EC_Gateway files were not - in the project file. - -Wed May 6 18:16:42 1998 Douglas C. Schmidt - - * tests/NestedUpcall: Added the new "one-button" features for the - nested upcalls test so that it can run with a single file, just - like IDL_Cubit. Thanks to Rob Thornton for - this enhancement. - -Wed May 6 08:46:18 1998 Aniruddha Gokhale - - * rules.tao.GNU: Added dependency of the generated files on the - TAO_IDL compiler (in addition to the source IDL files). Thanks to - Jim Penny for suggesting this - modification. - -Wed May 06 06:36:18 1998 David L. Levine - - * tests/Param_Test/tests.cpp: (Test_Any::check_validity): added - missing definition of short_in. - - * tests/Param_Test/run_test: filtered "grep" out of ps output, - and use SIGCHLD instead of hard-coded signal number. - -Wed May 6 00:28:09 1998 Marina Igorevna Spivak - - * orbsvcs/tests/Naming/ns_tree.cpp: made several minor - modifications to the test program to make it work for compound - names. - -Tue May 5 15:40:09 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: Changed the - ACE_SYNCH_MUTEX to ACE_SYNCH_RECURSIVE_MUTEX to try and - workaround intra-class method deadlocks. Thanks to Marina for - pointing this out. - - * tao/orbconf.h: Added macros for - TAO_SOCK_{STREAM,ACCEPTOR,CONNECTOR}, which can be overridden in - an ACE config.h file to select a different set of transport - APIs. - - * tao/{ORB_Core,GIOP,Server_Strategy_Factory,ORB}.{h,cpp}: Changed - all uses of ACE_SOCK_* to TAO_SOCK_* so we can override this to - use a different transport API without changing the code at - compile time. - -Mon May 4 11:57:34 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Multiple/gen_latency: - * orbsvcs/tests/EC_Multiple/gen_throughput: - * orbsvcs/tests/EC_Multiple/gen_utilization: - * orbsvcs/tests/EC_Multiple/histo.pl: - * orbsvcs/tests/EC_Multiple/latency.pl: - * orbsvcs/tests/EC_Multiple/run_latency: - * orbsvcs/tests/EC_Multiple/run_schedule: - * orbsvcs/tests/EC_Multiple/run_throughput: - * orbsvcs/tests/EC_Multiple/run_utilization: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - The test now has two sets of consumers and two sets of - suppliers, running at different rates, with different events, - with varying number of suppliers and or consumers, etc. - Statistics are kept for latency, total time, laxity, time per - event, etc. - The scripts were updated for the new command line interface. - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - Fixed minor error in debug message. - - * orbsvcs/orbsvcs/Scheduler_Factory.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - The Runtime_Scheduler uses the POD_RT_Info array directly now. - - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - Set the LWP priority of the task to obtain proper priorities. - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - The split some methods in the MT safe and non-MT safe counter - parts (i.e. the version that takes locks and the _i version that - does not), the method appeared to dead-lock in shutdown. - Anyway the methods are only used at shutdown and startup so - nothing should be broken by this. - - * orbsvcs/tests/EC_Multiple/README: - * docs/releasenotes/ec.html: - Updated the documentation on the multiple EC test. - -Mon May 4 09:35:07 1998 Torben Worm - - * Comitted the files for the concurrency service - * Updated release notes - -Mon May 04 09:05:04 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp,Util_Thread.cpp,server.cpp: - removed ACE_OS::thr_setprio class to set LWP priority, now that ACE - handles that internally. - -Sun May 03 02:05:21 1998 Douglas C. Schmidt - - * TAO version 0.1.18 released. - -1998-05-02 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Updated the status information for - PropertyService. - -Sat May 2 14:28:41 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (init): There was a bug - in Ross' code that was failing to initialize the - naming_context_var_. This is now fixed. Thanks to Andy for - noticing this. - -Sat May 2 09:58:41 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_exception.cpp: We now make the *_alloc - method as a static method of the generated Exception class. The - reason for doing this was that some exceptions get borrowed from - included files. Now if we make the _alloc method as a static - method in the generated *C.cpp file, we don't see it in other - files where it is needed. The best way to do this was to make a - _alloc method as a static method on the generated exception class. - - * TAO_IDL/be/be_visitor_operation.cpp: Changes made above required - some trivial modifications. However, it remains to be see if - MSVC++ accepts the generated code or not OR whether it needs the - ACE_NESTED_CLASS macro. I am waiting for reports on this. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.{h,cpp}:(init): Due to - application of patches, the signature of the - TAO_Naming_Server::init got reverted to the older and buggy - version. This is now fixed. - -Fri May 01 17:56:07 1998 Nanbor Wang - - * tao/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Moved #include of - Arg_Shifter.h after #include of tao/corba.h so that ACE_Export - is properly defined. - - * tao/TAO.dsp: Removed Arg_Shifter.cpp from the project. - -Fri May 1 17:26:31 1998 Douglas C. Schmidt - - * orbsvcs/Naming_Service/Naming_Service.cpp (init): Added support - for the -NScontextname option. Thanks to Ross J. Lillie - for this feature. - - * orbsvcs/orbsvcs/Naming_Utils.h: Added "argv/argc" parameters to - the TAO_Naming_Server::init() and constructor methods. Thanks - to Ross J. Lillie for this feature. - - * tao/Makefile: Moved the Arg_Shifter from TAO to ACE since it is - generic and not TAO-specific. - -Fri May 1 13:05:56 1998 Aniruddha Gokhale - - * tao/Stub.h: Added a new structure called TAO_Exception_Data that - holds the typecode and pointer to a function for the user - exception we are dealing with. This was necessary since the - interpreter had no clue of how to allocate storage for the - exception we are dealing with and how to decode it. - - * tao/GIOP.{h, cpp}: Affected by the above change is the "invoke" - method which takes the list of exceptions. It is this method that - is responsible for allocating the right amount of storage for the - exceptions and decode it. - - We kept the original invoke method as it is because the newer - signature cannot work with DII. This still needs work. - - * tao/IIOP_Object.cpp:(do_static_call) - When "invoke" is called, - we now pass the TAO_Exception_Data table. - - * TAO_IDL/be/be_visitor_operation.cpp: The exceptionlist table - that gets generated is now an array of TAO_Exception_Data. In - addition, it is made static. - - * TAO_IDL/be/be_visitor_exception.cpp: Added code to generate the - *_alloc function that allocates memory for the exception. - -Fri May 1 09:55:56 1998 Aniruddha Gokhale - - * tao/POAS.cpp: In the initialization section of constructors for - some of the collocated classes, we had forgotten to use the - ACE_NESTED_CLASS macro. This is now fixed. - -Fri May 1 06:19:03 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface.cpp: Modified the generated code - for <<= and >>= operators. It involves more memory allocation. The - previous version was buggy because it was holding pointers to data - allocated on function call stacks. - - * Makefiles: A few Makefiles have been updated with the .PRECIOUS - clause. Otherwise the make was deleting some IDL compiler - generated files. - - * tao/Marshal.i: trivial changes. Probably not even required to - do. Instead of casting the void pointer at the time of passing the - parameter to release, we do it prior to it and then pass the local - variable. - - Added theId: ChangeLog,v 1.1421 1998/05/15 05:26:25 schmidt Exp CVS string. - - * tests/Param_Test: Added support to handle Anys of Object - references (In our case Anys of Coffee objects). - -Thu Apr 30 20:18:44 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/client.{h, cpp}, server.{h, - cpp}: The client and server programs exclusively for testing - CosPropertyService. - -Thu Apr 30 15:35:45 1998 David L. Levine - - * tao/tests/Cubit/TAO/MT_Cubit/Task_Client.*,Util_Thread.*, - client.cpp,server.cpp: adapted to work on VxWorks. - -Thu Apr 30 14:26:00 1998 David L. Levine - - * TAO version 0.1.17 released. - -Thu Apr 30 10:06:19 1998 David L. Levine - - * tao/tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: moved the - start barrier from the stack frame of start_servants () - to the stack frame of main (). This turned out the be - the cause of the barrier failure on Linux. And on Solaris86, - but it only appeared there when the ior file was in /tmp. - That's because start_servants () was able to write the file - more quickly there, and then destroy the old barrier. Threads - are evil. - -Wed Apr 29 14:06:35 1998 Aniruddha Gokhale - - * tao/{Object, POAC, POAS, PolicyC, PolicyS}.cpp: Moved all the - static Param_Data and Call_Data tables from the outer global scope - to the scope of the respective stubs and skeletons. This was - necessary since the ORB-owned typecodes are now dynamically - allocated. Thus, if the tables remain in the global scope, the - values for typecodes get initialized to NUL. Thanks to Naga, - Sergio, and Sumedh who were trying in vain to understand why - things were failing. - - * TAO_IDL/be/be_visitor_interface.cpp: Moved the code generation - of static Param_Data tables for the _is_a_skel from the outer - global scope to inside the skeleton for _is_a_skel. - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: On line 119 to the call - to _narrow, we were passing the Object_var. g++ did not like - it. Hence we take the in () of the var object and pass it to - _narrow. - - * tao/skip.cpp: In Sequence::skip, we did not have a return - TRAVERSE_CONTINUE statement after successfull skipping. Hence we - always returned an exception. The same iwas true with Array::skip. - Thanks to Alex (alex@cs.wustl.edu) for reporting this bug. - -Wed Apr 29 12:26:12 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added two precomputed schedules that are selected when the - argument to -s is either RUNTIME1 or RUNTIME2, but it is still - possible to have a global scheduler (-g) or to compute new - schedules (-s ). - The amount of work performed in the high priority threads can be - controlled using the -w option. - - * orbsvcs/tests/EC_Multiple/latency.pl: - * orbsvcs/tests/EC_Multiple/run_utilization: - * orbsvcs/tests/EC_Multiple/run_overhead: - * orbsvcs/tests/EC_Multiple/run_latency: - * orbsvcs/tests/EC_Multiple/gen_utilization: - * orbsvcs/tests/EC_Multiple/gen_overhead: - * orbsvcs/tests/EC_Multiple/gen_latency: - This scripts execute the test with different configurations - designed to measure latency, overhead, utilization, etc. - The run_* scripts execute the test, the gen_* scripts filter the - results and generate Encapsulated PostScript and JPEG files with - the results. - I've tried to make the file naming conventions consistent so its - easier to add new scripts or tests. - - * orbsvcs/Naming_Service/Naming_Service.h: - * orbsvcs/Naming_Service/Naming_Service.cpp: - Added an option (-p) to dump the process ID into a file, this is - useful when running the service from a script that has to shut - it down. - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - Fixed some memory managment problems, but the whole class has to - be revised to be more compliant. - -Wed Apr 29 07:08:18 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - fixed loop indices to follow ANSI scoping rules and avoid - signed/unsigned comparisons. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (run_tests): cast the - entire expression to u_long, not just the first term. - -Tue Apr 28 13:02:25 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: The tables for Param_Data - and Call_Data in the stubs and skeletons are now generated inside - the stub/skeleton instead of being global. This change was - necessitated since we removed all statics from the TAO library. - - * TAO_IDL/be/be_visitor_structure.cpp: Some trivial indentation - changes and moved code a bit so that related code gets generated - near each other. - - * tao/Exception.cpp: Got rid of all static typecodes for system - exceptions. In addition, there was an error in - "make_standard_typecode" where we were creating a new - ExceptionList for every call to make_standard_typecode. This is - now moved to the init method. - - A few TypeCode definitions have been moved to - Typecode_Constants.cpp since these were owned by the ORB. - - * tao/Exception.h:(make_standard_typecode): The first parameter - now takes a reference to TypeCode_ptr. - - * tao/{Connect, GIOP, Server_Request}.cpp: Use the new TC_opaque - and TC_ServiceContextList typecode pointers rather than the - previous static TypeCode object. - - * tao/Marshal.cpp: Removed a lot of commented out code. - - * tao/Marshal.h: Added some documentation. - - * tao/ORB.cpp: Added a call to TAO_TypeCodes::init in the - init_orb_globals method. - - * tao/ORB.{h,i}: Missing documentation added. Added a new method - that returns a boolean value indicating if the ORB's reference - count for its globals has reached 0. The TypeCode destructor uses - this to get rid of ORB owned typecodes. - - * tao/Object_Key.idl: Added missing documentation. - - * tao/Sequence_T.h: Added missing documentation. - - * tao/Typecode.{h, cpp}: Refined the destructor such that ORB - owned typecodes are now destroyed once the reference count for - globals has reached 0. - - Added a new class called "TAO_Typecodes". It provides a namespace - to defined some static methods for initialization and finalization - of ORB owned typecodes. - - * tao/Typecode_Constants.cpp: Lots of changes. All typecodes are - now dynamically allocated. All the static allocation is removed. - - * tao/{append, skip}.cpp: In the respective append and skip - methods for Exceptions, we had forgotten to append/skip the - repository ID for the exception. In addition, we now use TC_opaque - pointer rather than the static object. - - * tao/decode.cpp: The static table __tc_consts had to be moved - inside the TypeCode::decode method since the typecodes are no more - static. Also, we use the newly defined TC_opaque typecode pointer. - - * tao/{encode, deep_copy, deep_free}.cpp: Used the TC_opaque - pointer instead of the static object TC_opaque that we previously - had. - - * tests/CDR/tc.cpp: Moved the static table of typecodes inside the - function since the typecodes are no more static. - -Mon Apr 27 16:46:42 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/*.cpp: put in RT class if running - as root, and set LWP priorities. - - * tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test: added this shell - script, which spawns the server and client (locally). - -Sun Apr 26 10:19:49 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The print_priority_info() routine is platform specific, but I - did not protect it with the right #ifdef/#endif block. - -Sun Apr 26 01:09:23 1998 Douglas C. Schmidt - - * TAO version 0.1.16 released. - -Sat Apr 25 16:14:02 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Added routine to print the scheduling parameters of the main and - scavenger thread. - Before starting we report all the user defined parameters for - the test execution. - The push() method consumes a little CPU via the is_prime() - method. - Fixed problem with auto_ptr<> usage. - For the short circuit case the timer is reset at the beginning - of handle_timeout(), otherwise the main thread sleeps a constant - amount of time. - Changed the option to set the timeout interval to -i and now -t - tries to run the test in the Time-shared scheduling class. - The main thread scheduling parameters are modified after - parsing the user arguments. - - * orbsvcs/tests/EC_Multiple/run_latency: - * orbsvcs/tests/EC_Multiple/run_utilization: - * orbsvcs/tests/EC_Multiple/gen_data: - This scripts are attempts to make single button entries for the - diverse configurations of this test. - -Sat Apr 25 08:36:08 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - added a few .in () dereferences and ACE_UNUSED_ARGs. - -Fri Apr 24 14:08:47 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test creates its own scheduling service now, so all the - invocations are collocated. - Added support for overhead test, but it is still untested. - - * orbsvcs/tests/EC_Multiple/Makefile: - Updated dependencies. - - * orbsvcs/tests/EC_Multiple/latency.pl: - The program generates number in usecs now, less need for - conversion here. - - * orbsvcs/tests/EC_Multiple/gen_data: - Improved the graphs, include titles, the time is in usecs, the - EPS files are generated (for LaTeX) and then converted to JPEG - (for HTML). - - * orbsvcs/orbsvcs/Makefile: - Added Event/EC_Gateway.{h,cpp} and updated dependencies. - - * orbsvcs/Naming_Service/Naming_Service.cpp: - Removed obsolete options from usage message. - -Fri Apr 24 10:15:37 1998 Michael Kircher - - * tests/Quoter/Generic_Factory.{h,cpp,dsp}: server for a - Generic Factory conforming to the LifeCycle Service - - * tests/Quoter/Generic_Factory_Impl.{h,cpp}: Implementation - of a LifeCycle Service conforming Generic Factory - -Fri Apr 24 10:08:37 1998 David L. Levine - - * tao/NVList.cpp: added ACE_Node template - instantiation. - -Fri Apr 24 00:18:05 1998 Douglas C. Schmidt - - * TAO version 0.1.15 released. - -Thu Apr 23 18:50:29 1998 Douglas C. Schmidt - - * TAO_IDL/ast_enum.h, - TAO_IDL/ast_exception.h, - TAO_IDL/ast_interface.h, - TAO_IDL/ast_module.h, - TAO_IDL/ast_operation.h, - TAO_IDL/ast_root.h, - TAO_IDL/ast_structure.h, - TAO_IDL/ast_union.h, - TAO_IDL/utl_scope.h: Changed 'friend int yyparse()' to - 'friend int tao_yyparse()' to reflect new changes. - - * The following changes will hopefully provide a framework - for getting rid of all the nasty problems with statics - in TAO! - - * tao/ORB: Added a new static method called init_orb_globals() - that initializes the globals when necessary. - - * tao/ORB: Added a new orb_init_count_ data member that keeps - track of the number of times ORBs have been initialized in order - to do a better job of managing globa ORB resources. - - * tao/Exception: Added a new method called fini() that deletes the - dynamically allocated exceptions list. - - * tao/Exception: Changed init_standard_exceptions() to init() to - be consistent. - - * tao/Marshal: Changed initialize() to init() to be consistent. - - * tao/IIOP_Interpreter: Changed init_table() to init() to be - consistent. - - * tao/ORB: Added support so that we make sure to only initialize - and destroy global ORB resources when the first/last ORB is - created/destroyed, rather than using static objects (which are - causing problems on shutdown). - -Thu Apr 23 16:20:58 1998 Douglas C. Schmidt - - * TAO/TAO_IDL/Makefile: Change the YY* symbols to ACE_YY* symbols - to avoid clashes if we link with other flex/yacc generated code. - -Thu Apr 23 15:48:29 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_structure, be_visitor_exception, - be_visitor_union, be_visitor_sequence}.cpp: The code generation of - the >>= operators is now improved to take into account the fact - that an Any may not own the value. In such cases, the >>= operator - should simply do a cast rather than retrieving the value from the - CDR member - - * tao/Any.{h,i}: Added a new method (TAO extension) returning a - boolean to indicate if the Any owns the data or not. This is used - by the >>= operators generated for user-defined types - - * tao/Any.cpp: The constructor and assignment operator of Any that - was creating a CDR stream used to point its ACE_Message_Block - member to a buffer that was allocated on the function call - stack. We now explicitly call "clone" on it to make a deep copy. - - * tao/GIOP.{h,i}: Added two methods that return the underlying - input and output CDR streams. - - * tao/IIOP_Object.cpp: (do_dynamic_call): Made major - modifications. We are now able to handle the case when the user - has not supplied the top level storage for out and return - parameters. For these cases, we use exactly the same logic as the - Any::decode method. We maintain a pointer to the part of the CDR - stream that holds the value and save it in the Any. It is the - application's responsibility to use the appropriate >>= methods to - retrieve the value. - - * tao/NVList.{h, i, cpp}: We now use ACE_Unbounded_Queue to - maintain the list of NamedValues. The original code was mixing up - C++ and C memory management by using calloc and realloc. This was - cauisng too many problems. At the same time, reallocing would - introduce a large number of deep_copies of the Anys that are held. - All the add_* and item methods have been affected. - - * tao/ORB.cpp: Modified the create_list method since the NVList - now uses ACE_Unbounded_Queue to maintain a list of - NamedValues. - - * tao/{append, encode, decode, skip}.cpp: For the Union::{append, - encode, decode, skip} methods, it was necessary to use the >>= - operators to retrieve the label values. We were originally using - casts to the void* returned by the Any::value () method. However, - since this returns the underlying CDR buffer, we need to use the - type-safe >>= operators. For the enum case label, we explicitly - invoke the decoder. - - * tao/Server_Request.cpp:(demarshal): We now create an NVList of - size 0 and then add individual items according to the - CallData_skel table. This is no more wasteful as in the previous - scheme because now we use ACE_Unbounded_Queue to mainatin the - internal list and hence growing the list does not result in huge - amounts of deep_copies. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: Fixed the usage for DII in - struct_dii and union_dii to use the >>= operators. - - * tests/Param_test/tests.cpp: Partially fixed the way DII tests - should be coded. Some of them are now working. I need to fix the - rest of them. - -Wed Apr 22 15:56:58 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - The test also has a collocated scheduling service now. - - * orbsvcs/tests/EC_Multiple/svc.conf: - Added a missing svc.conf file. - - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - The -n option can be used to specify the scheduling service name. - - * orbsvcs/orbsvcs/Scheduler_Factory.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - We can find scheduling services with different names now. - Removed all method that used resolve_initial_references() to - find the scheduling service; this was needed before the naming - service was working. - - * orbsvcs/tests/EC_Multiple/latency.pl: - * orbsvcs/tests/EC_Multiple/gen_data: - Simple scripts to process the data obtained in the experiments. - -Mon Apr 20 16:46:07 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface.cpp: An ACE_NESTED_CLASS was - getting generated with a blank first argument for cases where the - interfaces were defined in the outermost scope. This is now fixed - by using a conditional "is_nested". - -Mon Apr 20 13:23:30 1998 Carlos O'Ryan - - * tao/Server_Request.h: - * tao/Server_Request.cpp: - We keep a flag to determine whether the exceptions stored with - the set_exception() method are user exceptions or system - exceptions. - -Mon Apr 20 09:48:01 1998 David L. Levine - - * tests/CDR/growth.cpp (main): cast ACE_ONE_SECOND_IN_USECS - to ACE_UINT32 to avoid ambiguity when using ACE_U_LongLong. - - * tao/append.cpp (append): commented out unused local - "continue_append". - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (run_tests): removed - unused local "context_switch". Protected declarations of - "ptartTime" and "pstopTime" for CHORUS only. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - protected declaration of context_switch for ACE_HAS_PRUSAGE_T or - ACE_HAS_GETRUSAGE. - -Mon Apr 20 06:36:44 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: The generated typecode was incorect - in its encapsulation length. We were generating the entire - TypeCode length as the encapsulation length. - -Sat Apr 18 20:21:24 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_exception, be_visitor_sequence, - be_visitor_structure, be_visitor_union}.cpp: In the generated code - for the >>= operators, we were incorrectly passing the address of - the pointer to the decode method rather than simply passing the - pointer. - - * tao/Any.cpp: The value () routine either returns the cdr_ or the - value_ field depending on whether the Any owns the data or not. - - * tao/TypeCode.cpp: In private_equal, we had forgottent to account - for the tk_any case. - -Sat Apr 18 15:52:20 1998 Alexander Babu Arulanthu - - * tao/Exception.cpp (CORBA_Exception): Removed a debugging - statement assert (1==2) in the destructor of this class. - -Sat Apr 18 12:19:11 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (init_naming_service): - dereference orb and child_poa with in () in calls to - my_name_server_.init (). - -Sat Apr 18 10:14:13 1998 Aniruddha Gokhale - - * tao/Any.cpp: There was a mistake in some of the the >>= - operators in which for the "any owns data" case, we were - retrieving the data from the value_ field instead of the cdr_ - field. - - * tao/GIOP.cpp: An unwanted explicit template instantiation for - Unbounded sequences of TypeCode is now removed. - - * tao/decode.cpp: A very very subtle error. For the case of - Any::decode, our strategy was to let the Any maintain a pointer to - the CDR stream and eventually let the >>= operators do the - retrieve part. We were correctly maintaining pointers to the - duplicated ACE_Message_Block. Unfortunately, this - ACE_Message_Block was maintaining a data member which is the CDR - stream which was allocated on the function call stack of - "do_static_call". As a result, all kinds of weird results started - showing up. We now make an explicit copy. Although this scheme - will slow down the performance for Anys, at this time, this is the - only feasible solution to get things working. - - * tests/CDR: Added test for Any in basic_types.cpp - - * tests/Param_Test: Added some debug statements. - -Fri Apr 17 19:15:24 1998 Alexander Babu Arulanthu - - * tao/Any.h : - * tao/Any.cpp : Added static dump () method for debugging any - values. It prints out type and value (if the type is primitive). - -Fri Apr 17 15:35:27 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - An explicit ACE_Thread_Mutex was used, this is non-portable to - platforms without threads, the "Right Thing" is to use the macro - ACE_SYNCH_MUTEX. - -Fri Apr 17 13:29:46 1998 Nanbor Wang - - * tao/skip.cpp (skip): - * tao/deep_copy.cpp (deep_copy): - * TAO_IDL/be/be_decl.cpp (tc_name2long): Removed unreferenced - variables. - -Fri Apr 17 12:12:04 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: There was an error in the - way the return Any type was passed to the demarshal and marshal - routines of the generated skeleton code. - - * tao/Any.cpp: Error in the assignment operator for Any fixed. For - the Any owns case, we were copying the data from the value_ field - instead of the cdr_ field. - - * tao/decode.cpp: In Any::decode, we were setting the value_ field - of the Any to the ACE_Message_Block rather than setting the cdr_ - field. - - * tao/encode.cpp: In Any::encode, we were reading from the value_ - field of the Any rather than the cdr_ field. - - * tests/Param_Test: Added code for the Any test. This is still - under test. - -Fri Apr 17 02:38:13 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_exception, be_visitor_sequence, - be_visitor_structure, be_visitor_union}.cpp: We had a mismatch in - the signatures of operator <<= in the declaration and - implementation. In addition, we force the generated code for >>= - operator to own the allocated memory. - - * TAO_IDL/be/be_visitor_interface.cpp: In the code that generates - >>= operator, we also generate code such that the allocated memory - is owned by the Any - - * tao/Any.{h, cpp}: We now have two data members in class Any. We - keep the older semantics of the value_ field. In addition, we - maintain a ACE_Message_Block *cdr_ member. Originally we shared - the value_ variable to mean either a CDR stream or a pointer to - some data type. This was based on whether the Any owns the data or - not. However, this strategy does not work because in the >>= - operators for constructed types, we must hold on to the newly - allocated storage since we own it and we must free it. - - * tao/TypeCode.cpp: In the constructor, we were initializing the - internal buffer to point to 4 bytes past the actual buffer that - was passed as a parameter. Things were fine as long as we were not - transmitting typecodes. However, once we started doing that, we - realized that somehow the buffers kept on reducing by 4 as we kept - transmitting typecodes over the wire. Thus, a typecode receive don - the other end had a smaller buffer (and hence different contents) - than the original. We fix this by making our internal buffer point - ot the start of the buffer that was passed as a parameter. The - side-effect of this is that whenever we have to initialize a - TAO_InputCDR with this internal buffer, we must do so by - explicitly skipping the first 4 bytes (which contains the byte - order flag) and indicating that the length is 4 less than the - actual. - - * tao/decode.cpp: In TypeCode::decode, there was a very subtle - error. Whenever we were decoding a typecode and determining that - it was one of the ORB maintained constants, we were simply - pointing to it and passing it back. However, this is not correct - because the application can call "release" which was resulting in - "Freeing Non-Heap Memory" which is terrible. We now "_duplicate" - such typecodes and then pass them to the applications. - -Thu Apr 16 20:34:40 1998 David L. Levine - - * tao/ORB_Core.cpp (TAO_ORB_Core): reordered initializers to - match declaration order. - - * tao/Exception.cpp: added ACE_Unbounded_Queue, - etc., instantiations. - - * tao/PolicyC.h (CORBA_PolicyList): commented out unused - _tc_PolicyList_seq. - -Thu Apr 16 19:22:10 1998 Seth Benjamin Widoff - - * TAO_IDL/be/be_visitor_interface.cpp: - The ACE_NESTED_CLASS macro in the base/member initialization - section of a collocated class was using the wrong scope to - initialize inherited collocated classes. Prefixed a "POA_" to - the scope. - -Thu Apr 16 16:00:35 1998 Aniruddha Gokhale - - * tao/decode.cpp: In TypeCode::decode, for the case of bounded - strings, we were passing a null pointer to the typecode - constructor. - - * tao/encode.cpp: In TypeCode::In encode, for strings, we were - encoding the typecode's buffer length rather than the bounds of - the string. - - * tests/Param_Test: Added code to test TypeCodes. Most of the - files in this suite are modified. - -Thu Apr 16 13:28:59 1998 Carlos O'Ryan - - * tao/decode.cpp: - An exception was raised if a nil object reference was decoded. - - * tao/POA.cpp: - For debugging purposes we print a message when an exception is - raised on the server side. - - * TAO_IDL/be/be_visitor_interface.cpp: - Use ACE_NESTED_CLASS macro for collocated classes, this makes - the generated code portable between NT and other platforms. - -Thu Apr 16 10:31:53 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface.cpp: I had forgotten to generate - a "return TRUE" statement in the code for the >>= operator on - interfaces. - - * TAO/tao/Any.cpp: All the basic >>= operators were using plain - casts. However, according to the new strategy, if the Any owns the - value, then it is a CDR stream. So we make this distinction in the - code. - - * TAO/tao/POAS.cpp: In the initialization section of a number of - skeleton class constructors, we were initializing - _tao_collocated_Policy without specifying its fully scoped name - which happens to be POA_CORBA::_tao_collated_Policy. g++ was - complaining. However, it remains to be seen if MSVC++ accepts this - new style. - -Thu Apr 16 10:10:16 1998 Michael Kircher - - * tests\Quoter\Quoter_Impl.cpp: Improved the copy operation - * tests\Quoter\client.{h,cpp}: Using the copy operation - Status: Bootstraping and copying of Lifecycle Objects works. - -Thu Apr 16 08:36:16 1998 David L. Levine - - * orbsvcs/Naming_Service/Naming_Service.cpp (parse_args): - removed break following an ACE_ERROR_RETURN. - -Thu Apr 16 01:25:18 1998 Irfan Pyarali - - * tao/poa.idl: Fixed the idl file. - - * tao/PolicyS.cpp (_tao_collocated_Policy): _tao_collocated_Policy - must inherit from CORBA_Policy and not from CORBA::Policy. This - is because the VC++ compiler cannot deal with inheriting from - nested typedefs. - - * tao/Policy{C,S}.h: Added TAO_Export macros. Also fixed the - #include files. - - * tao/POAS.*: Added code for _get_policy_type_skel() and - policy_type() by hand. - - * tao/POAC.*: Removed code for PortableServer::Policy. - - * tao/POA.cpp: Added the policy_type() method to the policy - classes. - - * TAO: Changed PortableServer::Policy to CORBA::Policy. - -Wed Apr 15 22:29:29 1998 Aniruddha Gokhale - - * TAO_IDL/be/{be_visitor_structure, be_visitor_union, - be_visitor_enum, be_visitor_sequence, be_visitor_interface, - be_visitor_exception}.cpp: Added code to generate the <<= and >>= - operators for CORBA::Any. - - * TAO_IDL/be/be_predefined_type.cpp: Added cases for LongLong, - ULongLOng, and LongDouble which were missing. Thanks to Sam Hauer - . - -Wed Apr 15 20:20:58 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer{Factory}.java.JDK1.2 - added these two files, they can be used by the JDK 1.2 instead - of by the Visigenic ORB. - -Wed Apr 15 15:59:58 1998 Aniruddha Gokhale - - * TAO/tao/append.cpp: Added a bunch of methods that take a CDR - stream and append it to another CDR stream while maintaining the - alignment. These functions use exactly the same logic as that used - by the encode, skip, decode, deep_free, and deep_copy methods. - - * TAO/tao/any.cpp: When we reset the contents, we set value_ to 0 - - * TAO/tao/CDR.{h, i, cpp}: Added a constructor to the - TAO_OutputCDR and TAO_InputCDR to take an ACE_Message_Block as - input. In addition, added the "append" methods that append one CDR - to other while maintaining the alignment. - - * TAO/tao/Exception.{h, i, cpp}: Added the definition and - implementation of the CORBA::ExceptionList class according to the - CORBA v2.2 (Feb 98). This required a few changes in the - Exception.cpp file while initializing the list of system - exceptions. - - * TAO/tao/{GIOP, IIOP_Object}.cpp: Changes required due the new - definition of ExceptionList - - * TAO/tao/Marshal.h: Added the append methods on all classes. - - * TAO/tao/ORB.h: Chnaged the definition of ExceptionList from - typedef to TAO_Unbounded_Object_Sequence to using - the new defintion. - - * TAO/tao/Typecode.{h, cpp}: Moved the defintions of Bounds and - BadKind inside the TypeCode class. This is where it belongs. - - * TAO/tao/decode.cpp: In Any::decode, we set the value_ data - member of Any to a duplicated ACE_Message_Block. - - * TAO/tao/encode.cpp: Changed the implementation of Any::encode - such that if the Any owns the data, then the value_ which is an - ACE_Message_Block that holds a CDR stream gets appended to the - destination CDR. Otherwise, the value is literally encoded into - the destination CDR. - - * TAO/tao/skip.cpp: Added WString::skip. In addition, we had - forgotten to pass the address of the discriminant_val to the - decoder inside the Union::skip function. - -Wed Apr 15 12:19:36 1998 Nanbor Wang - - * tao/deep_copy.cpp (deep_copy): We need a return if no error was - found. - -Wed Apr 15 09:28:16 1998 Carlos O'Ryan - - * tao/Stub.h: - A field was declared , this field is - needed to initialize a Sequence that requires a - parameter. The careful reader will notice - that there is no implicit conversion between the two types, the - first is a pointer to constant TypeCode_ptr no a constant - pointer to TypeCode_ptr. Only SGI/C++ detected this problem. - -Wed Apr 15 09:11:11 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/DynSched.cpp (compare_entry_finish_times): - added const's to first_entry and second_entry declarations and - casts, so that ANSI static_casts will succeed. - - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp (create): - removed extraneous trailing semicolon. - - * orbsvcs/orbsvcs/Event/RT_Task.h (ACE_RT_Task): added "class" - to declaration of friend ACE_RT_Thread_Manager. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp (main): added an _out - temporary to avoid compiler warning about a temporary being used - for a non-const reference. Because only Sun C++ seems to complain - about this, and the temporary is non-comformant (it is an _out - type, and users aren't supposed to create them), the hack is - only used with Sun C++. - -Tue Apr 14 19:35:50 1998 Michael Kircher - - * tests/Quoter/*: Quoter example is running using the Cos LifeCycle - Factory Finder. - -Tue Apr 14 16:37:50 1998 Carlos O'Ryan - - * tao/encode.cpp: - * tao/deep_copy.cpp: - * tao/decode.cpp: - * tao/Principal.cpp: - * tao/ORB.h: - * tao/IIOP_Object.cpp: - * tao/GIOP.cpp: - * tao/Exception.cpp: - Removed the last traces of CORBA_SEQUENCE, we use - TAO_Unbounded_Sequence for CORBA::OctetSeq and - TAO_Unbounded_Object_Sequence for CORBA::ExceptionList. - - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: - It is less surprizing to receive arguments as T_ptr than as - T_var&. - Also followed the usual memory managment conventions of CORBA, - i.e. we don't own the parameters we receive, but we do own the - return values or out parameters we obtain. - - * orbsvcs/tests/Event_Latency/Event_Latency.h: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Pseudo-objects or objects passed as input parameters must be - duplicated before storing them in a T_var variable. - -Tue Apr 14 13:49:51 1998 Aniruddha Gokhale - - The following changes are untested. - - * TAO/tao/skip.cpp: Added a new file that can skip values in the - CDR stream. We need this functionality so that when an Any is - decoded, it will simply hold a pointer to the ACE_Message_Block - (which in turn consists the incoming CDR stream). However, we - still need to skip past the value. This skipping uses the same - interpretive algorithm used by the encoder and decoder. - - * TAO/tao/Any.{h, cpp}: Changed the way constructors, assignment - operators, replace method, and destructor worked. The policy is - that if the Any owns the value, then it immediately converts the - value to a CDR stream and destroys the value. - - * TAO/tao/CDR.{h, i}: Added some more functionality to do the - basic "skip" operations. - - * TAO/tao/Marshal.h: Added the skip methods on all the - TAO_Marshal_* classes. - - * TAO/tao/decode.cpp: When we decode an Any, the value pointer now - points to the CDR stream (represented as a ACE_Message_Block). It - is the application's responsibility to use the <<=, >>= operators - to retrieve the right type. - - * TAO/tao/Policy{C,S}.{h,i,cpp}: Added these files that have stubs - and skeletons for the CORBA::Policy interface. - - * TAO/tao/{ORB, corba}.h: Added definitions for the PolicyType, - Policy, and PolicyList. - -Tue Apr 14 12:27:35 1998 Carlos O'Ryan - - * tao/decode.cpp: - * tao/encode.cpp: - Use the write_*_array() and read_*_array() when - encoding/decoding arrays or sequences into/from a CDR - stream. Since every request has at least one sequence (the - object key) this is a improvement for all requests. - I was able to measure improvements in the order of 5% to 10% for - IDL_Cubit. - - * tests/CDR/growth.cpp: - The correct interface to accumulate measurements in a - ACE_High_Res_Timer is start_incr()/stop_incr(). - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - Increased the maximum sequence size to 100, otherwise it is hard - to notice how the sequences affect performance. - - * docs/releasenotes/ec.html: - Added an explicit example on how to run the Event_Latency test. - - * tao/Exception.cpp: - Fixed indentation. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - An exception was not "rethrown". - -Tue Apr 14 12:23:04 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/DynSched.cpp,Strategy_Scheduler.cpp, - tests/Cubit/TAO/MT_Cubit/Task_Client.h: - #include math.h after #including the ACE headers, to avoid a - compile warning on ghs/VxWorks. - - * orbsvcs/orbsvcs/Sched/DynSched.cpp (add_dependency): removed - a break statement following a return. - - * orbsvcs/orbsvcs/Sched/SchedEntry.h (OS_priority): removed - name qualifier (the class name). - - * tests/Param_Test/client.cpp (run_dii_test): removed second - return statement at end. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp},client.cpp - (get_latency): cast double latency_ to u_int. - -Tue Apr 14 10:23:32 1998 Douglas C. Schmidt - - * tao/ORB_Core.h (TAO_ORB_Core): Moved a bunch of "set" methods - into the public part of the class so that we can set them if - necessary. Also changed the "set" methods so they return the - original pointer, which enables "chaining". Thanks to Brian - Mendel for point this out. - -Tue Apr 14 07:16:21 1998 David L. Levine - - * Makefile: added CONTROLLED_FILES macro. Thanks to Doug - for reporting this. - - * INSTALL,Makefile: removed INSTALL from CVS control. - -Tue Apr 14 00:51:45 1998 Douglas C. Schmidt - - * TAO version 0.1.14 released. - -Sat Apr 11 20:02:32 1998 Douglas C. Schmidt - - * TAO version 0.1.13, released Sat Apr 11 20:02:32 1998. - -Sat Apr 11 10:00:09 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/DOVEBrowser.java: - modified to be used only when the DOVE Browser is running as - an Java Application. - - * orbsvcs/tests/Simulator/DOVEBrowser/DOVEBrowserApplet.java: - used when the DOVE Browser is running as an Applet. - - * orbsvcs/tests/Simulator/DOVEBrowser/*: minor changes to handle - the afore mentioned changes. - -Fri Apr 10 15:11:44 1998 Nanbor Wang - - * tao/GIOP.cpp (message_name): Fixed a missing increment by 1 - code. Thanks to Sumedh for noticing the bug. - -Fri Apr 10 10:41:04 1998 Carlos O'Ryan - - * tests/Param_Test/tmplinst.cpp: - Added a missing template instantiation. - -Fri Apr 10 04:38:36 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_typedef.cpp: The changes made by me in the - log entry mentioned just below had some flaws. I had sort of - blidly applied it to a case in the "visit_typedef" node of the - be_visitor_typedef_ci class. I was resetting the alias context - before the code generation action was taken as aooposed to doing - it after the action was taken. Thanks to Seth Widoff for sending - the bug report. - -Thu Apr 9 21:57:52 1998 Douglas C. Schmidt - - * tao/POAS.cpp: Fixed up the POA to use the new - ACE_Static_Allocator_Base stuff. - - * tao/Operation_Table: Added an additional parameter to the - TAO_Dynamic_Hash_OpTable constructor so that we can pass in the - ACE_Static_Allocator_Base. Also, changed the code to use the - base/member initialization section, which is more efficient. - -Thu Apr 9 22:53:21 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: We now use the - ACE_Static_Allocator_Base to define a static allocator for the - Dynamic Operation Hash Table. Using this approach will finally - solve the seg faults in the static destructors. - - * TAO_IDL/be/{be_visitor_args, be_visitor_array, be_visitor_field, - be_visitor_exception, be_visitor_operation, be_visitor_typedef, - be_visitor_union, be_visitor_union_branch}.cpp: The visit_typedef - operation on all the classes in these files was setting the - TAO_Visitor_Context's alias state to the typedef node being - visited. However, we were not resetting this context alias state - after the action has been taken. This broke code for a scenario - shown in a dummy IDL below: - - typedef X Y; - struct foo { ... }; - struct bar { - Y y_field; - long long_field; - }; - In the code generation for the struct "bar" (for that matter for - unions, exceptions, sequences, and others), when we are generating - the code for the field whose type is "Y", we set the alias - context, it gets set to Y and we use its primitive type which is X - to do the "accept". However, we do not reset the alias context. As - a result, when we are generating the code for the long_field, the - alias context is still "Y" which leads our IDL compiler to - generate code that says "Y long_field;" rather than "long - long_field;". This is now fixed. - -Thu Apr 9 20:15:41 1998 Nagarajan Surendran - - * orbsvcs/Naming_Service/Naming_Service.cpp (init): Added code to - recognize the -o option to output the Naming Service ior to a file - to avoid setting the NameService env. variable when multiple - naming services are running. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Added a - naming_service_ior () method to return the ior of the Naming - Service. - -Thu Apr 9 19:25:44 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java, - orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.cpp. - orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - Had to conform to the new RtecScheduler.set ( ..) method, - some parameters were added. - - * docs/releasenotes/index.html: Enhanced description of the DOVE - -Thu Apr 9 10:07:34 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Time_Utilities.i: - Fixed warnings in convertion from 64 bit ints to 32 bit - ints. This is a classical example of a "good" cast, we know the - numbers will be in range (unless something *really* bad happens, - like), so the conversion will work. - -Wed Apr 08 10:02:16 1998 David L. Levine - - * bin/make_release: added this script that creates ACE and/or - TAO releases. - - * Makefile: added support for make_release. See comments at - the top of the Makefile. The old release mechanism has - been retained; to use it: make release-old. - - * tao/ORB.cpp (ORB_init): added missing __FILE__ to printout. - Thanks to Tom Brusehaver for reporting - this. - - * orbsvcs/Runtime_Scheduler.{h,i}, - orbsvcs/orbsvcs/Config_Scheduler.{h,i} (set): - removed const from Criticality and Info_Type arguments. Thanks - to Doug and Irfan for reporting this. - -Wed Apr 08 07:41:53 1998 Brian Mendel - - * tao/{default.bld, tao.bld}: Updated VxWorks GHS Build files. - - * orbsvcs/default.bld, - orbsvcs/orbsvcs/orbsvcs.bld, - orbsvcs/Event_Service/Event_Service.bld, - orbsvcs/Scheduling_Service/Scheduling_Service.bld, - orbsvcs/Naming_Service/Naming_Service.bld, - orbsvcs/Dump_Schedule/Dump_Schedule.bld: - Updated VxWorks GHS Build files. - - * tests/Cubit/TAO/IDL_Cubit/{default.bld,IDL_Cubit.bld}: - Updated VxWorks GHS Build files. - -Wed Apr 08 00:31:08 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): If the host is not supplied by the - user, we will go ahead and call ACE_OS::hostname immediately. - This will help later down the road, since ACE_OS::hostname will - not have to be called each time an IIOP_Profile is created. - - * tao/IIOP_Object.cpp (set): Changed the calls to get_host_addr() - to get_host_name(). The name is more readable than the IP - address. - - * tao/ORB_Core.cpp (init): If the user explicitly specifies - -ORBport 0, we choose a port and start listening. This will - make sure that all IORs produced will be correct. If -ORBport 0 - is not specified, lazy listening is done as usual (on - orb->run()). - -Tue Apr 7 18:25:09 1998 Michael Kircher - - * tests/Quoter/quoter.idl: Extended the interface by a Factory - Finder. - - * tests/Quoter/QuoterFactoryFinder.{cpp,h}: Server and - Implementation of the Factory Finder. - -Tue Apr 7 16:22:09 1998 Carlos O'Ryan - - * TAO_IDL/util/utl_global.cpp: - Changed a buffer size from MAXNAMELEN to MAXPATHLEN, the former - is very small in some systems, plus the fact is that a fullpath - can be use in that buffer, so MAXPATHLEN is the right constant. - -Tue Apr 07 10:55:53 1998 David L. Levine - - * orbsvcs/tests/Simulator/ss: generate port numbers based on - uid, and set TAO_ROOT (based on ACE_ROOT) if it's not set. - This utility should be moved, maybe up two directories? - - * orbsvcs/orbsvcs/{Makefile,RtecScheduler.idl,Runtime_Scheduler.*, - Scheduler_Factor.*}, - orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp,Event_Channel.cpp, - ReactorTask.cpp, - orbsvcs/orbsvcs/Sched/Config_Scheduler.{h,cpp},DynSched.*, - SchedEntry.*,Scheduler.cpp,Strategy_Scheduler.{h,cpp}, - orbsvcs/tests/EC_Multiple/EC_Multiple.cpp, - orbsvcs/tests/Event_Latency/Event_Latency.cpp: - merged DynSched into liborbsvcs. - - * orbsvcs/tests/Sched/Makefile: added. - - * orbsvcs/tests/Sched/DynSched_Test.cpp: builds on Suns. And - runs! - -Mon Apr 6 14:43:13 1998 Carlos O'Ryan - - * tao/Connect.cpp: - The process would crash if it was unable to resolve an address - to a name, even though it was only used in a debugging - message. Thanks to Keith Nicewarner for - pointing out this. - -Mon Apr 06 09:59:22 1998 David L. Levine - - * tests/Thruput/tao/utils.cpp: hacked so that it will compile - on VxWorks and Chorus. It won't run properly, though. The - file should be updated to use ACE_Profile_Timer instead of - using rusage directly. - - * TAO_IDL/Makefile: moved include of rules.local.GNU to after - include of rules.bin.GNU. Without this change, tao_idl doesn't - get build on LynxOS. - - * TAO_IDL/driver/drv_preproc.cpp (DRV_pre_proc): ACE_OS::mktemp () - instead of mktemp (). - -Sun Apr 05 18:05:26 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/{ DOVEBrowser.java, - DemoCore.java, PushConsumerFactory.java }: - The Browser accepts now the parameter -ORBnameserviceior. - -Sun Apr 05 10:04:57 1998 David L. Levine - - * tao/Makefile: don't regenerate files using TAO's IDL compiler. - Instead, always use what's in our CVS repository, or in the TAO - distribution. - - * tao/Makefile: use fakesvcconf = 1 if shared_libs is not defined, - instead of if CROSS-COMPILE is not defined. - -Sat Apr 04 21:25:43 1998 Douglas C. Schmidt - - * TAO version 0.1.12, released Sat Apr 04 21:25:43 1998. - -Sat Apr 4 17:43:08 1998 Douglas C. Schmidt - - * tao/Operation_Table.cpp: Removed the call to hash_.close() since - the Hash_Map_Manager destructor handles this already. - -Sat Apr 4 15:50:29 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_sequence.cpp, - TAO_IDL/be_include/be_visitor_sequence.h: Added a case to - support sequence of exceptions. - -Sat Apr 04 07:45:33 1998 David L. Levine - - * tao/ORB.h: don't use u_longlong_t on Suns if - ACE_LACKS_U_LONGLONG_T is defined. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - moved declaration of loop index "i" out of two for loops, and - declared as u_int instead of int to prevent signed/unsigned - comparison. - -Sat Apr 4 04:26:49 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_interface_fwd.cpp: We were not checking if - the node was imported. Due to this, code was getting generated for - forward declared interfaces from "#include"d IDL files. - - * TAO_IDL/be/be_visitor_sequence.cpp: We were not calling - "nested_type_name" while generating the return type of the - operator [] in the sequence var class. As a result, a fully scoped - name was getting generated instead of a relative scoped name which - the MSVC++ compiler does not like. - - * TAO_IDL/be/be_visitor_exception.cpp: For "typedefed" nodes, we - were using their base types to generate the code. This is fixed. - - In addition, some files from the above and others were modified to - correct some formatting problems in the generated code. - -Sat Apr 4 00:24:01 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/MT_Cubit/client.cpp: Fixed a typo where - "i" was being defined twice in the same block of code. - -Fri Apr 3 18:40:49 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: Minor changes for - Chorus. Cleanup code. - -Fri Apr 3 18:39:21 1998 Steve Huston - - * tests/POA/On_Demand_Activation/Makefile: Changed LSRC to SRC to - match today's changes to ACE's rules.bin.GNU. - -Fri Apr 3 17:43:07 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/orbconf.h: - * tao/CDR.cpp: - Added configuration macros to enable swap on write, and to - disable swap on read. - Also increased the default size of a CDR buffer. - - * tests/CDR/Makefile: - * tests/CDR/growth.cpp: - Added another simple test of the CDR buffer, this one tries to - measure performance. - -Fri Apr 3 17:15:22 1998 Steve Huston - - * TAO_IDL/Makefile: The sources that go into the compiler are - listed in SRC, not LSRC. This matches a change in ACE's - include/makeinclude/rules.bin.GNU. - -Fri Apr 3 17:07:18 1998 Sergio Flores - - * tao/TAO_Internal.cpp (FAKE_SVC_ENTRY): - * tao/orbconf.h: Made minor changes to have the fake service - configurator receive its values through macros, instead of - changing the ".cpp" file. Seems cleaner this way. - -Fri Apr 3 15:35:39 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/AVStreams/client.h, client.cpp: All PropertySet - methods and the Iterator class methods tested. - -Fri Apr 3 08:59:16 1998 Carlos O'Ryan - - * tao/CDR.cpp: - Null strings are transmitted as empty strings. - Fixed - - * tao/IIOP_ORB.cpp: - Ensure that CDR buffer created from the IOR string is properly - aligned. - - * tao/Server_Request.cpp: - More checking for exceptions while decoding parameters and we - print an error message if decoding fails. - - * tao/Typecode.cpp: - Only the first byte of the encapsulation stores the byte order, - the next three bytes are ignored because the is stored as - a long. - - * tao/decode.cpp: - Removed dead code, improve error message when decoding object - references and fix an off by one error in ObjRef::decode. - - * tao/encode.cpp: - When encoding Object References an encapsulated stream is - created in place, I debugged the computation of the length for - that stream and left some debug messages commented out. - The support for encoding null strings and wstrings as empty - strings is in the CDR classes, no need to duplicate the effort - here. - - * tao/Connect.cpp: - Cosmetic changes. - -Fri Apr 03 09:01:00 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - changed local "ior_file" to "ior_f" because it shadowed - the global and caused compile failure with g++. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - check return values of activate calls. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (run_tests): - added default case to switch statement. - - * tao/Sequence*.{i,cpp}: use ACE_CAST_CONST instead of const - in reinterpret casts, to keep all compilers happy. - -Thu Apr 02 15:49:16 1998 Nanbor Wang - - * tao/tests/Cubit/TAO/MT_Cubit/client.dsp: - * tao/tests/Cubit/TAO/MT_Cubit/server.dsp: Updated project file. - - * tao/ORB_Core.{h,i,cpp} (create_and_set_root_poa): Added this - private method to create and set the root poa of the calling - ORB_Core. - (root_poa): Make sure this function will always return a valid - poa pointer (thru the use of create_and_set_root_poa above.) - - * tao/ORB.cpp (resolve_poa): Moved the creation of poa into - ORB_Core. - -Wed Apr 1 23:39:04 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Fixed some bugs and added - some comments. - -Wed Apr 01 22:37:59 1998 Irfan Pyarali - - * tests/POA/Default_Servant/client.cpp: Fixed options parsing. - - * tao/Servant_Base.h: Added TAO_Export to - TAO_DynamicImplementation. - -Wed Apr 1 17:33:04 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/MT_Cubit: Cleaned up the formatting of the code - to conform to the TAO programming style. - -Wed Apr 1 11:07:53 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/VisCompFactory.java: - Implemented a Factory pattern to generate the Visualization - Components and the Java class loader is now used to instantiate - the JavaBeans Visualization Components. - - * orbsvcs/tests/Simulator/DOVEBrowser, DOVEMIB and Event Supplier - are running under NT properly. - -Wed Apr 01 09:44:31 1998 Nanbor Wang - - * tao/ORB_Core.cpp (init,fini): Removed calls to - ACE_OS::socket_init and ACE_OS::socket_fini because they are - taken care of by ACE already. - -Wed Apr 1 09:46:53 1998 Aniruddha Gokhale - - The following fix was also made by Carlos simultaneously. Here is - the reason what was going wrong. - - * tao/IIOP_Interpreter.cpp: In calc_nested_size_alignment_i, there - was a bug in which we were initializing the CDR stream for - nested parameters with an incorrect size. This was due to the - fact that we were computing the byte order outside and then - initializing the stream with 4 less bytes. However, the - constructor of the TAO_InputCDR was also computing the byteorder - using wrong locations in the bytestream. This is now fixed. - - * tests/Param_Test: Added barebones implementation to test - Anys. This is still not complete because we still have to work - on getting Anys in TAO to work correctly and get rid of the - memory management problems we are having. - -Wed Apr 1 09:41:07 1998 Carlos O'Ryan - - * tao/IIOP_Interpreter.cpp (calc_nested_size_and_alignment_i): - Fixed nested strem interpretation. - -Wed Apr 1 08:56:24 1998 Douglas C. Schmidt - - * tao: Renamed ResultFromScode to TAO_ResultFromScode to avoid - clashes with MFC functions. Thanks to David Janello - for reporting this. - -Tue Mar 31 21:01:30 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (init): Fixed a typo. - -Tue Mar 31 20:18:36 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (TAO_Naming_Server): - Added code to remove the IOR_Multicase event handler in the destructor. - -Tue Mar 31 19:50:48 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (Cubit_Server): Removed the - naming service unbind code from the destructor as the naming - server is a component and not an external server. Also they will - be destructed when the ~Cubit_Server is called. - -Tue Mar 31 19:30:03 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (Cubit_Server): Added a - check in the destructor to unbind the cubit_factory from the - naming service. - -Tue Mar 31 15:15:53 1998 Carlos O'Ryan - - * tao/Sequence.h: - * tao/Sequence.i: - * tao/Sequence_T.h: - * tao/Sequence_T.i: - g++ does not like typedefs inside templates, and we were abusing - them in the sequences. - - * tests/CDR/tc.cpp: - Fixed formatting problems. - - * tests/Param_Test/tmplinst.cpp: - Added missing template instantiations. - -Tue Mar 31 11:10:34 1998 Nanbor Wang - - * tao/ORB.h (String_out): Added the infamous TAO_Export macro. - -Tue Mar 31 14:38:29 1998 Douglas C. Schmidt - - * tao/Sequence_T.i (replace): Make sure to cast this->buffer_ - to (T *) to make compilers like GCC happy! - -Tue Mar 31 13:34:36 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): dereference - cb_factory with .in (). - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): declare - iorFile outside the conditional statement. - - * tests/Cubit/TAO/MT_Cubit/cubit.idl: added comments and RCS Id - string. - - * tests/Cubit/TAO/MT_Cubit/{client,server}.cpp: fixed priority - assignments so that they work on all platforms. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: fixed fabs() to negate - the argument if less than 0. - -Tue Mar 31 11:05:23 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.cpp: - * tao/decode.cpp: - * tao/Typecode.cpp: - Added constructor for encapsulated streams to the TAO_InputCDR - class; this was causing problems on Intel machines. - - * TAO_IDL/be/be_helper.cpp: - * TAO_IDL/be/be_codegen.cpp: - We end #if/#endif blocks using C style comments (/* */) as - opposed to C++ style (// ) - - * tao/Sequence.i: - * tao/Sequence.cpp: - * tao/Sequence_T.i: - * tao/Sequence_T.cpp: - Fixed a lot of const-correctness problems, thanks to J. Russell - Noteworthy for putting me on this - track. - - * tests/Param_Test/tmplinst.cpp: - * tests/Param_Test/tests.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test.idl: - The test now includes all kind of sequences: of basic types, of - structs, of strings, of objects; both bounded and unbounded. - Unfortunately only compilation is verified, I still have to add - code to verify functionality. - - * TAO_IDL/be/be_visitor_sequence.cpp: - Unproper code was generated for bounded sequences of strings. - - * tao/IIOP_ORB.cpp: - Added some debug messages to verify that collocation works. - - * orbsvcs/tests/EC_Multiple/README: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Now that the ORB supports collocation we can create a collocated - EC, but that requires a smarter startup. - It seems that the ECP is not receiving all the messages it - should. - The main purpose of the change was to verify that collocation - works and it seems to do so. - - * tao/Connect.cpp: - We set the flag to expect input *before* making the - request. This alleviates (but does not solve) the problems of - using several threads and a global ORB: in such a configuration - it is possible that one thread is running the event loop, but - another makes a request, if the reply is received before the - flag is set the ORB believes it has received an out-of-order - reply and shutdowns the connection. - The real solution is to use the leader-follower model. - - * tao/decode.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - Cosmetic changes. - -Mon Mar 30 21:38:32 1998 Nanbor Wang - - * tao/ORB_Core.cpp (fini): Added a call to ACE_OS::socket_fini (). - - * tao/IIOP_ORB.cpp (_get_collocated_object): Changed to call - TAO_ORB_Core_instance ()-> root_poa () instead of - this->resolve_poa (). Thanks to Carlos for tracing this down. - -Mon Mar 30 17:59:30 1998 Nanbor Wang - - * tao/ORB_Core.i: Only _NOT_ specialize - ACE_Hash_Addr when ACE needs to instantiate - template explicitly and it is not inlined. - -Mon Mar 30 13:13:07 1998 Carlos O'Ryan - - * tao/Typecode.cpp: - Fixed cast that dropped constness when only reinterpret_cast was - needed; thanks to David Levine (levine@cs.wustl.edu) for - detecting this. - - * tao/Server_Request.cpp: - bytes_remaining was called in a debug message (not seen in - Solaris); thanks to Nanbor Wang (nanbor@cs.wustl.edu) for - reporting this. - -Mon Mar 30 12:28:02 1998 David L. Levine - - * tao/ORB_Core.i: only specialize ACE_Hash_Addr - with ACE inlining enabled, to avoid link collision with the - instantiation in Connect.cpp. - - * tao/CDR.cpp (TAO_OuputCDR ctors): rearranged initializations - to match declaration order. - - * tao/t-sizes.cpp: #include "tao/corba.h" instead of "tao/orb.h". - -Mon Mar 30 10:28:05 1998 Carlos O'Ryan - - * Implemented new classes to manipulate CDR streams, this classes - separate input (interpretation) and output (creation) of the - streams; in an attempt to make the interface more robust. - The new classes provide methods to write and read strings and - arrays, this is currently used in very few places, but it could - provide a big performance boost. - - The change affected the following files: - - * TAO/tao/Align.h: - * TAO/tao/CDR.cpp: - * TAO/tao/CDR.h: - * TAO/tao/CDR.i: - * TAO/tao/Connect.cpp: - * TAO/tao/Connect.h: - * TAO/tao/Exception.cpp: - * TAO/tao/GIOP.cpp: - * TAO/tao/GIOP.h: - * TAO/tao/GIOP.i: - * TAO/tao/IIOP_Interpreter.cpp: - * TAO/tao/IIOP_Interpreter.h: - * TAO/tao/IIOP_ORB.cpp: - * TAO/tao/ORB.h: - * TAO/tao/Server_Request.cpp: - * TAO/tao/Server_Request.h: - * TAO/tao/Server_Request.i: - * TAO/tao/Typecode.cpp: - * TAO/tao/Typecode.h: - * TAO/tao/decode.cpp: - * TAO/tao/deep_copy.cpp: - * TAO/tao/deep_free.cpp: - * TAO/tao/encode.cpp: - * TAO/tao/orbconf.h: - * TAO/tao/params.h: - In most cases it was only a matter of changing the class name - and the method invocations. - - * tests/Param_Test/options.cpp: - Use CORBA::string_copy instead of ACE::strdup because we delete - the buffer with CORBA::string_free. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - I limited the size of the sequences, otherwise the test time - grows non-linearly with the number of loops. - - * tests/Param_Test/README: - The test can also check string sequences, but the option to do - so (-t strseq) was not documented. - - * tests/CDR/basic_types.cpp: - The test is run several times; this is useful when trying to - verify performance. - -Sun Mar 29 03:09:17 1998 Nanbor Wang - - * tao/IIOP_ORB.{h,i,cpp}: Added an optimize_collocation_objects_ - flag to turn optimization for collocation objects on and off. - - * tao/ORB_Core.cpp: Added an initialization argument - -ORBcollocation to make ORB aware of collocation objects or - not. The default is on. - - * doc/Options.html: Added documentation for -ORBcollocation. - -Fri Mar 27 20:08:24 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (NS_NamingContext): - Changed to get lock from the ORB. - - * orbsvcs/orbsvcs/orbsvcs.dsp: Update the source file list. - - * tao/ORB.h: Added TAO_Export to class CORBA_ORB_var. - - * tao/params.cpp: Removed the extra inclusion of . - -Fri Mar 27 14:10:34 1998 Steve Huston - - * TAO_IDL/driver/drv_preproc.cpp: (also see my entry from 09:50) - Removed explicit char * operator call, and use the conversion - as it was before. However, I needed to change the ?: operator to - an if/else for AIX xlC to compile it correctly. - -Fri Mar 27 13:38:04 1998 Seth Benjamin Widoff - - * orbsvcs/IOR_Multicast.{h,cpp}: - * orbsvcs/Makefile: - * orbsvcs/Naming/Naming_Utils.{h,cpp}: - I moved the Ior_Multicast.{h,cpp} files up a directory and changed - the class name to TAO_IOR_Multicast. It didn't logically belong - in the Naming directory, since other bootstrappable services - require it. - -Fri Mar 27 11:47:58 1998 David L. Levine - - * tao/IIOP_ORB.*,IIOP_Object.{h,cpp},Request.{h,cpp},Server_Request.*, - Exception.*,params.*,Connect.*,default_{client,server}.*,corba.h: - #include the .i file in the .h/.cpp files instead of corba.h. - - * tests/Demux_Test/client.cpp: #include ace/stream.h instead of - system headers, and use ACE_OS::gethrtime () instead of - gethrtime (). - - * orbsvcs/orbsvcs/Event/Reactor_Task.cpp (ACE_ES_Reactor_Task): always - use ACE_OS::gettimeofday (). ACE_High_Res_Timer::gettimeofday () - now takes an argument, so it's not compatible with what - ACE_Timer_Queue needs. And it didn't seem necessary to have - separate code for VxWorks. And the hrtimer on WIN32 is flakely - on multiple-CPU machines. - - * tao/IIOP_ORB.cpp: added ACE_Unbounded_Set_Iterator template - instantiation. - -Fri Mar 27 09:50:52 1998 Steve Huston - - * TAO_IDL/driver/drv_preproc.cpp: Use explicit char * operator on - cpp_path (AIX xlC requires this). Added CVS Id. - - * tao/Sequence_T.h: Fully qualify the template type when used as a - function return. - -Fri Mar 27 04:45:46 1998 Nanbor Wang - - * tao/ORB.h: Added two pure virtual functions - _register_collocation and _get_collocated_servant to CORBA_ORB - class so the derived classes have their own implementations. - (resolve_poa,resolve_poa_current): Changed these two functions - from private methods to protected methods. I need to access - them from IIOP_ORB. - - * tao/IIOP_ORB.{h,cpp} (_register_collocation): Added this new - method to record connection end points an IIOP ORB owns. - (_get_collocated_servant): Added this new method which uses a - passed in STUB_Object to determine whether a requested object is - collocated or not. If it's a collocated object, returns the - servant of that object and we can use that to create a - collocated object reference. - (object_to_string): Added code to register object end point with - IIOP ORB. - (iiop_string_to_object): Added code to check whether a requested - object is collocated or not and return a collocated object if it - fits to do so. - - * tao/ORB_Core.cpp (preconnect): Added code to register success - preconnections to IIOP's end point repository. - - * tao/decode.cpp (TAO_Marshal_ObjRef::decode): Added code to - optimize against collocation objects. - -Thu Mar 27 10:57:02 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEMIB: New version of the DOVE - MIB. - - * orbsvcs/tests/Simulator/README: Updated. - - * docs/releasenotes/index.html: Updated. - -Thu Mar 26 21:24:59 1998 David L. Levine - - * tao/ORB.*,corba.h (CORBA_ORB::shutdown): uninlined, so that - ORB.i can be #included properly. - - * tao/CDR.{h,cpp},GIOP.{h,cpp},corba.h: #include the .i file - in the .h/.cpp files instead of corba.h. - - * TAO_IDL/fe/y.tab.cpp: wrapped a couple of assignments in - conditionals with parens. - -Thu Mar 26 17:28:24 1998 Douglas C. Schmidt - - * TAO version 0.1.11, released Thu Mar 26 17:28:24 1998. - -Thu Mar 26 10:07:02 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEMIB: Checked in a first draft - of the DOVE Management Information Base (DOVE MIB). A README - will be available with further details. - -Thu Mar 26 08:31:02 1998 Aniruddha Gokhale - - * TAO_IDL/fe/idl.yy: We were setting the name of a sequence (named - sequence) when the code for client header generation was - invoked. However, in cases where we import some definitions, we - never go into the code generation code for that type. As a result, - such imported typedefed (a.k.a named) sequences remained - nameless. So when the time came to emit their name, it resulted in - a segmentation fault. - - We fix this by setting the name of the sequence in the parsing - stage itself. - - Thanks to Torben Worm (tworm@cs.wustl.edu) for reporting the bug - to me. - - Changed files also include y.tab.cpp and y.tab.h - - * TAO_IDL/be/be_visitor_sequence.cpp: Minor correction to get the - formatting right. - - * TAO_IDL/be/be_decl.cpp: Simplified the logic of converting a - name into a padded long array. The original logic caused problems - on NT/PC because of its "little-endian" nature. This was causing - the repoIDs and names (represented as longs) undergo byte - swapping. - -Thu Mar 26 06:29:09 1998 David L. Levine - - * tao/Marshal.{h,cpp},ORB.*,Object.{h,cpp},corba.h: - #include the .i file in the .h/.cpp files instead of corba.h. - -Wed Mar 25 22:55:02 1998 Carlos O'Ryan - - * tao/Servant_Base.h: - * tao/Object.cpp: - Collocated objects (even if their dynamic type is simply - CORBA_Object) can use the servant to resolve the _is_a() - calls. - -Wed Mar 25 22:06:19 1998 Sumedh Mungee - - * tao/TAO.cpp: Added accessors for child/root poa. - -Wed Mar 25 15:10:48 1998 Aniruddha Gokhale - - * tao/encode.cpp: In the encoding of exceptions, we were not - encoding its repository ID. This is now fixed. - -Wed Mar 25 11:11:47 1998 David L. Levine - - * tao/ORB.h: use ACE_UINT32 instead of u_char for CORBA_Boolean - with Green Hills on Chorus, to work around a compiler bug. - The bug is revealed with accessing the root_poa, by - TAO/tests/POA/RootPOA/RootPOA. - - * tao/ORB.{h,cpp}: changed type of open_called_ and - should_shutdown_ flags from CORBA::Boolean to u_int, because - they're ACE_Atomic_Ops. This allows CORBA::Boolean to be - a typedef of bool. Without this change, bool would be required - to support all of the arithmetic operations that ACE_Atomic_Op - needs, and that's not standard. - - * orbsvcs/tests/Logger/{clnt.cpp,logger_i.*,svr.cpp}, - orbsvcs/orbsvcs/Naming/{Ior_Multicast.cpp,Naming_Utils.cpp}, - tests/Thruput/TAO/server.cpp: - removed unnecessary #include of ace/streams.h. - - * tao/Makefile,tests/Cubit/TAO/IDL_Cubit/Makefile, - tests/NestedUpcall/Makefile: - removed CPPFLAGS, LDFLAGS, and DCFLAGS because they duplicated - what's already in taoconfig.mk or platform_macros.GNU. - -Wed Mar 25 09:08:44 1998 Torben Worm - - * docs/releasenotes/index.html: Added comment to the concurrency - control service section. The implementation of the concurrency - control service is discontinued due to unclear specs. - -Wed Mar 25 02:36:06 1998 Nanbor Wang - - * tests/NestedUpcall/server.cpp: Renamed tao_util.h to TAO.h. - -Tue Mar 24 19:13:35 1998 Aniruddha Gokhale - - * tao/Server_Request.cpp: There was a lot of messy code on the - outgoing path from skeleton to the wire. Specifically, we were - mixing system exceptions with user defined exceptions. This has - been fixed and is under testing. - - * TAO_IDL/be/{be_visitor_exception, be_exception}.cpp: The generated - typecode for Exceptions erroneously had a "tk_struct" TypeCode - kind. This has been fixed to be "tk_except". - - * TAO_IDL/be/be_visitor_operation.cpp: Handling of oneway operations - in the server skeletons was buggy. It is now fixed. - - * TAO_IDL/be/be_predefined_type.cpp: TypeCodes for pseudo objects - were not getting properly generated. This is now fixed. - -Tue Mar 24 14:51:33 1998 Nanbor Wang - - * TAO_IDL/be/be_interface.cpp (gen_server_skeletons): Changed - op_name() to operation (). - - * TAO_IDL/be/be_visitor_operation.cpp (visit_operation): Added a - return statement. - - * tao/IIOP_Object.cpp: Initialze - TAO_Synchronous_Cancellation_Required::old_type_. - -Tue Mar 24 14:07:08 1998 Aniruddha Gokhale - - * tao/Server_Request.{h, i, cpp}: Made the class compliant with - the latest CORBA v2.2. Added some extensions. There were some - subtle bugs related to user defined exceptions that were not being - reported back to the caller. Modified the constructor to take a - GIOP_RequestHeader as a parameter. - - * tao/IIOP_Interpreter.{h, cpp}: Removed the "struct_traverse" and - "union_traverse" methods as they were no longer used. - - * tao/Typecode.{h, cpp}: Removed the original interpreter - "traverse" as it is no longer used since its logic is included in - the different encode and decode methods. - - * tao/POA.cpp: changed the usage of "op_name" to "operation" since - that is the correct method name of the ServerRequest class - according to the CORBA v2.2 spec. - - * tao/POAS.cpp: Massive changes made to use the new style of - skeleton code that the IDL compiler generates - - * tao/{Servant_Base, Operation_Table}.{h, cpp}: The "_find" and - "_bind" operations now take a "const char *opname" rather than - "CORBA::String &opname". - - * tao/Connect.cpp: Server_Request creation now uses the modified - constructor. - - * TAO_IDL/be/{be_visitor_operation, be_interpretive}.cpp: Added - another visitor that generates the exceptionlist for the client - stub. - - * TAO_IDL/be/be_visitor_interface.cpp: Change in generated code to - use the "operation" method on class Server_Request rather than the - non-compliant "op_name". - - * TAO_IDL/be/be_visitor_sequence.cpp: Minor correction to get some - formatting in generated code correct. - - * TAO_IDL/be_include/be_codegen.h: Added a state for exception - list generation - - * TAO_IDL/be_include/be_visitor_operation.h: Added a new visitor - for exception list generation. - -Tue Mar 24 11:01:33 1998 Nanbor Wang - - * tao/TAO.dsp: Added Stub.cpp into the project. - -Tue Mar 24 07:29:20 1998 David L. Levine - - * tao/Makefile,Any.{h,cpp},NVList.*,ORB.h,ORB_Core.{h,cpp}, - Stub.{h,i,cpp},Typecode.{h,cpp},corba.h: - #include the .i file in the .h/.cpp file instead of corba.h - - * tao/ORB.cpp (wscpy): removed, because we now use ACE_OS::wscpy () - instead. - -Mon Mar 23 19:44:11 1998 Irfan Pyarali - - * tao/ORB: CORBA_ORB no longer inherits from IUnknown. - - * tao/IIOP_Object.cpp (set): A valid key must be provided, else - the function will fail. Also removed all cases where the key - was given a default value (of "0"). - - * tao/IIOP_ORB.cpp (QueryInterface): Removed this method. - -Mon Mar 23 13:20:12 1998 Michael Kircher - - * orbsvcs/tests/Simulator/DOVEBrowser/WeaponsVisComp.java: - Found some uninitialized variables and fixed the problem. - This component should now be more stable. - -Mon Mar 23 10:42:12 1998 Chris Gill - - * orbsvcs/orbsvcs/Sched/DynSched.{cpp,h,i} - orbsvcs/orbsvcs/Sched/SchedEntry.{cpp,h,i} - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{cpp,h,i} - - Merged in the final round of timeline fixes from the - files in the old scheduler directory into the ones - in the new directory. - - * orbsvcs/tests/Sched/DynSched_Test.cpp - - Added directory orbsvcs/tests/Sched and checked in a - copy of DynSched_Test.cpp, the file used to test the - offline behavior of the dynamic scheduler locally. - This file will serve as the basis of a real TAO test - for the on and off line behaviors of the dynamic - scheduler when it is fully integrated into TAO. - -Mon Mar 23 09:18:12 1998 David L. Levine - - * orbsvcs/Dump_Schedule/Makefile,orbsvcs/Event_Service/Makefile, - orbsvcs/Scheduling_Service/Makefile, - orbsvcs/tests/Event_Latency/Makefile, - orbsvcs/tests/EC_Multiple: - replaced orbsvcs/orbsvcs/orbsvcs with orbsvcs/orbsvcs in some - dependencies. - - * tao/ORB.{h,cpp},tao/POA.cpp,tao/encode.cpp, - TAO_IDL/ast/ast_generator.cpp,TAO_IDL/be/be_generator.cpp: - migrated to ACE_OS::WChar. That has a size of 32 bits. - Thanks to Irfan for this recommendation. - - * tao/ORB.cpp (wstring_copy): changed null check at beginning - from "if (*str)" to "if (!str)". - - * tao/Sequence_T.cpp (allocbuf): added missing ; at end of - ACE_NEW_RETURN statement. - - * TAO_IDL/fe/Makefile,lex.yy.cpp,lex.yy.cpp.diff: replaced - #includes of standard headers with #include of OS.h so that - ace/config.h is #included first. The allows config.h to - #defined _REENTRANT before stdio.h is #included, for example. - - * tao/Makefile: marked Object_KeyC.* and POA[SC].* files as - .PRECIOUS so that gmake avoids deleting them. Thanks to - Chris Cleeland for this suggestion. - -Mon Mar 23 03:20:47 1998 Douglas C. Schmidt - - * TAO version 0.1.10, released Mon Mar 23 03:20:47 1998. - -Mon Mar 23 01:19:19 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): It is ok not to have a svc.conf file, - therefore check should be: - - if (result != 0 && errno != ENOENT) - -Mon Mar 23 01:17:18 1998 Douglas C. Schmidt - - * tao/corba.h: Moved Request.i up a notch in the corba.h file so - that it will be defined correctly! This obviates the need for - Nanbor's fix below! - -Sun Mar 22 23:19:42 1998 Nanbor Wang - - * tao/Request.cpp: Include Request.i conditionally. - - * tao/Object.h: Added macro TAO_Export to class CORBA_Object_var - and class CORBA_Object_ptr. - -Sun Mar 22 21:54:57 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_interface: Made full_coll_name() a NON-const - method to work around a bug with GCC... - - * TAO/tao: Moved a bunch of inline methods from *.i files into - *.cpp files to avoid warnings from G++. I don't know why it - complains but not inlining this code shouldn't matter unless we - find that these functions get called a lot via profiling... - Thanks to David Levine for pointing this out. - -Sun Mar 22 14:04:31 1998 Nanbor Wang - - * tao/tao.{dsp,dsw}: Updated Project files. - - * tao/Exception.{i,cpp}: Conditionally include its inline file. - Added codes for copy ctor and assignment operator for - CORBA_UserException and CORBA_SystemException. - -Sun Mar 22 13:05:15 1998 Aniruddha Gokhale - - * tao: Added comments, made some modifications, and refined some - class definitions. Changes were made to a large number of files. - -Sun Mar 22 08:00:08 1998 Douglas C. Schmidt - - * Naming_Service.h: Renamed tao_util.h to TAO.h. - - * tao: Removed the CORBA_Cls.* files (since they conflict with the - overall naming scheme) and merged them into the ORB.h class. - -Sun Mar 22 03:52:39 1998 Sergio Flores - - * tao/TAO_Internal.cpp (open_services): "this" may only be used - inside a nonstatic member function. - -Sun Mar 22 02:58:29 1998 Nanbor Wang - - * tao/Makefile: - * tao/corba.h: - * tao/CORBA_Cls.{h,i,cpp}: Rename CORBA.{h,i,cpp} to - CORBA_Cls.{h,i,cpp} because NT doesn't like the coexistance of - corba.h and CORBA.h. - -Sun Mar 22 02:39:54 1998 Sergio Flores - - * tao/CORBA.cpp (ORB_init): made change to check for the return - value when initializing the ORB Core instance. Also, changed the - TAO_Marshal::initialize() to be called before the initialization - of standard exceptions, where we need the marshal factory for CDR - streams. - * tao/ORB_Core.cpp (TAO_ORB_Core::init): made change to check for - the return value when initializing service configurator. - * tao/ORB_Core.cpp (TAO_Resource_Factory::parse_args): changes to - correctly parse the options for "-ORBresources" and "-ORBpoa" - -Sun Mar 22 01:52:01 1998 Douglas C. Schmidt - - * tao/CORBA.cpp: Moved TAO_Exceptions::init_standard_exceptions() - to the beginning of ORB_init() so that we can use exceptions - later within that function. Thanks to Sergio for reporting - this. - -Sat Mar 21 11:00:40 1998 Douglas C. Schmidt - - * tao: Renamed a bunch of files so that the names and - capitalization matches precisely. - - * tao/Request.i: Created this file and moved a bunch of inline - methods into here. - - * tao: Renamed the corbacom.* files (since we don't support COM - anyhow) into CORBA.h and the new CORBA.i and CORBA.cpp files. - - * tao/corbacom.h: Moved the CORBA_SEQUENCE stuff back into the - header file since it wasn't linking correctly... - - * tao/TAO_IDL: Changed all uses of do_call() to do_static_call(). - - * tao: Made lots of minor enhancements to formatting and style. - - * tao: Removed the invoke.cpp file and moved its functionality - back into iiopobj.cpp, where it belongs. - - * tao/sequence_T.i (replace): Added a cast to (T *) so compilers - wouldn't complain! Thanks to Sergio for pointing this out. - - * tao: Renamed IIOP_Object::do_call() to - IIOP_Object::do_static_call() to be symmetrical with - do_dynamic_call()... - - * tao/typecode.cpp: Due to the new reorganization of the code in - interp.cpp we're now able to put all the CORBA_TypeCode methods - back into typecode.cpp, where they belong... - - * tao: Added a new interp.h file and moved the TypeCode table - intialization function into that file. - - * tao/orbobj.cpp: Removed the friggin' global functions - - extern void __TC_init_table (void); - extern void __TC_init_standard_exceptions (CORBA::Environment &env); - - and put them inside of classes, where they belong... - - * tao/corbacom.cpp: Moved CORBA::ORB_init() from orbobj.cpp - (what was it doing there) to corbacom.cpp, which is where it - belongs! - - * tao/giop.cpp: Moved the TAO_GIOP_MsgType enum into the TAO_GIOP - class namespace and renamed all the enums accordingly. - - * tao/except.cpp: Added except.i file to split off inlines into - their own file. - - * tao/sequence_T.i (replace): Fixed some typos in the template - code. Thanks to Ben Eng for reporting these. - -Sat Mar 21 20:34:39 1998 Sergio Flores - - * tao/connect.cpp (open): fixed a bug due to wrong parens - location. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: added option to - disable use of the name service. hacked the code for platforms - that don't support floating point math. Added Quantify start/stop - primitives around CORBA calls. - -Sat Mar 21 17:55:40 1998 Michael Kircher - - * orbsvcs/test/Simulator/NavWeap.idl: removed typo - - * orbsvcs/test/Simulator/DOVEBrowser: New Demo using Java Beans - as visualization components added. This will replace the old - demo under orbsvcs/test/Simulator/Sim_Display. See the readme - file under orbsvcs/test/Simulator for further details. - -Fri Mar 20 23:25:28 1998 Seth Benjamin Widoff - - * orbsvcs/tests/Trading_Service/Makefile: - * orbsvcs/tests/Trading_Service/export_tests.cpp: - * orbsvcs/tests/Trading_Service/import_tests.cpp: - * orbsvcs/tests/Trading_Service/Offer_Exporter.{h,cpp}: - * orbsvcs/tests/Trading_Service/Offer_Importer.{h,cpp}: - * orbsvcs/tests/Trading_Service/Service_Type_Exporter.{h,cpp}: - * orbsvcs/tests/Trading_Service/TT_Info.{h,cpp}: - * orbsvcs/tests/Trading_Service/TTest.idl: - I've added the rough draft of tests that pound the Trading Service - with a variety of method invocations. - - * orbsvcs/Trading_Service/trader.cpp: - * orbsvcs/Trading_Service/Makefile: - The trader now responds to resolve_intial_references multicast - requests with the IOR of its Lookup interface, as per the - specification. - -Fri Mar 20 21:48:47 1998 Douglas C. Schmidt - - * TAO version 0.1.9, released Fri Mar 20 21:48:47 1998. - -Fri Mar 20 19:46:43 1998 Douglas C. Schmidt - - * tao/sequence_T: Added the full complement of get_buffer(), - replace(), and release() calls to TAO's sequences. - - * docs/releasenotes/index.html (href): Reformatted the DOVE - demo section of the release notes a bit. - -Thu Mar 20 17:05:42 1998 Michael Kircher - - *TAO_ROOT/docs/releasenotes/index.html: - Documentation about the DOVE demo - -Fri Mar 20 16:21:28 1998 Irfan Pyarali - - * tests/POA/Generic_Servant/MyFooServant.h: No need to include - generic_servant_export.h. - - * tests/POA/Generic_Servant/Makefile: Added flags to the idl - compiler so that the server library can be made as a dynamic - library. - -Thu Mar 20 16:12:42 1998 Michael Kircher - - *TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier: - New Project and Workspace files for NT - -Fri Mar 20 11:53:15 1998 Nanbor Wang - - * tests/NestedUpcall/client.cpp: Use EventHandler_vare.in() to - pass in a pointer. Added explicit template instantiation - codes. - -Fri Mar 20 09:46:50 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: - Locks are needed for the memory pool singletons; thanks to - Thomas Venturella for detecting this. - -Fri Mar 20 09:26:28 1998 David L. Levine - - * tests/POA/Generic_Servant/MyFooServant.h: added - #include "generic_servant_export.h". - - * tao/corbacom.{h,cpp},tao/encode.cpp,tao/poa.cpp, - TAO_IDL/ast/ast_generator.cpp,TAO_IDL/be/be_generator.cpp: - changed CORBA::WChar from platform-dependent type to ACE_UINT16. - This may require casts in application code, if they use - a native wchar_t, from wchar_t to CORBA::WChar. - -Fri Mar 20 02:47:22 1998 Nanbor Wang - - * tao/default_server.cpp - (create_servant_lock,create_poa_lock,create_poa_mgr_lock): - Don't return 0 but an ACE_Null_Mutex as default. - -Fri Mar 20 00:36:16 1998 Irfan Pyarali - - * tao/poa.cpp (dispatch_servant_i): The POA Current was not being - setup correctly. It was used before it was created. Fix was to - change the order of things in dispatch_servant_i() and restored - pre_invoke() to its original state. - - * tests/POA/Generic_Servant/client.cpp (main): Make sure the - client does not crash if the user does not provide an IOR. - - * tests/POA/Generic_Servant/MyFooServant.h (MyFooServant): Added - export macro so that the class gets properly included in the - DLL. - - * TAO_IDL/GenExportH.BAT: Changed %1% to %1. - - * tests/POA/Generic_Servant/generic_servant_export.h: The server - lib will now be created as a DLL instead of as a static library. - New file was added to get the exports right. - -Thu Mar 19 18:42:20 1998 Nanbor Wang - - * TAO_IDL/be/be_visitor_attribute.cpp (visit_attribute): Undefined - variable bt to removed a compilation warning. - - * tao/server_factory.cpp (create_servant_lock): - * tao/default_server.{h,cpp} (create_servant_lock): Added new - method which creates a servant lock according to various - strategies used. - -Thu Mar 19 18:45:13 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/AVStreams/client.h: - * orbsvcs/tests/AVStreams/client.cpp: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: - * orbsvcs/orbsvcs/AVStreams.idl (interface MMDevice): - PropertyService's PropertySet methods have been tested in the - AVStreams' test application. Tested using the MMDevice interface - of the AVStreams. - -Thu Mar 19 18:20:42 1998 Michael Kircher - - *TAO_ROOT/orbsvcs/tests/Simulator/README: New notes about this release - - *TAO_ROOT/orbsvcs/tests/Simulator/NavWeap.idl: New, simpler Weapons struct - because of a Visibroker for Java 3.2 bug. - - *TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier: Using the new - Weapons struct. - - *TAO_ROOT/orbsvcs/tests/Simulator/Sim_Display/NS_Resolve.java: Complying - with the new Name Service lookup protocol (4 bytes instead of 2) - - *TAO_ROOT/orbsvcs/tests/Simulator/Sim_Display/Display_Weapons.java: - Using the new Weapons struct. - - *TAO_ROOT/orbsvcs/tests/Simulator/Sim_Display/Display_Push_Consumer.java: - Complying with the naming conventions for the skeleton code of VB 3.2. - -Thu Mar 19 10:51:22 1998 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Updated entry for the property service. - -Thu Mar 19 09:55:41 1998 Carlos O'Ryan - - * tests/CDR/README: - * tests/CDR/basic_types.cpp: - * tests/CDR/tc.cpp: - Added basic documentation on the purpose of the tests. - -Thu Mar 19 09:26:25 1998 Torben Worm - - * docs/releasenotes/index.html: Added an entry for the Concurrency - Control Service - -Thu Mar 19 08:41:27 1998 David L. Levine - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (new_context): replaced - ???! with ???? in comment to avoid g++ "warning: 1 trigraph(s) - encountered". - - * orbsvcs/orbsvcs/Sched/Scheduler.cpp: removed two ACE_Lock_Adapter - template instantiations because they're in tao/poa.cpp. - - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: wrapped a few return - statements that follow ACE_THROW's with ACE_NOTREACHED. - - * orbsvcs/orbsvcs/Config_Scheduler.cpp: wrapped a couple of break - statements that follow returns with ACE_NOTREACHED. - -Thu Mar 19 05:26:10 1998 Aniruddha Gokhale - - * tao/typecode.cpp: In private_member_name, the return value of - "skip_typecode ()" was incorrectly compared with TRAVERSE_CONTINUE - rather than with a boolean value. This is now fixed. - -Wed Mar 18 21:43:46 1998 Aniruddha Gokhale - - * tao/typecode.cpp: private_equal method had a big error. I had - forgotten break statements after every case in the switch - statement. So no matter what, the last result which returned - "TRUE" used to be returned. This is now fixed. - -Wed Mar 18 21:32:24 1998 Douglas C. Schmidt - - * TAO version 0.1.8, released Wed Mar 18 21:32:24 1998. - -Wed Mar 18 21:26:29 1998 David L. Levine - - * orbsvcs/orbsvcs/Naming/Ior_Multicast.cpp (IOR_Multicast): - reordered initializers to match declaration order. - -Wed Mar 18 20:36:46 1998 Douglas C. Schmidt - - * tests/CDR/basic_types.cpp: Rearranged this test file a bit to - make it more structured. - -Wed Mar 18 18:52:12 1998 Aniruddha Gokhale - - * tao/object.{h, cpp}: Changed the name of the method "key ()" to - "_key ()" since this was clashing with names used by users in - their IDl files. As such "key" is not a standard method defined by - OMG on the class Object. Hence we must use a _ before it. - - * tao/{poa, servant_base}.cpp: Used _key instead of key as - explained above. - -Wed Mar 18 18:41:34 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/main.cpp (main): Added testcode - for NamesIterator. - -Wed Mar 18 18:33:08 1998 Aniruddha Gokhale - - * tao/any.cpp: There was a bug in the assignment operator whereby - a Release was causing the Any object itself getting deleted. - - * tao/poa.cpp: Changed occurrences of "buffer ()" used on the - object key (which is a sequence) to use "get_buffer" according to - the latest C++ mapping. - -Wed Mar 18 18:32:04 1998 Sergio Flores - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - * orbsvcs/orbsvcs/Naming/CosNaming_i.h: Fixed some allocation - errors and added synchronization mechanism for static internal - data structures. Also fixed an undefined symbol due to templates - not being instantiated. - -Wed Mar 18 17:22:40 1998 Douglas C. Schmidt - - * tao/sequence_T.h: Renamed buffer() to get_buffer() to confrom to - orbos/98-01-11. - - * tao/sequence[_T].*: Added the get_buffer(), release(), and - replace() methods defined by the proposed orbos/98-01-11 - specification. - -Wed Mar 18 16:54:33 1998 Irfan Pyarali - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (next_n): Changed ACE_NEW - to ACE_NEW_RETURN. - -Wed Mar 18 16:39:40 1998 Seth Benjamin Widoff - - * tao/orbobj.{h,cpp}: * tao/params.{h,cpp}: * tao/orbcore.cpp: - Expanded the resolve initial references protocol to include - bootstrappable services other than the Naming Service. Now, the - multicast message includes a field identifying the target - service. The values for this field are defined in orbobj.h -- - currently there are only TAO_SERVICEID_NAMESERVICE, and - TAO_SERVICEID_TRADINGSERVICE. For completeness I've added for - the -ORBtradingserviceior and -ORBtradingserviceport command - line parameters. - - * orbsvcs/Naming/Naming_Utils.cpp: - * orbsvcs/Naming/Ior_Multicast.cpp: - Now, on the receiving end, the bootstrappable service compares - the service_id it receives in the multicast message with its own - before responding to it. - -Wed Mar 18 16:04:38 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/CosPropertyService.idl (CosPropertyService): - Uncommented sequence of typecodes. It passed the tao_idl - compiler. - -Wed Mar 18 07:18:08 1998 David L. Levine - - * release.pl: uncommented unlink of .del files. - - * tao/encode.cpp (TAO_Marshal_String::encode): #if 0'd unused - local "continue_encoding". - - * tao/sequence{,_T}.cpp: removed some more "meaningless" const - modifiers from casts. - - * tao/typecode.cpp (private_equal): wrapped a break with - ACE_NOTREACHED. - - * tao/corbacom.h: changed CORBA_Boolean to u_char. Thanks - to Seth and Carlos for pointing out that this will conform - to the standard. - - * tao/cdr.i: removed operator <> for CORBA::Boolean _with_ - ACE_HAS_BOOL. No ACE platform currently #defines ACE_HAS_BOOL, - and this will prevent divergence of TAO code if any do in the - future. - -Wed Mar 18 02:08:55 1998 Nanbor Wang - - * tests/Param_Test/client.cpp (~Param_Test_Client): Removed - releasing of the Param_Test pointer. It is owned by the Driver - class. - -Tue Mar 17 23:28:59 1998 Irfan Pyarali - - * tao/poa.h (POA): Changed the LOCATION_RESULT enum from protected - to private. - -Tue Mar 17 13:20:05 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit (print_stats): with - ACE_LACKS_FLOATING_POINT, multiply calls/usec by 10^6 to get - calls/sec. And, use call_count_ instead of hard-coded 1000. - - * tao/orbconf.h,interp.cpp: renamed TAO_ALIGNMENT_MAGIC_NUMBER to - TAO_MAXIMUM_NATIVE_TYPE_SIZE. - - * tao/sequence.i,sequence_T.{i,cpp}: removed "const" from some - ACE_reinterpret_casts, because ghs warned that it's "meaningless". - - * tao/cdr.*,decode.cpp (get_encapsulation): changed type of second - arg from size_t to CORBA::ULong for platform independence. - -Tue Mar 17 11:26:28 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_sequence.cpp: - Fixed return value for operator[] in sequences of basic types, - the _out and _var classes generated non-nested types. Thanks to - Frank. J. Hodum for reporting this problem. - -Tue Mar 17 10:25:46 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_state_argument.cpp: - * TAO_IDL/be/be_state_attribute.cpp: - * TAO_IDL/be/be_state_union.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_exception.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_union_branch.cpp: - Some export macros were missing; also fixed minor formatting - problems. - -Mon Mar 16 18:26:51 1998 Irfan Pyarali - - * tests/POA/Default_Servant/File_i.cpp (open): Fixed string being - passed to create_reference_with_id(). The test now works. - - * tao/poa.cpp (find_servant): Added new method to the POA. It - finds and returns the servant related to the key passed by the - user. - -Mon Mar 16 15:27:21 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - The _narrow() method is more careful about collocation: the - servant could return 0 on the call to _downcast (for instance if - the servant is using DSI or is implementing the default servant - posicies), in such a case a remote object is created. - Generate the _interface_repository_id() method in all classes. - - * TAO_IDL/be/be_visitor_module.cpp: - In some cases the export macros were not generated. - - * tao/object.h: - * tao/object.cpp: - Added a new method to get the interface repository id (only - locally). - - * tao/servant_base.cpp: - Removed some dead code. - -Mon Mar 16 14:28:34 1998 David L. Levine - - * tao/orbconf.h: cleaned up #define of TAO_ALIGNMENT_MAGIC_NUMBER, - to allow it to be overridden. - -Mon Mar 16 10:47:08 1998 Carlos O'Ryan - - * tao/cdr.h: - * tao/cdr.i: - * tao/cdr.cpp: - The CDR stream class exposed its implementation completely, this - change is the first attempt to close that interface and make it - safer. The internal representation was changed to a - Message_Block, so CDR could eventually create chains of - Message_Blocks (minimizing buffer copies and using writev() for - output). - The next step is to split the class in an input and output - interface, following the Java IDL model. - - * TAO_IDL/Makefile: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_enum.cpp: - * TAO_IDL/be/be_visitor_exception.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_structure.cpp: - * TAO_IDL/be/be_visitor_typedef.cpp: - * TAO_IDL/be/be_visitor_union.cpp: - * tao/any.cpp: - * tao/connect.cpp: - * tao/decode.cpp: - * tao/except.cpp: - * tao/giop.h: - * tao/giop.cpp: - * tao/iioporb.cpp: - * tao/interp.cpp: - * tao/objkeyC.cpp: - * tao/poaC.cpp: - * tao/tc_const.cpp: - * tao/typecode.h: - * tao/typecode.cpp: - This files were modified to use (or generate, in the case of the - IDL compiler) the new CDR stream class interface. - - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be/be_type.cpp: - It used a static buffer to evaluate be_type::nested_type_name(), - it was changed for a per-class buffer, but the real solution is - to allocate a buffer on the fly and return it to the user, maybe - using UTL_String will solve the problem. - - * tests/Makefile: - * tests/CDR/Makefile: - * tests/CDR/basic_types.cpp: - * tests/CDR/tc.cpp: - Added some simple tests to verify that CDR streams work - correctly. - - * taoconfig.mk: - The clean target is defined in ACE config files. - - * docs/orbsvcs.html: - Included documentation on the collocation services. - - * docs/releasenotes/ec.html: - Moved some of the changes from "new in this release" to "changes - in previous releases". - -Sun Mar 15 22:36:08 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Admin.* - * orbsvcs/orbsvcs/Trader/Lookup.* - * orbsvcs/orbsvcs/Trader/Policies.* - * orbsvcs/orbsvcs/Trader/Policy_Manager.* - * orbsvcs/orbsvcs/Trader/Offer_Iterator_Collection.* - Added the logic to perform federated queries. At this point I'm - halting further coding of the Trading Service to concentrate on - testing and debugging. The only portion of the specfication left - unimplemented is the Proxy interface, which isn't of immediate - practical use anyway. - -Sun Mar 15 07:56:02 1998 David L. Levine - - * TAO_IDL/be/be_visitor_field.cpp - (be_visitor_field_cs::visit_sequence): made int return type - explicit. - -Sun Mar 15 06:18:58 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/{be_codegen, be_visitor_args}.h: Added a new - state called "POST_MARSHAL_SS" i.e., to do post processing after - the marshaling of return, inout, and out parameters is done in a - server skeleton. Added new visitor class to the argument visitors. - - * TAO_IDL/be/{be_visitor_args, be_visitor_operation, - be_interpretive}.cpp: Code for post processing after marshaling in - the server skeletons. This was required to support object - references. - -Sat Mar 14 19:28:50 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_field.cpp: Added a case for handling - anonymous sequences in the client stub visitor. The header file - was also changed. - -Sat Mar 14 19:29:00 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/client.cpp (print_stats): added - support for ACE_LACKS_FLOATING_POINT. - -Sat Mar 14 16:40:05 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: We were not generating the - "_get_" and "_set_" prefixes for operations corresponding to - attributes. This is now fixed. - - * TAO_IDL/be/be_visitor_enum.cpp: Typecode implementation of enum - class was not getting generated due to an incorrect "if" - condition. Thanks to Seth Widoff for noticing this. - - * TAO_IDL/be/be_visitor_union_branch.cpp: We had forgotten to - generate the "set" and "get" operation implementation for union - members that are sequences. Thanks to Seth Widoff for noticing - this. - -Sat Mar 14 02:48:55 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/Makefile (IDL_FILES): Added the SFP IDL files - and the AV/sfp.cpp to the rules. - -Sat Mar 14 02:17:34 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/*.*: - I've hammered out a number of errors from the initial port: - the Trading Service compiles on Solaris. - - * orbsvcs/orbsvcs/Makefile: - I've added all the necessary additions to the Makefile for the - Trading Service. The makefile will perform the compilation when - the 'trader' flag is set to 1 on the command line. - - * orbsvcs/Trading_Service/Makefile: - * orbsvcs/Trading_Service/trader.cpp: - trader.cpp instantiates a Trader object and registers its Lookup - interface with the bootstrapped Naming Service. All the Trader - interfaces are implicitly activated in the Trader class. In the - future we'll want to have the Trading Service bootstrappable - through the resolve_initial_references method. - -Sat Mar 14 00:36:30 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp (define_property): - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.h (PropertyNamesIterator): - - * orbsvcs/orbsvcs/Property/CosProperty_Hash.cpp (CosProperty_Hash_Value): - - * orbsvcs/orbsvcs/Property/CosProperty_Hash.h: - The tao_idl compiler has been made to generate Any at some places - where it was generating Any_var. Hence, I had to modify this - implementaion to accomadate this change. - -Fri Mar 13 10:34:15 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation.cpp: For return types that are - object references, we were using the actual return type and - passing its address to the marshaling routine. However, the - marshaling routine needs the address of the base class i.e., - CORBA::Object. Due to "public virtual" inheritance all kinds of - crazy things happen. So now we had to resort to declaring the - return value of type "CORBA::Object_ptr" and things worked fine. - -Fri Mar 13 09:57:51 1998 David L. Levine - - * tao/corbacom.h: use types of known sizes, such as ACE_UINT32 - and ACE_INT16, instead of native types for Boolean, Short, - UShort, Float, and Double. - -Thu Mar 12 21:23:10 1998 Nanbor Wang - - * tao/debug.cpp (_dmsg_x): Changed ex->id () to ex->_id (). - -Thu Mar 12 20:40:09 1998 Sergio Flores - - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/run_client: - * tests/Thruput/TAO/run_server: - * tests/Thruput/TAO/run_test: Minor fixes in the scripts and usage - message. - -Thu Mar 12 18:02:06 1998 Seth Benjamin Widoff - - * tao/request.cpp: - * tao/typecode.cpp: - The is_nil methods of typecode and CORBA had this: - (CORBA::Boolean) ptr == 0 to test for the nil condition, when we - really want this: (CORBA::Boolean) (ptr == 0). This way we cast - the result of the expression, and not the pointer, to - CORBA::Boolean. - -Thu Mar 12 17:49:45 1998 Aniruddha Gokhale - - * TAO_IDL/be_visitor_typedef.cpp: For typedefs of pseudo object - types, we had forgottten to generate a typedef to the _ptr type. - -Thu Mar 12 17:21:32 1998 Douglas C. Schmidt - - * tao/sequence_T.cpp: Fixed a couple of weird bugs were freebuf - (MAX) was being called instead of freebuf (tmp). Thanks to - Keith Nicewarner for reporting this. - -Thu Mar 12 15:53:44 1998 Aniruddha Gokhale - - * tao/except.h: Changed the member functions "type ()" and "id ()" - on the CORBA::Exception class to "_type ()" and "_id ()". This - affected the following files: - tao/{except, object, poaC, svrrqst}.cpp - - * TAO_IDL/be/be_visitor_exception.cpp: Made changes to use the - _type and _id methods. Thanks to Seth Widoff for noticing this in - his Trader application where a user defined exception had a member - called "type" which clashed with the base class operation "type". - -Thu Mar 12 15:00:47 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_exception.cpp: In those cases where object - references or strings were assigned, the g++ compiler failed to do - implicit conversion to assign a _var to a _ptr type. This is now - fixed by using the _var.in () method. - - * TAO_IDL/be/be_visitor_typedef.cpp: Fixed a bug that was - generating typecode information for data types that were imported - resulting in a multiply defined symbol error at link time. - -Thu Mar 12 09:01:43 1998 David L. Levine - - * TAO_IDL/Makefile: added -Wno-unused to g++ CCFLAGS to - suppress warnings about unused parameters and variables. - - * TAO_IDL/be/be_visitor_interface.cpp - (be_visitor_interface_sh::visit_interface, - be_visitor_interface_collocated_ss::visit_interface): - changed type of loop index "i" to signed, to avoid - signed/unsigned comparison. - - * TAO_IDL/be/be_visitor_sequence.cpp - (be_visitor_sequence_ci::visit_sequence): made int return - type explicit. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (~Cubit_Server): changed - root_poa_ to poa_. - -Thu Mar 12 01:03:17 1998 Irfan Pyarali - - * tests/POA/NewPOA/NewPOA.cpp (main): Updated the following files - to correctly use CORBA::Policies that are used to create new - POAs. Things that needed fixing included proper exception - handling and making sure to destroy the policies once we were - through using them. - - - TAO/tao/tao_util.cpp - - TAO/tests/Cubit/TAO/MT_Cubit/server.cpp - - TAO/tests/POA/Default_Servant/server.cpp - - TAO/tests/POA/Explicit_Activation/server.cpp - - TAO/tests/POA/NewPOA/NewPOA.cpp - - TAO/tests/POA/On_Demand_Activation/server.cpp - -Wed Mar 11 21:02:13 1998 David L. Levine - - * tao/svrrqst.cpp (marshal): instead of declaring a new loop - index "i", use the one at outer scope because it was shadowed. - -Wed Mar 11 18:10:47 1998 Nanbor Wang - - * tao/TAO_IDL/tao_idl.dsp: Added new visitor files into the project. - -Wed Mar 11 17:23:49 1998 Douglas C. Schmidt - - * tao/tao_util: Changed the name of root_poa_ to poa_ since it - doesn't have to be a root POA. - -Wed Mar 11 14:37:08 1998 Aniruddha Gokhale - - * TAO_IDL/Makefile: Included be_visitor_exception.cpp and ran make - depend - - * TAO_IDL/be/be_interpretive.cpp: The factory is now able to - produce concrete visitors for exceptions. - - * TAO_IDL/be/be_visitor_args.cpp - TAO_IDL/be_include/be_visitor_args.h: Added a method - "void_return_type" that determines if the operation return type - was "void" or not. This was necessary since we were incorrectly - generating ACE_NEW_RETURN statements in stubs for cases that had - void return types - - * TAO_IDL/be/be_visitor_context.cpp - TAO_IDL/be_include/be_visitor_context.h: Added a boolean data - member that indicates whether we are generating the special - constructor in the exceptions. - - * TAO_IDL/be/be_visitor_exception.cpp - TAO_IDL/be/be_visitor_exception.h: Added various visitors for - exception handling. - - * TAO_IDL/be/be_visitor_{struct, union, module, interface, - sequence}.cpp: Made sure that code is not generated for imported - types. - - * TAO_IDL/be/be_visitor_typedef.cpp: Eliminated the multiple - declaration of typedefed variables and their typecodes. - - * TAO_IDL/be/be_visitor_interface.cpp: The "_is_a_skel" now uses - the same table driven approach as the other skeletons do. - -Wed Mar 11 12:54:59 1998 Irfan Pyarali - - * tests/POA/Explicit_Activation/server.cpp (main): The server was - changed to test how the POA handles a user given ID which does - not contain printable characters. - - * tao/poa (Policies and Currents): Since Policies and Currents do - not have locality constraints, they now inherit from regular - servants rather than local servants. This change causes them to - register with POAs when their _this() method is invoked. - Therefore, the destroy() methods on the Policies was changed to - make sure that the Policies are deactivated from the POA they - were registered with. - - * tao/sequence_T.cpp (operator=): The semantics of the elements of - a sequence are the same as that of a var variable. Therefore we - will not duplicate the user provided pointer before assigning it - to the internal variable. However, we will release it. - -Tue Mar 10 16:09:56 1998 Aniruddha Gokhale - - * tao/cdr.{h,cpp}: Added a get_string and put_string method for - retrieving and encoding a string. This uses "memcpy" rather than - having to go through a get_char/put_char for every byte of the - string. - - * tao/connect.cpp: In "handle_request", the marshaling of inout, - out, and return value parameters was done inside this method after - the operation skeleton had returned. This required unnecessary - heap allocation of these parameters. Allocating these parameters - on the skeleton call stack was not possible since the marshaling - took place after the skeleton had returned. To eliminate these - unnecessary waste, 2 new methods on the ServerRequest class are - added that perform the demarshaling and marshaling while the - skeleton call stack is active. More explanation on these is given - below. - - * tao/{encode, decode}.cpp: Used the get_string and put_string - methods on the CDR class. - - * tao/giop.*: Added a method called "stream" that returns a - reference to the underlying CDR stream. This is helpful when you - need access to the stream so that data types can be marshaled into - the stream using a compiled form of marshaling. This form of - marshaling will soon be added to TAO IDL compiler. - - * tao/object.{h, cpp}: Added a method called "stubobj" which - returns a pointer to the underlying Stub_Object. This method - eliminates the need to call QueryInterface inside every stub. This - way some code size is reduced. - - Also, removed the "get_most_derived" method as well as the "void - *sub_" data member which was useless. - - * tao/svrrqst.{h, i, cpp}: Added a new file svrrqst.i. Added two - new methods on class IIOP_ServerRequest. These methods enable - demarshaling and marshaling of parameters while the operation - skeleton's call stack is active. The interface to these methods is - exactly like the one used by do_call i.e., a table driven - approach. Two new data structures - TAO_Param_data_Skel and - TAO_Call_Data_Skel are added. These two tables behave in exactly - the same way as the TAO_Param_Data and TAO_Call_Data tables. See - the generated code to see how these are used by the demarshal and - marshal methods. - - Two more methods and data members are added to this class - - "incoming" and "outgoing". These are the CDR streams that indicate - the incoming and the outgoing CDR streams. - - An additional "init_reply" method is added that is useful for the - compiled marshaling. This is still experimental. - - * TAO_IDL: This is the first release of the new TAO_IDL compiler - based on the Visitor pattern. All the old files and code is still - included in this release until the transition is complete. - - Although the Visitor pattern is used, we still maintain all the - code generation states we had in the previous version of the - compiler. The reason is that we maintain a Factory of Visitors - indexed on these enumerated states. The downside is the necessity - to have states and a larger code size. The larger code size is due - to the fact that everytime a Visitor is required, we must first - set the appropriate state and then ask the factory to produce it - for us. The positive side of this design is that almost all the - Visitor files are independent of each other. They only deal with - an abstract base level Visitors. The Factory will produce the - appropriate specialized Visitor which is a subclass of the base - "visitor" class. An additional benefit is that we can switch from - having to generate code that uses Interpretive marshaling to - compiled marshaling. Visitors for compiled marshaling will be - added later. Here are the files that are added: - - be_include/ - be_visitor.h - be_visitor_args.h - be_visitor_attribute.h - be_visitor_constant.h - be_visitor_context.h - be_visitor_decl.h - be_visitor_enum.h - be_visitor_field.h - be_visitor_interface.h - be_visitor_interface_fwd.h - be_visitor_module.h - be_visitor_operation.h - be_visitor_root.h - be_visitor_scope.h - be_visitor_sequence.h - be_visitor_structure.h - be_visitor_typedef.h - be_visitor_union.h - be_visitor_union_branch.h - be/ - be_visitor.cpp - be_visitor_args.cpp - be_visitor_attribute.cpp - be_visitor_constant.cpp - be_visitor_context.cpp - be_visitor_decl.cpp - be_visitor_enum.cpp - be_visitor_exception.cpp - be_visitor_field.cpp - be_visitor_interface.cpp - be_visitor_interface_fwd.cpp - be_visitor_module.cpp - be_visitor_operation.cpp - be_visitor_root.cpp - be_visitor_scope.cpp - be_visitor_sequence.cpp - be_visitor_structure.cpp - be_visitor_typedef.cpp - be_visitor_union.cpp - be_visitor_union_branch.cpp - - NOTE: Code generation for attributes is achieved by using a crude - form of the Adapter pattern. We convert the Attribute node into - one or possibly two operation nodes and add scope elements that - are arguments. The code gene ration is then handed over to the - Operation Visitors. - - * be/be_interpretive.cpp: This file defined the implementation of - the Factory of Visitors for intepretive marshaling. - - * be_include/be_codegen.h: Added a few more states. Some others - are now useless. They will be removed eventually. Also added the - Abstract Factory for Visitors. - - * Makefile: Modofoed to include all the visitor files and ran - "make depend" on it. - -Tue Mar 10 13:22:20 1998 David L. Levine - - * orbsvcs/tests/Event_Latency/Makefile, - orbsvcs/tests/EC_Multiple/Makefile, - orbsvcs/tests/Simulator/Event_Supplier/Makefile: removed -pedantic - from g++ CCFLAGS because prevented use of native long long - (Linux/i386). - - * orbsvcs/orbsvcs/RtecScheduler.idl: addressed RT_Info open issues, - and updated to match TAO paper. The updates consisted of - changing the names of the Importance enum values so that we - don't have collisions when criticality is added, and comment - updates. - - * orbsvcs/Event/Dispatching_Modules.cpp,ReactorTask.cpp, - orbsvcs/Sched/Config_Scheduler.cpp, - orbsvcs/tests/EC_Multiple/EC_Multiple.cpp, - orbsvcs/tests/Event_Latency/Event_Latency.cpp, - orbsvcs/tests/Simulator/Event_Supplier/Event_{Con,Sup}.cpp: - added _IMPORTANCE to Importance enum values. - -Mon Mar 09 22:27:53 1998 Irfan Pyarali - - * tests/POA/Generic_Servant/client.cpp: Added code to time calls - and produce stats. - - * tao/svrrqst: Removed the lock in CORBA_ServerRequest which was - used to protect the refcount. This protection was excessive. - - * tao/optable.cpp: Changed the table so that it does not use a RW - Lock. Since the optable is read only, a null lock will suffice. - - * tao/objtable.cpp: Changed the implementation of - TAO_Dynamic_Hash_ObjTable so that it does not use a RW Lock. The - POA takes care of all necessary locking, and therefore, a null - lock will suffice. - - * tao/poa: The following optimizations were made to decrease the - time a POA takes to find a servant: - - - Added new classes TAO_Creation_Time and - TAO_Temporary_Creation_Time. These classes are used to record - and compare the creation time of POAs. The old method was - inefficient as unsigned long were used. These long required - conversions to strings. The new scheme uses a fixed size - buffer. The TAO_Temporary_Creation_Time is a special class - that tracks the creation time only during the lifetime of the - upcall. - - - parse_key_permanent_id() and parse_key_temporary_id() were - added so that the parse_key() routine can distinguish when to - create a new id and when to create a special id which is only - used during the lifetime of the upcall. - - - rfind() was added so that the TAO_POA::String::rfind() does - not have to be used. - - - Changed the object_key_type from String to char. - - - In post_invoke(), only create the POA_var if necessary. - - - Changed create_object_key() and parse_key() so that the old - format of: - - Transient/Seconds/MicroSecond/POAName/ObjectId - - to: - - T/TimeStampPOAName/ObjectId - - - Removed excessive memcpy() and strcpy() calls in parse_key(). - - - Changed create_object_id() to not include the POA name. - - - Changed is_poa_generated_id() to take the changes to - create_object_id() into account. - - - Changed string_to_ObjectId() and ObjectId_to_string() to not - use encode and decode routines. - -Mon Mar 9 15:23:19 1998 Sumedh Mungee - - * orbsvcs/tests/AVStreams/mpeg/source/server/server.cpp (open): - Temporarily disabled use of threads, and reverted back to the - forking model. The threaded model needs more work before it can - safely support multiple clients. - -Mon Mar 9 14:57:13 1998 Carlos O'Ryan - - * tao/sequence.h: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.cpp: - Removed the _narrow_fixup() method, it was causing problem with - sequences of TypeCodes and it is not really needed: the - functionality can be implemented in the stubs (skeletons) and/or - the >>= methods. - -Mon Mar 09 09:59:01 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: removed - VxWorks-specific code, because it was no longer used, and - relied on a header that was not distributed with TAO. - -Sat Mar 07 12:14:58 1998 Chris Cleeland - - * TAO version 0.1.7, released Sat Mar 07 12:14:58 1998. - -Sat Mar 7 11:59:27 1998 Chris Cleeland - - * tao/orb_core.cpp (get_root_poa): Changed this from being a - macro-implemented method to a hand-implemented method. This is - necessary b/c the location of its resource is keyed not off - resource_source_ but rathe off poa_source_, and there's no macro - avaialble for that. Thanks to John Geiss for - reporting the bug that led to this fix! - -Sat Mar 07 08:29:51 1998 David L. Levine - - * tao/orb_core.cpp (TAO_Default_Reactor ctor and dtor): removed - inline qualifiers. - - * tests/Cubit/TAO/MT_Cubit/Makefile: changed -lm to(MATHLIB). - It looks like Sun C++ and g++ link with -lm by default, so - there shouldn't be any affect on those platforms. Others may - have to define MATHLIB in their platform_macros.GNU. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - changed variables low_client and high_client to low_priority_client - and high_priority_client. Replaced use of cerr with ACE_DEBUG. - -Fri Mar 6 17:56:25 1998 Chris Cleeland - - * Aloha: I bid fond farewall to Team TAO for now. Thanks for the - fun times! - - * tests/NestedUpcall/server.cpp: Integrated new stuff. - - * tests/NestedUpcall/client.cpp: Called new 'stop' method. - - * tests/NestedUpcall/{Reactor.idl,reactor_i.*}: Added 'stop' to Reactor - interface to shutdown the server. - - * tao/tao_util.cpp: Added code to explicitly destroy policies - after creating a child POA. - - * tao/poaS.h: Added a little comment to bring this up in C++ mode - in emacs. - - * tao/poa.cpp: Performed explicit deletes on buffers. - - * tao/object.{cpp,i}: Moved DTOR into .cpp and stuck in comment - explaining refcount semantics on CORBA_Object. - - * tao/iiopobj.i: Changed initial refcount value to zero; the ORB - Core must perform an explicit AddRef() if it intends to hold on to - this object. - - * tao/iiopobj.cpp: Changed Release() so that it will call 'delete - this' whenever the refcount is below zero. - -Fri Mar 06 11:38:38 1998 Nanbor Wang - - * docs/Options.html: Shrinked the table widths to 80% so we can - see everything without scrolling. Thanks to Darrell for the - HTML tip. - -Fri Mar 06 09:36:47 1998 David L. Levine - - * tao/object.i (CORBA_Object): reordered initializers to match - declaration order. Also, move _set_parent () before the - constructor so that it is defined before being used. - - * tao/cdr.{i,cpp}: modified to base in/out operations - on ULongLong instead of LongLong, because we have - better support for ULongLong with ACE_LACKS_LONGLONG_T. - - * tao/cdr.{h,cpp} (get_ulonglong): removed const argument qualifier. - -Fri Mar 06 00:18:38 1998 Irfan Pyarali - - * tao/poaS and poaC: Removed about a 1000 lines of stubs and - skeletons code from poaC.cpp and poaS.cpp. This code was not - necessary because of the locality constraints on certain POA - objects. This should help reduce the footprint of TAO. - -Thu Mar 5 19:54:27 1998 Sergio Flores - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: bind_context, rebind, - and bind were fixed to handle errors more carefully. Thanks to - Mark Boriack for pointing this out. - -Thu Mar 5 18:15:32 1998 Chris Cleeland - - * tao/giop.cpp: Removed crufty unused code. - - * tao/iioporb.cpp: - * tao/iiopobj.*: - * tao/decode.cpp: - * tao/object.{h,i}: - * tao/orbobj.cpp: - * tao/poaC.cpp: - * tao/request.cpp: - * tao/servant_base.{h,cpp}: - Broke the old, incestous, bizarre "contained" relationship between - IIOP_Object and CORBA_Object. Now, multiple CORBA_Objects can - reference the same IIOP_Object, and each is reference-counted - separately. Moreover, an IIOP_Object has no back-pointer to a - CORBA_Object. All of this should help alleviate many memory - leaks. - - * TAO_IDL/be/be_interface.cpp: Changed emitted code for _narrow - and _bind to deal with new relationship btw. CORBA_Object and - IIOP_Object. - -Thu Mar 5 17:45:28 1998 Carlos O'Ryan - - * tao/cdr.i: - If CORBA::WChar is an alias for CORBA::Short we cannot overload - operator<< on it. - - * tao/corbacom.h: - * tao/typecode.h: - MSVC++ does not like a class forward declared as a structure. - - - * tests/Cubit/TAO/MT_Cubit/Makefile: - -lm is required in IRIX. - -Thu Mar 05 16:18:53 1998 Irfan Pyarali - - * tao/poa.cpp (ObjectId_to_wstring and ObjectId_to_const_wstring): - Changed the odd looking access to a sequence's buffer to use the - new buffer() accessor. - -Thu Mar 5 13:15:37 1998 Carlos O'Ryan - - * tao/cdr.h: - * tao/cdr.i: - Added a error flag to the class and some << and >> operators to - start a more useable interface for the CDR streams. - - * tao/any.h: - * tao/any.cpp: - * tao/except.h: - * tao/except.cpp: - * tao/nvlist.h: - * tao/nvlist.cpp: - * tao/principa.h: - * tao/principa.cpp: - * tao/request.h: - * tao/request.cpp: - * tao/typecode.h: - * tao/typecode.i: - * tao/typecode.cpp: - They don't inherit from IUnknown any more. Removed the - QueryInterface method, but kept AddRef and Release to keep the - change propagation to a minimum. - In accordance to the new memory managment scheme the locks were - also removed, the agument is: - + In the common case the locks are *not* needed. - + When needed a lock at that level does *not* work. - + The application can add its own locking for the objects that - are effectively shared among threads. - - * tao/sequence.h: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.cpp: - Sequences of objects require some post processing *after* - demarshalling: the object references must be narrowed to the - right type; a new virtual method was added for that purpose. - -Thu Mar 05 09:08:09 1998 David L. Levine - - * .../Makefile: added(POSTLINK) to link commands. - Please, if you don't use rules.bin.GNU, be sure to - follow it as closely as possible. - -Wed Mar 04 19:49:31 1998 David L. Levine - - * tao/orb_core (preconnect): changed type of loop index to - size_t to avoid signed/unsigned comparison. Added some - template instantiations. - -Wed Mar 4 16:35:37 1998 Chris Cleeland - - * tao/orbobj.*: Added an extension to the CORBA_ORB interface - that allows an application to preconnect to multiple servers by - specifying a string of host:port pairs. - - * tao/orb_core.*: Broke the preconnection logic out of init() - and made it its own method, preconnect(). This also uses - Connector<>::connect_n() rather than implementing its own loop. - It really didn't make things much easier, but we can take - advantage of future improvements to that implementation - transparently, now. - - * docs/Options.html: Added more details on various options. - -Tue Mar 03 21:11:22 1998 David L. Levine - - * orbsvcs/orbsvcs/RtecScheduler.idl: updated a comment: the units - of Period are 100 ns. - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp (initialize_queues), - Task_Manager.cpp (initialize): maintain period in units of 100 ns - when converting period from a 64 bit to a 32 bit int. - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp (open_queue), - ReactorTask.cpp (open_reactor): assign name to thread using units - of us. - -Mon Mar 2 19:01:44 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/main.cpp (class - TAO_PropertySet_Tester): Added this wrapper class to organise my - test code, testing the methods in the PropertyService interfaces. - -Mon Mar 2 16:48:59 1998 Carlos O'Ryan - - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - * TAO_IDL/util/utl_global.cpp: - More changes attempting to remove the \ problem for NT. - - * tao/orbobj.h: - Added a missing TAO_Export macro. - - * tao/typecode.h: - * tao/typecode.i: - Added the _var and _out classes for CORBA_TypeCode. - - * tao/corbacom.h: - Added the TypeCode_var and TypeCode_out classes to the CORBA - class. - -Mon Mar 2 15:39:57 1998 Douglas C. Schmidt - - * tao/sequence_T.h: Added a ptr() accessor to both the - TAO_Bounded_Sequence and TAO_Unbounded_Sequence classes. Thanks - to Carol Sanders for suggesting this. - - * tao/sequence[_T].{i,cpp}: Cleaned up a bunch of - ACE_reinterpret_cast() operations. Thanks to Russ Noseworthy - for reporting this. - -Mon Mar 2 13:13:19 1998 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - Fixed pathname canonization for NT, we convert a double - backslash into a single slash. - -Mon Mar 02 08:00:41 1998 David L. Levine - - * tao/orb_core.cpp: only instantiate ACE_Convert with g++. - Even that shouldn't need it, because it's always inline. - But, g++ typically creates out-of-line instantiations of - inline template member functions. - - * tao/sequence.{h,cpp} (TAO_{B,Unb}ounded_Base_Sequence): - added (virtual) destructors. Without them, GreenHills on - Chorus was duplicating their vtables when instantiating - templates based on those classes. - - * orbsvcs/orbsvcs/Makefile,tmplinst-orbsvcs.cpp: - renamed tmplinst.cpp to tmplinst-orbsvcs.cpp to avoid mangled name - collisions with tmplinst.cpp in test directories, when using - GreenHills/Chorus. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (main): added explicit - int return type. - -Sun Mar 1 13:42:56 1998 Nanbor Wang - - * release.pl: This script will now move the 'Current' tag to - point to the latest beta release. - -Sun Mar 1 10:40:31 1998 Aniruddha Gokhale - - * tao/{poa, objtable}.cpp: Removed the "Anachronism" warning - associated with the _out parameters passed to the find () method. - -Sat Feb 28 18:37:54 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosProperty_Hash.cpp: - * orbsvcs/orbsvcs/Property/CosProperty_Hash.h: - * orbsvcs/tests/CosPropertyService/main.cpp: - Added some more code to test the functions defined in CosPropertyService_i.cpp. - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.h: - * orbsvcs/orbsvcs/CosPropertyService.idl: - * orbsvcs/tests/Makefile (DIRS): Added the directory - CosPropertyService under DIRS here. It is compiled when av=1. - -Fri Feb 27 19:55:09 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp (main): Added this - file which spawns the server and client and terminates them after - some time. - -Fri Feb 27 17:57:55 1998 Chris Cleeland - - * tests/NestedUpcall/server.cpp: Started integrating the - TAO_ORB_Manager, but it's untested thus far so it's - conditionally-compiled out. - - * tao/{any,connect,default_server,except, - orb_core,orbobj,principa,request}.cpp: Whacked out a bunch of @@ - comments. - -Fri Feb 27 16:11:53 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.h: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Changes to make it compile on - sigle-threaded platforms. - - * docs/releasenotes/index.html: update to naming service - entry. - -Fri Feb 27 15:03:58 1998 Chris Cleeland - - * docs/Options.html (TAO_Default_Server_Strategy_Factory): Added - documentation for POA-related lock strategies. - - * tao/connect.cpp (handle_input): Added call to - Reactor::suspend_handler() in here so that, in the bizarre corner - case where sub-event loop "A" eventually leads to sub-sub-event - loop "B" being called, but input becomes available for "A"'s - descriptor prior to "B"'s descriptor, B's loop won't spin wildly, - gobbling up CPU. - -Fri Feb 27 15:00:42 1998 David L. Levine - - * orbsvcs/orbsvcs/Time_Utilities.i (hrtime_to_TimeT): with - ACE_LACKS_LONGLONG_T, set the high word directly. The - ACE_U_LongLong operator >> returns an ACE_U_LongLong, - so the assignment won't work otherwise. - - * tao/orb_core.cpp: added ACE_Convert (const char *, u_int &) - instantiation. - -Fri Feb 27 12:08:19 1998 Nanbor Wang - - * tao/orb_core.h (TAO_Resource_Factory): Changed to use - TAO_Default_Reactor class in TAO_Resource_Factory. - -Fri Feb 27 11:10:24 1998 Chris Cleeland - - * test/NestedUpcall/{eh_i,reactor_i}.cpp: Changed debug statements - to utilize the new ACE_Log_Msg conversions to indent scopes, etc. - -Fri Feb 27 00:40:36 1998 Douglas C. Schmidt - - * TAO version 0.1.6, released Fri Feb 27 00:40:36 1998. - -Thu Feb 26 19:29:33 1998 Seth Benjamin Widoff - - * orbscvs/orbsvcs/Trader/Admin.cpp: - * orbsvcs/orbsvcs/Trader/Admin.h: - * orbsvcs/orbsvcs/Trader/Attributes.cpp: - * orbsvcs/orbsvcs/Trader/Attributes.h: - * orbsvcs/orbsvcs/Trader/Constraint.cpp: - * orbsvcs/orbsvcs/Trader/Constraint.h: - * orbsvcs/orbsvcs/Trader/Constraint_Evaluator.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Evaluator.h: - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h: - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.h: - * orbsvcs/orbsvcs/Trader/Constraint_Tokens.h: - * orbsvcs/orbsvcs/Trader/Constraint_Validator.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Validator.h: - * orbsvcs/orbsvcs/Trader/Constraint_Visitor.h: - * orbsvcs/orbsvcs/Trader/Constraint_l.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_y.cpp: - * orbsvcs/orbsvcs/Trader/Dynamic_Property.cpp: - * orbsvcs/orbsvcs/Trader/Dynamic_Property.h: - * orbsvcs/orbsvcs/Trader/Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Interpreter.h: - * orbsvcs/orbsvcs/Trader/Link.cpp: - * orbsvcs/orbsvcs/Trader/Link.h: - * orbsvcs/orbsvcs/Trader/Lookup.cpp: - * orbsvcs/orbsvcs/Trader/Lookup.h: - * orbsvcs/orbsvcs/Trader/Monitor.h: - * orbsvcs/orbsvcs/Trader/Offer_Filter.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Filter.h: - * orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Id_Iterator.h: - * orbsvcs/orbsvcs/Trader/Offer_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Iterator.h: - * orbsvcs/orbsvcs/Trader/Offer_Modifier.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Modifier.h: - * orbsvcs/orbsvcs/Trader/Policies.cpp: - * orbsvcs/orbsvcs/Trader/Policies.h: - * orbsvcs/orbsvcs/Trader/Policy_Manager.cpp: - * orbsvcs/orbsvcs/Trader/Policy_Manager.h: - * orbsvcs/orbsvcs/Trader/Preference_Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Preference_Interpreter.h: - * orbsvcs/orbsvcs/Trader/Property_Evaluator.cpp: - * orbsvcs/orbsvcs/Trader/Property_Evaluator.h: - * orbsvcs/orbsvcs/Trader/Property_Filter.cpp: - * orbsvcs/orbsvcs/Trader/Property_Filter.h: - * orbsvcs/orbsvcs/Trader/Proxy.cpp: - * orbsvcs/orbsvcs/Trader/Proxy.h: - * orbsvcs/orbsvcs/Trader/Query_Only_Offer_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Query_Only_Offer_Iterator.h: - * orbsvcs/orbsvcs/Trader/README: - * orbsvcs/orbsvcs/Trader/Register.cpp: - * orbsvcs/orbsvcs/Trader/Register.h: - * orbsvcs/orbsvcs/Trader/Register_Offer_Iterator.cpp: - * orbsvcs/orbsvcs/Trader/Register_Offer_Iterator.h: - * orbsvcs/orbsvcs/Trader/Sequences.idl: - * orbsvcs/orbsvcs/Trader/Service_Type_Map.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Map.h: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.h: - * orbsvcs/orbsvcs/Trader/Trader.cpp: - * orbsvcs/orbsvcs/Trader/Trader.h: - * orbsvcs/orbsvcs/Trader/Trader_Base.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Base.h: - * orbsvcs/orbsvcs/Trader/constraint.l: - * orbsvcs/orbsvcs/Trader/constraint.y: - * orbsvcs/orbsvcs/CosTrading.idl: - * orbsvcs/Trading_Service/Makefile: - * orbsvcs/Trading_Service/trader.cpp: - - The Trading Service has a new home and a new orb. I've migrated - the VisiBroker implementation of the Trading Service to TAO by - having the interfaces inherit from the POA_CosTrading skeletons, - replacing the the C++ exception handling with the TAO_* macro - exception handling and CORBA::Environment passing, and prefixing - all top level classes with 'TAO_'. Because the tao_idl generated - code from CosTrading.idl was having some trouble, nothing here has - been compiled since the port. The README file contains additions - to the Makefile necessary to accommodate the Trading Service's - reliance on STL. - - The orbsvcs/Trading_Service/trader.cpp is a server that activates - the supported interfaces of our Trading Service. At this point our - Trader adheres to the Stand Alone Trader designation of - conformance as described in the specification. - -Thu Feb 26 18:38:56 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (TAO_Naming_Server): - Fixed a syntax error. - -Thu Feb 26 18:07:16 1998 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Added an entry for the Property Service. - -Thu Feb 26 17:36:21 1998 Nanbor Wang - - * tao/orb_core.{h,cpp} (TAO_Default_Reactor): I added the new class - tring to strategize the type of reactor used. It is not used at - the moment. - -Thu Feb 26 16:18:47 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_interface.cpp (gen_client_stubs): Split out some - code to use a couple temporary variables to work around what - might be a Heisenbug with GCC. Thanks to Carlos O'Ryan and - Keith Nicewarner for reporting this. - -Thu Feb 26 14:52:20 1998 Chris Cleeland - - * tests/NestedUpcall/{eh_i,reactor_i}.{h,cpp}: Added - implementation for the new decrement operation. - - * tests/NestedUpcall/client.cpp: Added calls to invoke the new - decrement operation. - - * tests/NestedUpcall/Reactor.idl: Added a new operation, - decrement, to test multi-nested upcalls. - - * tao/connect.cpp (send_request): Fixed to return appropriate - return values, especially in case of errors. - -Thu Feb 26 14:02:36 1998 Nanbor Wang - - * tao/tao_util.cpp (activate_under_child_poa): Instead of - returning a String_var, return String_var._retn (). - (activate_under_child_poa): Actually, it seems better just - use String than String_var. - -Thu Feb 26 13:31:06 1998 David L. Levine - - * TAO_IDL/Makefile: added "all" target for CROSS-COMPILE platforms. - -Thu Feb 26 05:39:43 1998 Nanbor Wang - - * tests/NestedUpcall/client.cpp: Cast (char *) to 0 which is used - to initialize remote_reactor_key. - (main): Added ACE_const_cast in string_to_object call. - - * tests/NestedUpcall/NestedUpcall.dsw: - * tests/NestedUpcall/client.dsp: - * tests/Nestedupcall/server.dsp: New project files for NT. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (init_naming_service,main): - Appended a return at the end. - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: Updated project file - lists. - - * tao/TAO.dsp: Added tao_util.cpp into this project. - - * tao/tao_util.h (TAO_ORB_Manager): Added TAO_Export flag. - - * orbsvcs/orbsvcs/orbsvcs.dsp: Added Ior_Multicast.cpp and - Naming_Utils.cpp into this project. - - * orbsvcs/orbsvcs/Naming/Ior_Multicast.h: - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: Added - TAO_ORBSVCS_Export flag. - - * orbsvcs/Naming_Service/Naming_Service.cpp: Added a return - statement to muffle MSVC. - -Wed Feb 25 22:53:56 1998 Douglas C. Schmidt - - * tao/orbobj: Changed the signature of the run(ACE_Time_Value &) - method to run(const ACE_Time_Value &) so we can pass the const - ACE_Time_Value::zero to it. Thanks to Chris Cleeland for - suggesting this. - - * orbsvcs/orbsvcs/Event/RT_Task.h: Changed the use of ACE_MT_SYNCH - to ACE_SYNCH so that we can at least build the Event Channel on - a single-threaded platform. - - * orbsvcs/orbsvcs/Event_Service_Constants.h: Changed the use of - ACE_Thread_Mutex and ACE_RT_Thread_Mutex to ACE_THREAD_MUTEX and - ACE_RW_THREAD_MUTEX, respectively, so that TAO will build on - non-threaded platforms. - - * tao/poa.cpp, - tao/default_server.cpp: Fixed TAO by conditionally - compiling the code that relies on the recursive mutexes - and mutexes. Thanks to Jim Penny - for reporting this. - -Wed Feb 25 22:47:48 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/README:: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: Made changes to have the - option to specify oneway calls instead of the usual two-way - cube_X() call. Now, you can specify the "-o" argument on the - client side. - -Wed Feb 25 22:47:16 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/client.cpp (parse_args): Similar to - server.cpp changed the meaning of -s option to not to use the - naming service and naming service is used by default. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (parse_args): Changed the - meaning of the -s option to "don't use the naming service" and made - using the naming service the default. - -Wed Feb 25 22:47:16 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (parse_args): Changed the - meaning of the -s flag to "don't use the naming service" and made - using the naming service the default. - -Wed Feb 25 18:03:35 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/AVStreams/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Updated dependencies. - -Wed Feb 25 17:13:05 1998 Nagarajan Surendran - - * orbsvcs/Naming_Service/Naming_Service.cpp (Naming_Service): - Changed the main to just create an instance of Naming_Service and - call init and run on it. - - * orbsvcs/Naming_Service/Naming_Service.h: Added this file which - defines a Naming_Service class to simplify the Naming_Service.cpp - file. - -Wed Feb 25 16:52:13 1998 Chris Cleeland - - * tao/servant_base.cpp: Updated to reflect change of poa_current_ - from structure to pointer. - - * tao/poa.*: Changed signature of pre_invoke() and post_invoke() - to deal with poa current storage coming from the stack. - - * tao/poa.cpp (dispatch_servant_i): Changed to create POA Current - information record on the stack during the upcall, thus clearing - the way for proper operation in the face of nested upcalls. - - * tao/orbobj.cpp: Updated to reflect change of poa_current_ from - structure to pointer. - - * tao/orb_core.*: Changed poa_current_ to a pointer rather than - ownership. This allows the structure holding the POA Current - information to be created in the activation record for the upcall, - thus opening the door for proper operation in the face of nested - upcalls. - - * tao/giop.h: Removed cruft/unused code. - - * tao/giop.cpp: Addressed some '@@' comments. - - * tao/connect.*: Fixed a problem where nested upcalls would only - work every other time. This was caused by the fact that the - servant-turned-client cached the connection to the - client-turned-servant. However, when the client-turned-servant - terminated, the servant-turned-client was ignoring input events on - this cached connection handle. Then, when the next instance of - the client-turned-servant came along and tried to connect, when - the servant-turned-client made the invocation back to the - client-turned-servant, the cached handle was returned. However, - when its input was read, rather than getting the expected - response, an EOF was received and the servant-turned-client - aborted the entire original invocation. - - This was fixed by having the TAO_Client_Connection_Handler always - registered to receive input events and to maintain record of its - state so that it can tell whether or not it's expecting input. If - it receives an unexpected input event, then it will simply close - down the connection, possibly logging a warning message as well. - -Wed Feb 25 16:06:59 1998 Sumedh Mungee - - * orbsvcs/tests/AVStreams/{client,server}.{h,cpp}: Added callback - support - -Wed Feb 25 16:04:49 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp,h: Added support for making - upcalls into the application when connection is established, - requested etc.. - -Wed Feb 25 12:58:04 1998 Nagarajan Surendran - - * tao/tao_util.cpp: Added the implementation for the 2 new methods - to use a child_poa. - - * tao/tao_util.h (class TAO_ORB_Manager): Added 2 new methods - init_child_poa and activate_under_child_poa to create a child_poa - with policies PERSISTENT and USER_ID. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (bind): Added checks for - null pointers in ACE_DEBUG. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Moved this file from - orbsvcs/Naming_Service/ to this dir. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: Moved this file from - orbsvcs/Naming_Service/ to this directory. - -Wed Feb 25 12:20:04 1998 David L. Levine - - * tao/any.cpp (operator<<=): removed declaration of local "tc", - which shadowed the declaration in the outer scope. - - * tao/giop.cpp (start): added a debug message for connection - failures. This is where problems often occur for new users/ - environments, and it'll help diagnose configuration problems. - And Linux getsockname () bugs. - -Tue Feb 24 21:05:08 1998 Nagarajan Surendran - - * orbsvcs/Naming_Service/Main.cpp: This now contains the main - which was previously in Naming_Service.cpp to facilitate - integrating the IOR_Multicast class defined in Naming_Service.cpp - into the orbsvcs library. - - * orbsvcs/Naming_Service/Naming_Utils.h: Defines a new - TAO_Naming_Server wrapper class which can be used as a - Naming_Server component if one wants a separate Naming_Server. - - * orbsvcs/Naming_Service/Naming_Utils.cpp: Added this new file - which implements the TAO_Naming_Server class. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp (read_ior): Added 2 new - methods read_ior and init_naming_service. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp: Now contains the - implementation of Cubit_Server class with a really simple main. - - * tests/Cubit/TAO/IDL_Cubit/server.h (class Cubit_Server): Defined - a new Cubit_Server class akin to Cubit_Client. - - * orbsvcs/Naming_Service/Naming_Service.cpp: Moved the main () to - a separate file Main.cpp - -Tue Feb 24 17:45:20 1998 Douglas C. Schmidt - - * tao/orbobj.h: Removed the unnecessary = 0 on the new run method. - - * tao/orbobj.cpp (run): Added a new run() method that takes an - ACE_Time_Value & rather than an ACE_Time_Value * so that we don't - need to pass the address! - -Tue Feb 24 14:31:37 1998 Chris Cleeland - - * tests/NestedUpcall/client.cpp (main): Replaced orb->open() with - orb->run(&ACE_Time_Value::zero), which though still non-standard, - is less non-standard than open(). - - * tests/NestedUpcall/README: Added one for the good of all - mankind. - -Tue Feb 24 13:23:48 1998 Michael Kircher - - * orbsvcs/tests/Simulator/NavWeap.idl: Added new fields - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - adopted to new IDL file - - * orbsvcs/tests/Simulator/Sim_Display/Display_Push_Consumer.java: - adopted to new IDL file - - -Tue Feb 24 00:41:48 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: Added TITLE, - DESCRIPTION for all the classes - -Mon Feb 23 22:40:22 1998 David L. Levine - - * tao/cdr.h: removed old, commented out configuration code. - - * TAO_IDL/be/be_decl.cpp (tc_name2long): changed type of "buf" array - from char to long so that it gets properly aligned. This solves - the core dump problem with tao_idl on egcs/Solaris. Thanks to - Håkan Källberg for reporting this. - - * TAO/tests/Thruput/TAO/utils.cpp (prep_timer): cast LONG_MAX - to ACE_INT32 to avoid overflow problems if the result is an - int type, and long is bigger than int. - - * orbsvcs/orbsvcs/Event/Event_Channel.i: specify constant - 2147483648u as unsigned, to avoid compiler warning. - - * TAO_IDL/Makefile: removed -fPIC for g++ because it's not needed - without shared libraries. - - * TAO_IDL/Makefile: added Cleanup section, which cleans out builds - that were created with the nested version of the Makefile. - -Mon Feb 23 22:13:14 1998 David L. Levine - - * TAO version 0.1.5, released Mon Feb 23 22:13:14 1998. - -Mon Feb 23 21:30:04 1998 David L. Levine - - * TAO_IDL/Makefile: added the g++ options that were picked up - from be/Makefile. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - declare local "i" outside of for loop because it is reused - in a few loops. - -Mon Feb 23 20:45:03 1998 Michael Kircher - - * orbsvcs/tests/Simulator/Sim_Display: Fixed some small - bugs concerning the representation - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - Changed the rate on which events are supplied - - -Mon Feb 23 18:51:03 1998 Sergio Flores - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Set the handle - limit to the maximum. - - * tests/Cubit/TAO/MT_Cubit/server.cpp (initialize_orb): Fixed a - warning from compiler. - -Mon Feb 23 17:33:52 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - We don't generate the compiler as a single executable, without - multiple shared libraries. - -Mon Feb 23 16:55:08 1998 David L. Levine - - * orbsvcs/orbsvcs/Event_Service_Constants.h: changed types of - ACE_ES_* constants from u_long to long to match - RtecEventComm::EventType. - - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: updated template - instantiations to use ACE_Singleton instead of ACE_TSS. - -Mon Feb 23 12:25:21 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - * orbsvcs/orbsvcs/Event/Memory_Pools.i: - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: - We cannot use TSS memory pools: in some cases the memory is - allocated in one thread and disposed in another. Until we can - clean out that behavior I'm using a singleton. - -Mon Feb 23 11:57:16 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/ : Changed the names EXT_ID and INT_ID - that I used for Hash_Table operations to less generic - CosProperty_Hash_Key and CosProperty_Hash_Value respectively. - -Mon Feb 23 11:40:37 1998 David L. Levine - - * tao/corbacom.h (CORBA::LongLong): use ACE_BIG_ENDIAN - instead of TAO_WORDS_BIGENDIAN. - - * tao/orbconf.h (TAO_ENCAP_BYTE_ORDER): use ACE_LITTLE_ENDIAN - instead of trying to figure it out from cpp #defines, which - failed for LynxOS. Also, removed TAO_WORDS_BIGENDIAN. - - * tao/interp.cpp (declare_entry,setup_entry): use the align_struct_ - with padding by default, unless TAO_HAS_FIXED_BYTE_ALIGNMENT is - #defined. - - * tao/corba.h: added ACE_UNUSED_ARG (VAR); to TAO_CATCH macro - for platforms without ACE_HAS_EXCEPTIONS, to avoid compiler - warning about unused variable if VAR isn't used anywhere. - - * TAO_IDL/Makefile: added clean and realclean targets for - CROSS-COMPILE platforms. - - * TAO_IDL/be/be_interface.cpp (be_interface::relative_name): - commented out unused local variable "def_scope". - - * TAO_IDL/be/be_sequence.cpp: commented out some unused variables - to avoid compiler warnings. The comments correspond to commented-out - sections of code. - - * TAO_IDL/be/be_visitor_interface.cpp - (be_visitor_collocated_ss::visit_operation): removed unused - local "nl". - - * TAO_IDL/be/be_visitor_root.cpp (be_visitor_root_ch::visit_sequence): - added ACE_UNUSED_ARG (node). - - * TAO_IDL/be/be_visitor_sequence.cpp - (be_visitor_sequence_ch::visit_sequence): commented out unused - local "cg". - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp - (Latency_Supplier::push): added ACE_UNUSED_ARG (_env). - -Mon Feb 23 10:58:42 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/AV/AVStreams_i.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/orbsvcs/Event/Fast_Reactor.h: - * orbsvcs/orbsvcs/Event/GPlot_File.h: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.h: - * orbsvcs/orbsvcs/Property/CosProperty_Hash.h: - * orbsvcs/orbsvcs/Sched/DynSched.h: - * orbsvcs/orbsvcs/Sched/SchedEntry.h: - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h: - * Added more TAO_ORBSVCS_Export macros, this time in files that - are not compiled all the time. - -Sun Feb 22 22:14:08 1998 Chris Cleeland - - * tao/giop.cpp (invoke): Created my own temporary variable in - order to de-warn on g++ and Sun CC. - -Sun Feb 22 20:12:24 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs/orbsvcs.dsp: Adapted chages to the directory - rearrangement. - - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Utilities.h: - * orbsvcs/orbsvcs/Event/BCU.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - * orbsvcs/orbsvcs/Event/RT_Task.h: - * orbsvcs/orbsvcs/Event/ReactorTask.h: - * orbsvcs/orbsvcs/Event/Task_Manager.h: - * orbsvcs/orbsvcs/Naming/CosNaming_i.h: - * orbsvcs/orbsvcs/Naming/Entries.h: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: - * orbsvcs/orbsvcs/Sched/Scheduler.h: - * orbsvcs/orbsvcs/Sched/Scheduler_Generic.h: Added - TAO_ORBSVCS_Export flags. - -Sat Feb 21 08:08:55 1998 David L. Levine - - * rules.tao.GNU: added -Wno-used to CCFLAGS, with g++ only. - - * tao/align.h,corbacom.h,orbconf.h,orbobj.cpp: - use ACE Basic_Types instead of local SIZEOF_* macros. - - * tao/debug.cpp: null f{,un}lockfile with ACE_HAS_DCE_DRAFT4_THREADS - (LynxOS). - - * tao/any.cpp (operator<<=): initialized local "tc" to avoid compiler - warnings. - - * tests/POA/On_Demand_Activation/Servant_Activator.cpp (etherealize), - Servant_Locator.cpp (preinvoke,postinvoke): - added some ACE_UNUSED_ARG's. - - * TAO_IDL/Makefile,tao/Makefile: use CROSS-COMPILE flag instead of - CHORUS, LYNXOS, and VXWORKS. This allows us to add new cross- - compile platforms without having to modify the TAO Makefiles. - The new platform need only set the CROSS-COMPILE flag. - -Sat Feb 21 00:31:20 1998 Chris Cleeland - - * tao/connect.* (send_request): Modified to take an extra arg - which specifies whether or not the request is a twoway, i.e., - whether or not it should enter a sub-event loop looking for a - reply. - - * tao/giop.cpp (invoke): Changed to match signature of - send_request. - - * tests/NestedUpcall/Reactor.idl: Added a oneway method to test - nested upcalls with oneways. - - * tests/NestedUpcall/reactor_i.*: Added the oneway implementation. - - * tests/NestedUpcall/client.cpp: Made oneway invocation to test a - problem that the nested upcall allowing ORB exhibited. Thanks to - Carlos for reporting this! - -Fri Feb 20 14:40:28 1998 Chris Cleeland - - * tao/connect.*: Extended TAO_Client_Connection_Handler to be run - a sub-event loop while sending a request in order to handle nested - upcalls. A really cool side-effect of this is that if your - application start out being a client but has servants too, it's - really easy to get that up and running. An example of this is - shown in the new test, NestedUpcall. - - * tao/giop.cpp (invoke): Changed to call send_request on the - client connection handler rather than TAO_GIOP. This new - send_request will handle nested upcalls (see above). - - * tao/giop.* (send_request): Changed signature so that the - TAO_SVC_HANDLER* wasn't passed by reference. This was totally - unnecessary. - - * tao/{iioporb,orbobj}.* (string_to_object): Removed unnecessary - 'const' preceding CORBA::String. - -Fri Feb 20 08:29:35 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): added .in () - dereference to several objref uses. - - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: updated the - ACE_TSS > template instantiation to use the - ACE_LOCAL_MEMORY_POOL macro. - - * orbsvcs/orbsvcs/Event/Event_Channel.{h,cpp} - (ACE_ES_{Con,Dis}junction_Group): added virtual destructors. - -Thu Feb 19 12:54:50 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp - (create_initial_propertysetdef): Assigned dummy return values in - order to avoid Warnings. - - * orbsvcs/orbsvcs/Property/CosProeprtyService.idl file removed - from here. It is supposed to be there in ./.. - -Thu Feb 19 12:49:49 1998 David L. Levine - - * Makefile: build orbsvcs before tests. - - * tao/Makefile: set fakesvcconf on LynxOS. - - * TAO_IDL/Makefile: don't build the IDL compiler for - Chorus, LynxOS, or VxWorks. - - * tao/orbobj.cpp: enhanced some printouts. - - * tao/tao_util.cpp (orb): added .in () dereference to orb_ argument. - -Thu Feb 19 10:15:00 1998 Michael Kircher - * orbsvcs/test/Simulator: Set the file permissions right. - -Thu Feb 19 10:15:00 1998 Michael Kircher - * orbsvcs/test/Simulator: - Intruduced new demo, using the Event Service as transport - media for monitoring events. - See orbsvcs/test/Simulator/README for more information - - in orbsvcs/tests/Simulator: - NavWeap.idl - IDL definition of the Navigation and Weapons struct - ss - restart services script - - in orbsvcs/tests/Simulator/Event_Supplier: - Event_Sup.cpp - Event Supplier - Event_Sup.h - Event Supplier class definition - Makefile - Event Supplier Makefile - (Event_Con.cpp, Event_Con.h - Event Consumer for testing) - svc.conf - helper file - - in orbsvcs/tests/Simulator/Sim_Display: - Display.java - Simulation - Display_Client.java - Main Entry point of the Simulation - Display_Consumer.java - Event Consumer - Display_Object.java - Interface for an Display_Object - Display_Weapons.java - Implementation of an Display_Object - Display_Art_Horizon.java - Implementation of an Display_Object - Display_Object_Factory.java - Factory Object for Display_Objects - Graph.java - Simulation - Graph_Panel.java - Simulation - NS_Resolve.java - Resolving the inital reference to the Naming Service - Queue.java - Simulation - Sim_Panel.java - Simulation - Border_Panel.java - Simulation - - -Wed Feb 18 22:15:06 1998 Sumedh Mungee - - * tao/tao_util.cpp,h: Updated class to include a constructor so - user can supply his own orb, poa or manager. - -Wed Feb 18 21:40:24 1998 - - * docs/orbsvcs.html: - Updated the description of orbsvcs directory hierarchy. - -Wed Feb 18 19:45:57 1998 Alexander Babu Arulanthu - - * Added the idl file for the CosPropertyService , i.e. - orbsvcs/orbsvcs/Property/CosPropertyService.idl - -Wed Feb 18 17:56:54 1998 Carlos O'Ryan - - * orbsvcs: - Moved all the implementations to the orbsvcs libraries, this is - the first step to give the user control over object - collocation. - Please note that this version is only known to compile on - Solaris/CC, it will *not* compile on NT (some "export" macros - are missing); since this change is very disruptive (because it - moves files around) it was thought that holding it for a long - time will result in more harm than good. - A top-level make onTAO_ROOT/orbsvcs works OK. - -Wed Feb 18 17:10:23 1998 Sumedh Mungee - - * tao/tao_util.cpp (init): The ORB_Manager class does not create - it's own POA, but uses the default root POA instead. - -Wed Feb 18 16:02:34 1998 Alexander Babu Arulanthu - - * Commented and indented the follwing files in orbsvcs/orbsvcs/ - CosPropertyService.idl - CosPropertyService_i.h - CosPropertyService_i.cpp - -Wed Feb 18 12:28:58 1998 Carlos O'Ryan - - * tests/Thruput/TAO/tmplinst.cpp: - The templates should be instantiated over the CORBA:: typedefs, - otherwise they fail in weird platforms. - -Wed Feb 18 11:57:24 1998 Chris Cleeland - - * tests/Cubit/TAO/MT_Cubit/Makefile (LDLIBS): Removed -lposix4 - from the LDLIBS. Thanks to Bob Olson for - reporting this. - -Wed Feb 18 02:58:40 1998 Nanbor Wang - - * orbsvcs/Naming_Service/Naming_Service.cpp (IOR_Multicast): Make - sure that response_addr_ is properly initialized before it is - used to initialize response_, which is an ACE_SOCK_Dgram. - -Tue Feb 17 20:20:35 1998 Douglas C. Schmidt - - * tao/giop.cpp: Removed an extra explicit template instantiation - of TAO_Unbounded_Sequence. Thanks to - Ben Eng for reporting this! - - * tests/Thruput/TAO/Makefile: Removed the "clean" macro since it - was conflicting with the TAO default. - -Tue Feb 17 21:47:41 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (shutdown): Renamed please_exit - method to shutdown. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: Renamed please_exit operation to - shutdown. - -Tue Feb 17 17:22:47 1998 Chris Cleeland - - * TAO version 0.1.4, released Tue Feb 17 17:22:47 1998. - -Tue Feb 17 16:50:20 1998 Chris Cleeland - - * tao/orbobj.cpp (open): Modified so that if it's been called - multiple times it returns '1' rather than '-1', thus not appearing - to calling code as an error. - -Tue Feb 17 16:05:55 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs.dsp: Chris G. updated the file list of - this project. - - * orbsvcs/orbsvcs/Time_Utilities.h: - * orbsvcs/orbsvcs/Event_Utilities.h: Added MS keayword, - TAO_ORBSVCS_Export. - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: Updated project setting to - take the advantage of TAO naming service. - - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: Updated project - setting to use DLL version of orbsvcs. - -Tue Feb 17 15:39:49 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h:: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Made a bunch of changes to - correctly support the POA. In addition, MT_Cubit now uses the - Name Service to bind the Cubit objects. In case the Name Service - doesn't exist, there is still the "cut&paste" ior method that uses - a cubit factory to give the client a reference to the cubit - objects. - -Tue Feb 17 13:25:52 1998 Nanbor Wang - - * TAO-INSTALL.html: Added instructions on using the CPP_LOCATION - environment variable in NT's section. You can also use it on - UNIX but NT is the only platform which depends on it. - -Tue Feb 17 11:30:53 1998 David L. Levine - - * tao/orbconf.h: set TAO_ALIGNMENT_MAGIC_NUMBER to 128 if - ACE_SIZEOF_LONG > 4, e.g., on 64-bit CPUs. - - * tao/except.cpp (make_standard_typecode): replaced unsigned long/ - long with CORBA::ULong/CORBA::Long. - - * TAO_IDL/ast/ast_array.cpp,ast_operation.cpp,ast_sequence.cpp, - ast_string.cpp, - TAO_IDL/util/utl_decllist.cpp,utl_exceptlist.cpp,utl_exprlist.cpp, - utl_idlist.cpp,utl_labellist.cpp,utl_namelist.cpp,utl_strlist.cpp: - moved base class initialization to beginning of initializer list. - -Tue Feb 17 10:43:45 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/CosTimeBase.idl: - * orbsvcs/orbsvcs/Time_Utilities.cpp: - * orbsvcs/orbsvcs/Time_Utilities.h: - * orbsvcs/orbsvcs/Time_Utilities.i: - Added the standard CORBA types for time, also added some helper - routines to convert between BasicTime::TimeT and the common - representations of time in ACE (ACE_Time_Value and ACE_hrtime_t) - - * orbsvcs/orbsvcs/RtecEventComm.idl: - * orbsvcs/orbsvcs/RtecScheduler.idl: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/Event_Service/ReactorTask.cpp: - * orbsvcs/Event_Service/Task_Manager.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.h: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * orbsvcs/orbsvcs/Channel_Clients_T.i: - * orbsvcs/orbsvcs/Event_Service_Constants.h: - * orbsvcs/orbsvcs/Event_Utilities.i: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - Adapted all the code to use the new time structures. - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/Dump_Schedule/Makefile: - Updated dependencies. - - * docs/releasenotes/ec.html: - Updated documentation for this release. - -Tue Feb 17 07:40:49 1998 Douglas C. Schmidt - - * tao/any.cpp: Added a "return *this" to operator= to stop certain - compilers from complaining. Thanks to Andy for fixing this. - -Tue Feb 17 04:08:11 1998 Nanbor Wang - - * TAO_IDL/driver/drv_preproc.cpp (DRV_cpp_init): Setting the - CPP_PATH has been causing a lot of nasty trouble on NT. I - changed this function to allow overwriting the internal c++ - compiler location at run time using CPP_LOCATION. If someone - forgets to set the CPP_PATH when compiling tao_idl, one can - make tao_idl work by defining this environment variable to - something like: - - set CPP_LOCATION="C:/Program Files/DevStudio/VC/BIN/CL.exe" - - Notice that CPP_LOCATION _must_ be a full pathname of the c++ - compiler. - -Tue Feb 17 00:56:08 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/main.cpp (main): Added some - more testing for Any in and out of Hash Table. - -Mon Feb 16 18:01:23 1998 Chris Cleeland - - * TAO version 0.1.3, released Mon Feb 16 18:01:23 1998. - -Mon Feb 16 18:00:15 1998 Chris Cleeland - - * release.pl: Changed C++ comment leaders to Perl comment leaders. - -Mon Feb 16 17:51:15 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp : Added -s option to use the - NamingService. Default doesn't use NamingService. - -Mon Feb 16 17:38:15 1998 Chris Cleeland - - * tao/iioporb.cpp: Made sure to count separators when allocating - space for the IOR. This corrected ABW errors in purify. - - * tao/connect.cpp: Explicitly set the buffer when being purified - to avoid complaints. - -Mon Feb 16 17:22:15 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/Makefile: Changed LDFLAGS to link orbsvcs - library.Now uses the Naming service. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: Added code to register - IDL_Cubit/cubit_factory name with the naming service. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Added a -s flag to use the - NamingService to resolve the cubit_factory flag. It still has the - commandline IOR and -f ior_file options. - -Mon Feb 16 13:29:31 1998 Brian Mendel - - * tao/poa.cpp: Added SCE_HAS_TEMPLATE_TYPEDEFS_CHAR guards - around ACE_OS:strlen calls for WChar(s). - * tao/default.bld, tao.bld: Update VxWorks GHS Build files. - -Mon Feb 16 12:24:04 1998 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.h (needed.): Added missing member - variable. Things now compile. - -Mon Feb 16 10:18:25 1998 David L. Levine - - * tao/poa.cpp (decode_string_to_sequence): moved declaration of - local "i" outside of loop because it is used after the loop. - - * orbsvcs/Event_Service/RT_Task.cpp (synch_threads): try two - fallback strategies if the task activiation fails: - ACE_SCHED_OTHER scheduling class with requested priority, then - ACE_SCHED_OTHER scheduling class with minimum thread priority. - Thanks to Bob Olson for reporting the - problem in Irix, which doesn't have a thread priority of 0 - with ACE_SCHED_OTHER. - - * tao/corbacom.h (CORBA_SEQUENCE): replaced CORBA::B_FALSE with 0 - because some compilers, such as egcs, can't handle its use before - definition below in class CORBA. Thanks to Todd Pack - for reporting this. - - * tao/giop.cpp (TAO_GIOP_message_name): cast quotient of sizeof's - to int to avoid signed/unsigned comparison. - - * tao/interp.cpp (calc_nested_size_and_alignment,private_size, - private_alignment): qualified TC_KIND_COUNT with CORBA::, - so that the file-scope TC_KIND_COUNT isn't used in the - comparison. - -Mon Feb 16 10:14:34 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - The _free method was emitted in the .i file, but it was not - declared inline. Thanks to Michael Kircher (mk1@cs.wustl.edu) - for reporting this one. - -Mon Feb 16 02:34:24 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/CosPropertyService_i.cpp: Defined some of the - functions for the TAO_PropertySet class. - - * orbsvcs/orbsvcs/CosPropertyService_i.h: Defined the classes for - implementing the CosPropertyService for TAO. - - * orbsvcs/tests/CosPropertyService/Makefile: Added this - Makefile ( Makefile for making test program for the - PropertyService ) - - * orbsvcs/orbsvcs/CosProperty_Hash.cpp: Added this file. - - * orbsvcs/orbsvcs/CosProperty_Hash.h (Table): Added this - file. This contains the classes for maintaining Hash Table for - storing the PropertySets. - - * orbsvcs/tests/CosPropertyService/main.cpp (main): Added this - test file for CosPropertyService - - -Sun Feb 15 20:12:00 1998 Chris Cleeland - - * tao/poa.{h,cpp}: Heavily modified several routines to correct - problems with the notion of what, exactly, an object key really - is. Some were treating it as simply an octet sequence, others as - a zero-terminated string (C-style), while others as a sequence of - octets which must be terminated by a zero. - - Object keys and IDs are now stored canonically as opaque octet - sequences, and two new conversion routines - (encode_sequence_to_string and decode_string_to_sequence) have - been created to convert between these octet sequences and C-style - strings. - - * tao/iioporb.cpp (object_to_string): Modified to utilize the new - encoding routines to convert from octet sequences to printable - strings. - - * tao/{tao_internals,orbobj}.cpp: Added explicit inclusion of - Object_Manager.h. - -Sun Feb 15 16:15:49 1998 Nagarajan Surendran - - * tests/Param_Test/options.cpp (parse_args): Changed the -f option - to read the servant-IOR from a file. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed the -f - to -f . Reads the ior - from that file. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp : Added -o - option to output the cubit factory ior to a file. - -Sat Feb 14 22:39:46 1998 Sergio Flores - - * orbsvcs/tests/Logger/clnt.cpp (init): Added negative test case - of name not found when calling the naming service' resolve() - method. - -Fri Feb 13 19:37:01 1998 Douglas C. Schmidt - - * tao/orbobj.cpp (resolve_name_service): Changed char buf[BUFSIZ] - to char buf[ACE_MAX_DGRAM_SIZE] to make sure we don't overflow - the buffer! - -Fri Feb 13 18:18:54 1998 Sergio Flores - - * tests/Makefile: - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/Makefile: - * tests/Thruput/TAO/server.cpp: - * tests/Thruput/TAO/ttcp_i.cpp: - * tests/Thruput/TAO/ttcp_i.h: - * tests/Thruput/TAO/utils.cpp: Made changes to use the new POA. - -Fri Feb 13 12:56:01 1998 David L. Levine - - * release.pl: fixed typo, missing comma between chmod args. - -Fri Feb 13 12:46:26 1998 David L. Levine - - * TAO version 0.1.2, released Fri Feb 13 12:46:26 1998. - -Thu Feb 12 21:09:22 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AVStreams_i.{h,cpp}: Updated MMDevice and StreamCtrl - -Thu Feb 12 20:55:48 1998 Sumedh Mungee - - * tests/AVStreams/client,server: Updated to use the new StreamCtrl, MMDevice etc.. - -Thu Feb 12 11:06:48 1998 Chris Cleeland - - * tao/poaC.i (PortableServer): Moved POA::_nil() definition above - many uses. - -Thu Feb 12 10:21:47 1998 David L. Levine - - * tests/TAO/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): added .in () - to objref and cb so that it will compile with g++. - - * tao/Makefile,xdr.{h,cpp},t-xdr.cpp,corba.h: removed xdr files - because they're no longer used. - - * tao/encode.cpp,poa.{h,cpp},poaC.{h,cpp}: replaced wchar_t - with CORBA::WChar. - - * TAO_IDL/ast/ast_generator.cpp,TAO_IDL/be/be_generator.cpp - (create_wstring): use short instead of wchar_t if - ACE_HAS_WCHAR_TYPEDEFS_CHAR. - - * TAO_IDL/be/be_array.cpp (tao_name): changed type of loop index - "i" to unsigned int to avoid signed/unsigned comparison. - - * TAO_IDL/be/be_state_exception.cpp,be_state_structure.cpp (gen_code): - added default case to switch statement, which sets "os" to 0, to - avoid compiler warning about possible unitialized use. - - * tests/POA/Default_Servant/File_i.cpp (lseek): changed type - of "result" to CORBA::Long to avoid signed/unsigned comparison - with -1. Cast it to CORBA::ULong on return. Also, added a - couple of ACE_UNUSED_ARG (env)'s. - - * tests/Param_Test/server.cpp (main): initialize local - "param_test" to 0 to avoid warning about unitialized use. - - * orbsvcs/Scheduling_Service (compute_scheduling): added cast - of impl->tasks () to RtecScheduler::handle_t to avoid signed/ - unsigned comparison. Also, added a bunch of ACE_UNUSED_ARG (env)'s. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp (EC_Proxy::push, - Test_ECP::push): changed type of loop index "i" to u_int to - avoid signed/unsigned comparison. Also, added an - ACE_UNUSED_ARG (env). - -Wed Feb 11 11:20:34 1998 David L. Levine - - * tao/iiopobj.h,stub.h (operator =): added return type to avoid - compiler warning, and wrapped in ACE_UNIMPLEMENTED_FUNC. - - * tao/corbacom.h: rearranged LongLong typedefs so that they work - with ACE_LACKS_LONGLONG_T. - - * tao/Timeprobe.cpp (print_times): divide by 1000u instead of 1000 - to allow overload resolution of ACE_U_LongLong::operator /. - - * tao/orb_core.cpp: removed break's after return's to avoid compiler - warnings. - - * tao/typecode.cpp: wrapped some break and return statements with - ACE_NOTREACHED to avoid compiler warnings. - - * tao/debug.cpp (use_debug_stream_to_get_rid_of_warning): changed - to return debug_stream instead of (not) using it. ghs warned that - "controlling expression is constant" the way things were. - - * TAO_IDL/Makefile: added default_vxworks target to prevent make - warning. - -Tue Feb 10 17:39:13 1998 Chris Gill - - * orbsvcs/Scheduling_Service/SchedEntry.cpp - orbsvcs/Scheduling_Service/DynSched.{cpp,h} - orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h} : - - fixes to priority assignment, timeline generation methods - (fourth cut - timelines being generated) - -Tue Feb 10 11:19:20 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - Fixed several problems detected by SGI/C++ compiler. - -Mon Feb 9 20:00:55 1998 Chris Gill - - * orbsvcs/Scheduling_Service/SchedEntry.{cpp,h,i} - orbsvcs/Scheduling_Service/DynSched.{cpp,h,i} - orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h} : - - finished timeline coding, got a clean source compile - (third cut - still a work in progress) - - -Mon Feb 9 12:59:29 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/RtecEventComm.idl: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/orbsvcs/Event_Utilities.cpp: - * orbsvcs/orbsvcs/Event_Utilities.i: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Added comments to the EventComm module and a new field (ttl_: - Time-to-Live) to the event data structure. - - * orbsvcs/orbsvcs/Channel_Clients_T.cpp: - * orbsvcs/orbsvcs/Channel_Clients_T.h: - * orbsvcs/orbsvcs/Channel_Clients_T.i: - I finally needed the TIE classes for PushConsumers and - PushSupplier, they work OK now. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/README: - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/Makefile: - Added a simple example on how to connect multiple event - channels. - - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - Added and/or fixed some debug messages. - - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - Reduce default output level. - - * tao/corba.h: - Fixed TAO_RETHROW_RETURN macro. - - * docs/releasenotes/ec.html: - * docs/releasenotes/index.html: - Split the Event Channel release notes to a separate file, the - index.html was growing without control. - -Mon Feb 9 09:15:08 1998 Carlos O'Ryan - - * docs/releasenotes/orbcore.html: - Fixed reference to TAO-Install.html, thanks to Sreedharani - for reporting this one. - -Sun Feb 08 21:41:24 1998 David L. Levine - - * tao_util.cpp (run): added return 0 statement at end. - -Sun Feb 8 19:48:33 1998 Chris Gill - - * orbsvcs/Scheduling_Service/SchedEntry.{cpp,h,i} : Moved the - Classes for the various scheduling entries out of the - ACE_Scheduler class and into a separate set of files - (first cut - still a work in progress) - - * orbsvcs/Scheduling_Service/DynSched.{cpp,h,i} : Completed - merges of dispatches, and a thorough review of priority - assignment (second cut - still a work in progress) - - * orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h} : - Completed merges of dispatches, and a thorough review of the - modified strategies (second cut - still a work in progress) - -Fri Feb 6 15:31:17 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - Fixed several problems with the array code generation, - including: - + The name for the array TypeCode and its alias TypeCode were - clashing. - + Several inconsistencies in the declaration and definition of - operations for _var, _out and _forany parameters. - Thanks to James Mason for reporting this. - - * TAO_IDL/be/be_type.cpp: - Increased the buffer size for some names to the "standard" - NAMEBUFSIZE. - - * docs/releasenotes/orbcore.html: - The "Last Updated" field is set by CVS now. - - * tao/interp.cpp: - * tao/encode.cpp: - Removed obsolete comments. - -Wed Feb 4 12:30:43 1998 Chris Cleeland - - * tao/objkeyC.h: Modified so that the namespace mapping for the - TAO module uses the alternative "underbar" mapping, i.e., rather - than TAO::ObjectKey, it's now TAO_ObjectKey. The scoping - operation is now performed in tao.h. - - * tao/tao.h: This now contains a class (used as a namespace) in - which components which *should* be in the TAO:: namespace are - typedef'd. - - * tao/tao_util.*: Moved TAO_ORB_Manager into here. - - * tao/stub.h: - * tao/servant_base.cpp: - * tao/poa.h: - * tao/poa.cpp: - * tao/orbobj.h: - * tao/orbobj.cpp: - * tao/orb_core.h: - * tao/orb_core.cpp: - * tao/object.h: - * tao/object.cpp: - * tao/iiopobj.h: - * tao/iiopobj.cpp: - * tao/corba.h: - Changed references of TAO::ObjectKey to TAO_ObjectKey. - - * tao/Makefile: Adjusted build tao_util.so rather than tao.so. - -Mon Feb 2 22:51:03 1998 Nanbor Wang - - * rules.tao.GNU (TAO_IDLFLAGS): - * orbsvcs/orbsvcs/Makefile (TAO_IDLFLAGS): Changed IDLFLAGS to - TAO_IDLFLAGS to avoid naming conflict with IDLFLAGS for other - IDL compilers. - -Mon Feb 2 21:41:32 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Makefile: Added Win32 IDL flags for portability. - -Mon Feb 02 18:50:19 1998 Nanbor Wang - - * orbsvcs/orbsvcs/Scheduler_Factory.h: Added the - TAO_ORBSVCS_Export directive to class Scheduler_Factory. - - * TAO_IDL/GenExportH.BAT: New Windows batch file which generate - an header file with approriate exporting flags defined. See - this file for details. - - * orbsvcs/orbsvcs_export.h: New file that defines the Export - directives for Win32. Generated by GenExportH.BAT in TAO_IDL/. - - * orbsvcs/orbsvcs/orbsvcs.dsw: Added new project file for DLL - version of orbsvcs library. - - * orbsvcs/orbsvcs/orbsvcs.dsp: New project file for DLL version of - orbsvcs library. - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: Changed the tao_idl custom - build commands so it builds files for both LIB and DLL - libraries. - - * orbsvcs/orbsvcs.dsw: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: Changed to - use DLL version of orbsvcs library. - -Mon Feb 2 18:08:21 1998 Carlos O'Ryan - - * tao/sequence_T.cpp: - Fixed problems in memory reallocation for - TAO_Unbounded_Sequence::operator=(). - -Mon Feb 2 13:47:23 1998 Sumedh Mungee - - * tao/Makefile: Renamed tao_util to tao. Ditto for the .h and .cpp - files. Also renamed the TAO_Util::ORB_Manager class to TAO_ORB_Manager. - -Mon Feb 2 13:47:01 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_args.cpp: - Fixed the mapping for strings as INOUT parameters. - -Mon Feb 02 08:59:57 1998 David L. Levine - - * tao/tao_util.cpp (init): added .in () to poa_object in call to - _narrow, so that it will compile with g++. - - * orbsvcs/tests/Logger/Makefile, - orbsvcs/orbsvcs/Makefile, - tests/POA/FindPOA/Makefile, - tests/POA/{Default,Generic}_Servant/Makefile, - tests/POA/NewPOA/Makefile, - tests/Cubit/TAO/{IDL,MT}_Cubit/Makefile, - tests/Param_Test/Makefile, - tests/Thruput/TAO/Makefile: - inserted (or moved) TAO_ROOT definition to top of file. - -Sat Jan 31 01:08:19 1998 Carlos O'Ryan - - * docs/releasenotes/index.html: - The IDL compiler has support for NT DLLs already, I moved the - tiem from the "issues" to the "new features" list. - - * docs/index.html: - * docs/compiler.html: - Added documentation for TAO IDL compiler behavior and options. - - * TAO_IDL/be/be_init.cpp: - Print a reasonable version for the compiler back-end, it is no - longer the Sun example BE and the version is (around 0.1.0). - -Fri Jan 30 16:27:47 1998 Douglas C. Schmidt - - * TAO version 0.1.1, released Fri Jan 30 16:27:47 1998. - -Fri Jan 30 15:35:06 1998 Carlos O'Ryan - - * TAO_IDL/be/be_args.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/include/idl_global.h: - * TAO_IDL/util/utl_global.cpp: - Added support for export macros and a user defined include file, - this was needed to support DLL's in NT. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Removed a broken test target; thanks to Michael Kircher - - -Fri Jan 30 15:30:30 1998 Chris Gill - - * orbsvcs/Scheduling_Service/DynSched.{cpp,h,i} : The Dynamic - Scheduler Implementation (first cut - still a work in progress) - - * orbsvcs/Scheduling_Service/Strategy_Scheduler.{cpp,h,i} : The - strategized scheduler subclass and the corresponding strategies - (first cut - still a work in progress) - -Fri Jan 30 15:10:01 1998 Douglas C. Schmidt - - * README: Updated the documentation to reflect the latest changes - to TAO. Thanks to Hans Rohnert for noticing this. - -Fri Jan 30 14:38:30 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/util.cpp : Added TAO_ORB_Manager, a simple - helper class that does simple ORB and POA initialization and - object activation etc. - - * orbsvcs/orbsvcs/util.h : Added file - -Fri Jan 30 13:15:10 1998 Chris Cleeland - - * Makefile (RELEASE_FILES): Added rules.tao.GNU and taoconfig.mk - to this...missing in release 0.1.0. Thanks to Mark Boriack of - SAIC for reporting this. - -Fri Jan 30 11:55:38 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: Logging service was somehow - missing from the library. - - * orbsvcs/tests/Logger/Logger.dsw: - * orbsvcs/tests/Logger/{server,client}.dsp: Added new project file. - - * orbsvcs/tests/Logger/svr.cpp: - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/logger_i.h: - * orbsvcs/tests/Logger/logger_i.cpp: Changed to - "ace/streams.h". We should always use "ace/streams.h". - -Fri Jan 30 11:42:10 1998 Chris Cleeland - - * docs/releasenotes/orbcore.html: Updated to reflect - characteristics of the latest release as well as what we have to - look forwrd to. - - * announcement: Added this boilerplate for release announcement. - Actually, it's a sciprt which can be piped to something like - 'mailx'. - -Fri Jan 30 01:55:59 1998 Sergio Flores - - * tests/Cubit/COOL/IDL_Cubit/README: - * tests/Cubit/COOL/IDL_Cubit/Makefile: - * tests/Cubit/COOL/IDL_Cubit/client.cpp: - * tests/Cubit/COOL/IDL_Cubit/client.h: - * tests/Cubit/COOL/IDL_Cubit/cubit.idl: - * tests/Cubit/COOL/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/COOL/IDL_Cubit/cubit_i.h: - * tests/Cubit/COOL/IDL_Cubit/server.cpp: - * tests/Cubit/COOL/IDL_Cubit/tmplinst.cpp: Added test code for - Chorus COOL ORB, for the IDL Cubit example. - - * tests/Thruput/COOL/README: - * tests/Thruput/COOL/Makefile: - * tests/Thruput/COOL/client.cpp: - * tests/Thruput/COOL/server.cpp: - * tests/Thruput/COOL/ttcp.idl: - * tests/Thruput/COOL/ttcp_decl.h: - * tests/Thruput/COOL/ttcp_i.cpp: - * tests/Thruput/COOL/ttcp_i.h: - * tests/Thruput/COOL/utils.cpp: Added test code for Chorus COOL - ORB, for the Thruput example. - - * tests/Thruput/TAO/ttcp_decl.h: Make declarations of variables - consistent with definition. Changed srcDataSize from CORBA::ULong - to unsigned long. - - * tests/Thruput/TAO/Makefile: Updated to use rules.tao.GNU. and - taoconfig.mk. This was suggested by a change Carlos O'Ryan did to - the long lost Thruput_test directory. - -Thu Jan 29 23:10:05 1998 Douglas C. Schmidt - - * orbsvcs/tests/Simple_Naming/clnt.cpp (CosNaming_Client): - Reordered the constructor initializations to match the class - definition. - -Thu Jan 29 20:10:33 1998 Chris Cleeland - - * TAO version 0.1.0, released Thu Jan 29 20:10:33 1998. - -Thu Jan 29 15:58:01 1998 Chris Cleeland - - * tests/Param_Test/run_test: Allowed specification of the - invocation style (sii vs. dii) using a shaell variable. - - * docs/releasenotes/{index,orbcore}.html: Updated to include some - details regarding this release. These files are behind the - release, but I'm opting to get the release out and update these - files ex post facto. - - * release.pl: Updated this script so that it can update different - levels of the release version number based on the setting of the - RELEASE_TYPE environment variable. - - * Makefile: Added release.chk to the list of files going into the - release. This file is our checklist for things that have been - tested and work leading up to a release. Check in here for - details on how a test has worked on a platform. - - * tests/POA/FindPOA/FindPOA.cpp (main): Added missing double-quote - in ACE_DEBUG(). - -Thu Jan 29 15:55:25 1998 Carlos O'Ryan - - * orbsvcs/tests/Logger/clnt.h: - * orbsvcs/tests/Logger/clnt.cpp: - We need to keep a reference to the ORB is some place. - -Thu Jan 29 14:59:01 1998 Chris Cleeland - - * tests/POA/On_Demand_Activation/server.cpp: - * tests/POA/Generic_Servant/MyFooServant.cpp: - * tests/POA/Explicit_Activation/server.cpp: - * tests/POA/Default_Servant/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - _var's passed as pointers need to use the .in() method. - - * tests/Param_Test/run_test: Added a longer delay, changed port #, - and made all output be prefaced by either "SERVER: " or - "CLIENT(): ". - - * tao/poa.cpp: Re-ordered member initializers to de-warn g++. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: _narrow needs to be - passed a .in() from _vars (you get a lollipop if you understand - that comment). - - * docs/poa_migration.html: Added this file to start the ball - rolling. Right now it's poorly-formatted and a rehash of some - emails, but it will be refined and grow over time. - -Thu Jan 29 12:33:30 1998 Carlos O'Ryan - - * orbsvcs/tests/Simple_Naming/clnt.cpp: - * orbsvcs/tests/Simple_Naming/clnt.h: - Simple Naming simply tries to locate the Naming Service, it is - useful to test the TAO facilities (multicast, environment, - command line) for that purpose. - - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/clnt.h: - We do not attempt to use nested context unless requested by the - user, the reason is that it is failing consistently right now. - -Thu Jan 29 10:34:08 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_operation.cpp: Some bug fixes made in the pre-POA - TAO version were accidentally overwritten during the POA to main - branch merge. This has been fixed. - - * tao/{encode, decode}.cpp: Fixed the terrible alignment problems - that we were having on VxWorks for marshaling structures. At this - time, the fix has been made only to "structs". These problems were - being caused because the C++ compiler on NT/VxWorks was laying out - structures on a 4 byte aligned address. If a "double" is the very - first field, it will allocate the double at the 4 byte aligned - address even if a double is 8 byte aligned. The fix is to make - sure that when we align, we must take into account the start - address of the structure as well as the address at which the field - is laid out. - -Thu Jan 29 10:29:14 1998 Carlos O'Ryan - - * Makefile: - Compile before , if the first one fails the - second will sure fail also. - - * tests/Cubit/TAO/MT_Cubit/Makefile: - Updated comments and reformated some unreadable things. - -Wed Jan 28 15:35:37 1998 Carlos O'Ryan - - * tests/Makefile: - * tests/Cubit/Makefile: - Fixed Makefiles so we can invoke the top level Makefile safely. - -Wed Jan 28 13:45:16 1998 Nanbor Wang - - * tests/POA/Default_Server/{client,server}.dsp: Updated project - files. - - * tests/Cubit/TAO/MT_Cubit/client.dsp: Added CubitS.cpp to - client.dsp. - - * tests/POA/Generic_Servant/{client,server}.dsp: Added idl - compilation rules. - - * tests/Parem_Test/{client,server}.dsp: Updated idl file - compilation rules. Added Parem_TestS.cpp to client project. - -Wed Jan 28 14:25:29 1998 Chris Cleeland - - * tests/Param_Test/run_test: Updated to utilized the new '-o' - option on the server side and for the clients to get the IOR from - that file. - - * tests/Param_Test/server.cpp: Added '-o' option to specify the - name of a file in which the server can deposit the IOR which the - client should use. - - * tests/Param_Test/options.cpp: Updated the options string (forgot - it last time through). - -Wed Jan 28 13:56:07 1998 Carlos O'Ryan - - * tests/POA/Makefile: - * tests/POA/Default_Servant/Default_Servant.dsw: - * tests/POA/Default_Servant/File.idl: - * tests/POA/Default_Servant/File_i.cpp: - * tests/POA/Default_Servant/File_i.h: - * tests/POA/Default_Servant/Makefile: - * tests/POA/Default_Servant/client.cpp: - * tests/POA/Default_Servant/client.dsp: - * tests/POA/Default_Servant/server.cpp: - * tests/POA/Default_Servant/server.dsp: - * tests/POA/Default_Servant/svc.conf: - Added some missing tests that were in the POA branch. - -Wed Jan 28 13:35:11 1998 Chris Cleeland - - * tests/Param_Test/server.cpp: Changed so that the IOR is printed - ALL the time. - - * tests/Param_Test/options.*: Updated to work with POA. Got rid - of host and port arguments and added an IOR argument. - - * tests/Param_Test/driver.*: Updated to work with POA. - - * tests/Cubit/TAO/IDL_Cubit/clnt.h: Added emacs mode setting at - beginning. - - * tao/optable.h: Cleaned up some formatting in header file. - -Wed Jan 28 13:19:55 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/README: - Update README on how to run the test. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Print the IOR always, it is neded to run properly. - - - * tests/Cubit/TAO/MT_Cubit/tmplinst.cpp: - * tests/Cubit/TAO/IDL_Cubit/tmplinst.cpp: - Instantiate on CORBA::Long instead of a plain long. - - * orbsvcs/tests/Logger/svr.cpp: - Cosmetic changes on debug messages. - -Wed Jan 28 11:20:38 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Logger.idl: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/logger.idl: - Moved a prototype logger.idl to the orbsvcs library, eventually - this will become a full blown service in the TAO architecture. - - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Logger/clnt.h: - * orbsvcs/tests/Logger/logger_i.cpp: - * orbsvcs/tests/Logger/logger_i.h: - * orbsvcs/tests/Logger/svr.cpp: - Ported the experimental logging server to POA. - - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - Fixed minor problem with call using a _var as input parameter - -Wed Jan 28 09:14:30 1998 Carlos O'Ryan - - * tests/POA/Makefile: - Fixed order in the DIRS variable, Generic_Servant goes first - since it builds a library needed in some of the other tests. - - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/Explicit_Activation/Makefile: - Fixed order for libraries, -lserver uses -lTAO so it must go - first. - - * orbsvcs/orbsvcs/Makefile: - Another case of misplaced includes. - - -Tue Jan 27 17:29:11 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Reorder includes to avoid evil definition for the IDL compiler. - -Tue Jan 27 16:16:11 1998 Chris Cleeland - - * tests/Param_Test/server.cpp: Added ACE_UNUSED_ARG() inside the - TAO_CATCH() macro scope to de-warn on g++. - - * tests/Param_Test/param_test_i.cpp (Param_Test_i::CTOR): Removed - argument name to de-warn on g++. - - * tests/Cubit/TAO/IDL_Cubit/{svr,clnt}.cpp: Use in() method on - _var class to explicitly get an _ptr. - - * tao/objtable.cpp (find): Changed conditional expression to not - rely on implicit conversion from _var to _ptr type. - - * tao/giop.cpp: Updated "illegal message" error message to - actually print out the type of the offending message. This also - caused the addition of a helper function--TAO_GIOP_message_name(). - -Tue Jan 27 15:06:28 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - * TAO_IDL/be/Makefile: - * orbsvcs/Dump_Schedule/Makefile: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * tao/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/POA/Explicit_Activation/Makefile: - * tests/POA/FindPOA/Makefile: - * tests/POA/Generic_Servant/Makefile: - * tests/POA/NewPOA/Makefile: - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/RootPOA/Makefile: - * tests/Param_Test/Makefile: - Updated dependencies, apparently they were not properly - generated last time; they worked for Solaris/CC, but not in many - other platforms. - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/tmplinst.cpp: - * orbsvcs/orbsvcs/TAO_IDL_templates.cpp: - It seems that tmplinst.cpp is becoming our standard for template - instantiation files. - - * tao/poa.h: - No need to include poa_T.h, it is not used in any place (yet), - and it produces many warnings on IRIX machines. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - Use a _var for the output sequence of RT_Infos. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Fixed some misuses of _var, thanks to Chris Cleeland for - bringing those to my attention. - - * release.pl: - Added CVS id. - -1998-01-27 Nagarajan Surendran - - * tests/POA/FindPOA:Added comments to all files - * tests/POA/On_Demand_Activation: Added comments to all files - * tests/POA/Generic_Servant: Added comments to all files - -Mon Jan 26 21:29:24 1998 David L. Levine - - * tao/compat/objbase.h: don't #define NOERROR on DIGITAL_UNIX, - or on any other platform that already has it #defined. - Thanks to Oliver Kellogg for - reporting this. - - * tao/corbacom.h: use ACE_INT32, etc., for defining Long, etc. - -Mon Jan 26 16:15:18 1998 Chris Cleeland - - * tao/giop.cpp (read_buffer): Modified this to detect ECONNRESET - and report is as a normal EOF occurrence. This will hopefully - eliminate a disturbing (but innocuous) message on NT. Thanks to - Frank H. at SAIC for reporting this. - - * tests/Param_Test/run_test: Added this script to run the server - and client with all arguments. - -Mon Jan 26 16:02:51 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: - It compiles now, but it won't run. - -Mon Jan 26 15:29:37 1998 Sumedh Mungee - - * orbsvcs/tests/AVStreams/ (main): - Added simple client/server to test AVStreams - -Mon Jan 26 15:23:54 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AVStreams_i.cpp: - Added dummy implementation for VDev, MMDevice, and StreamEndPoint - classes - -Mon Jan 26 15:01:49 1998 Alexander Babu Arulanthu - - * tests/POA/RootPOA.cpp: Added Comments - -Mon Jan 26 14:31:46 1998 Sumedh Mungee - - * tests/POA/FindPOA.cpp: Added CVS ID - -Mon Jan 26 00:57:56 1998 Douglas C. Schmidt - - * tao/connect.cpp (open): Conditionally compile the code for - TCP_NODELAY only if this macro is present. Thanks to Edgar - Villanueva for reporting this. - -Sun Jan 25 14:30:04 1998 Nanbor Wang - - * tests/Cubit/TAO/IDL_Cubit/client.dsp: Added a missing source. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (Cubit_Client): Changed to - initialize Cubit_Client.cubit_key_ from heap. It should use - memory either from stack or heap, but never both. - -Sat Jan 24 21:55:55 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/{AVStreams_i.h, AVStreams_i.cpp}: - Made changes for new POA - -Sat Jan 24 21:46:23 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/AVStreams.idl: - Changed type key to be a string, rather than a sequence, which - breaks tao_idl! - -Sat Jan 24 21:01:00 1998 - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Fixed several minor error and sources of non-complaince. - - * TAO_IDL/tao_idl.dsp: - * tao/TAO.dsp: - CVS does not merge binary files properly. - -Sat Jan 24 15:51:41 1998 Carlos O'Ryan - - * tao/objtable.cpp: - Another merge problem. - -Sat Jan 24 11:20:42 1998 Carlos O'Ryan - - * Added latest changes by Irfan. - - Sat Jan 24 03:04:51 1998 Irfan Pyarali - - * tao/poa.cpp (id_to_reference): Reimplemented this method so that - it does not use id_to_servant and servant_to_reference combo. - This is necessary since id_to_reference may be used in a - MULTI_ID mode. - - * tao/poaS: Added explicit copy and destroy to all collocated - policies. This will help avoid the inheritance via dominance - warnings. - -Sat Jan 24 11:08:28 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor.h: - The forward declaration of TAO_OutStream was missing; I guess it - was some slopiness in the merge. - -Sat Jan 24 10:30:40 1998 Carlos O'Ryan - - * The POA branch is merged back into the main trunk. For the - record we reproduce the ChangeLog in the branch. - - * ============ - * ============ Start of POA branch changes. - * ============ - - Fri Jan 23 17:13:14 1998 Carlos O'Ryan - - * Merged changes from main_to_poa_merge_11 up to - main_to_poa_merge_12 - - Fri Jan 23 17:08:45 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Event_Channel.h: - * orbsvcs/Event_Service/Event_Channel.i: - Fixed problem with Event Channel, it was using _this - unproperly. - - Fri Jan 23 16:49:19 1998 Chris Cleeland - - * tests/Param_Test/{server.cpp,param_test_i.h,param_test_i.cpp}: - Updated to compile with new POA. - - * tests/Param_Test/Makefile: Moved LDFLAGS up, included the - rules.tao.GNU, and removed the dependencies which were causing me - no end of grief. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp (main): Changed the check on - return value from resolve_initial_references() to use the - CORBA::is_nil() check. - - Fri Jan 23 16:43:12 1998 Carlos O'Ryan - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - * orbsvcs/Naming_Service/CosNaming_i.h: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.h: - "Ported" the orbsvcs and the Event_Latency test to POA, with - little success though, things will compile and it seems that the - Naming_Service and Scheduling_Services run properly, but - Event_Service does not. - We use a nested POA with "PERSISTENT" lifespan policy because it - is easier to set an enviroment variable or command line to the - NameService IOR. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Removed some extra (and unwanted) code. - - Fri Jan 23 14:47:18 1998 Chris Cleeland - - * tests/POA/{FindPOA,RootPOA,NewPOA}/Makefile: Added - -L$(TAO_ROOT)/tao to LDFLAGS. - - * tests/POA/NewPOA/NewPOA.cpp: - * tests/POA/RootPOA/RootPOA.cpp: - * tests/POA/FindPOA/FindPOA.cpp: - Used the ::in() method as first argument to _narrow() calls. - - * tests/{Makefile,README}: Updated for new tests. - - * tao/poa.cpp: Added explicit template instantiations. - - Fri Jan 23 14:30:19 1998 Carlos O'Ryan - - * tao/poa.h: - * tao/poa.cpp: - * tao/servant_base.cpp: - _this() was using the object id for the current servant in *all* - objects, now it only does so for the servant invoked. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Ported the Cubit test to POA, including some funky persistent - policies to simplify its use. - - Sat Jan 24 01:24:24 1998 Irfan Pyarali - - * tao/poa.cpp (destroy_i): Changed etherealize objects to correct - report remaining_activations. - - Fri Jan 23 10:55:40 1998 Carlos O'Ryan - - * tao/objtable.cpp: - Linear object tables were not using the initial size to - pre-allocate a buffer. - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_state_argument.cpp: - Fixed the mapping for native as OUT or INOUT parameters, also - fixed the name for the _dispatch() method. - - Fri Jan 23 01:12:28 1998 Irfan Pyarali - - * tao/poaS.cpp: Added ACE_NESTED_CLASS macro to constructors. - - Thu Jan 22 23:57:31 1998 Chris Cleeland - - * tao/poa.cpp (wstring_to_ObjectId): Stuck the CORBA::WChar type - in parens for sizeof...g++ likes it better that way. - - Fri Jan 23 00:14:03 1998 Irfan Pyarali - - * tao/poa: - - - Added support for transient and persistent POAs by changing - the ObjectKey. From now on, each key will contain an - identifier that will indicate whether the key came from a - persistent or transient POA. That way the dispatch method can - decide the value of the activate_it flag while finding the - POA. If the key is from a persistent POA, the activate_it - flag will be true, else the flag will be set to false. - - - All operations on the parent POA will check for a valid parent - before executing the call. Remember that the RootPOA does not - have a parent POA. - - - Temporarily added export macros to the POA implementation - classes, so that the implementations can directly be debugged - (rather than going through the stubs/skeletons). These should - be removed once the debugging process is over. - - - Moved the registeration of the POA with its manager from the - create_POA method to the POA constructor. This is to insure - that the registration of the RootPOA is not "missed" since the - RootPOA is not created via the create_POA call. Similarly, - moved the removal of the POA from its manager from the destroy - method to the POA destructor. - - - TAO_POA::delete_child and TAO_POA_Manager::remove_poa were - changed such that when the object is closing down, we are - currently iterating over our poa collection and there is not - need to remove the item from our collection. - - - Changed use of substr from starting_at/ending_at to - starting_at/now_many. - - - Methods that return duplicated values/objects, must first be - assigned to a _var variable before being used. This will - avoid memory leaks. - - - For find methods, always use != -1 for success. - - - Added code to create_POA_i and find_POA_i_optimized to check - when topmost_poa_name == this->name_. - - - Added the concept of creation time to a POA. This way when a - transient POA gets a object key from a previous incarnation, - the OBJECT_NOT_EXISTS exception can be thrown. - - - Added a locator cookie field to TAO_POA_Current to keep track - of the cookie produced by the servant locator. - - - Made all methods virtual. - - - Renamed active_object_table to active_object_map. - - - Added pre_invoke and post_invoke methods to setup the - necessary state before doing the upcall to the servant. - - - Changed locate_servant to return 0 for success and -1 for - failure instead of trying to return a servant. This change is - necessary since there may not be a servant available but there - may be default servants or servant managers that could fill in - for the servant. Currently the locate_servant method takes an - optimistic approach to return TRUE when the servant was not - found but a default servant or servant manager was registered - with the POA, hoping the default servant or servant manager - will be able to fill in when the real request arrives. - - - Add a validity checks for POA policies. - - - Added support for servant managers (both servant locators and - servant activators), default servants and DSI. - - * tao/poaC.h: Added DynamicImplementation class to the - PortableServer. - - * tao/poaS: Changed dispatch to _dispatch. - - * tao/servant_base: - - - Added TAO_DynamicImplementation class - (a.k.a. PortableServer::DynamicImplementation). Users will - inherit from this to implement DSI. - - - Added prefix _ to all methods names in the ServantBase class - to avoid potential crashes with user specified method names. - - - Made TAO_POA a friend of ServantBase. - - * tao/connect.cpp (handle_locate): Changed to use latest version - of TAO_POA::locate_servant. - - * tao/servant_base.cpp (_default_POA): Changed to use - TAO_ORB_Core_instance()->root_poa() instead of - TAO_ORB_Core_instance()->orb()->resolve_initial_references("RootPOA"). - - * tao/poaC: Added string_to_ObjectId and ObjectId_to_string - methods to PortableServer. - - * tao/poa.cpp (TAO_Adapter_Activator::unknown_adapter): Changed - the implementation of this object so that it does not depend on - being friends with the POA and the POAManager. Initially, this - was done to avoid recursive locks. However, since user may want - to write their own implementations, recursive locks were deemed - necessary. - - * tao/default_server.cpp (create_poa_lock): Changed implementation - to produce ACE_Recursive_Thread_Mutex instead of - ACE_Thread_Mutex. - - * tests/POA/RootPOA/RootPOA.cpp (main) and - tests/POA/NewPOA/NewPOA.cpp (main): Added code to destroy the - rootPOA. I am not sure this is the responsibility of the user - to destroy the rootPOA since they never really created it. The - responsibility probably lies with the ORB, but since the spec - seems neutral about this, it is ok for now. - - * tao/object.i (CORBA_Object::Release): We must delete the object - when the parent_ refcount goes to zero. - - Thu Jan 22 16:56:32 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Fixed some relative name problems for the server header file. - - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_root.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - Get rid of some "unused arg" warnings. - - Thu Jan 22 15:26:55 1998 Chris Cleeland - - * tao/object.i: CORBA::Object --> CORBA_Object for internal stuff. - - * tao/object.i (CORBA_Object): Re-ordered member initialization to - match declaration order. - - Thu Jan 22 14:40:01 1998 Carlos O'Ryan - - * tao/corbacom.h: - Fixed multiple definitions of ORB_var and ORB_out due to a - simplistic merge. - - * TAO_IDL/be/be_interface.cpp: - Generate _find() to locate operations; using just find() is not - complaint. - - Thu Jan 22 10:40:13 1998 Carlos O'Ryan - - * Merged changes from main_to_poa_merge_10 up to - main_to_poa_merge_11 - - Wed Jan 21 17:35:20 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - Generate CORBA_Object instead of CORBA::Object to keep NT - happy. - - * TAO_IDL/be/be_visitor_args.cpp: - Fixed mapping for strings as arguments, they should always be - char*. - - Mon Jan 19 22:03:38 1998 - - * tao/sequence_T.i: - Object_Manager constructor was calling _duplicate(). That is not - the right semantics, and produces a crash when working on an - unitialized buffer. - - * tests/POA/NewPOA/NewPOA.cpp: - * tests/POA/NewPOA/NewPOA.dsp: - Fixed signed/unsigned warning. - - * tests/POA/NewPOA/NewPOA.dsp: - Fixed missing options to find ACE. - - Mon Jan 19 16:36:22 1998 Carlos O'Ryan - - * tao/iiopobj.h: - * tao/iiopobj.cpp: - Added a missed in action key() method to IIOP_Object. - - * tao/stub.h: - * tao/objkeyC.h: - * tao/object.h: - * tao/object.cpp: - Removed the non-complaint ObjectKey_ptr type. - - Mon Jan 19 16:19:28 1998 Carlos O'Ryan - - * tao/deep_free.cpp: - A reinterpret cast was dropping constness also, thanks to Irfan - for pointing this one out. - - Mon Jan 19 15:36:10 1998 Carlos O'Ryan - - * tao/sequence_T.i: - * tao/sequence_T.cpp: - The last merge was too smart, it kept some changes on this - branch that should have gone away. - - Mon Jan 19 13:58:01 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_interface.cpp: - Fixed operation table initialization, also called proper - constructor for CORBA::Object in collocated classes. - - * tao/corba.h: - More include reordering. - - * tao/servant_base.h: - The operation table was not properly initialized. - - Mon Jan 19 11:28:47 1998 Carlos O'Ryan - - * Merged changes from main_to_poa_merge_9 up to - main_to_poa_merge_10. - - Sun Jan 18 01:04:22 1998 - - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be_include/be_interface.h: - * tao/servant_base.h: - Added support for collocation in the _narrow method, this - required a complete implementation of _downcast() for each - skeleton. - - Sat Jan 17 20:54:26 1998 - - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - More bug fixes in code generation for sequences, attributes, - etc. Most of them were minor inconsitencies. Also fixed - constructors for collocated classes on NT (working around MSVC++ - bug). - - * tao/servant_base.cpp: - * tao/servant_base.h: - Added default implementation for _downcast(), it just works if - downcasting to "Object". - - * tao/sequence_T.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - Fixed some problems with managed sequences. - - Sat Jan 17 19:27:12 1998 - - * tao/servant_base.h: - * tao/servant_base.cpp: - Added the new _is_a() method on TAO_ServantBase. - - * TAO_IDL/tao_idl.dsp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be_include/be_visitor_interface.h: - Added a new _is_a to the generated servants, also implemented - the _is_a method on the collocated classes by invoking that - _is_a(). - Added support for attributes in collocated classes, thanks to - Irfan for noticing this. - - Sat Jan 17 15:44:43 1998 - - * tao/corba.h: - * tao/iiopobj.cpp: - Fixed undetected inconsistencies in the last merge. - - * tao/objkeyC.cpp: - * tao/objkeyC.h: - * tao/objkeyC.i: - I regenrated from the IDL file to use the new sequences. - - Sat Jan 17 11:49:15 1998 - - * Merged changes from main_to_poa_merge_8 to main_to_poa_merge_9. - - Sat Jan 17 00:45:59 1998 Irfan Pyarali - - * tests/POA: Added new tests: Explicit_Activation_POA_Ids and - NewPOA. - - * tao/servant_base.h (TAO_ServantBase): Added a _downcast method - that gets the servant with the correct vtable. Also added a new - class TAO_Local_ServantBase that overwrites _create_stub. - TAO_Local_ServantBase::_create_stub uses a fake key and does not - registration with the default POA. - - * tao/poaS.*: Added _downcast to the generated code. Also added - attribute accessor methods. Also updated constructors to - explicitly initialize the virtual base class (CORBA::Object). - - * tao/poaC.h: Added TAO_Local_ServantBase to the PortableServer - namespace as PortableServer::LocalServantBase. - - * tao/poaC.cpp (_narrow): Changed the implementation of _narrow to - produce a collocated class when appropriate. - - * tao/poa.cpp (TAO_POA::create_*_policy): Made sure these methods - return collocated classes and not implementation classes. - - * tao/poa.h (class TAO_POA_Policies): Added set methods to - TAO_POA_Policies. - - * tao/orbobj.cpp (resolve_poa): Made sure that the RootPOA is - created with the PortableServer::IMPLICIT_ACTIVATION policy. - - * tao/object: Added servant pointer and a collocated flag to - object class. - - Fri Jan 16 03:27:30 1998 Irfan Pyarali - - * tao: - - BOA begone: CORBA::POA and all BOA related code has been - removed from TAO. - - POA: Today the PortableServer and the POA were born in TAO. - - * tao/connect (handle_request): Changed handle_request to accept - the TAO_GIOP_RequestHeader parameter by reference rather than by - value. - - * tao/corba.h: Rearranged header to accommodate the new POA. - - * tao/corbacom.h (CORBA): Added typedefs for Object_var Object_out - in the CORBA class. - - * tao/current: Absorbed all the POACurrent code into the poa.* - files. - - * tao/iiopobj.cpp (operator==): Added comparison operator for - TAO::ObjectKey. - - * tao/orbobj.cpp (resolve_poa_current and resolve_poa): Made sure - that we return the colocated class and not the implementation - class. - - * tao/orbobj.h (objref.): POA_init was deprecated. Please use - orb->resolve_initial_references ("RootPOA") instead. - - * tao/objtable.cpp (find): Change the use of auto_ptr(s) to deal - correctly with explicit constructors. - - Thu Jan 15 17:27:26 1998 Chris Cleeland - - * tao/orb_core.{h,i}: Added the poa_current() method and internal - structure so that state is available to the POA and to the upcall. - - * tao/orbobj.{h,cpp}: Added resolve_poa_current() in order to - return the POACurrent state context. Added the "POACurrent" to - one of the things for which resolve_initial_references() works. - Changed resolve_poa() so that things can compile; the impl isn't - correct but when the POA stuff gets committed, this will be - changed accordingly. - - Tue Jan 13 12:15:54 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_operation.h: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_state_operation.cpp: - The stubs and skeletons for operations that have a "native" - argument or return value simply "throw" a CORBA::MARSHAL - exception; those methods cannot be called for remote objects. - I also had to return something when an exception is raised and - the return type is a "native", we choose to return 0 for lack of - a better choice. - - Tue Jan 13 10:49:48 1998 Chris Cleeland - - * tao/current.{i,cpp}: Added a first cut at implementations for - the POA Current impl. - - Mon Jan 12 19:47:42 1998 Carlos O'Ryan - - * tao/poa.h: - * tao/poa.cpp: - Added a _get_stub() method that encapsulates code common to all - _this implementations. - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - The _this() method implementation was changed to use the new - _get_stub finally adding full support for the standard poa, some - changes were required in the _tao_collocated classes and their - constructors. - - * TAO_IDL/be_include/be_helper.h: - * TAO_IDL/be/be_helper.cpp: - Added "manipulators" to increase and decrement indentation - level. - - Mon Jan 12 14:55:53 1998 Chris Cleeland - - * tao/current.h (class TAO_POA_Current_Impl): Added this as the - beginning of the implementation for the POA Current. More to - come... - - * tao/default_server.*: Added implementations of create_poa_lock() - and create_poa_mgr_lock() to obtain their values from -ORBpoalock - and -ORBpoamgrlock options, respectively, to the Default Server - Strategy Factory specified in svc.conf. Values for these are - either "thread" or "null", which specify an ACE_Thread_Mutex or - ACE_NULL_Mutex, respectively. - - * tao/server_factory.*: Added create_poa_lock() and - create_poa_mgr_lock() to obtain locks for use in POA and POA - Manager instances. - - Mon Jan 12 12:10:58 1998 Carlos O'Ryan - - * tao/objtable.cpp: - Fixed some problems with misused auto_ptr and dynamic cast that - was taking away constness at the same time. - - Mon Jan 12 11:55:53 1998 Chris Cleeland - - * tao/orbobj.cpp (resolve_poa): Added skeletal code to create root - POAs using the resolve_initial_references() interface. Irfan will - fill in the correct code for actually creating the POA. - - Sun Jan 11 14:09:48 1998 - - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/CORBA_Utils_T.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Adapted so they compile with the new POA mapping. - - Sun Jan 11 11:33:36 1998 - - * tao/connect.cpp: - On this branch the find() method for POA's require a - PortableServer::Servant parameter. - - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - Modified to use the new POA mapping for servers. - - * TAO_IDL/tao_idl.dsp: - Replaced the old drv_main.cpp with tao_idl.cpp. - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: - The final library is not generated inside Debug and its name is - orbsvcs.lib, not orbsvcs_lib.lib - - Sun Jan 11 10:55:04 CST 1998 Carlos O'Ryan - - * Merged changes from tag main_to_poa_merge_5 and - main_to_poa_merge_6. This late merge is risky, needs complete - validation before public release. - - Sat Jan 10 22:11:47 1998 - - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Work around bug in MSVC++ 5.0 wrt inheritance from nested - classes and the constructor invocation. - - Sat Jan 10 19:21:18 1998 - - * TAO_IDL/tao_idl.dsp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be_include/be_interface.h: - * tao/orb_core.cpp: - Fixed some problems in the latest merges. - - Sat Jan 10 18:06:24 1998 - - * Merged changes from tag main_to_poa_merge_7 and - main_to_poa_merge_8. - Resolved many conflicts in TAO_IDL due to similar changes in - both branches. - - Sat Jan 10 16:57:42 1998 - - * Merged changes from tag main_to_poa_merge_6 and - main_to_poa_merge_7. - - Fri Jan 9 17:58:43 1998 Carlos O'Ryan - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - Minor cosmetic changes to make the main trunk changes identic to - the ones on this branch. - - Thu Jan 8 15:50:59 1998 Carlos O'Ryan - - * TAO_IDL/be/be_state_operation.cpp: - Added support for native as return type. - - Thu Jan 8 13:20:11 1998 Carlos O'Ryan - - * TAO_IDL/ast/Makefile: - * TAO_IDL/be/Makefile: - Added ast_native and be_native to the list of files. - - * TAO_IDL/be_include/be_native.h: - * TAO_IDL/be/be_native.cpp: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be/be_visitor.cpp: - Added support for visiting be_native. - - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be/be_visitor_args.cpp: - Added support for native and improved the implementation. - - * TAO_IDL/fe/y.tab.cpp: - Removed some includes and pragmas that cause trouble on NT. - - * TAO_IDL/be/be_type.cpp: - Print an error if the default implementation for write_as_return - is called. - - Thu Jan 8 12:53:28 1998 Chris Cleeland - - * tao/corbacom.i (wstring_dup): Added this, which simply calls - wstring_copy(). Of course, I can't find any mention of EITHER of - these functions in the 2.0 or 2.1 spec, but what good are wstrings - if you can't make copies? Plus, Irfan really wanted it. - - Wed Jan 7 15:09:47 1998 Carlos O'Ryan - - * TAO_IDL/fe/y.tab.cpp: - This is the actual file generated from idl.yy, thanks to the - "clone" scheme for building ACE it was lost in the previous - commits. - - Wed Jan 7 14:17:14 1998 Chris Cleeland - - * tao/orbobj.{h,cpp} (key_to_object): Changed signature so that - it's more in line with what we really need. This is okay because - this method is not in the standard, so we can choose whatever we - damn well please! - - Wed Jan 7 14:08:41 1998 Carlos O'Ryan - - * Merged changes from version main_to_poa_merge_4 and - main_to_poa_merge_5. - - Tue Jan 6 17:35:44 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface.cpp: - Added several fixes for mutiple inheritance, but still needs - some work. - - Tue Jan 6 15:20:13 1998 Carlos O'Ryan - - * tao/object.h: - * tao/object.cpp: - Removed obsolete methods, they were there to support upcalls on - the server side, but now this is done on - PortableServer::ServantBase. - - Tue Jan 6 14:46:27 1998 Carlos O'Ryan - - * tao/poa.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Added a _get_servant () method to the collocated classes, to - obtain access to the underlying skeleton. - - Tue Jan 6 13:31:20 1998 Carlos O'Ryan - - * tao/objtable.h: - * tao/objtable.cpp: - Fixed some problems with the PortableServer::ObjectId and - PortableServer::Servant changes. - - * tao/poa.h: - * TAO_IDL/be/be_interface.cpp: - Added a method to get the interface repository name for a - skeleton. - - * tao/encode.cpp: - Fixed problem on object reference enconding. - - Mon Jan 05 23:41:59 1998 - - * tao/objkeyC.cpp: - The code for memory reallocation was missing, I added it back. - - * tao/iiopobj.cpp: - Fixed bug in object key generation. - - * tao/poa.cpp: - More debug messages when an object is missing. - - Mon Jan 05 17:46:00 1998 - - * tao/connect.cpp: - * tao/corba.h: - * tao/corbacom.h: - * tao/default_server.cpp: - * tao/default_server.h: - * tao/iiopobj.cpp: - * tao/iiopobj.i: - * tao/iioporb.cpp: - * tao/orbobj.cpp: - * tao/params.h: - * tao/params.i: - * tao/poa.cpp: - * tao/poa.h: - * tao/server_factory.cpp: - * tao/server_factory.h: - The ObjectId changes were "accepted for revision" by the POA - committe, hence I'll commit them, they check them and then I'll - have to make the changes they require ;-) - The current scheme uses TAO::ObjectKey as a representation for - sequence, this class is generated by the IDL compiler. - The ORB core uses a typedef (TAO_opaque) for all its internal - object keys; the current (and deprecated) POA uses ObjectId - (another typedef on the same thing) as object identifiers. - - Mon Jan 5 13:06:19 1998 Carlos O'Ryan - - * Merged changes from revision main_to_poa_merge_3 up to revision - main_to_poa_merge_4. - - Mon Jan 05 00:11:45 1998 - - * tao/objtable.h: - * tao/objtable.cpp: - New Object Table interface, in preparation for the POA needs. - - Sat Jan 03 11:37:21 1998 - - * TAO_IDL/be/be_visitor_args.cpp: - Typedefs and predefined types where unproperly handled. - - Fri Jan 2 14:09:49 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - Sequences work on Solaris, even Purify gives its "Houston it's a - go", so I'm reinstating them. - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Minor cosmetic changes. - - Fri Jan 02 08:31:32 1998 - - * Merged changes from revision main_to_poa_merge_2 up to revision - main_to_poa_merge_3. - Had to disable sequence test from IDL_Cubit. - - Thu Jan 01 15:43:43 1998 - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - Generated code for collocations setup the "parent_" field - properly. - - * tao/objkeyC.h: - * tao/corbacom.h: - Added export macros. - - * tao/objtable.cpp: - * tao/objtable.h: - * tao/poa.cpp: - * tao/poa.h: - Object table is based on servants now. - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: - Fixed to use the new POA mapping. - - * TAO_IDL/tao_idl.dsp: - * tao/TAO.dsp: - Added the new files to the MSVC++ project. - - Tue Dec 30 16:38:42 1997 Carlos O'Ryan - - * More advances in code generation, it compiles and links now, but - won't run. - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - Added methods to be_type to generate the return types; this - time without any switches, just visitors and virtual - dispatching. - - * tao/poa.cpp: - * tao/poa.h: - Added the methods to lookup operations, this are TAO specific - and should have complaint names, but currently I just kept the - old names to avoid a major breakdown. - - * TAO_IDL/ast/Makefile: - * TAO_IDL/be/Makefile: - * TAO_IDL/driver/Makefile: - * TAO_IDL/fe/Makefile: - * TAO_IDL/narrow/Makefile: - * TAO_IDL/util/Makefile: - Updated dependencies. - - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be_include/be_visitor_interface.h: - * TAO_IDL/be/be_interface.cpp: - Reverted some changes (code moved from be_interface.cpp into - visitors) to avoid massive conflicts with Andy's changes. - - Tue Dec 30 11:07:06 1997 Chris Cleeland - - * tao/orb_core.h (TAO_Resource_Factory): Corrected my "fat-finger" - mistake for the return type of get_allocator (). - - Mon Dec 29 16:26:24 1997 Chris Cleeland - - * tao/orb_core.{h,cpp}: Added methods for the orb core allocator - to the resource factory. - - Mon Dec 29 13:18:49 1997 Carlos O'Ryan - - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_visitor.cpp: - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be_include/be_visitor_interface.h: - Started implementation of the collocated class code generation, - using the visitor pattern; hence the new be_visitor class and - some examples of its use. - - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - Added method to obtain the node type for the most "unaliased" - type though a typedef chain. This is needed in several points - for code generation. - - * TAO_IDL/be/be_interface.cpp: - Implemented the collocated class generation using visitors, - ditto for (part of) the main class. - - * TAO_IDL/util/utl_identifier.cpp: - Fixed memory deallocation problem. The string was copied using - ACE_OS::strdup(), but deleted using operator delete[]. - - * TAO_IDL/be/be_argument.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_field.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be/be_union_label.cpp: - * TAO_IDL/be_include/be.h: - * TAO_IDL/be_include/be_argument.h: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_attribute.h: - * TAO_IDL/be_include/be_constant.h: - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_enum_val.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_expression.h: - * TAO_IDL/be_include/be_field.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_module.h: - * TAO_IDL/be_include/be_operation.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_root.h: - * TAO_IDL/be_include/be_scope.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - * TAO_IDL/be_include/be_union_branch.h: - * TAO_IDL/be_include/be_union_label.h: - Added the accept() method for the vistor pattern - implementation. - - Mon Dec 29 11:37:47 1997 Chris Cleeland - - * tests/Cubit/TAO/MT_Cubit/server/Makefile: Updated dependencies. - - Fri Dec 26 12:05:41 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Correctly modified the - make_cubit() method to properly access the underlying object key. - - * tao/objkeyC.cpp: Added this crucial file that I somehow missed - adding in the last round of changes. - - Wed Dec 24 15:50:38 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Removed non-standard - reliance on underlying object key implementation. It relied on - the buffer being publicly-accessible, which is wrong. However, - I'm not sure that my interim fix is very "right" since it takes - the address of operator[](0) to get to the underlying entire - buffer. - - * tests/Cubit/TAO/{IDL_Cubit,MT_Cubit/{server,client}}/Makefile: - Updated to use rules.tao.GNU. - - * tests/Thruput_test/Makefile: Updated to use rules.tao.GNU. - - * tao/orb.h: Removed unnecessary inclusions of object.h and - corbacom.h from this file. - - * tao/objkeyC.{h,cpp}: Moved the inclusion of corba.h from the - header to the implementation because of strange requirements of - the orb core. This means that this file CANNOT be used as - generated by the IDL compiler. - - * tao/{orbobj,stub,object,iiopobj}.cpp: Updated to use the proper - TAO::ObjectKey_ptr type. - - * tao/Makefile: Updated this after the recent merge that - accidentally overrote some changes I'd made. - - * taoconfig.mk: Moved the implicit rule into rules.tao.GNU. - - * rules.tao.GNU: Added this file where rules specific to TAO can - be collected. Right now it just contains an implicit rule for - executing the IDL compiler on .idl files. - - Tue Dec 23 12:00:38 1997 Carlos O'Ryan - - * TAO-INSTALL.html: - * VERSION: - * Benchmark/benchmark/Makefile: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be/be_state_argument.cpp: - * TAO_IDL/be/be_state_exception.cpp: - * TAO_IDL/be/be_state_operation.cpp: - * TAO_IDL/be/be_state_sequence.cpp: - * TAO_IDL/be/be_state_structure.cpp: - * TAO_IDL/be/be_state_typedef.cpp: - * TAO_IDL/be/be_state_union.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_codegen.h: - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be_include/be_scope.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_state.h: - * TAO_IDL/narrow/narrow.cpp: - * docs/Options.html: - * docs/components.html: - * docs/configurations.html: - * docs/index.html: - * docs/orbsvcs.html: - * docs/releasenotes/index.html: - * orbsvcs/README: - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Dump_Schedule/Makefile: - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Dispatching_Modules.i: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/Event_Channel.i: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/Event_Service/RT_Task.cpp: - * orbsvcs/Event_Service/ReactorTask.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Config_Scheduler.cpp: - * orbsvcs/Scheduling_Service/Config_Scheduler.h: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Logger/clnt.cpp: - * orbsvcs/tests/Simple_Naming/Makefile: - * tao/Makefile: - * tao/Timeprobe.cpp: - * tao/corba.h: - * tao/corbacom.cpp: - * tao/deep_free.cpp: - * tao/encode.cpp: - * tao/except.cpp: - * tao/except.h: - * tao/giop.cpp: - * tao/invoke.cpp: - * tao/managed_types.cpp: - * tao/managed_types.h: - * tao/managed_types.i: - * tao/object.i: - * tao/orb_core.cpp: - * tao/request.cpp: - * tao/tao_internals.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tests/Cubit/TAO/IDL_Cubit/clnt.h: - * tests/Cubit/TAO/MT_Cubit/client/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/client/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/client/client.cpp: - * tests/Cubit/TAO/MT_Cubit/client/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/server/cubit.h: - * tests/Cubit/TAO/MT_Cubit/server/cubit.idl: - * tests/Cubit/TAO/MT_Cubit/server/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/server/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server/method_db.i: - * tests/Cubit/TAO/MT_Cubit/server/svr.cpp: - Merged in the changes between revisions main_to_poa_merge_1 and - main_to_poa_merge_2. - The only conflicts were: - + ChangeLog: - removed all the main truck comments and added the one you are - reading just now. - + tests/Cubit/TAO/MT_Cubit/client/Makefile: - + tests/Cubit/TAO/MT_Cubit/client/Makefile: - Left the branch revision, it included the dependencies and had - correct syntax. - + tao/poa.cpp: - CORBA_POA::handle_request was removed on the - branch but modified on the main revision; keep it removed. - - Wed Dec 17 02:11:11 1997 Chris Cleeland - - * tao/poa.h: - * tao/poa.cpp: - * tao/orbobj.h: - * tao/orbobj.cpp: - * tao/objkeyC.i: - * tao/objkeyC.h: - * tao/object.h: - * tao/iiopobj.h: - * tao/iiopobj.cpp: - * tao/decode.cpp: - * tao/corbacom.h: - * tao/corba.h: - * tao/any.cpp: - All affected by changes to support interfaces required by the new - POA, specifically CORBA::Object::key() and - CORBA::ORB::key_to_object(). It does not compile now, and seems - as if it's simply an ordering problem of header files. - - Mon Dec 15 19:39:20 1997 Chris Cleeland - - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be/be_state_attribute.cpp: - * TAO_IDL/be/be_state_exception.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be_include/be_state.h: - * docs/releasenotes/orbcore.html: - * docs/releasenotes/index.html: - * orbsvcs/Naming_Service.cpp: - * tao/iiopobj.h: - * tao/except.h: - * tao/except.cpp: Merged in changes from the main trunk. - - * tests/Thruput_test/Makefile: Updated to use taoconfig.mk. - - Sat Dec 13 22:06:25 1997 Chris Cleeland - - * tao/poa.* (get_key): Removed this method, since it's - unnecessary. - - * tao/objkey.idl: Added this file, which is the idl for an object - key. - - * tao/iiopobj.*: Added some '@@' comments for Irfan. - - * tao/Makefile: Reworked this monstrositry a bit. - - Fri Dec 12 12:09:42 1997 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: Changed to use - CORBA::Object::key() rather than _get_name(). - - * tests/Cubit/TAO/{DII_Cubit,IDL_Cubit,MT_Cubit}/Makefile: Updated - to use taoconfig.mk. - - * tao/orb_core.i: Removed stray printf. - - * taoconfig.mk: Added this file which contains common - configuration stuff for applications. - - Thu Dec 11 21:28:09 1997 Chris Cleeland - - * tao/poa.{h,cpp}: Moved handle_request to - TAO_Server_Connection_Handler and moved create to - CORBA::ORB::key_to_object. - - * tao/orbobj.{h,cpp}: Added key_to_object as a method to create an - object reference from an object key and type id. This code - actually used to live in POA::create. - - * tao/object.h: Brief documentation twiddling, and renamed - get_subclass to get_most_derived, which is hopefully more - explicative. - - * tao/{object,iiopobj,stub}.{h,cpp}: Renamed _get_name to 'key' - and have it return a TAO_ObjectKey_ptr rather than a const char*. - - * tao/corbacom.h: Added typedef for TAO_ObjectKey, which - represents an object key in GIOP. - - * tao/connect.{h,cpp}: Moved handle_request from the POA into - here, thereby helping confine IIOP-ness to the ORB Core and - keeping the POA pristine. - - Thu Dec 11 22:18:52 1997 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Moved the code generation for the - _var and _out classes before the actual class declaration, but - after the forward declaration. This was necessary if any elements - in the scope of the interface are defined to be of the same type - as that interface. In such a situation those elements are defined - to be of the _var type. Hence the declaration for _var and _out - must precede the class declaration. - - Thu Dec 11 22:00:52 1997 Sergio Flores - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Fixed a bug - related to returning an empty string as the ior in the reply from - the multicast request. - - Thu Dec 11 14:06:50 1997 Aniruddha Gokhale - - * TAO_IDL/be/{be_exception,be_state_exception}.cpp: Support for - exceptions added. Added a new file called - "be_state_exception.cpp". - - * TAO_IDL/be_include/be_state.h: Added a new singleton for - be_state_exception. - - * TAO_IDL/be/be_state.cpp: Template instantiations for - be_state_exception. - - * TAO/docs/releasenotes/index.html: Updated to include exception - support. - - * TAO/tao/except.{h,cpp}: Moved the TypeCode member from the - private section to the protected section so that derived classes - can set it. Also, changed the variable from _type to type_ to - stick to the ACE design standards. - - * ============ - * ============ End of POA branch changes. - * ============ - -Fri Jan 23 10:29:17 1998 David L. Levine <@cs.wustl.edu> - - * tao/deep_free.cpp (TAO_Marshal_Sequence::deep_free): added - ACE_UNUSED_ARGs of dest and env. - - * TAO_IDL/fe/{Makefile,y.tab.cpp,y.tab.cpp.diff}: added patch to - fix up y.tab.cpp to compile cleanly with g++. - - * TAO_IDL/fe/{Makefile,lex.yy,cpp,lex.yy.cpp.diff}: added patch to - fix up lex.yy.cpp to compile cleanly with g++. - -Thu Jan 22 18:18:07 1998 Nanbor Wang - - * orbsvcs/Event_Service/GPlot_File.{h,cpp}: Shuffled template - instantiations and typedef's for ACE_Map_Manager around to - eliminate compilation errors from g++. - -Thu Jan 22 16:32:56 1998 Chris Cleeland - - * tao/nvlist.cpp (is_nil): Fixed some return lines that were - probably returning the wrong value by not enclosing a comparison - in parens. Fortunately we weren't really checking the return - value on these, I suspect ;-) Thanks to Frederic Andres - for turning this in. - -Thu Jan 22 16:16:32 1998 Sumedh Mungee - - * orbsvcs/orbsvcs/CosPropertyService_i.cpp, CosPropertyService_i.h, AVStreams_i.cpp, AVStreams_i.h: - Added empty implementation files for AVStreams and propertyservice implementations - - * orbsvcs/orbsvcs/Makefile: - Fixed the Makefile so that it will compile the AV related stuff - only when run as `make av=1`. - -Thu Jan 22 14:22:46 1998 Nanbor Wang - - * orbsvcs_lib.dsp: Changed to use multithreaded libraries. - -Thu Jan 22 14:20:13 1998 Nanbor Wang - - * tests/Param_Test/{server,client}.dsp: The project files - somehow got messed up. - - * orbsvcs/orbsvcs_lib.dsp: Changed to use multithreaded - libraries. - - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: Removed - unnecessary link-time libraries. - - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: Changed to use - multithreaded libraries. - -Wed Jan 21 20:49:51 1998 Chris Cleeland - - * TAO version 0.0.54, released Wed Jan 21 20:49:51 1998. - -Wed Jan 21 19:38:02 1998 Aniruddha Gokhale - - * tao/encode.cpp, decode.cpp: Fixed alignment problem. Done only - in Marshal_Struct for the time being. Details of this fix will be - inserted later. - -Wed Jan 21 16:27:58 1998 Chris Cleeland - - * Makefile: Updated this to use the new release.pl file below. - - * release.pl: Added new script to take over some of the release - work rather than having it all inline in the Makefile. - - * tests/Cubit/TAO/MT_Cubit/README: Changed docs to reflect the new - names and command line requirements. - -Wed Jan 21 15:38:52 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Makefile: - Removed GPlot_File from the list, it does not compile on - Solaris/g++, but it is not needed. - -Wed Jan 21 11:48:19 1998 Aniruddha Gokhale - - * tao/encode.cpp: Updated the ObjRef::encode routine to encode NUL - object references - - * tests/Param_Test: Further improvements. - - * TAO_IDL/be/{be_state_attribute, be_attribute}.cpp: Solved the - problem of return types. The stubs explicitly allocate the top - level storage. A similar fix was made for "operations" mentioned - in a previous ChangeLof entry. - -Wed Jan 21 12:23:29 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - Fixed typo in object list for server and client. - -Wed Jan 21 11:25:36 1998 Carlos O'Ryan - - * tests/Param_Test/tmplinst.cpp: - Removed extra ';' in instantiation pragma. - -Wed Jan 21 11:13:56 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/tmplinst.cpp: - * tao/giop.cpp: - Added missing template instantiations. - - * tao/sequence_T.h: - * tao/sequence_T.i: - No need to return const reference to pointer, a simple return - by value (of the pointer) is OK. - -Wed Jan 21 10:38:22 1998 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Added template instantiation - for Env_Value. - - * tests/{Thruput/TAO,Param_Test,Cubit/TAO/IDL_Cubit}/Makefile: - Added the appropriate tmplinst.* so that it gets built/linked. - - * tests/{Thruput/TAO,Param_Test,Cubit/TAO/IDL_Cubit}/tmplinst.cpp: - Added this file, which contains explicit template instantiations - for code generated by the IDL compiler. Ideally, this file (or - something like it) would be generated by the compiler, but we're - just not there yet. So, since it's not TOO much work, we do this. - -Wed Jan 21 09:40:27 1998 Carlos O'Ryan - - * tao/sequence.cpp: - * tao/sequence_T.cpp: - Fixed allocation problem for operator= in sequences, the new - buffer should have size "rhs.maximum_", not "this->maximum_" - -Wed Jan 21 04:43:57 1998 Aniruddha Gokhale - - * tao/corbacom.h: Added Object_var and ORB_var to the CORBA class - (i.e., to the namespace) - - * tao/sequence.cpp: Operator= for string sequence still had bugs - where we were not allocating a larger buffer of the assigned - quantity was larger than us. Similar bugs *might* be present in - other sequence classes and I have not tested them yet. - -Wed Jan 21 01:34:07 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/{server,client}.cpp: Ifdef'ed out - ACE_THR_PRIO_FIFO_DEF if it's not defined. - - * orbsvcs/Naming_Service/Naming_Service.cpp: We should use - "ace/streams.h" to include iostream definition instead of using - directly. It is not compatible with the new - standard CPP libraries. - - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: It used the - wrong libraries. - -Tue Jan 20 22:59:42 1998 Chris Cleeland - - * tao/sequence_T.cpp: Fixed more typos where it was referring to - the argument as 'seq' rather than the real name 'rhs'. - -Tue Jan 20 22:38:10 1998 - - * tests/Param_Test/tests.cpp: - No need to call CORBA::string_free() on opname_, since it is a - String_var - - * tao/sequence_T.cpp: - Fixed typo in object sequences. - -Tue Jan 20 21:53:52 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/TAO_IDL_templates.cpp: - Added missing template instantiations, they go into their own - file because I could not think of a "natural" place to put them. - -Tue Jan 20 20:25:41 1998 Carlos O'Ryan - - * tao/sequence.h: - * tao/sequence.i: - * tao/sequence.cpp: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Another round of changes, this time fixing several bugs reported - by Andy and Irfan. - -Tue Jan 20 20:23:57 1998 Carlos O'Ryan - - * tao/nvlist.h: - * tao/nvlist.i: - Fixed warnings for IRIX and follow the spec, use const methods - but return non-const types! - -Tue Jan 20 17:00:15 1998 Chris Cleeland - - * tao/strategy_T.h: Added this file to contain template strategies - such as TAO_Reactive_Strategy<>. - - * tao/default_server.*: Moved TAO_Reactive_Strategy<> into its own - set of files. Thanks to Bryan Mendel - for suggesting this fix! - - * tao/sequence_T.cpp (operator =): Corrected a problem where T** - was being assigned to T*. - - * tao/orb_core.cpp (init): Moved setting of stuff in orb_params() - to be post-service initialization. It needs to be this way - because the ORB Parameters are now regulated by the resource - factory settings, and that gets created during service - initialization. - - * tao/giop.cpp: Changed the TAO_GIOP_LocateRequestHeader::init to - be more efficient and not generate warnings on Irix. - - * tao/{giop,connect}.cpp: Update code that touches ORB-internal - sequences to use the API of TAO_Unbounded_Sequence<> rather than - the old crufty code. - - * tao/giop.h: Change ORB-internal sequences (such as the - ServiceContextList) to use the new TAO_Unbounded_Sequence<> - template rather than the deprecated CORBA_SEQUENCE<> hack. - -Tue Jan 20 09:18:31 1998 Aniruddha Gokhale - - * TAO/tao/interp.cpp: Used TAO_opaque to set the size of any - generic sequence. - - * TAO_IDL/be/{be_operation,be_state_operation}.cpp: For return - value of sequences, the stub now allocates the top level storage - for the sequence class. - -Tue Jan 20 05:34:16 1998 Aniruddha Gokhale - - * TAO/tao/sequence.cpp: In the assignment operator for Unbounded - string sequences, we had forgotten to update the max and length - fields to that of the assigned sequence in the event of it being - larger than ourselves. We had also forgottent o set our release - flag to true as well as free the old buffer (if already our - release flag was true). I have not checked if there are similar - bugs in other "=" operators or not. But these will be evident as - more tests are added to the Param_Test example. - -Mon Jan 19 23:35:45 1998 - - * tao/sequence_T.h: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Finished suit of parametric classes for sequences, including - bounded sequences of objects and strings. - Fixed some more bugs in the Manager classes for sequences of - objects. - -Mon Jan 19 17:33:45 1998 Chris Cleeland - - * orbsvcs/tests/Simple_Naming/clnt.cpp (init): Changed the marker - name for the naming service to "NameService" and fixed a bunch of - places in init() where "1" was being returned instead of "-1". - - * tests/Cubit/TAO/IDL_Cubit/README: Fixed portion that talks about - the IOR to use the correct default IOR. Thanks to J Russell - Noseworthy for catching - this and submitting fixes! - -Mon Jan 19 15:41:53 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/server.cpp (create_servants): Added a - final return statement to avoid warnings. - (ACE_THR_PRI_FIFO_DEF): This macro is not defined on NT. I - ifdef'ed the priority setting statement out temporarily until we - figure out a way to map NT's thread priority values to pthread's - priority values. - - * tests/Cubit/TAO/MT_Cubit/server.dsp: Updated project file. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp (Cubit_Client): Changed the - data type of to CORBA::UShort. - - * tests/Param_Test/options.{h,cpp} (portnum): Changed it to type - CORBA::UShort. - - * tests/Param_Test/helper.cpp (gen_fixed_struct): Added - parenthesis to avoid warnings. - - * tao/sequence.h (TAO_Unbounded_String_Sequence): Added TAO_Export - to class TAO_Unbounded_String_Sequence. - -Mon Jan 19 11:24:43 1998 Carlos O'Ryan - - * tao/sequence_T.i: - g++ does not like nested types in templates. - - * docs/releasenotes/index.html: - Updated docs on services. - -Sun Jan 18 21:33:21 1998 - - * tao/sequence.h: - * tao/sequence.i: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Added new class for sequences of strings, the approach based on - templates was not worth it. - Also fixed a number of bugs in the unbounded object sequences. - The following items are in the TODO list: - + Bounded sequences of objects - + Bounded sequences of strings. - - * TAO_IDL/be_include/be_helper.h: - * TAO_IDL/be/be_helper.cpp: - Addded small manipulators to indent and unindent an output - stream. - - * TAO_IDL/be/be_visitor_sequence.cpp: - Synch up with new classes for string and objects. - - * tests/Param_Test/tests.cpp: - Fixed some problems with the test for sequences of variable - sized structures. - - * orbsvcs/Event_Service/CORBA_Utils_T.cpp: - Fixed unsigned/signed comparison. - -Sun Jan 18 18:30:16 1998 Nanbor Wang - - * TAO/tests/Cubit/TAO/MT_Cubit/*.{dsp.MAK}: - * TAO/tests/Param_Test/*.{dsp,MAK}: Played with exported - makefiles some more. It's ultimately funny that when a project - file has some customed build commands in it, the exported - makefile sometime won't work correctly. - -Sat Jan 17 23:41:33 1998 Nanbor Wang - - * Added more MSVC makefiles in some test directories. - - * tests/Param_Test/{client,server}.dsp: Correct idl generated - files' dependency. - -Sat Jan 17 22:40:29 1998 Aniruddha Gokhale - - * TAO/tao/orbobj.{h,i}: Added _var and _out for CORBA_ORB - -Sat Jan 17 21:28:05 1998 - - * tao/corba.h: - * tao/corbacom.h: - Moved the definition of TAO_opaque from corbacom.h to corba.h so - it appears after the "sequence.h" file. - - * tao/sequence.h: - * tao/sequence.cpp: - Reorder includes to avoid "inline called before declared so" - warning in g++. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - The OA uses TAO_opaque instead of CORBA::OctetSeq. - -Sat Jan 17 16:07:51 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_args.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be_include/be_visitor_args.h: - * TAO_IDL/be_include/be_visitor_interface.h: - New visitors to generate collocated classes (only used on the - POA branch) and the arguments declaration. - -Fri Jan 16 23:38:38 1998 - - * tao/decode.cpp: - * tao/deep_free.cpp: - * tao/giop.h: - * tao/iiopobj.cpp: - * tao/sequence.h: - * tao/sequence_T.h: - * tao/sequence_T.cpp: - Fixed some memory *deallocation* problems with sequences, they - needed a _deallocate_buffer() method, not to implement the base - class destructor, but to implement deep_free. - -Fri Jan 16 18:01:03 1998 Carlos O'Ryan - - * The Event Service works on Solaris/SunCC again. - - * tao/poa.h: - * tao/poa.cpp: - * tao/objtable.h: - * tao/objtable.cpp: - * tao/connect.cpp: - The object table, and POA use a real TAO_Unbounded_Sequence, - removing some nasty casts. - - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Fixed some memory allocation problems in operator= - - * TAO_IDL/be/be_interface.cpp: - No need to cast the object key when calling POA::bind(), it - takes a TAO_opaque now. - -Thu Jan 15 17:15:29 1998 Carlos O'Ryan - - * TAO/TAO_IDL/be/be_interface.cpp: - * TAO/tao/connect.cpp: - * TAO/tao/corba.h: - * TAO/tao/corbacom.cpp: - * TAO/tao/corbacom.h: - * TAO/tao/decode.cpp: - * TAO/tao/encode.cpp: - * TAO/tao/iiopobj.cpp: - * TAO/tao/iiopobj.i: - * TAO/tao/iioporb.cpp: - * TAO/tao/poa.cpp: - Now TAO_opaque is implemented using the new TAO_*_Sequence - classes, this is needed because the demarshaller expects that - class. There are some other sequences in the ORB core that - need the same change, but currently that is not so urgent. - The object table expects a CORBA_SEQUENCE so some casting is - still done among those classes and the new templates. The POS - branch already solved this, so I will wait until the merge to - fix it. - - * TAO/tao/sequence_T.h: - * TAO/tao/sequence_T.i: - * TAO/tao/sequence_T.cpp: - Now we include sequence_T.i in sequence_T.h, this is needed for - template instantiation. - The ACE_ASSERT for indices was comparing to the value of - length_, it must compare with maximum_, it is possible that the - user creates the sequence with enough space (thus maximum_ is - properly set, but length_ is 0), then inserts some data and - finally sets the length, with the previous asserts that would - fail. - - * TAO/tao/Makefile: - * TAO/TAO_IDL/*/Makefile: - * TAO/orbsvcs/*/Makefile: - * TAO/tests/Cubit/TAO/*/Makefile: - Dependencies regenerated. - -Wed Jan 14 23:10:13 1998 - - * sequence.h: - * sequence.i: - * sequence.cpp: - * sequence_T.h: - * sequence_T.i: - More generated and parametric code reduced, also fixed some - problems detected by MSVC++. - - * tao/TAO.dsp: - * TAO_DL/tao_idl.dsp: - Updated projects to include new files. - -Wed Jan 14 21:03:18 1998 Carlos O'Ryan - - * sequence.h: - * sequence.i: - * sequence.cpp: - Removed unused TAO_Unbounded_String class, it has been - superseeded by - TAO_Unbounded_Managed_String. - - * sequence_T.h: - * sequence_T.i: - Managed sequences only need the const version of operator[], - because they return a Manager by value. - -Wed Jan 14 20:32:47 1998 - - * tao/sequence_T.h: - Fixed typo in base class for ACE_Bounded_Managed_Sequence. - -Wed Jan 14 17:54:31 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor_sequence.h: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_interpretive.cpp: - * TAO_IDL/be/be_sequence.cpp: - The compiler generates code using the new managed sequence - parametric classes. - Also handled typedefs correctly while generating sequence code - specially template arguments and return types for operator[] in - _var and _out classes. - Simplified code generation for sequences of sequences: the - generated typedefs can be used to instantiate the templates. - Finally made some of the visitors more generic, so less - knowledge on the stream files gets distributed. - - * tao/sequence.h: - * tao/sequence.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - * tao/sequence_T.cpp: - Re-implemented the Managed_Sequence classes using the "Manager" - as a parameter instead of a nested type. - Still requires some work because the sequences need privileged - access (friend) to the Managers. - -Tue Jan 13 15:55:32 1998 Chris Cleeland - - * Makefile (INSTALL): Added a rule to build the INSTALL file from - TAO-INSTALL.html. Also added both TAO-INSTALL.html and INSTALL to - the list of files included in the release. TAO-INSTALL.html had - not been included at all. - - * TAO-INSTALL.html: Updated some of the text in the Unix portion - to be explicit regarding the need for GNU Make. - - * INSTALL: Added this file, which is the output of 'lynx -dump - TAO-INSTALL.html'. - -Mon Jan 12 20:04:32 1998 Sumedh Mungee - - * tests/Cubit/TAO/MT_Cubit/server.cpp: Added comments - -Mon Jan 12 17:29:44 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_codegen.cpp: Added initialization for an abstract - visitor factory in the constructor and deletion in the - destructor. - - Added code for the "make_visitor" factory method. - - * TAO_IDL/be/be_factory.cpp: Added destructor and constructor for - abstract factory (*note* it is not pure abstract). - - * TAO_IDL/be/be_produce.cpp: We use the different visitors for the - root to start code generation. At this time, we instantiate the - visitor factory with the concrete factory of visitors which will - generate stubs/skeletons using TAO's interpretive marshaling - engine. - - * TAO_IDL/be_be_sequence.cpp: Commented out a large part of code - to enable visitors for sequences to take over code generation. - - * TAO_IDL/be/be_visitor.cpp: Abstract factory of visitors. - - * TAO_IDL/be/{be_visitor_root, be_visitor_sequence}.cpp: visitors - for Root and Sequences respectively. be_visitor_sequence.cpp is a - new file. - - * TAO_IDL/be_include/{be_codegen, be_visitor, be_visitor_root, - be_visitor_sequence, be_factory, be_sequence}.h: Files affected - due to introduction of visitors and visitor factory. Added a - boolean "unbounded ()" method on sequences. - - * TAO/tao/{decode, encode}.cpp: Uses TAO_Base_Sequence instead of - the hack of using CORBA_SEQUENCE. - - * TAO/tao/{sequence, sequence_T}.{h,i,cpp}: Added large amount of - code for bounded and unbounded sequences as well as the special - cases for sequences of object references and strings, along with - their managed types. - - * TAO/tests/Param_Test: Added tests for object references and - sequence of variable structs. There are some problems with the - generated code. - -Sun Jan 11 11:15:35 1998 David L. Levine - - * tao/sequence.i (TAO_Base_Sequence): reordered initializers to match - declaration order. - - * tao/nvlist.h: changed AddRef and Release declarations to return - CORBA::ULong instead of ULONG, to match their definitions. - -Sat Jan 10 14:08:09 1998 - - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_interface.cpp: - We no longer generate names with CORBA_1 or CORBA_3 macros, but - sometimes we cannot use the typedefs in CORBA:: because some - weird MSVC++ features (bugs?). - -Fri Jan 09 21:37:39 1998 - - * TAO_IDL/be/be_typedef.cpp: - Added missing accept() method for visitors. - - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - Fixed signed/unsigned warning. - - * orbsvcs/Naming_Service/CosNaming_i.cpp: - Yet another fix for the namespace warnings. - - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: - Executables are not generated into the Debug subdirectory. - -Fri Jan 9 20:49:41 1998 Sergio Flores - - * orbsvcs/Naming_Service/CosNaming_i.cpp: Fixed some code dealing - with Warning (Anachronism) messages. - -Fri Jan 9 19:04:10 1998 Nanbor Wang - - * tao/orbobj.cpp: Moved template instantiation codes around to - eliminate compilation errors. - -Fri Jan 9 17:49:55 1998 Carlos O'Ryan - - * tao/Makefile: - * tao/corba.h: - * tao/corbacom.h: - * tao/sequence.cpp: - * tao/sequence.h: - * tao/sequence.i: - * tao/sequence_T.cpp: - * tao/sequence_T.h: - * tao/sequence_T.i: - Added the new TAO_Base_Sequence class and its parametric - children (TAO_Bounded_Sequence and TAO_Unbounded_Sequence). This - classes will be used in the implementation of all the IDL - sequences, thus providing the interpreter with a base class to - manipulate them. - - * orbsvcs/Scheduling_Service/Scheduler.cpp: - Fixed some instantiation problems. - - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_argument.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_field.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_native.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be/be_union_label.cpp: - * TAO_IDL/be/be_visitor.cpp: - * TAO_IDL/be/be_visitor_root.cpp: - * TAO_IDL/be_include/be.h: - * TAO_IDL/be_include/be_argument.h: - * TAO_IDL/be_include/be_array.h: - * TAO_IDL/be_include/be_attribute.h: - * TAO_IDL/be_include/be_constant.h: - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be_include/be_enum.h: - * TAO_IDL/be_include/be_enum_val.h: - * TAO_IDL/be_include/be_exception.h: - * TAO_IDL/be_include/be_expression.h: - * TAO_IDL/be_include/be_field.h: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_interface_fwd.h: - * TAO_IDL/be_include/be_module.h: - * TAO_IDL/be_include/be_native.h: - * TAO_IDL/be_include/be_operation.h: - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be_include/be_root.h: - * TAO_IDL/be_include/be_scope.h: - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be_include/be_string.h: - * TAO_IDL/be_include/be_structure.h: - * TAO_IDL/be_include/be_type.h: - * TAO_IDL/be_include/be_typedef.h: - * TAO_IDL/be_include/be_union.h: - * TAO_IDL/be_include/be_union_branch.h: - * TAO_IDL/be_include/be_union_label.h: - * TAO_IDL/be_include/be_visitor.h: - * TAO_IDL/be_include/be_visitor_root.h: - Added visitors from the poa branch into the main trunk. - -Fri Jan 9 16:17:37 1998 Chris Cleeland - - * tao/orb_core.*: Changed ORB parameters, OA parameters, and the - endpoint address to be switchable btw. global and tss resources. - I also cleaned up the redundant accessor methods by using macros - to define them. Thanks to Keith Nicewarner - for his bug reports which led to this solution. - - * tao/orbobj.cpp (run,perform_work): Added code to set the - Reactor's owner to the current thread prior to calling - handle_events(). Thanks to Keith Nicewarner - for his bug reports which led to this - solution. - -Fri Jan 9 16:00:21 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: Removed a Release statement that - was getting generated in the _narrow method - - * TAO_IDL/be/{be_state_argument, be_state_operation}.cpp: All - typedefed strings are handled as if they are strings. - -Fri Jan 09 12:29:55 1998 - - * tao/default_server.cpp: - Fixed missing initialization for object_lookup_strategy_ - -Fri Jan 9 12:17:02 1998 Carlos O'Ryan - - * orbsvcs/Event_Service/Dispatching_Modules.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Event_Service/GPlot_File.cpp: - * orbsvcs/Event_Service/Memory_Pools.cpp: - * orbsvcs/Event_Service/Task_Manager.cpp: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * orbsvcs/Scheduling_Service/Scheduler_Generic.cpp: - Added missing instantiation for platforms with - ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA (IRIX) - - * orbsvcs/Event_Service/CORBA_Utils_T.h: - Added missing member to ACE_ES_Array_Iterator. - - * orbsvcs/Scheduling_Service/Scheduler.h: - Use ACE_SYNCH_MUTEX instead of ACE_HAS_THREADS and - ACE_Null_Mutex vs ACE_Thread_Mutex. - - * orbsvcs/orbsvcs/Makefile: - The IDL generated files are .PRECIOUS - -Thu Jan 8 21:58:18 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_interface.cpp: be_interface::relative_skel_name () - was producing incorrect results because we were overwriting an - internal string with '\0' - - * TAO/tao/deep_free.cpp: Marshal_Struct::deep_free. Commented out - the call to String::deep_free if a member is a string because that - free should happen automatically as the member is a String_var - type. In addition, String::deep_free was setting the pointer to 0. - - * TAO/tao/marshal.i: In string::deep_free, commente dout the line - that sets the pointer to 0. - - * TAO/tests/Param_Test: Added a string member field to the - var_struct. Also some modifications. Needs more improvement. - -Thu Jan 08 17:48:49 1998 - - * Naming_Service/NS_CosNaming.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: - ACE_NESTED is only needed in the generated code. - - * Scheduling_Service/Scheduling_Service.cpp: - MSVC++ 5.0 seems to have a bug: if the implementation for the - scheduling service is stored into a RtecScheduler::Scheduler_ptr - then the server crashes; this is OK in other platforms and looks - OK since the pointers are in fact compatible. - - * tests/Event_Latency/Event_Latency.cpp: - Removed some warnings by using "CORBA::ULong" instead of "int" - in comparisons against sequence<>::length. - - * Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/orbsvcs_lib.dsp: - Fixed some names and missing options. - -Thu Jan 08 15:55:21 1998 Nanbor Wang - - * tao/objtable.cpp: - * tao/optable.cpp: - * tao/orbobj.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: Added missing template - instantiation codes. - -Thu Jan 8 12:53:28 1998 Chris Cleeland - - * tao/corbacom.i (wstring_dup): Added this, which simply calls - wstring_copy(). Of course, I can't find any mention of EITHER of - these functions in the 2.0 or 2.1 spec, but what good are wstrings - if you can't make copies? Plus, Irfan really wanted it. - -Thu Jan 8 11:36:38 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_interface.h, TAO_IDL/be/be_interface.cpp: - Added a method called "relative_skel_name" to be used for - generating names of inherited interfaces in the keleton class - name. - - * TAO_IDL/be/be_state_argument.cpp: Generation of space was - missing after the "native" type in a parameter list declaration. - - * TAO_IDL/fe/{y.tab.*, lex.yy.cpp}: Due to changes in the idl.ll - and idl.yy files, these had to be regenerated. - -Thu Jan 08 00:14:56 1998 - - * orbsvcs/orbsvcs.dsw: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsw: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Event_Service/Event_Service.dsw: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsw: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsw: - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: - * orbsvcs/tests/Event_Latency/Event_Latency.dsw: - Added preliminar (untested) versions of the project files for - MSVC++ 5.0. - -Wed Jan 7 22:41:41 1998 Carlos O'Ryan - - * tao/corba.h: - Removed varout.h from the list of included files; it is no used - and would abort compilation on IRIX. - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: - * tao/orbobj.cpp: - Added missing template instantiations. - - * tao/varout.h: - Some fixes, but actually the changes were aborted, Andy informed - me that the file wasn't really used. - -Wed Jan 07 21:52:20 1998 - - * TAO_IDL/tao_idl.dsp: - Added the new native_* functions to the project file. - Also use the new tao_idl.cpp file in the top level directory. - -Wed Jan 7 20:20:56 1998 Sergio Flores - - * orbsvcs/Naming_Service/NS_CosNaming.cpp: - * orbsvcs/Naming_Service/CosNaming_i.cpp: Use the correct - _duplicate function. Also changed the code to use exceptions - already supported by TAO. - -Wed Jan 7 18:00:08 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - * TAO_IDL/tao_idl.cpp: - * TAO_IDL/driver/Makefile: - * TAO_IDL/driver/drv_main.cpp: - Moved the main() routine to the topmost directory, this is - needed for platforms like SGI that will not link a group of - shared libraries without any object files. It also seems more - reasonable (IMHO). - -Wed Jan 7 13:55:26 1998 Chris Cleeland - - * tests/Cubit/TAO/IDL_Cubit/clnt.cpp: Changed the assignment of - default port number to fetch the value from the environment - similar to what is done in orb_core.cpp. - - * tao/poa.{h,cpp} (handle_request): Moved functionality to - TAO_Server_Connection_Handler in connect.*. - - * tao/orb_core.cpp: Added the ability to specify the default - server port via an environment variable using the ACE_Env_Value - template. The name of the environment variable is the same as the - preprocessor #define: TAO_DEFAULT_SERVER_PORT. - - * tao/giop.* (TAO_GIOP_LocateRequest): Added a CTOR and init - method similar to TAO_GIOP_Request. - - * tao/connect.{h,cpp} (handle_locate): Added to handle the - LocateRequest CORBA request. Also moved handle_request() method - from the poa to here. - - * tao/Makefile: Added "fakesvcconf" variable check so that if - somebody wants to build with faked svc config entries on a - platform, they can simply do "make fakesvcconf=1". The CHORUS and - VXWORKS sections now override the value of this variable to be 1. - -Wed Jan 7 12:00:14 1998 Aniruddha Gokhale - - * TAO/tao/corbacom.h: Added forward declarations for - CORBA_Object_var and CORBA_Object_out - - * TAO/tao/varout.h: some improvements. However, this file is not - used currently. - - * TAO_IDL/include/ast_native.h: New file that defines the "native" - type defined by the POA spec. - - * TAO_IDL/include/{ast, ast_interface, ast_module, ast_decl, - idl_fwd, idl_global, utl_scope}: - Added the create_native and fe_add_native methods for the newly - added "native" type. Added a enum value for native in - AST_Decl.h. Added an enum value for the current parse state in - idl_global.h. Added forward declarations in idl_fwd.h. Added the - "add_native" method in utl_scope.h - - * TAO_IDL/ast/{ast_generator, ast_interface, ast_module}.cpp: - Added the create_native and fe_add_native methods for the newly - added "native" type. - - * TAO_IDL/ast/ast_native.cpp: New file for native type - - * TAO_IDL/fe/idl.ll: Added a rule to recognize the "native" - keyword. - - * TAO_IDL/fe/idl.yy: Added a grammar rule for the "native" type. - - * TAO_IDL/util/utl_scope.cpp: Added add_native and fe_add_native - methods. - - * TAO_IDL/be_include/be_native.h: New file for the backend for - "native" type. - - * TAO_IDL/be/be_native.cpp: New file for backend implementation of - "native". - - * TAO_IDL/be/be_attribute.cpp: For the "set" method, we were - setting the paramdata structure of the get method. This has been - fixed. - - * TAO_IDL/be/be_generator.cpp: Added create_native method. - - * TAO_IDL/be/be_interface.cpp: - For a special case of a deeply nested inheritance graph and one - specific way of inheritance in which a node that was already - visited, but is not present in the queue, gets inserted at the - tail. This sitation arises when a node multiply inherits from two - or more interfaces in which the first parent is higher up in the - tree than the second parent. In addition, if the second parent - turns out to be a child of the first. Thanks to Carlos O'Ryan for - reporting the error. - - In addition, we use the nested_type_name for the inherited classes - in the class definition. - - * TAO_IDL/be/be_type.cpp: We generate relative paths instead of - the ACE_NESTED_CLASS macro. However, I am going to make this an - IDL option at a later point. - - * TAO_IDL: Did "make depend" on all the Makefiles. - - * TAO/tests/Param_Test: Added tests for testing object - references. This is still incomplete. - -Tue Jan 6 19:48:45 1998 Sumedh Mungee - - * TAO/tests/Cubit/TAO/MT_Cubit/README: Updated README to explain - the latest generalization of the MT_Cubit tests. - -Tue Jan 6 17:25:57 1998 Nanbor Wang - - * MT_Cubit.dsw,client.dsp,server.dsp: Update workspace and - project files to reflect the change in directory structure. - -Mon Jan 05 23:54:13 1998 - - * Added project files for a static orbsvcs library. - -Mon Jan 5 16:37:14 1998 Sumedh Mungee - - * Makefile: Merged client and server rules - - * server.dsp, svc.conf, svr.cpp, client.dsp, cubit.idl, - cubit_i.cpp, cubit_i.h, Task_Client.cpp, Task_Client.h, - Util_Thread.cpp, Util_Thread.h, client.cpp, Makefile: - Merged client/server code into one directory. - -Mon Jan 5 11:50:00 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_attribute.cpp: Code generated for setting the - attribute value (in the server skeleton) had some undefined symbol - errors as well as the create_list parameter was wrong. - - * TAO/tao/object.{h.i}: Added code for Object_var and Object_out - -Mon Jan 05 09:53:51 1998 David L. Levine - - * tao/corbacom.{h,cpp},encode.cpp: replaced defined (VXWORKS) && - defined (ghs) with defined (ACE_HAS_WCHAR_TYPEDEFS_CHAR). - - * tao/Makefile: add -DTAO_PLATFORM_SVC_CONF_FILE_NOTSUP to - CPPFLAGS on VxWorks. - - * tests/Cubit/TAO/MT_Cubit/Util_Thread.{h,cpp} (Util_Thread ctor): - rearranged initializers to match declaration order. - -Sun Jan 04 17:19:34 1998 Douglas C. Schmidt - - * TAO version 0.0.53, released Sun Jan 04 17:19:34 1998. - -Sun Jan 4 13:49:21 1998 Aniruddha Gokhale - - * TAO/tao/nvlist.cpp: NamedValue::Release was calling delete, but - this was not correct since NamedValues are allocated using - calloc. So now we exclusively call the destructor and free the - memory using "free". - - * TAO/tests/Param_Test/{client.cpp, tests.cpp}: Since we do not - pass the OUT_LIST_MEMORY flag to create_request, we cannot own the - return, inout, and out parameters and hence cannot free them. - -Sun Jan 4 13:41:41 1998 Sumedh Mungee - - * tests/Cubit/TAO/IDL_Cubit/svr.cpp: Fixed prev_priority to - previous_priority - -Sun Jan 04 07:47:52 1998 Douglas C. Schmidt - - * TAO version 0.0.52, released Sun Jan 04 07:47:52 1998. - -Sun Jan 04 07:37:31 1998 David L. Levine - - * tao/orb_core.i: Changed ! ACE_LACKS_TEMPLATE_SPECIALIZATION - to ACE_HAS_TEMPLATE_SPECIALIZATION, to be consistent with - ACE config files. - -Sun Jan 4 06:06:28 1998 Aniruddha Gokhale - - * TAO/tao/typecode.*: Some modifications in the destruction - strategy to eliminate fatal errors such as FNH (freeing non-heap - memory) or FMW (freed memory write). Most of these errors were - occuring because we were trying to delete our private typecode - stuff that was not allocated from heap. For example, in case of - sequences of strings the private member tc_content_type used to - point to a statically preallocated "tc_string" typecode. - - Also, preliminary support for checking for typecode equality and - the "member_name" method added. - - Looking at the current private_* methods, it looks like a lot of - stuff can be abstracted into a few methods. So the next attempt - will be to eliminate as many of the private_* methods (that do - repititive work) and replace them with a couple of helper - methods. In addition, we may not need all those tc_*_known_ - boolean variables. Only one may suffice. All this will be done in - the next pass. - - * TAO/tao/{except.h, except.cpp, giop.cpp, object.cpp}: Removed - the TAO_CONST CORBA::String insanity and replaced by const - char*. This is also in accordance with the mapping as well as - eliminates strange compiler warnings about assigning const char* - to char*. - - * TAO_IDL/be/be_sequence.cpp: We now generate #if defined (..) - macros for sequences and their managed types to avoid multiple - declaration/definition errors. - -Sat Jan 3 14:58:21 1998 Sumedh Mungee - - * Task_Client.h, Util_Thread.cpp, Util_Thread.h, client.cpp, - Task_Client.cpp, Makefile: - The Util_Thread class basically computes CPU usage. Integrated - this class with the MT_Cubit test, so that the Util_Thread - performs computation in the background while the test is - running. Also extended the test to use `n' clients talking to `n' - servants. - - -Sat Jan 03 09:04:28 1998 David L. Levine - - * tao/invoke.cpp (ACE_Synchronous_Cancellation_Required): - disabled on VxWorks to avoid runtime warnings with - ACE_NOTSUP_VERBOSE, because thr_setcanceltype isn't - supported there. - - * tao/corba.h: g++/VxWorks doesn't like backslashes at the - end of comment lines, so replaced a commenting of a #define - with #if 0. - -Fri Jan 02 18:42:31 1998 Douglas C. Schmidt - - * TAO version 0.0.51, released Fri Jan 02 18:42:31 1998. - -Fri Jan 2 16:29:20 1998 Nanbor Wang - - * orbsvcs/Event_Service/GPlot_File.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * tao/connect.cpp: Added missing explicit template - instantiations. - -Fri Jan 02 10:24:21 1998 Nanbor Wang - - * tests/Param_Test/driver.cpp (main): Added a trailing return in - main() to prevent MSVC from complaining. - - * tests/Param_Test/helper.cpp (gen_fixed_struct): Changed to use - ACE_OS::rand () * 1.0 instead of drand48 (). - - * tao/connect.cpp: - * orbsvcs/Scheduling_Service/Scheduler.cpp: - * orbsvcs/Event_service/Gplot_File.cpp: - * orbsvcs/Event_Service/Event_Channel.cpp: Added explicit template - instantiation for ACE_Map_Iterator_Base. - -Fri Jan 2 10:39:02 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_type.cpp: Completely reimplemented the way - ACE_NESTED_CLASS macro gets generated. - - * TAO_IDL/be/be_state_sequence.cpp: Fixed an error where the - reference operator "&" was getting generated at the wrong place. - diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c deleted file mode 100644 index d2fe43c3d9c..00000000000 --- a/TAO/ChangeLog-98c +++ /dev/null @@ -1,8169 +0,0 @@ -Tue Sep 22 02:40:33 1998 Douglas C. Schmidt - - * examples/Simple/grid: Printout the process id and thread id - for the client and server. - - * examples/Simple/Makefile (DIRS): Enabled all the "Simple" test - examples in the Makefile so we can see if they compile on other - platforms. - - * TAO_IDL/be/be_interface.cpp (gen_perfect_hash_methods): Added - the -S1 flag, which generates a switch statement if duplicate - keys are encountered. This works around a bug with gperf that - needs to be fixed soon... - -Mon Sep 22 01:08:51 1998 Kirthika Parameswaran - - * changed examples/Simple/echo/Client_i.cpp - - the initialization of the naming service just - needs a single argument now. - - * changed examples/Simple/echo/Server_i.cpp - - return values from TAO_CHECK_ENV have been removed. - - * checked in - examples/Simple/echo/Echo.dsw, - examples/Simple/echo/client.dsp, - examples/Simple/echo/server.dsp. - -Mon Sep 21 22:24:45 1998 Irfan Pyarali - - * orbsvcs/orbsvcs/Naming/Naming_Utils.h (TAO_Naming_Client): Added - timeout to init(). - -Mon Sep 21 21:44:39 1998 David L. Levine - - * tao/CDR.i,tao/Connect.cpp, - performance-tests/Cubit/CORBAplus/MT_Cubit/server/Makefile - performance-tests/Cubit/TAO/MT_Cubit/Makefile - performance-tests/Thruput/COOL/ttcp_i.cpp - performance-tests/Thruput/CORBAplus/ttcp_i.cpp - performance-tests/Thruput/TAO/ttcp_i.cpp: - use ACE_HAS_PURIFY instead of ACE_PURIFY. And, removed - purify settings from Makefiles now that they're in ACE's - wrapper_macros.GNU. - -Mon Sep 21 21:32:31 1998 Douglas C. Schmidt - - * orbsvcs: Removed the extra args after all the - TAO_Naming_Client::init() calls. - -Mon Sep 21 18:20:35 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): Added compile time option - TAO_USE_DOTTED_DECIMAL_ADDRESSES that makes the use of dotted - decimal addresses the default. Also changed the - -ORBdotteddecimaladdresses option to take an argument (0 or 1). - - * tao/ORB.cpp: - * tao/Connect.cpp: - - g++ cannot gork templates typedefs. - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (new_context and list): - Cannot call _this() directly since the POA has the USER_ID - policy. Therefore, added a simple scheme for producing names - based on a counter value. - -Mon Sep 21 18:15:13 1998 Carlos O'Ryan - - * tao/ORB.cpp: - * tao/Connect.cpp: - Fixed template instantiations, thanks to Irfan for his help - tracking this down. - -Mon Sep 21 01:38:46 1998 Irfan Pyarali - - * performance-tests/Cubit/TAO/DII_Cubit/client.cpp (init_naming_service): - * performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp - (init_naming_service): Fixed initialization of Naming_Server. - - * orbsvcs/orbsvcs/IOR_Multicast.h (TAO_IOR_Multicast): Changed - char * to const char *. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.h (TAO_Naming_Server): - Complete revamp of Naming_Server and Naming_Client. New - implementation is better with respect to functionality, memory - management and other indescribable things ;-) - - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp (TAO_NamingContext): - Deprecated init(). Also fixed some other simple stuff. - - * tao/IIOP_Object.cpp (IIOP_Object): Fixed initialization for - this->fwd_profile_lock_ptr_. - - * tao/IIOP_Object.i (reset_handler) and (~IIOP_Object): Added code - to cleanup hint svc_handler. - - * tao/ORB.cpp: Fixed template instantiations. - - * tao/GIOP: - * tao/Invocation.cpp - - Changed close to handle_close. - - * tao/Environment.cpp (print_exception): Check for zero exception - before printing. - - * tao/Connect.cpp (handle_close): Close socket but don't delete - instance. Instance will be deleted when all "hints" are - removed. Instance is deleted in close(). - -Sun Sep 20 23:30:20 1998 Douglas C. Schmidt - - * tao/ORB: It is now possible to give an ACE_Time_Value to the - ORB's resolve_initial_references() method in order to bound the - amount of time spent waiting for a service to be resolved via - multicast. - - * tao/orbconf.h: Renamed TAO_DEFAULT_NAME_SERVER_TIMEOUT to - TAO_DEFAULT_SERVICE_RESOLUTION_TIMEOUT, which is more - descriptive. - -Sun Sep 20 22:57:28 1998 Marina Igorevna Spivak - - * TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.h, - TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - updated servants to keep a reference to their POA (which might be - different from the root POA). - - -Sun Sep 20 22:41:02 1998 Kirthika Parameswaran - - * examples/Simple/echo/Echo_i.cpp: - changes in Echo::echo() made. - -Sun Sep 20 22:39:52 1998 Douglas C. Schmidt - - * ChangeLog, orbsvcs/orbsvcs/AVStreams.idl: *** empty log message *** - -Sun Sep 20 22:32:03 1998 Kirthika Parameswaran - - * ChangeLog, examples/Simple/echo/README: *** empty log message *** - file added. - -Sun Sep 20 21:54:24 1998 Marina Igorevna Spivak - - * orbsvcs/orbsvcs/Naming/CosNaming_i.h, ChangeLog, orbsvcs/orbsvcs/Naming/Naming_Utils.h, orbsvcs/orbsvcs/Naming/Naming_Utils.cpp, orbsvcs/orbsvcs/Naming/Entries.h, orbsvcs/orbsvcs/Naming/Entries.cpp, orbsvcs/orbsvcs/Naming/CosNaming_i.cpp, orbsvcs/orbsvcs/CosNaming.idl: - *** empty log message *** - -Sun Sep 20 20:59:38 1998 Vishal Kachroo - - * ChangeLog: *** empty log message *** - -Sun Sep 20 20:42:29 1998 Marina Igorevna Spivak - - * ChangeLog, tao/corba.h: *** empty log message *** - -Sun Sep 20 20:36:32 1998 Vishal Kachroo - - * examples/Simple/bank/AccountManager_i.cpp, examples/Simple/bank/Bank.idl, examples/Simple/bank/Client_i.cpp, examples/Simple/bank/Client_i.h, examples/Simple/bank/README, examples/Simple/bank/Server_i.cpp, examples/Simple/bank/run_test.pl: - *** empty log message *** - -Sun Sep 20 01:21:07 1998 Darrell E. Brunsch - - * ChangeLog: IIOP_Object changes. - - * tao/IIOP_Object.cpp, tao/IIOP_Object.h, tao/IIOP_Object.i: - Fixed the static call to revert back to the original profile when the - forwarded profile fails. - -1998-09-20 Kirthika Parameswaran - - * examples/Simple/echo/Echo_i.cpp: - changes in method Echo::echo. - -Sun Sep 20 21:20:05 1998 Marina Igorevna Spivak - - * TAO/orbsvcs/orbsvcs/CosNaming.idl: added comments. - - * TAO/orbsvcs/orbsvcs/Naming/*: - renamed all classes NS_* to be TAO_* - - * TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.*: - modified implementation to support C++ exception via use of TAO's - portable exception macros. Updated destroy methods. Created - flag, which can be set in the constructor to identify a - root context. - - * tao/corba.h: added TAO_TRY_THROW macro, which should be used - inside a TAO_TRY block, and caught by the following TAO_CATCH... - -Sun Sep 20 20:20:20 1998 Vishal Kachroo - - * TAO/tests/Simple/bank : Checked in the final versions of the following files : - /Account_i.cpp - /Account_i.h - /AccountManager_i.cpp - /AccountManager_i.h - /Server_i.cpp - /Server_i.h - /Client_i.cpp - /Client_i.h - /server.cpp - /client.cpp - /Bank.idl - -Sun Sep 20 01:19:16 1998 Darrell Brunsch - - * tao/IIOP_Object.{cpp,i,h}: Fixed the static call to - revert back to the original profile when the forwarded - profile fails. - -Sat Sep 19 21:35:28 1998 Darrell Brunsch - - * tests/Simple_Naming/client.dsp: - * tests/Trading/TradingLib.dsp: - More projects that need to be changed because of the - TAO_IDL's move. - -Sat Sep 19 21:27:38 1998 Darrell Brunsch - - * tao/GIOP.cpp: Fixed a signed/unsigned comparison in - writev_n. - -Sat Sep 19 14:26:54 1998 Darrell Brunsch - - * examples/TAO_Examples.dsw: - * performance-tests/TAO_Perf_Tests.dsw: - * tests/TAO_Tests.dsw: - Split up the workspaces to work with the new structure - of examples, performance-tests, and tests. - - * TAO_IDL/tao_idl.dsp: - * tao/tao.dsp: - * examples/POA/Generic_Servant/server.dsp: - Changed behavior of all DLL projects and utilities (like - tao_idl) to put the dll and executables in $ACE_ROOT/bin. - - * examples/POA/DSI/client.dsp: - * examples/POA/Forwarding/client.dsp: - * examples/POA/Forwarding/server.dsp: - * examples/POA/Generic_Servant/client.dsp: - * examples/POA/TIE/client.dsp: - * examples/POA/TIE/server.dsp: - * examples/Quoter/Factory_Finder.dsp: - * examples/Quoter/Generic_Factory.dsp: - * examples/Quoter/client.dsp: - * examples/Quoter/server.dsp: - * examples/Simple/time/client.dsp: - * examples/Simple/time/server.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsp: - * performance-tests/Cubit/TAO/IDL_Cubit/client.dsp: - * performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp: - * performance-tests/Cubit/TAO/IDL_Cubit/server.dsp: - * performance-tests/Cubit/TAO/MT_Cubit/client.dsp: - * performance-tests/Cubit/TAO/MT_Cubit/server.dsp: - * tests/Multiple_Inheritance/client.dsp: - * tests/Multiple_Inheritance/server.dsp: - * tests/NestedUpcall/MT_Client_Test/client.dsp: - * tests/NestedUpcall/MT_Client_Test/server.dsp: - * tests/NestedUpcall/Reactor/client.dsp: - * tests/NestedUpcall/Reactor/server.dsp: - * tests/NestedUpcall/Triangle_Test/initiator.dsp: - * tests/NestedUpcall/Triangle_Test/server_A.dsp: - * tests/NestedUpcall/Triangle_Test/server_B.dsp: - * tests/OctetSeq/OctetSeq.dsp: - * tests/Param_Test/client.dsp: - * tests/Param_Test/server.dsp: - Had to update projects that compile IDL files since tao_idl - was moved to $ACE_ROOT/bin. - - * TAO-INSTALL.html - Updated the instructions for all this. - -Sat Sep 19 14:03:27 1998 Irfan Pyarali - - * examples/POA/Explicit_Activation/alternate.conf: Fixed service - config directive since directory name of the alternate resource - factory was changed. - -Sat Sep 19 13:13:46 1998 David L. Levine - - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp (consumer_push): added - another ACE_CAST_CONST. Thanks to Hans for reporting that - it was needed to compile with Sun C++. - -Fri Sep 18 17:39:03 1998 Jeff Parsons - - * TAO/tests/DynAny_Test/DynUnion_i.{h,cpp}: - * TAO/tests/DynAny_Test/README: - Checked in the finished DynUnion code and updated the - README file. - - Quickly tested what I could of DynUnion functions, but TAO - IDL compiler doesn't yet deal with a union default case or - with more than one label for the same element. There were - also problems with insertion into an Any for unions with a - string or typecode active member, but these are also IDL - problems and are also present with structs. - - Aside from the above limitations, preliminary check on - DynUnion is a thumbs-up. - -Fri Sep 18 16:44:42 1998 Douglas C. Schmidt - - * utils: Added the latest and greatest IOR parser. Thanks to - Priya Narasimhan for this. - -Fri Sep 18 11:27:00 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.{h,cpp}: Moved all the - template code from Endpoint_Strategy.{h,cpp} into these separate - files. - -Fri Sep 18 08:48:20 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs.dsp: Fixed some idl custom build - settings for release version. Thanks to jmorey@tbi.com (John - Morey) for reporting this. - -Fri Sep 18 08:39:13 1998 David L. Levine - - * orbsvcs/tests/EC_Mcast/EC_Mcast.i - ({consumer,supplier}_{ipaddr,name}): added ACE_CAST_CONST to please - Sun C++. Thanks to Hans Rohnert for reporting this. - - * performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp (svc): - (svc): print out errno string if ORB initialization fails. - - * tao/POA.i (operator ==,!=): added ACE_UNUSED_ARG (rhs) with - POA_NO_TIMESTAMP. - - * orbsvcs/tests/EC_Custom_Marshal/Makefile: ran make depend. - Thanks to Hans Rohnert for reporting that the build failed - without it. - -Fri Sep 18 02:15:23 1998 Douglas C. Schmidt - - * TAO version 0.2.12 released. - -Fri Sep 18 00:11:07 1998 Alexander Babu Arulanthu - - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be/be_interface.cpp: - - Used ACE::open_temp_file () instead of ACE_OS::open (). - Commented out be_interface::cleanup_gperf_temp_file (). - -Thu Sep 17 23:47:31 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp: - Added the correct template instantiations for IRIX 6.2 - - * tao/ORB_Core.cpp: - Minor fix in argument parsing. - -Thu Sep 17 22:52:48 1998 Carlos O'Ryan - - * TAO_IDL/be/be_sunsoft.cpp: - For character constants we print the hex escape sequence if the - character is not printable. - -Thu Sep 17 22:22:51 1998 Carlos O'Ryan - - * docs/configurations.html: - Updated the section about homogenous configurations. - -Thu Sep 17 21:48:21 1998 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - Added support for hex scape sequences for char constants. - -Thu Sep 17 21:22:42 1998 Jeff Parsons - - * TAO/tests/DynAny_Test/README.txt - Updated and edited file. - -Thu Sep 17 18:52:14 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp: - * tao/GIOP.cpp: - We now use the iovec structure becauce ACE_IO_Vector has been - deprecated. - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Removed some debug messages. - -Thu Sep 17 14:18:19 1998 Jeff Parsons - - * TAO/tests/DynAny_Test/README.txt - Added this new file. - -Thu Sep 17 09:04:34 1998 Carlos O'Ryan - - * tao/ORB_Core.cpp: - More fixes for HP-UX 10.2, we have to use ACE_OS::thr_equal() - instead of operator==, thanks to Anne Blankert - for pointing out this problems. - -Wed Sep 16 22:36:55 1998 David L. Levine - - * orbsvcs/tests/EC_Mcast/EC_Mcast.i - ({supplier,consumer}_{name,ipaddr}): added static - casts to CORBA::ULong to avoid signed/unsigned comparisons. - - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp (consumer_push): - added static cast to avoid signed/unsigned comparison. - Added ACE_UNUSED_ARG (_env). - - * examples/POA/Explicit_Activation/server.cpp (write_iors_to_file): - changed type of local "result" from int to u_int to - avoid signed/unsigned comparison. - -1998-09-16 Kirthika Parameswaran - - * examples/Simple/echo/Client_i.h (class Client_i): - initialized the use_naimg_service variable to 1. - - * examples/Simple/echo/Client_i.cpp: - changed the names of the variables needed for the naming_service. - -Wed Sep 16 20:39:14 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp: - Fixed template instantiation problem on IRIX, thanks to - Margherita Vittone Wiersma for - reminding me of this. - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.h: - Removed TAO_Register<>::find_property() it wasn't defined or - used in any place and it caused problems on IRIX. - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - Use the new ACE_OS::rand_r() interface. - - * orbsvcs/orbsvcs/Sched/Scheduler.cpp: - * orbsvcs/orbsvcs/Sched/DynSched.cpp: - Changed some debug messages so it would be easier to recognize - the source. - -Wed Sep 16 20:30:53 1998 Vishal Kachroo - - * examples/Simple/bank/run_test.pl: Added this script - with proper sleep time between server and client. - -1998-09-16 Kirthika Parameswaran - - * examples/Simple/echo/run_test.pl: - modified the script so that it works for the test - example with Naming service. - -Wed Sep 16 18:47:55 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp (push): Added a cast to - (const ACE_IO_Vector_Base *) so that aCC can correctly - disambiguate the send() call. Thanks to John Mulhern for - reporting this. - -Wed Sep 16 15:25:01 1998 Nanbor Wang - - * performance-tests/Cubit/TAO/MT_Cubit/Globals.h (SCHED_PRIORITY): - Changed the scheduling scheme in the macro to ACE_SCHED_FIFO on - Win32. Thanks to David's hint. - -Wed Sep 16 12:21:20 1998 Marina Igorevna Spivak - - * TAO/orbsvcs/tests/Simple_Naming/run-test.pl - Updated perl script to run all client tests. - - * TAO/orbsvcs/tests/Simple_Naming/client.cpp - Updated Tree_Test to provide output in case a test is successful. - -Wed Sep 16 09:14:16 1998 Carlos O'Ryan - - * tao/Connect.cpp: - Fixed several portability problems, some ACE_thread_t variables - were initialized to 0 instead of ACE_OS::NULL_thread and == was - used to compare them, instead of ACE_OS::thr_equal. - - * tao/CDR.cpp: - A faster implementation of read_array() for the case were - byteswapping is required. Thanks to Anders W. Tell - for this patch. - -Tue Sep 15 21:37:07 1998 Carlos O'Ryan - - * tao/IIOP_Object.cpp: - Fixed Sun/CC warning, a local variable named was hiding - the class field with the same name in IIOP::Profile::set() - -Tue Sep 15 20:10:37 1998 Douglas C. Schmidt - - * Makefile: Completely revised TAO's directory structure so that - there are now two new top-level directories: examples and - performance-tests. This structure is designed to mimick the - directory structure in ACE. - -1998-09-15 Vishal Kachroo - - * TAO/tests/Simple/bank : Added the client and server files for this test. - /Account_i.cpp - /Account_i.h - /AccountManager_i.cpp - /AccountManager_i.h - /Server_i.cpp - /Server_i.h - /Client_i.cpp - /Client_i.h - /server.cpp - /client.cpp - /Bank.idl - -1998-09-15 Kirthika Parameswaran - - * tests/Simple/echo : Checked in the following files. - /Client_i.cpp - /Client_i.h - /Echo_i.cpp - /Echo_i.h - /Echo.idl - /Makefile - /Server_i.cpp - /Server_i.h - /client.cpp - /run_test.pl - /server.cpp - -Tue Sep 15 18:00:55 1998 Matthew J Braun - - * tests/POA/DSI/README: A few caveats for the users. Nothing major. - - * tests/POA/DSI/run_test.pl: New test script. Runs the client and - server. - - * tests/POA/DSI/server.cpp: Added a parse_args method and changed - to output the IOR to a file. Added an argument to set the - TAO_debug_level - - * tests/POA/DSI/client.cpp: Altered to get the IOR from a file and - added an argument to set the TAO_debug_level - -Tue Sep 15 17:47:07 1998 Matthew J Braun - - * tests/POA/Default_Servant/client.cpp: Added TAO_debug_level - option to the arguments list - -Tue Sep 15 17:07:19 1998 Matthew J Braun - - * tests/POA/Default_Servant/test: Modified the permissions (they - were breaking things). There were _no_ permissions set, so I - added read and write access. - - * tests/POA/Default_Servant/run_test.pl: The wonderful new test - script (huzzah!). - - * tests/POA/Default_Servant/server.cpp: Changed the syntax for - writing the IOR to a file to be more in line with the syntax of - the new test scripts. - - * tests/POA/Default_Servant/client.cpp: Added support for reading - the IOR from a file, a requirement for the new test script. - -Tue Sep 15 16:23:31 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/client.cpp(~Client_i) : - Used delete [] instead of delete for this->low_priority_client_. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (~Task_State): - Used delete [] for this->iors_ in place of the wrong delete. - Thanks to David and Sergio for reporting this. - -Tue Sep 15 15:35:31 1998 Alexander Babu Arulanthu - - * TAO_IDL/util/utl_global.cpp (IDL_GlobalData): Replaced "\"s with - "\\"s. - -Tue Sep 15 14:34:04 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/CDR.i: - Removed the << and >> operators involving the Boolean, Octet, - Char or WChar. The helper classes from_boolean/char/wchar/octet - or to_boolean/char/wchar/octet have to be used. - - * TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp: - The generated code now uses the from_boolean/char/wchar/octet - helpers for the << operators and the corresponding to_* form - for the >> operators - - * tao/Invocation.cpp: - Use the from_boolean and to_boolean helpers. - - * TAO_IDL/be/be_visitor_root/cdr_op.cpp: - Cosmetic changes. - -Tue Sep 15 13:51:36 1998 Marina Igorevna Spivak - - * TAO/orbsvcs/tests/Simple_Naming/client.cpp : - Added return values to all methods. - -Tue Sep 15 13:10:51 1998 Alexander Babu Arulanthu - - * TAO_IDL/util/utl_global.cpp (IDL_GlobalData): Replaced "/"s with - "\"s while specifying absolute path for gperf on WIN32. - -Tue Sep 15 12:54:22 1998 Alexander Babu Arulanthu - - * TAO_IDL/driver/drv_args.cpp (DRV_parse_args): Added a new line - after the warning. - -Tue Sep 15 10:26:45 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_array/{cdr_op_ch, cdr_op_cs}.cpp: - - The CDR <<, >> operators now use the _forany type as - parameter. This was necessary to distinguish between a - degenerate pointer versus an array. We use the same strategy as - used by the Any <<= and >>= operators. - - In addition, for types such as arrays of strings and object - references, the generated implementation for the CDR operators - use the "in" and "inout" types. Special handling is also - necessary for arrays of arrays. - - * TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp: - - Fields that are array types (typedefined or anonymous) must be - passed using their forany types. Special care must be taken to - distinguish between typedefed arrays and anonymous arrays. - - * TAO_IDL/be/be_visitor_root/cdr_op.cpp: - - Reactivated the CDR operator code generation. This was - temporarily commented out. - - * tao/CDR>{h, i}: - - Added << and >> operators that take the Any's helper classes - like from_boolean, to_boolean and others. This is necessary to - distinguish between these types. - - * tao/IIOP_Object.cpp: - - There was a local variable called "host" that was hiding the - data member "host". This is now fixed. - -Tue Sep 15 10:11:03 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_root/cdr_op.cpp: - Disabled generation of << and >> operators for InputCDR and - OutputCDR. - -Tue Sep 15 10:08:05 1998 Nanbor Wang - - * TAO-INSTALL.html (NOTE): Revised adding IDL files into your MSVC - project setion to all IDL generated files should be put into - both client and server projects. - -Tue Sep 15 00:21:39 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): Added new option - -ORBdotteddecimaladdresses. - -Mon Sep 14 23:41:22 1998 Douglas C. Schmidt - - * TAO version 0.2.11 released. - -Mon Sep 14 22:23:15 1998 Douglas C. Schmidt - - * orbsvcs/tests/Simple_Naming/client.cpp (class My_Test_Object): - Added a default value for the My_Test_Object constructor so that - it compiles properly. Thanks to Hans Rohnert for reporting - this. - -Mon Sep 14 20:44:56 1998 Alexander Babu Arulanthu - - * docs/compiler.html: Added a section about Operation Lookup Strategy. - -Mon Sep 14 20:33:46 1998 Alexander Babu Arulanthu - - * TAO_IDL/util/utl_global.cpp : - * TAO_IDL/driver/drv_args.cpp : - Some more robust handling for failure on running - . Also updated the warning message when failure on - running. - - We try to run the $ACE_ROOT/bin/gperf. If $ACE_ROOT doesnt - exist then we try to execute "gperf" hoping that PATH is - set correctly. If -g option is used, we use that path to - execute gperf. If nothing works, we print the following - the note. - "TAO_IDL:Note:GPERF could not be executed. Using Dynamich Hashed OpLookup instead of Perfect Hashing\n" - "To make use of Perfect Hashing\n" - "\t-Build the program at $ACE_ROOT/apps/gperf\n" - "\t-Set the environment variable $ACE_ROOT appropriately or add $ACE_ROOT/bin to the PATH\n" - "\t-Refer to Operation Lookup section in the TAO IDL User Guide ($TAO_ROOT/docs/compiler.html) for more details" - - -Mon Sep 14 17:47:41 1998 Chris Gill - Irfan Pyarali - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - Changed ownership of data to 0 in reused any so the - any does not try to delete the data out from under us - -Mon Sep 14 17:47:41 1998 Chris Gill - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java: - converted nested struct memberwise initializations into - new calls to nested class ctors. - -Mon Sep 14 14:33:41 1998 Darrell Brunsch - - * TAOACE.dsw: Added gperf to the projects here. - -Mon Sep 14 13:50:25 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/client.cpp: Fixed memory problems - reported by purify. - -Mon Sep 14 11:06:00 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/{Globals.cpp,Task_Client.cpp}: - moved ACE_Condition instantiation from - Task_Client.cpp to Globals.cpp so that the server can link it. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - changed type of loop index "j" from unsigned to signed to - avoid signed/unsigned comparison with argc_. - -Sun Sep 13 22:40:57 1998 Douglas C. Schmidt - - * TAO version 0.2.10 released. - -Sun Sep 13 18:16:46 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Globals.{h,cpp}: Converted some old - #ifdefed code in server.cpp and client.cpp into macros - for sched_params and new method for fifo scheduling initialization. - - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: Replaced magic numbers - with symbolic constants. - - * tests/Cubit/TAO/MT_Cubit/Timer.cpp: Fixed the elapsed time - calculation for vxworks. Thanks to sergio for finding this. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - Fixed memory leaks. - -Sun Sep 13 00:44:07 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: Added some template - instantiations. Fixed bug related to the task name when creating - the active object. - - * tests/Cubit/TAO/MT_Cubit/Makefile (CUBIT_SVR_OBJS): Deleted some - unnecessary object files. - -Sat Sep 12 23:34:17 1998 Jeff Parsons - - * tao/Typecode.h: - Fixed the equivalent(0 function I added a few days ago - - seems the .h and .cpp signatures didn't agree. Must be - Alzheimer's. - -Sat Sep 12 21:54:04 1998 Seth Widoff - - * orbsvcs/orbsvcs/Trader/constraint.l: - * orbsvcs/orbsvcs/Trader/Constraint_l.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Database.cpp: - TAO_Literal_Constraint has constructors that need to distinguish - between CORBA::Long and CORBA::Boolean parameters. When CORBA::B_FALSE - and CORBA::B_TRUE in the TAO_Literal_Constraint constructors were - changed to 0 and 1, they were interpreted as longs and not - booleans. Bad things happened. So I added explicit casts. - -Sat Sep 12 20:42:49 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: Fixed the bugs in - latency and jitter calculation. - - * tests/Cubit/TAO/MT_Cubit/Globals.h : Removed the - TIME_IN_MICROSEC macro as all time calculations are made - uniformly in microseconds. - -Sat Sep 12 18:45:03 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp: Guarded the - print_RtiPacket statements with TAO_debug_level > 0 condition. - -Sat Sep 12 18:05:22 1998 Carlos O'Ryan - - * tao/Invocation.cpp: - Added compatibility with ORBs that return a status of - SYSTEM_EXCEPTION, but are actually returning a UserException; - Visibroker does this. - - * tao/encode.cpp: - * tao/decode.cpp: - Fixed decoding and encoding of structures that have object - references as fields. - -Sat Sep 12 16:07:21 1998 Darrell Brunsch - - * TAO-INSTALL.html: Updated the location of the MSVC project - file for IDL Cubit. - -Fri Sep 11 22:28:26 1998 Marina Igorevna Spivak - - * TAO/orbsvcs/tests/Simple_Naming/client.h - * TAO/orbsvcs/tests/Simple_Naming/client.cpp - * TAO/orbsvcs/tests/Simple_Naming/README - Replaced simple test with a set of tests for Naming Service. - -Fri Sep 11 22:08:25 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit: Added my name to the authors in the - header files and also added some comments. - -Fri Sep 11 17:49:31 1998 Jeff Parsons - - * tao/TypeCode.{h,cpp}: - * tao/Any.cpp; - Added an equivalent() function to typecode, similar to equal(), - but disregarding aliases. Changed the extraction operators in - Any to use equivalent() instead of equal(). - -Fri Sep 11 17:29:11 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp} : Replaced the - ACE_timer_t based global_jitter_array with ACE_Unbounded_Set. - -1998-09-11 Pradeep Gore - - * tests/Simple/chat: Added new test program. This simple chat - program was originally a test in ORBacus and should help ORBacus - users to move to TAO and the POA. - -Fri Sep 11 12:14:03 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp : Fixed a memory allocation - error where ior array was allocated before parsing the arguments. - -Thu Sep 10 15:22:16 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_predefined_type.h: - * TAO_IDL/be/be_predefined_type.cpp: - The repository ID in the TypeCode of a structure containing a - CORBA_Object was invalid. - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - Use CORBA::Object::_duplicate() instead of foo->_duplicate() the - first one is more readable. - - * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp: - An object was stored in a T_var and then as the field of a - structure, resulting in a double delete. - -Tue Sep 08 14:05:56 1998 Irfan Pyarali - - * tests/POA/On_Demand_Activation/run_test.pl: Added a perl script - that makes it easier to run this test. - - * tests/POA/On_Demand_Activation/svc.conf: Removed this file. - - * tests/POA/On_Demand_Activation/server.cpp: Added the ability to - write IORs to files. - - * TAO_IDL/be/be_decl.cpp (compute_repoID): Add the "/" only if - there is a prefix. - -Wed Sep 10 13:14:30 1998 Chris Gill - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java: - cleaned up a couple more inconsistencies with the new - RtecEventComm::Event interface. - -Wed Sep 10 11:48:34 1998 Chris Gill - - * orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.cpp - orbsvcs/tests/Simulator/Event_Supplier/DOVE_Supplier.cpp - orbsvcs/tests/Simulator/Event_Supplier/Event_Con.cpp: - cleaned up remaining inconsistencies with new RtecEventComm::Event - interface. - -Thu Sep 10 09:49:39 1998 David L. Levine - - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: set default - $exepref to '.' . $DIR_SEPARATOR, so that the user - need not have '.' in their PATH. - -Wed Sep 09 22:33:34 1998 Nanbor Wang - - * TAO_IDL/util/utl_global.cpp (IDL_GlobalData): Don't warn about - undefined ACE_ROOT on Win32 at all. It is not used and we don't - use gperf on NT for now. - -Wed Sep 9 15:28:24 1998 Darrell Brunsch - - * tao/Connect.cpp: - * tao/GIOP.cpp: - * tao/Invocation.cpp: - Added ORBdebug functionality to several debug messages - -Wed Sep 9 15:00:16 1998 Jeff Parsons - - * TAO/tests/DynAny_Test/server.dsp: - * TAO/tests/DynAny_Test/client.dsp: - * TAO/tests/DynAny_Test/DynAny_Test.dsw: - * TAO/tests/DynAny_Test/driver.cpp: - * TAO/tests/DynAny_Test/DynAny.idl: - * TAO/tests/DynAny_Test/tckind.idl: - * TAO/tests/DynAny_Test/da_tests.idl: - * TAO/tests/DynAny_Test/DynAny_i.{h,cpp}: - * TAO/tests/DynAny_Test/DynArray_i.{h,cpp}: - * TAO/tests/DynAny_Test/DynStruct_i.{h,cpp}: - * TAO/tests/DynAny_Test/DynEnum_i.{h,cpp}: - * TAO/tests/DynAny_Test/DynUnion_i.{h,cpp}: - * TAO/tests/DynAny_Test/DynSequence_i.{h,cpp}: - All the DynAny stuff so far. DynUnion isn't finished yet. - The client project is just a repository for the idl files - and driver.cpp has nothing in it. IDL-generated files need - to be modified before this will compile. These files have - been committed so Carlos can start moving stuff into TAO - while I work on class assignments and modifications to - TypeCode.cpp and Any.cpp in order to finish DynUnion. - -Wed Sep 9 13:03:20 1998 Darrell Brunsch - - * tao/ORB_Core.cpp: Adapted the behavior to use the new - ACE::debug () instead of sending -d to the Service - Configurator. - -Wed Sep 09 07:01:26 1998 David L. Levine - - * tao/IIOP_Interpreter.cpp (calc_union_attr_is_var_sized_member): - wrapped the unreachable return statement with ACE_NOTREACHED. - - * tests/Cubit/TAO/MT_Cubit/Makefile: fixed dependencies, many - were missing a / after $(ACE_ROOT). - - * TAO_IDL/be/be_interface.cpp (cleanup_gperf_temp_file): added - comment on why we don't delete ss on Linux. - - * BUG-REPORT-FORM,Makefile: added BUG-REPORT-FORM. Thanks - to Susan Liebeskind for the form. - -Tue Sep 8 21:47:46 1998 Darrell Brunsch - - * tests/Simple/grid/Grid_i.cpp: Changed some RANGE_ERRORs - to Grid::RANGE_ERROR to compile on MSVC. - - * tests/Simple/grid/run_test.pl: Some changes with ACE - object, and use lib. - - * tests/Simple/grid/Grid.dsw: - * tests/Simple/grid/client.dsp: - * tests/Simple/grid/server.dsp: - MSVC 5/6 project files. - -Tue Sep 8 21:45:32 1998 Nanbor Wang - - * *.{dsp,dsw}: Updated for VC 6. - -Tue Sep 8 20:34:08 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp : Split the run_tests - and svc method into smaller functions. - - * tests/Cubit/TAO/MT_Cubit/Cubit_Task.h: Moved Cubit_Task class - from server.h to this file. - - * tests/Cubit/TAO/MT_Cubit/client.cpp: Replaced magic numbers with - #defines. Fixed vxWorks errors. - - * tests/Cubit/TAO/MT_Cubit/Globals.h : Added #defines for the - constants. - -Tue Sep 8 17:28:27 1998 Carlos O'Ryan - - * tao/decode.cpp: - * tao/Sequence.i: - The correct way to set the length of the Message_Block inside a - decoded octet sequences is to do it on the decoding code, using - the ::replace() method brings all kind of problems a - crashes. Especially if the sequence is encoded, as in the - $TAO_ROOT/orbsvcs/EC_Custom_Marshal example. Thanks to Dave - Meyer for finding out this problem. - -Tue Sep 08 14:05:56 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): Turn on Service_Config debugging only - when debugging != 0. - - * tests/POA/Explicit_Activation/server.cpp (write_iors_to_file): - Added checks to catch potential failures in fprintf. - -Tue Sep 08 16:12:36 1998 David L. Levine - - * TAO_IDL/be/be_interface.cpp (cleanup_gperf_temp_file): - replaced the #ifdef that prevented deletion of ss on linux. - It's not OK without it. - -Tue Sep 8 15:09:14 1998 Carlos O'Ryan - - * tests/Simple/time/run_test.pl: - The waitforfile() function has to be qualified as - ACE::waitforfile(). - -Tue Sep 8 13:55:02 1998 Darrell Brunsch - - * orbsvcs/Naming_Service/Naming_Service.{dsp,dsw}: - Updated for MSVC 6. (dsp was done a slightly different - way than Nanbor did at 10:47. - -Tue Sep 8 12:57:44 1998 Carlos O'Ryan - - * TAO_IDL/be/be_interface.cpp: - The table for perfect hashing of operations did not include the - _non_existent skeleton. - -Tue Sep 08 10:47:49 1998 Nanbor Wang - - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: Performed VC 6 - modification. - -Tue Sep 08 07:30:33 1998 David L. Levine - - * TAO_IDL/be/be_interface.cpp (cleanup_gperf_temp_file): - removed the #ifdef that prevented deletion of ss on linux. - It should be OK to delete it now, thanks to the recent - fix provided by Ravi Nagabhyru . - - * tao/POA.cpp: removed explicit ACE_Guard instantiation - because it is now in ace/Message_Block.cpp. - - * tao/IIOP_Interpreter.cpp (calc_union_attr_is_var_sized_member): - wrapped a couple of break statements with ACE_NOTREACHED. - - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp (TAO_ECG_UDP_Sender::push): - commented out unused local "count". - - * tests/POA/TIE/Makefile: use ACE_HAS_GNUG_PRE_2_8 to suppress builds - with old g++. - -Mon Sep 7 21:10:06 1998 Balachandran Natarajan - - * tests/Simple/grid: Made some changes to Constructors - -Mon Sep 7 20:39:06 1998 Balachandran Natarajan - * tests/Simple/grid: Added the first implementation of the Grid - example. This example is loosely modeled on the Grid demo that - is distributed with Orbix. - -Mon Sep 7 19:45:15 1998 Seth Benjamin Widoff - - * orbsvcs/Trading_Service/README: - * orbsvcs/tests/Trading/README: - Added README files directing the user to the - docs/releasenotes/trader.html Trading Service documentation. - -Mon Sep 7 19:31:28 1998 Nagarajan Surendran - - * tests/Simple/time/run_test.pl: Added require Process. Changed - ACE::waitforfile to waitforfile. Thanks to Bala for reporting - this. - -Mon Sep 7 10:22:19 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/MT_Cubit: Fixed a bunch of warnings. Thanks to - David Levine for reporting this. - -Mon Sep 07 09:37:07 1998 David L. Levine - - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp (TAO_ECG_UDP_Sender::push): - renamed loop index "i" to "b" to avoid shadowing local of the - same name. - -1998-09-07 Torben Worm - - * orbsvcs/tests/Concurrency/CC_client.cpp - Updated to handle missing commandline arguments - -Sun Sep 6 23:06:38 1998 Douglas C. Schmidt - - * TAO_IDL/be/be_decl.cpp, - TAO_IDL/util/utl_global.cpp, - orbsvcs/tests/ImplRepo/ir_implrepo_impl.cpp: - Replaced all uses of ACE_OS::strnew() with ACE::strnew() to - reflect the new changes. - -Sun Sep 6 17:57:16 1998 Darrell Brunsch - - * tests/Simple/time/Client_i.cpp: Changed the use of exceptions in - Client_i::time () to the macros, TAO_TRY, etc. - -Sun Sep 6 14:07:49 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Log/Logger_i.h: Moved to ACE_NEW_THROW macros - that Matt Braun wrote into $ACE_ROOt/ace/OS.h so they can be - accessed by other applications. - -Sun Sep 6 10:34:11 1998 Carlos O'Ryan - - * TAO_IDL/be/be_interface.cpp: - Fixed some memory corruption problems, thanks to Ravi Nagabhyru - for reporting them and providing a - patch. - -Fri Sep 04 20:46:07 1998 Nanbor Wang - - * orbsvcs/orbsvcs/orbsvcs.dsp: Updated project source file list. - -Fri Sep 4 18:46:10 1998 Carlos O'Ryan - - * tests/Thruput/TAO/ttcp_i.cpp: - The use of iostream.h was removed, thanks to John Mulhern - <9107@mn3.lawson.lawson.com> for reporting this. - - * TAO_IDL/Makefile: - * TAO_IDL/fe/idl.yy: - * TAO_IDL/fe/y.tab.cpp: - * TAO_IDL/fe/y.tab.cpp.diff: - Fixed problems for HP-UX 11, thanks to John Mulhern - <9107@mn3.lawson.lawson.com> for reporting this. - -Fri Sep 4 17:10:36 1998 Douglas C. Schmidt - - * utils/catior/catior.cpp (catior): Removed a check for "if (tmp - [0] && !isspace (tmp [0]))" since not all ORBs encode IORs - consistently. Thanks to Jeff Hopper for reporting this. - - * utils/catior/foo/catior.cpp (main): Added a fix for IORs with - embedded '\0' characters. Thanks to Jeff Hopper - for this. - -Fri Sep 4 16:44:19 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/RtecUDPAdmin.idl: - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h: - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp: - * orbsvcs/orbsvcs/Event/EC_UDP_Admin.h: - * orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/tests/EC_Mcast/EC_Mcast.h: - * orbsvcs/tests/EC_Mcast/EC_Mcast.i: - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp: - * orbsvcs/tests/EC_Mcast/sample.cfg: - * orbsvcs/tests/EC_Mcast/README: - New implementation of the EC_Mcast test, the test can now handle - multiple processes, each process joins several multicast groups - and push events to a (potentially different) set of multicast - groups. Since the configuration is more complicated a sample - file is included. - The test is prepared to support several interesting features, - such as: - + Dynamic changes in the multicast group joined. - + Handle OS limitations wrt the maximum number of mcast groups - per socket. - + Support different mappings for the type->mcast group - relation (currently the event type *is* the multicast - group). - The current implementation also offers the initial interfaces to - observe changes in the subcription and/or publication list of a - *remote* event channel, this will enable the automation and - optimization of the local publication list (there is no sense in - sending an event if nobody is currently interested). - - * orbsvcs/orbsvcs/Event_Utilities.cpp: - * orbsvcs/orbsvcs/Event_Utilities.i: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.i: - * orbsvcs/orbsvcs/RtecEventComm.idl: - * orbsvcs/orbsvcs/Event/EC_Gateway.h: - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp: - * orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/tests/Simulator/Event_Supplier/DOVE_Supplier.cpp: - Added a new IDL structure to represent the Event Header, this - will let us factor out the minimum information needed to - transmit QoS and subscription/publication info. - I also normalized some of the field names in the RtecEventComm - structures. - -Fri Sep 4 16:22:17 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Globals.{h,cpp}: Added macro VX_VME_INIT - for the VME initialization code in VXWORKS. Added a - MT_priority class that is used by both the client and server - side for determining the thread priorities. - - * tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: cleaned up the #ifdefs - using the new ACE_DEBUG with %A for ACE_timer_t and other macros. - Thanx to Nanbor for implementing the %A option in ACE_DEBUG. - - * tests/Cubit/TAO/MT_Cubit/client.{h,cpp}: Modularized the code. - Defining a Client_i helper class. Moved all the static functions to - this class. Clenaed up the #ifdefs using the new ACE_DEBUG support. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp}: cleaned the #ifdefs. - - * tests/Cubit/TAO/MT_Cubit/Timer.{h,cpp}: Changed the double to - ACE_timer_t. Defines a class MT_Cubit_Timer which uses pccTimer - for CHORUS and ACE_High_Res_Timer for other platforms. - -Fri Sep 4 14:20:28 1998 Jeff Parsons - - * tao/Any.cpp: - Slight modification to the constructor-from-cdr. Since this - constructor sets any_owns_data, the value_ should be set to - 0, because the destructor deals only with the cdr for anys - that own their data. - -Fri Sep 04 14:10:28 1998 Nanbor Wang - - * tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp (run): Re-enable - cube_rti_data test. - -Fri Sep 4 14:35:58 1998 Aniruddha Gokhale - - * tao/IIOP_Interpreter.{h, cpp}: - - Added a new static method called - "calc_union_attr_is_var_sized_member". - - It turns out that since variable sized data typed become pointer - variables inside the C++ mapping of union members, the "size" - calculation in IIOP_Interpreter.cpp (calc_union_attributes) was - completely wrong. In addition, it did not take into the account - the size of the vtable. This is necessary since our C++ union - mapping is a class that derives from the TAO_Base_Union class. - - This code has been verified to work on the Cubit example for the - RTI test which was previously failing. - -Fri Sep 04 13:25:58 1998 David L. Levine - - * orbsvcs/Scheduling_Service/Makefile, - orbsvcs/Event_Service/Makefile, - orbsvcs/Dump_Schedule/Makefile, - orbsvcs/LifeCycle_Service/Makefile, - orbsvcs/Logging_Service/Makefile, - orbsvcs/tests/Logger/Makefile, - orbsvcs/tests/Event_Latency/Makefile, - orbsvcs/tests/EC_Multiple/Makefile, - orbsvcs/tests/EC_Throughput/Makefile, - orbsvcs/tests/EC_Mcast/Makefile, - orbsvcs/tests/EC_Custom_Marshal/Makefile, - tests/Quoter/Makefile: - removed VBIN definition, now that it's in wrapper_macros.GNU. - -Fri Sep 4 12:54:58 1998 Matthew J Braun - - * orbsvcs/Naming_Service/Naming_Service.cpp: Parse-args was not - recognizing the "-d" argument to set the debug level. Fixed. - -Fri Sep 04 02:37:05 1998 Irfan Pyarali - - * tests/POA/Explicit_Activation/: - tests/POA/Generic_Servant/: - - Added the ability to read and write IORs from files. Also, - added a perl script. - -Fri Sep 04 02:17:43 1998 Douglas C. Schmidt - - * TAO version 0.2.9 released. - -Thu Sep 03 23:06:35 1998 Nanbor Wang - - * tests/Param_Test/driver.{h,cpp}: Stop instantiating Driver class - as a singleton object. Instead, put it in main's local stack. - This was causing trouble because we used the singleton Driver to - initialize the ORB, which in turn, instantiated TAO_ORB_Core by - creating a TSS_Singleton object of it and then initialized it. - What this implies is TAO_ORB_Core would get removed from - Object_Manager's cleanup stack before Driver. Since Driver - contains an ORB_var, it needs to access TAO_ORB_Core when - removing the ORB. The result is ORB destructor ended up using - an newly created but uninitialized ORB_Core to perform the - shutdown. - -Thu Sep 3 22:52:39 1998 Carlos O'Ryan - - * utils/catior/catior.cpp: - Fixed off-by-one problem in the substring extraction. - -Thu Sep 3 20:49:13 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/server.cpp: Removed some warnings about - signed with unsigned comparisons. - -Thu Sep 03 18:57:47 1998 David L. Levine - - * orbsvcs/tests/start_services: removed -ORBobjrefstyle url - from Naming_Service startup. It caused interoperability problems - with VisiBroker java when running Simulator/DOVEBrowser. - - * tests/POA/TIE/Makefile: fixed g++ exclusion to work in - with nested makes, by specifying all, clean, and realclean - targets. Also, enhanced the g++ check so that it allows - egcs (and g++ 2.8.x) to build this module. - -Thu Sep 3 16:22:54 1998 Alexander Babu Arulanthu - - * TAO_IDL/util/utl_global.cpp: - * TAO_IDL/driver/drv_args.cpp: Fixed the case where ACE_ROOT is not - set. OpLookup strategy changes over to Dynamic Hash. - -Thu Sep 3 15:52:33 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp: Fixed g++ warnings. - -Thu Sep 03 14:00:47 1998 Nanbor Wang - - * tests/Cubit/TAO/MT_Cubit/MT_Cubit.dsw: - * tests/Cubit/TAO/MT_Cubit/{client,server}.dsp: Updated project - settings. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: Removed an unused local - variable. - -Thu Sep 3 13:36:36 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Timer.cpp: Fixed syntax errors that - appeared with VxWorks. - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: Fixed some warnings - and cleaned up some code. - -Thu Sep 3 13:22:08 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - Split the huge functions into smaller functions. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - Added MACROS for quantify calls. - - * tests/Cubit/TAO/MT_Cubit/Timer.{h,cpp}: - A class that abstracts the timer over pcctimer for Chorus - platforms and uses ACE_Timer for other platforms. - - * tests/Cubit/TAO/MT_Cubit/Cubit_i.{h,cpp}: - Added an ORB member so that shutdown is done using that - instead of TAO_ORB_Core_instance. - -Thu Sep 03 10:36:07 1998 David L. Levine - - * orbsvcs/tests/EC_Mcast/Makefile: added VBIN definition so that - the Makefile will work again. This was supposed to have been - done in my Tue Aug 25 11:11:54 1998 change, but wasn't. Thanks - to Carlos for finding it. - -Wed Sep 2 22:50:30 1998 Douglas C. Schmidt - - * utils/catior/catior.cpp (catpoop): Fixed an unused variable - warning. Thanks to David Levine for reporting this. - -Wed Sep 02 21:12:40 1998 Douglas C. Schmidt - - * TAO version 0.2.8 released. - -Wed Sep 2 19:24:24 1998 Carlos O'Ryan - - * tao/Sequence.i: - * tao/Sequence.cpp: - Another method made inline (::replace()) to workaround a bug in - Sun/CC on Solaris 2.6. Thanks to Don Davis - for reporting this and providing a fix! - - * tao/POA.cpp: - Added some missing template instantiations. - -Wed Sep 2 18:59:22 1998 Alexander Babu Arulanthu - - * TAO_IDL/driver/drv_args.cpp : Updated the print statements to - include the recent command line options. - -Wed Sep 2 18:16:32 1998 Carlos O'Ryan - - * orbsvcs/Trading_Service/Trading_Service.cpp: - Removed some TAO_HAS_OBJECT_IN_STRUCT_MARSHAL_BUG uses. - -Wed Sep 02 16:59:56 1998 Douglas C. Schmidt - - * TAO version 0.2.7 released. - -Wed Sep 2 14:48:11 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Log/Logger_i.cpp (make_logger): Removed all - vestiges of the exception specification. - - * TAO/utils/catior: Integrated Jeff Hopper's new version of his - "catior" program, which now parses Orbix "POOP" object - references. Made a few minor syntax changes, as well. - - * TAO/orbsvcs/Logger.idl, - TAO/orbsvcs/orbsvcs/Log/Logger_i: Added some minor fixes to get - rid of the special-purpose exception and use system exceptions. - -Wed Sep 2 14:30:46 1998 Darrell Brunsch - - * tests/Param_Test/Param_Test.dsw: - * tests/Param_Test/client.dsp: - * tests/Param_Test/server.dsp: - Updated to use new filenames for TAO_IDL generated files - and also updated to MSVC 6. - - * tests/Param_Test/ub_objref_seq.cpp: - Fixed warnings on MSVC 6 -- an extra semicolon after a - TAO_CATCHANY and a return 0 needed at the end of a method. - -Wed Sep 2 14:28:54 1998 Carlos O'Ryan - - * tao/Sequence.i: - The replace() method that use a Message_Block was setting the - length of the sequence but not of the message block, this was at - the very least confusing. Thanks to Dave Meyer - for reporting this problem and testing the - fix. - -Wed Sep 2 11:38:35 1998 Matthew J Braun - - * orbsvcs/tests/Logger/Logging_Test_i.cpp: Now checks for the - new exceptions thrown by make_logger - - * orbsvcs/orbsvcs/Log/Logger_i.{h,cpp}: - Logger_Factory_i::make_logger now checks the results of binding - entries into the hash_map_manager and throws exceptions if that - or new fails. Added new macros to Logger_i.h for eventual - incorporation into OS.h. - -Wed Sep 2 09:37:42 1998 Carlos O'Ryan - - * tao/Environment.cpp: - The exception() modifier was trying to _raise() the new - exception even if it was 0. Thanks to J. Russell Noseworthy - for reporting this problem. - -Tue Sep 01 21:45:05 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple: added VBIN so that the executable - will be built when only shared libs are built. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: replaced a bunch of - static casts with ACE_U64_TO_U32 so that it will compile on - platforms that don't have native 64-bit ints. - -Tue Sep 1 19:57:46 1998 Darrell Brunsch - - * tests/Simple/Time/Time.dsw: - * tests/Simple/Time/client.dsp: - * tests/Simple/Time/client_static.dsp: - * tests/Simple/Time/server.dsp: - * tests/Simple/Time/server_static.dsp: - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw: - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp: - Updated for MSVC 6. - - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: - Fixed a problem on NT with ACE_ROOT and updated it to use all - the stuff I learned about Perl since the last time I was here. - -Tue Sep 01 19:28:28 1998 Irfan Pyarali - - * tests/POA/Generic_Servant/client.cpp and - tests/POA/TIE/client.cpp (main): Fixed incorrect test condition. - -Tue Sep 1 19:06:44 1998 Alexander Babu Arulanthu - - * TAO_IDL/util/utl_global.cpp : Fixed "strdup + delete" - bug!!! Replaced the strdup's with ACE_OS::strnew. Thanks to Darrell - for pointing this out. - -Tue Sep 1 16:29:30 1998 Carlos O'Ryan - - * tao/Exception.h: - * tao/Exception.cpp: - CORBA_SystemException shoul be a concrete class. Thanks to Tom - Dobridge for pointing this out. - - * tao/default_server.h: - * tao/default_server.cpp: - Added new default creation strategy for Server side connection - handlers. This reduces the number of calls to - ORB_Core_instance() a notch. - - * tao/Makefile: - Updated dependencies. - -Tue Sep 1 09:37:01 1998 Douglas C. Schmidt - - * utils/catior/catior.cpp (main): Fixed a minor printing bug - -- a loop wasn't breaking out when '\n' or EOF was reached... - - * utils/catior: Added several new tests for Jeff Hopper's catior - program, as well as a new version of his program. Thanks Jeff. - -Mon Aug 31 18:08:10 1998 Darrell Brunsch - - * TAO-INSTALL.html: Now mentions the perl scripts (run_test.pl) - that we use, and the versions of perl that we work with. - -Mon Aug 31 13:44:27 1998 Douglas C. Schmidt - - * orbsvcs/Naming_Service/Naming_Service.cpp (main): Renamed the - class TAO_Naming_Service to be more specific... - -Mon Aug 31 15:22:42 1998 Darrell Brunsch - - * TAOACE.dsw: - * TAOACE_Static.dsw: - * tao/TAO.dsw: - * tao/TAO.dsp: - * tao/TAO_Static.dsp: - * TAO_IDL/tao_idl.dsw: - * TAO_IDL/tao_idl.dsp: - * TAO_IDL/tao_idl_static.dsp: - Updated for MSVC 6. - -Mon Aug 31 07:50:23 1998 David L. Levine - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp (dump_schedule): - ooops, the 64-to-32 bit cast had to be const. - -Sun Aug 30 22:17:06 1998 David L. Levine - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp (dump_schedule): - orbsvcs/orbsvcs/Sched/DynSched.cpp: - explicitly convert 64 bit RtecScheduler::Times to - 32 bits with ACE_U64_TO_U32 in ACE_OS::fprintf () call. - -Sun Aug 30 15:11:37 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Param_Test/Makefile: - * tests/NestedUpcall/Reactor/Makefile: - * tests/Simple/time/Makefile: - Updated dependencies. - - * utils/Makefile: - Fixed the directory name for IorParser (again). - -Sun Aug 30 01:57:51 1998 Irfan Pyarali - - * tao/GIOP.cpp (recv_request): Fixed type mismatch. - -Sat Aug 29 23:23:32 1998 Irfan Pyarali - - * tao/GIOP.cpp (close_connection): We realized that use of - CORBA::B_TRUE and CORBA::B_FALSE is not standard. Therefore, we - have deprecated CORBA::B_TRUE and CORBA::B_FALSE. The - replacements are 1 and 0 respectively. This script will help in - the conversion: - - http://www.cs.wustl.edu/~schmidt/ACE_wrappers/bin/corba-boolean.perl - -Sat Aug 29 20:58:08 1998 Carlos O'Ryan - - * tao/Connect.h: - * tao/Connect.i: - * tao/Connect.cpp: - * tao/GIOP.h: - * tao/GIOP.cpp: - * tao/Invocation.h: - * tao/Invocation.cpp: - * tao/Server_Request.h: - * tao/Server_Request.i: - * tao/Server_Request.cpp: - * tao/params.h: - * tao/params.i: - * tao/params.cpp: - Added support for a modified version of IIOP that tries to - minimize overhead in the case of a totally homogeneous system, - for instance: - + It removes the GIOP magic number - + It does not include a protocol version on the header. - + It does not include a byte order on the header. - + It does not include a Service Context or a Principal on the - Requests. - This protocol can be activated by using the -ORBiioplite - option. - Another round trying to minimize calls to the - ORB_Core_instance() function; in general we try to keep the - pointer during the upcalls and downcalls. - - * tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp: - Run the onewau test at the end, otherwise it fills up the pipe - to the server, and the next test gives bad results. - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - Added option to let the user pick the scheduler. Thanks to Dave - Meyer for giving us this patch. - -Sat Aug 29 20:29:53 1998 Nanbor Wang - - * tao/ORB_Core.cpp (TAO_Resource_Factory): Changed - use_lock_freed_reactor_ and its access function to - reactor_lock_. Also declare new enum TAO_NULL_LOCK and - TAO_TOKEN to specify the type of lock to use with - Select_Reactor. - -Sat Aug 29 18:56:06 1998 Irfan Pyarali - - * tests/POA/TIE: Change Foo to A, B, and C. Hopefully g++ can - gork this. - -Sat Aug 29 12:40:56 1998 Carlos O'Ryan - - * tests/POA/TIE/client.cpp: - * tests/POA/TIE/server.cpp: - Added missing template instantiations. - - * tests/POA/Forwarding/MyFooServant.cpp: - A call to is_nil() using a T_var was missing the .in () - invocation. - - * tests/POA/Makefile: - Fixed order. Thanks to David for reporting this problems. - -Sat Aug 29 09:15:02 1998 David L. Levine - - * utils/catior/catior.cpp (iiop_string_to_object): commented out - because it's currently unused. (main): commented out unused local - "orb_ptr". - - * TAO_IDL/be/be_interface.cpp (cleanup_gperf_temp_file): - don't delete ss on linux. It causes a core dump on - RedHat 5.1/Intel. Thanks to James CE Johnson - for reporting this. Also, at James' suggestion, removed - check for ss being 0 before deleting it. - -Fri Aug 28 19:43:36 1998 Nanbor Wang - - * tao/orbconf.h (TAO_DEFAULT_RESOURCE_FACTORY_ARGS): Added - "-ORBreactorlock null" as default resource factory args on - platforms that require "fake_service_entries." Notice that this - options should not be used thread-per-connection concurrency - strategy. - -Fri Aug 28 17:57:34 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h: - Moved some declarations out of the private section of - TAO_Preference_Interpreter because that made some IRIX compilers - really mad. Thanks to Margherita Vittone Wiersma - for reporting this problem. - -Fri Aug 28 13:49:10 1998 Alexander Babu Arulanthu - - * rules.tao.GNU (TAO_IDL): Added suffixes Ser.* and Cli.* in - addition to the S.* and C.* to the set of the IDL generated - files. - -Fri Aug 28 12:25:36 1998 Darrell Brunsch - - * utils/IorParser/ior-handler.[h,cpp]: Fixed some struct/class - discrepancies and returning refs to a local variable error. - - * utils/IorParser/IOR_Parser.[dsp,dsw]: Added these submitted - project files from Lothar Werzinger . - (with a few small modifications to make them ACE/TAO-like) - -Fri Aug 28 11:19:04 1998 David L. Levine - - * tao/Sequence.{i,cpp} (TAO_String_Manager::out): - uninlined to avoid use before definition. It calls - CORBA::string_free (), which is defined in tao/ORB.i. - That file is included after Sequence.i: - - tao/corba.h - [...] - tao/ORB.h - tao/corba.h - tao/Sequence.h - tao/Sequence.i <==== called CORBA::string_free () - tao/Sequence_T.h - tao/Sequence_T.i - tao/Sequence_T.cpp - tao/Sequence_T.h - tao/Object_KeyC.h - tao/Object_KeyC.i - tao/Union.h - tao/ORB.i <==== CORBA::string_free () defined here - - Thanks to Carlos for suggesting the fix. - - * utils/Ior-Parser/ior-handler.cpp (interpretIor): removed - unused local "nullOctet". - - * tests/POA/Forwarding/Servant_Locator.cpp (MyFooServantLocator ctor): - reordered initializers to match declaration order. - -Fri Aug 28 02:45:36 1998 Irfan Pyarali - - * tests/POA/TIE/client.cpp (run_test): Fixed the use of explicit - template functions so that this test can work with the CC - compiler. - -Thu Aug 27 21:48:48 1998 Nanbor Wang - - * docs/Options.html: - * tao/ORB_Core.cpp (parse_args): Renamed the option - -ORBlockfreedreactor of Resource_Factory to -ORBreactorlock. - Valid options become "null"/"token". Default is "token". - -Thu Aug 27 20:09:41 1998 Carlos O'Ryan - - * tao/IIOP_Interpreter.h: - The TAO_attribute_calculator typedef had a default value. This - is illegal. Thanks to John Mulhern for pointing this out. - -Thu Aug 27 20:01:55 1998 Douglas C. Schmidt - - * utils/IOR-parser: Added a number of enhancements from Priya - Narasimhan and cleaned up the code a - bit more to make it more ACE/TAO-like! - -Thu Aug 27 17:52:38 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_operation/tie_si.cpp: - * TAO_IDL/be/be_visitor_interface/tie_si.cpp: - * TAO_IDL/be/be_visitor_operation/arglist.cpp: - The destructor for the _tie classes was trying to release an - object of type POA_var; there is no need to do that. - -Thu Aug 27 17:20:07 1998 Alexander Babu Arulanthu - - * tests/Param_Test/: - Modified the Makefiles and the following source files to - have the IDL-compiler-generated stubs to have "Ser.h" & - "Ser.cpp" suffixes and the skeletons to have "Cli.h" & - "Cli.cpp". Just an example to show the newly added IDL - compiler options for optional file name endings. - - Modified Files: - Makefile any.h bd_long_seq.h bd_short_seq.h bd_str_seq.h - bd_string.h bd_struct_seq.h client.dsp client.h except.h - fixed_array.h fixed_struct.h helper.h nested_struct.h objref.h - objref_struct.h param_test_i.h server.dsp short.h tmplinst.cpp - 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 - ulonglong.h var_array.h var_struct.h - -Thu Aug 27 17:20:00 1998 Douglas C. Schmidt - - * tests/POA/Makefile (DIRS): Added TIE and Forwarding to the list - of directories that are built and tested. - -Thu Aug 27 15:41:44 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: Deleted some unnecessary - ACE_DEBUG statements. Cleaned up code. - -Thu Aug 27 12:38:20 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp: - Fixed some problems in the generated code; the counter was - compared to 0 and not the sequence length. - - * TAO_IDL/be/*/*.cpp: - Removed tons of warnings due to unused variables. - -Thu Aug 27 12:23:37 1998 Carlos O'Ryan - - * Makefile: - * utils/Makefile: - Added a Makefile for the utils directory. - - * utils/catior/catior.cpp: - Fixed some problems with EGCS and the new scope rules in for() - loops. - - * utils/IorParser/ior-handler.h: - * utils/IorParser/ior-handler.cpp: - Removed a hardcoded ASCII code (yikes!) and moved some buffers - to the class, so we don't return local variables (re-yikes!), - using a fixed size buffer looks like a bad idea also; but I'm - not going there yet. - - * tao/Environment.cpp: - Fixed the initialization for the first default environment. - -Thu Aug 27 11:55:29 1998 Douglas C. Schmidt - - * utils/IOR-parser/ior-handler.cpp (hexChar2int): Added a return 0 - to make the compiler happy. Thanks to Lothar Werzinger - for reporting this. - -Thu Aug 27 09:55:31 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp}: changed argc_ from - int to u_int so to avoid g++ compiler warning. - - * tests/Cubit/TAO/MT_Cubit/client.cpp: added - ACE_Singleton instantiation. - - * orbsvcs/tests/Simulator/DOVEBrowser/Makefile: - change all _long to long in Visibroker 3.2 idl2java output. - _long doesn't seem to be defined anywhere, so compilation - of java output with it fails. - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java: - added required fields to EventData constructor call. - -Thu Aug 27 07:59:18 1998 Aniruddha Gokhale - - * TAO_IDL/Makefile: - - Added dependencies and targets to build the C++ keywords lookup - table using GPERF generated perfect hash functions. - - Also, redid "make depend". - - * TAO_IDL/be/be_array.cpp: - TAO_IDL/be/be_interface.cpp: - TAO_IDL/be/be_interface_fwd.cpp: - TAO_IDL/be/be_structure.cpp: - TAO_IDL/be/be_union.cpp: - TAO_IDL/be_visitor_sequence/sequence_ch.cpp: - TAO_IDL/be_visitor_sequence/sequence_ci.cpp: - - The _out class' copy constructor and assignment operator (from a - _out) now use the "const" parameter. The CORBA v2.2 spec has a - flaw in which it does not specify the "const"ness. Without the - "const" keyword, however, we were getting warnings/errors from - the C++ compilers because they were trying to create - temporaries. To circumvent these warnings/errors, we were until - now instantiating variables of the _out class. According to the - spec, however, the _out types are to be used only in the - signatures. The above fix will make everything CORBA - compliant. The spec will also be fixed regarding the - "const" keyword. - - In addition, as per Carlos's instructions, since the private - data member (ptr_) is not a const, we have to use the - "ACE_const_cast" macro to cast away the "const"ness. - - * The first step towards supporting compiled marshaling stubs and - skeletons. At this time, we generate the CDR << and >> operators - for different IDL data types. Unions still need to be - handled. They do not do anything at time. - - *NOTE* CDR operators are defined in the global scope just as the - Any <<=, >>= operators are. At this time, both the Any operators - as well as the CDR operators are defined. As a policy decision, - this is going to be the default case. Users who choose to use the - compiled marshaling approach and do not want the excess code for - the Any operators and the TypeCodes will be required to use a - "disable" flag. This is still TO-DO. - - Affected files and new entries are shown below: - - TAO_IDL/be_include/be_decl.h - TAO_IDL/be/be_decl.cpp: - - Accesors and mutators that check if the CDR <<, >> operators - for a given IDL type have been generated or not. Once - generated, the mutator sets a boolean value to TRUE and the - accessor prevents multiple declaration/definition. - - TAO_IDL/be_include/be_codegen.h - TAO_IDL/be/be_codegen.cpp: - - Added a number of code generation states for the generation of - CDR operators for various types. - - In addition, we define a new enumeration indicating the sub - state during the CDR operator code generation. These sub - states are necessary to prevent explosion of visitors. For - example, consider generation of the CDR operators for - interfaces or structures. The three possible substates are (1) - generating the << (output) operator, (2) generating the >> - (input) operators, and (3) generating code for the elements - defined in that scope. - - TAO_IDL/be_include/be_visitor_context.h: - TAO_IDL/be/be_visitor_context.cpp: - - Maintain the code generation substate required for the CDR - operators and provide accesor/mutator for it. - - TAO_IDL/be_include/be_visitor_array/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_array/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_array.h: - TAO_IDL/be/be_visitor_array.cpp: - - New visitors for generation of CDR operators for - arrays. Included the newly added files to the top level - be_visitor_array.{h,cpp} files. - - TAO_IDL/be_include/be_visitor_enum/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_enum/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_enum.h: - TAO_IDL/be/be_visitor_enum.cpp: - - New visitors for generation of CDR operators for - enums. Included the newly added files to the top level - be_visitor_enum.{h,cpp} files. - - TAO_IDL/be_include/be_visitor_exception/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_exception/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_exception.h: - TAO_IDL/be/be_visitor_exception.cpp: - - New visitors for generation of CDR operators for - exceptions. Included the newly added files to the top level - be_visitor_exception.{h,cpp} files. - - TAO_IDL/be_visitor_exception/exception.cpp: - - In the event that we are generating code for the CDR operators - the types defined in our scope, the appropriate visitors for - the "field" node are grabbed here. - - TAO_IDL/be_include/be_visitor_field/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_field/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_field.h: - TAO_IDL/be/be_visitor_field.cpp: - - New visitors for generation of CDR operators for - fields. Included the newly added files to the top level - be_visitor_field.{h,cpp} files. - - TAO_IDL/be_include/be_visitor_interface/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_interface/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_interface.h: - TAO_IDL/be/be_visitor_interface.cpp: - - New visitors for generation of CDR operators for - Interfaces. Included the newly added files to the top level - be_visitor_interface.{h,cpp} files. - - TAO_IDL/be_visitor_interface/interface.cpp: - - In the event that we are generating code for the CDR operators - for the types defined in our scope, the appropriate visitors - for the nodes in our scope are grabbed here. - - TAO_IDL/be_include/be_visitor_module/cdr_op.h: - TAO_IDL/be/be_visitor_module/cdr_op.cpp: - TAO_IDL/be_include/be_visitor_module.h: - TAO_IDL/be/be_visitor_module.cpp: - - New visitors for generation of CDR operators for - elements of the Module scope. Included the newly added files - to the top level be_visitor_module.{h,cpp} files. - - TAO_IDL/be_visitor_module/module.cpp: - - In the event that we are generating code for the CDR operators - for the types defined in our scope, the appropriate visitors - for the nodes in our scope are grabbed here. - - TAO_IDL/be_include/be_visitor_root/cdr_op.h: - TAO_IDL/be/be_visitor_root/cdr_op.cpp: - TAO_IDL/be_include/be_visitor_root.h: - TAO_IDL/be/be_visitor_root.cpp: - - New visitors for generation of CDR operators for - elements of the Module scope. Included the newly added files - to the top level be_visitor_module.{h,cpp} files. - - TAO_IDL/be_visitor_operation/arglist.cpp: - - Cosmetic changes to get the indentation right. - - TAO_IDL/be_visitor_root/root.cpp: - - In the event that we are generating code for the CDR operators - for the types defined in our scope, the appropriate visitors - for the nodes in our scope are grabbed here. - - In addition, we invoke generation of the CDR operators at the - very end i.e., in the global scope, just after all the Any - operators are generated. - - TAO_IDL/be_include/be_visitor_sequence/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_sequence/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_sequence.h: - TAO_IDL/be/be_visitor_sequence.cpp: - - New visitors for generation of CDR operators for - sequences. Included the newly added files to the top level - be_visitor_sequences.{h,cpp} files. Code generated for the - sequences of primitive types uses TAO's internal, optimized - CDR functions. - - TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp: - - Generate the in (), inout (), out (), and _retn () methods for - the object manager class. These are required in the CDR - operators for sequences of object references. - - TAO_IDL/be_include/be_visitor_structure/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_structure/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_structure.h: - TAO_IDL/be/be_visitor_structure.cpp: - - New visitors for generation of CDR operators for - structures. Included the newly added files to the top level - be_visitor_structure.{h,cpp} files. - - TAO_IDL/be_visitor_structure/structure.cpp: - - In the event that we are generating code for the CDR operators - for the types defined in our scope, the appropriate visitors - for the field nodes in our scope are grabbed here. - - TAO_IDL/be_include/be_visitor_typedef/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_typedef/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_typedef.h: - TAO_IDL/be/be_visitor_typedef.cpp: - - New visitors for generation of CDR operators for - typedefs. Included the newly added files to the top level - be_visitor_typedef.{h,cpp} files. - - TAO_IDL/be_include/be_visitor_union/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_union/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_union.h: - TAO_IDL/be/be_visitor_union.cpp: - - New visitors for generation of CDR operators for - unions. Included the newly added files to the top level - be_visitor_union.{h,cpp} files. - - TAO_IDL/be_include/be_visitor_union_branch/{cdr_op_ch, cdr_op_cs}.h: - TAO_IDL/be/be_visitor_union_branch/{cdr_op_ch, cdr_op_cs}.cpp: - TAO_IDL/be_include/be_visitor_union_branch.h: - TAO_IDL/be/be_visitor_union_branch.cpp: - - New visitors for generation of CDR operators for - union_branchs. Included the newly added files to the top level - be_visitor_union_branch.{h,cpp} files. - - TAO_IDL/be/be_interpretive.cpp: - - Return the appropriate visitors for the newly defined CDR - states. *NOTE* these should really go into a "be_compiled.cpp" - file. However, all the elegant patterns will be added in the - next attempt. - - * TAO_IDL/fe/idl.ll: - TAO_IDL/fe/lex.yy.cpp: - TAO_IDL/fe/fe_lookup.cpp: - TAO_IDL/fe/keywords.dat: - TAO_IDL/be_include/fe_private.h: - - Added code to handle C++ keywords. We now use ACE's GPERF - generated perfect hash functions for keyword lookup. The - fe_private.h file defines an entry for the lookup table used - by the lexical analyzer (scanner). When the scanner comes - across an identifier, it first checks if this identifier is a - C++ keyword or not. If it is, then according to the C++ - mapping, a new identifier with a _cxx_ prepended to the C++ - keyword is generated. The keywords.dat file maintains the - GPERF input file of C++ keywords. The fe_lookup.cpp is the - file generated by GPERF with some additional ACE-specific - include files. This file is not to be regenerated everytime. - - * tao/CDR.{h, i}: - - Added << and >> operators for CORBA::Object, CORBA::TypeCode, - and CORBA::Any. - - * tao/Environment.h: - - Cosmetic changes to adhere to the ACE programming style. - - * tao/Sequence.h: - tao/Sequence.i: - tao/Sequence_T.h: - tao/Sequence_T.cpp: - - Added the in (), inout (), out (), and _retn () methods for the - String and Object manager classes. These are necessary for the - CDR operators for sequences of strings and object references. - - * tao/corba.h: - - Added new macros called TAO_THROW_ENV and TAO_THROW_ENV_RETURN - that allow us to specify our own environment variable rather - than getting tied to the _env variable. - - Moved the #include "singletons.h" earlier. - -Thu Aug 27 01:22:53 1998 Irfan Pyarali - - * tests/POA/Explicit_Activation/alternate.conf: - * tests/POA/Explicit_Activation/Alternate_Resource_Factory/Resource_Factory.cpp: - tests/POA/Explicit_Activation/Alternate_Resource_Factory/Resource_Factory.h: - tests/POA/Explicit_Activation/Alternate_Resource_Factory/Alt_Resource_Factory.h: - - Fixed Nanbor's changes. - -Wed Aug 26 23:57:09 1998 Douglas C. Schmidt - - * TAO version 0.2.6 released. - -Wed Aug 26 22:29:51 1998 Nanbor Wang - - * tests/POA/Explicit_Activation/Alternate_Resource_Factory/*: - Renamed Alternate_Resource_Factory.* to Alt_Resource_Factory.*. - - * tao/ORB_Core.h (TAO_ORB_Core): Don't need to specify default - parameters when declaring friend relationship. - -Wed Aug 26 22:52:14 1998 Carlos O'Ryan - - * tao/ORB_Core.cpp: - The ACE_Select_Reactor_Token_T class and the - Select_Reactor_T over this class are used even when threads are - enabled. - -Wed Aug 26 22:29:51 1998 Nanbor Wang - - * tao/tao.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsp: Changed the destination directories - for release libraries to the default directories. - -Wed Aug 26 22:04:37 1998 David L. Levine - - * TAO_IDL/driver/drv_preproc.cpp (DRV_check_for_include): declare - for loop indices "fi" and "i" before the loops, because they are - used after. - -Wed Aug 26 19:13:49 1998 Carlos O'Ryan - - * tao/Sequence.i: - * tao/Sequence.cpp: - Moved the sequence::get_buffer method to the .i file to - work around a Sun/C++ bug (apparently it only shows up on - Solaris 2.6 for x86). - - * tao/CDR.cpp: - Fixed syntax error when compiling without - TAO_NO_COPY_OCTET_SEQUENCES. - -Wed Aug 26 20:37:33 1998 Sergio Flores - - * tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp: - * tests/Cubit/TAO/MT_Cubit/Globals.cpp: - * tests/Cubit/TAO/MT_Cubit/Globals.h: - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.h: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.h: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/server.h: Added code to test ORB/OS CPU - overhead. Separated code into different source files. The server - does not depend on the Task_State class anymore. - -Wed Aug 26 20:13:27 1998 Douglas C. Schmidt - - * utils/IOR-parser/*: Added this another utility (which was - donated by Priya Narasimhan ) that - takes in a stringified IOR and decodes it, printing out the - information contained in it. - - * tao/ORB.h (CORBA): Added default arguments to the final two - parameters of ORB_init() to simplify common use-cases. - -Wed Aug 26 19:13:33 1998 Darrell Brunsch - - * utils/catior/*: Added this utility (which was donated by Jeff - Hopper ) that takes in a stringified IOR and - decodes it, printing out the information contained in it. - -Wed Aug 26 17:00:38 1998 Nanbor Wang - - * TAO_IDL/driver/drv_preproc.cpp (DRV_check_for_include): Removed - an unused local variable . - -Wed Aug 26 19:13:33 1998 Darrell Brunsch - - * utils/catior/*: Added this little utility (which was donated - by Jeff Hopper ) which will take in a - stringified IOR and decode it, printing out the information - contained in it. - -Wed Aug 26 18:15:37 1998 Nagarajan Surendran - - * orbsvcs/tests/AVStreams/mpeg/: Added a README file and - renamed the README and INSTALL files to README.OGI and - INSTALL.OGI. - -Wed Aug 26 18:07:31 1998 Jeff Parsons - - * tao/orb.h: - Removed static declarations of _tc_struct, _tc_enum, - _tc_sequence, _tc_array, _tc_union. These need to be - generated by the IDL compiler. - - * any.{h,i,cpp}: - At Carlos' recommendation, added a constructor that takes - a typecode pointer and a CDR stream, and a CDR accessor - method. - -Wed Aug 26 17:00:38 1998 Nanbor Wang - - * tao/Environment.cpp (CORBA_Environment): Disable updating the - default environment for now. (Per Carlos' instruction.) - - * tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp (run): Don't run the - cube_rti_data test for now. - - * tao/orbconf.h: Defined TAO_NULL_LOCK_REACTOR as - ACE_Select_Reactor_T< - ACE_Select_Reactor_Token_T>. - - * tao/ORB_Core.{h,cpp}: Added a new option '-ORBlockfreereactor' - for TAO_Resource_Factory. Specify it to 'yes' if you don't want - any locking with the reactor. Use with care, e.g., if you are - running a completely single-threaded ORB or a Reactor-per-thread - model. - -Wed Aug 26 17:05:27 1998 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Updated the IDL compiler portion, - adding a note about the recent options and the fixing of the - relative path name problems. - -Wed Aug 26 16:32:18 1998 Alexander Babu Arulanthu - - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/util/utl_global.cpp: - * TAO_IDL/include/idl_global.h: - * TAO_IDL/driver/drv_preproc.cpp: - Fixed the relative #include path generation. tao_idl now - puts header names derived from the #include'd idl files as they - appear originally in the main idl file. - Thanks to Carlos and Andy for their suggestions and - guidance. - -Wed Aug 26 13:12:57 1998 Matthew J Braun - - * tests/Cubit/TAO/DII_Cubit/client.cpp - * orbsvcs/tests/Concurrency/CC_naming_service.cpp - Added ".in ()" to orb argument for my_name_client.init. - -Wed Aug 26 12:11:23 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp : Fixed the _out warnings - given by the SunCC compiler. Thanks to David for the fix. - -Mon Aug 24 15:07:29 1998 Nanbor Wang - - * tests/Cubit/TAO_IDL_Cubit/{client,server}.dsp: Added RTI_IO.cpp - into the project. - - * tests/Cubit/TAO/IDL_Cubit/RTI_IO.h: Make sure we use "ace/OS.h" - instead of directly. - -Tue Aug 25 14:32:41 1998 Irfan Pyarali - - * tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp (cube_rti_data): - * tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp (cube_rti_data): - - Fixed the use of _out variables. - - * tests/Cubit/TAO/IDL_Cubit/RTI_IO.cpp (print_RtiPacket): Changed - code to use ACE_DEBUG instead of iostreams. - -Tue Aug 25 11:11:54 1998 David L. Levine - - * orbsvcs/tests/Simulator/{Event_Supplier,DOVEMIB}/Makefile: - cleaned up to work on both Solaris and VxWorks. - - * orbsvcs/tests/Simulator/DOVEBrowser/Makefile: added. - - * orbsvcs/tests/Simulator/Makefile,README: added DOVEBrowser - module to top-level Simulator Makefile. - - * orbsvcs/tests/Simulator/DOVEMIB/AnyAnalyser.cpp (analyze): - removed unused variable "size". ghs complained that it - was defined but not used. - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java: - initialize ulonglong with (0) instead of (0, 0) now. - - * orbsvcs/Scheduling_Service/Makefile, - orbsvcs/Event_Service/Makefile, - orbsvcs/Dump_Schedule/Makefile, - orbsvcs/LifeCycle_Service/Makefile, - orbsvcs/Logging_Service/Makefile, - orbsvcs/tests/Logger/Makefile, - orbsvcs/tests/Event_Latency/Makefile, - orbsvcs/tests/EC_Multiple/Makefile, - orbsvcs/tests/EC_Throughput/Makefile, - orbsvcs/tests/EC_Mcast/Makefile, - orbsvcs/tests/EC_Custom_Marshal/Makefile, - tests/Quoter/Makefile: - replaced BUILD macro with VBIN, because that's what - wrapper_macros.GNU uses. Many of the Makefile don't - use rules.bin.GNU (why?); it provides the same VBIN - definition. - -Tue Aug 25 11:03:12 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_union/union_ci.cpp: - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - The default constructor for unions is now generated on the .cpp - file, this removes a warning in some versions of g++. - - * TAO_IDL/be/be_visitor_argument/arglist.cpp: - Fixed an indentation problem in the C.cpp file. - -Mon Aug 24 21:24:55 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (TAO_ORB_Core): Added code to clean up memory - pools. - -Mon Aug 24 20:58:36 1998 Nagarajan Surendran - - * tao/ORB.h: Changed CORBA_Boolean for CHORUS platforms to - unsigned long as it was same as CORBA::ULong before. - Thanks to David for this. - -Mon Aug 24 18:14:58 1998 Matthew J Braun - - * orbsvcs/tests/Concurrency/CC_naming_service.{h,cpp} - * orbsvcs/tests/Concurrency/NS_client.{h,cpp} - Added TAO_Naming_Client code. This test doesn't appear to do - anything, however. - -Mon Aug 24 15:33:25 1998 David L. Levine - - * orbsvcs/tests/Simulator/Event_Supplier/Makefile: - fixed so that it builds the executables. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.h: - removed unnecessary (and bothersome to ghs) Event_Sup - qualifier from get_options () declaration. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Con.cpp: - removed unused constant "SOURCE_ID" and local variable "temp". - -Mon Aug 24 10:53:17 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp (cube_rti_data): Improved - the I/O printing a bit more. - - * tests/Cubit/TAO/IDL_Cubit/RTI_IO.cpp (operator<<): Only - print out the RTI structure of TAO_debug_level is > 0. - - * tests/Cubit/TAO/IDL_Cubit: Renamed a number of files to be more - consistent. Also, integrated the RTI test operation. Thanks to - Dave Meyer for contributing this. - -Mon Aug 24 14:45:55 1998 Matthew J Braun - - * orbsvcs/tests/Property/run_test.pl: Now uses uniqueid for the - -ORBnameserviceport argument - - * orbsvcs/tests/Property/run_test.pl: New file. Script to execute - the test (Naming_Service + server + client). - -Mon Aug 24 10:31:39 1998 Carlos O'Ryan - - * tao/Environment.cpp: - When the ORB is getting destroyed the Environment created with - it should *not* pop itself from the environment stack. - - * The IDL compiler support #pragma prefix - - * TAO_IDL/be_include/be_decl.h: - * TAO_IDL/be/be_decl.cpp: - Added method to compute the prefix based on the pragmas - defined. - This is used to generate the implementation repository ID. - - * TAO_IDL/be/be_visitor_scope.cpp: - Added some code useful for debugging pragmas. - - * TAO_IDL/Makefile: - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/idl.yy: - * TAO_IDL/fe/lex.yy.cpp: - * TAO_IDL/fe/y.tab.cpp: - * TAO_IDL/fe/y.tab.h: - * TAO_IDL/include/idl_global.h: - * TAO_IDL/util/utl_error.cpp: - * TAO_IDL/util/utl_stack.cpp: - The pragma collection was far from perfect. Once a scope was - closed the old pragmas (defined before the scope) were lost. We - need to restore, in the global pragma list, the list of pragmas - as defined before entering the scope. This restore must make a - *copy* otherwise the list of pragmas associated with the scope - are modified. - - * orbsvcs/orbsvcs/AVStreams.idl: - * orbsvcs/orbsvcs/CosConcurrencyControl.idl: - * orbsvcs/orbsvcs/CosLifeCycle.idl: - * orbsvcs/orbsvcs/CosNaming.idl: - * orbsvcs/orbsvcs/CosPropertyService.idl: - * orbsvcs/orbsvcs/CosTimeBase.idl: - * orbsvcs/orbsvcs/CosTrading.idl: - Added the #pragma "omg.org" directive. This should allow - TAO's services to interoperate seamlessly with other standard - CORBA ORBs. - - * orbsvcs/Trading_Service/Makefile: - More dependencies were outdated. - -Sun Aug 23 18:37:26 1998 Douglas C. Schmidt - - * orbsvcs: Changed all occurrences of *_Impl to *_i to be more - consistent. Thanks to David Levine for reporting this. - -Sun Aug 23 16:17:03 1998 Alexander Babu Arulanthu - - * docs/compiler.html: Updated documentation about new options. - -Sun Aug 23 16:11:58 1998 Alexander Babu Arulanthu - - * TAO_IDL/driver/drv_args.cpp: Commented out - warning message on failure to execute GPERF. Added <-H perfect> - and <-H dynamic> options. - -Sun Aug 23 14:17:03 1998 David L. Levine - - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp (connect): return - CORBA::B_FALSE instead of -1 on failure. - -Sun Aug 23 13:40:11 1998 Carlos O'Ryan - - * tests/Quoter/Makefile: - * orbsvcs/LifeCycle_Service/Makefile: - Updated dependencies. - -Sun Aug 23 13:12:53 1998 Alexander Babu Arulanthu - - * docs/compiler.html: Documented the recent options to the IDL - compiler. - -Sat Aug 22 23:11:41 1998 Alexander Babu Arulanthu - - * tests/Cubit/TAO/IDL_Cubit/Makefile: Removed -P option from the - Makefile. Perfect hashing (using GPERF) is the default OpLookup - strategy now. To force dynamic hashing use -H flag of tao_idl. - -Sat Aug 22 22:51:44 1998 Alexander Babu Arulanthu - - Added the following options : - -g : To specify the path for perfect hasing program - (GPERF). Default is $ACE_ROOT/bin/gperf. - -H : To force IDL compiler to use dynamic hashed operation lookup - strategy. Default is Perfect Hashing strategy NOW. - -o : To specify the output directory to IDL compiler as to where - all the IDL-compiler-generated files are to be put. By - default, all the files are put in the current directory - from where is called. - - * TAO_IDL/driver/drv_args.cpp: - * TAO_IDL/be/be_codegen.cpp: - Tries executing GPERF and checks the wait status of the - spawned process. If on GPERF has failed, changing to - Dynamic Hashed Operation Lookup strategy. - - * TAO_IDL/include/idl_global.h: - * TAO_IDL/util/utl_global.cpp: - Added addition parameter to the helper functions that - deals with stubs and skeleton names, to give base name or the full - path, depending on the value of the flag. This helps when we need - full names while storing stubs and skeletons, but only the base - names when using them with "#include"s. - -Sat Aug 22 21:59:54 1998 David L. Levine - - * tests/NestedUpcall/MT_Client_Test/Makefile: - updated dependencies so that the module can build. - -Sat Aug 22 16:01:07 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Makefile: - Changed to reflect the moving of pccTimer.cpp to - /project/doc/mvme. - -Sat Aug 22 14:47:07 1998 Nagarajan Surendran - - * tests/Cubit/COOL/MT_Cubit/cubit_impl.{h,cpp}: - Renamed these files to cubit_i.{h,cpp} to be consistent. - -Sat Aug 22 13:17:06 1998 Douglas C. Schmidt - - * tests/NestedUpcall/{MT_Client_Test,Triangle_Test}, - tests/Quoter: Changed all *_Impl to *_i to be more consistent. - - * tests/Simple/time: Added more comments and cleaned up the test - so that it minimizes the use of dynamic memory allocation. Also, - renamed some files to be more consistent. - -Sat Aug 22 11:01:15 1998 Carlos O'Ryan - - * tests/Simple/Makefile: - Added a Makefile so making everything from the top-level would - work. - -Sat Aug 22 02:30:26 1998 Irfan Pyarali - - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp (read_ior): Use the - buffer's allocator to free the memory. - - * tests/Simple/time/: Made a big pass through the example to clean - things up, remove extra code, and rename things. - -Sat Aug 22 01:41:38 1998 Darrell Brunsch - - * tao/TAO.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsp: - Forgot to fix the output directories. - - * TAO_IDL/tao_idl.dsp: - * tests/Simple/time/server.dsp: - * tests/Simple/time/client.dsp: - More Alpha configurations added. - -Fri Aug 21 23:16:47 1998 Darrell Brunsch - - * tao/TAO.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsp: - Added Alpha configurations. - -Fri Aug 21 20:12:29 1998 Carlos O'Ryan - - * tests/Thruput/TAO/client.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Removed uneeded #include's that made some HP-UX platforms very - angry. Thanks to John Mulhern <9107@mn3.lawson.lawson.com> - for reporting this. - - * orbsvcs/orbsvcs/AV/AVStreams_i.h: - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp: - EGCS (on Solaris) complained about a missing function, but the - function was pure virtual! My attempts to teach it better failed - so I resorted to define the function anyway. - -Fri Aug 21 19:22:27 1998 Carlos O'Ryan - - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_visitor_interface/collocated_sh.cpp: - * TAO_IDL/be/be_visitor_interface/interface_ch.cpp: - * TAO_IDL/be/be_visitor_interface/interface_sh.cpp: - * TAO_IDL/be/be_visitor_interface/tie_sh.cpp: - * TAO_IDL/be/be_visitor_operation/arglist.cpp: - * TAO_IDL/be/be_visitor_operation/operation_sh.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp: - The IDL compiler generates all the method definitions with a - default value for the CORBA::Environment argument. - - * tao/Makefile: - * tao/ORB_Core.h: - * tao/ORB_Core.i: - * tao/ORB_Core.cpp: - * tao/Environment.h: - * tao/Environment.i: - * tao/Environment.cpp: - * tao/Exception.h: - * tao/Exception.i: - * tao/Exception.cpp: - The ORB provides a default for the CORBA_Environment, this - default is stored in TSS storage. Creating a new - CORBA_Environment pushes that default and replaces it with the - new variable; the old default is restores when the variable is - destroyed. - The CORBA_Environment class was moved to its own file to avoid - cyclic dependencies with the ORB_Core. - - * tao/Any.h: - * tao/CDR.h: - * tao/Connect.h: - * tao/CurrentC.h: - * tao/Forwarding_Servant.h: - * tao/GIOP.h: - * tao/IIOP_Interpreter.h: - * tao/IIOP_ORB.h: - * tao/IIOP_Object.h: - * tao/Invocation.h: - * tao/Marshal.h: - * tao/NVList.h: - * tao/ORB.h: - * tao/Object.h: - * tao/POA.h: - * tao/POAC.h: - * tao/POAS.h: - * tao/POA_CORBA.h: - * tao/PolicyC.h: - * tao/Request.h: - * tao/Sequence.h: - * tao/Sequence_T.h: - * tao/Servant_Base.h: - * tao/Server_Request.h: - * tao/Stub.h: - * tao/TAO.h: - * tao/Typecode.h: - * tao/corba.h: - * tao/poa_T.h: - * tao/varout.h: - All methods taking a CORBA_Environment as the last argument - provide a default value for it. - - * The new files in $TAO_ROOT/tao required the regeneration of the - dependencies for all the Makefiles. - -Fri Aug 21 19:06:21 1998 Carlos O'Ryan - - * tests/Param_Test/client.dsp: - Added the new except.cpp and except.h - - * TAO_IDL/driver/drv_preproc.cpp: - Check the error result when running the preprocessor. - -Fri Aug 21 15:00:21 1998 Jeff Parsons - - * tao/Any.i: - Oops, forgot to implement the from_wchar and to_wchar - constructors (see my last ChangeLog entry). - -Fri Aug 21 14:27:27 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/AV/Endpoint_Strategy.{h,cpp}: Added virtual - destructors to all the classes. Thanks to Carlos for reporting - this. Fixed a few template warnings. - -Fri Aug 21 13:47:27 1998 Jeff Parsons - - * tao/Typecode.cpp: - private_equal() was missing tk_ulonglong in the switch - statement. - - * tao/Any.{h,i,cpp): - Added <<= and >>= for long long, unsigned long long - and wchar. - -Fri Aug 21 11:34:42 1998 Nagarajan Surendran - - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp (init_naming_service): - * tests/Cubit/TAO/MT_Cubit/server.cpp (initialize_orb): - Fixed the g++ warning for passing ORB_var to an ORB_ptr - argument. - -Fri Aug 21 00:04:11 1998 Carlos O'Ryan - - * tao/Exception.cpp: - * tao/corba.h: - * tao/orbconf.h: - The ORB is ready to work with exceptions now. I was able to - throw an exception on the server side, catch it, transmit it to - the client, the client is able to build the exception with the - right dynamic type and then raise it again. This, of course, - using SII. We still have to do some more work to support DII. - - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp: - Fixed misuses of TAO_THROW and TAO_TRY macros that did not work - when the code was used with exceptions enabled. - - * tests/Param_Test/except.cpp: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test_i.h: - Removed throw specs from the servant implementation, they just - complicate things. Cleanup the client side. - -Thu Aug 20 19:42:07 1998 Carlos O'Ryan - - * tao/Invocation.cpp: - Fixed two warnings reported by David. They were only a problem - when using user exceptions in DII, something that still requires - some work. - -Thu Aug 20 18:24:04 1998 Matthew J Braun - - * orbsvcs/tests/Property/client.{h,cpp} - * orbsvcs/tests/Property/server.cpp} - Added Naming_Utils code to simplify Naming Service - operations. Note that this code is shakey, and will not always - execute properly. For better results, try executing the client - and server with -ORBnameserviceport set - -Thu Aug 20 18:18:43 1998 Jeff Parsons - - * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp: - Modified IDL compiler to reflect the CORBA spec, which - states that objects need only one version of the <<= - operator. - - * tao/CurrentC.{h,cpp}: - Modified this IDL-generated file to reflect the above - change. - -Thu Aug 20 17:36:52 1998 Matthew J Braun - - * orbsvcs/tests/CosPropertyService/: Removed. For equivalent - code, see orbsvcs/tests/Property - -Thu Aug 20 17:21:32 1998 Jeff Parsons - - * tao/Any.{h,i,cpp}: - Misread the CORBA spec - do not need two versions of <<= - for objects and (presumably) other pointer types, so - fixed earlier commit. - -Thu Aug 20 16:14:54 1998 Matthew J Braun - - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp: Added Naming_Utils code - to simplify Naming Service operations - - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/sendpt.h - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util32.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered2.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/motionvector.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mono.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mb_ordered.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/jrevdct.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybriderr.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybrid.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/gray.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs4.h - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2fast.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2.h - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/decoders.h - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/2x2.cpp - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/24bit.cpp - Added "ace/OS.h" to fix RCSID errors - - * orbsvcs/tests/AVStreams/mpeg/source/server/server.{h,cpp} - * orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.{h,cpp} - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.{h,cpp} - Added Naming_Utils code to simplify Naming Service - operations. Also added "ace/OS.h" include to fix RCSID errors - - -Thu Aug 20 14:32:12 1998 Jeff Parsons - - * tao/Any.{h,i,cpp}: - We now have <<= and >>= (copying and non-copying - versions) for typecodes and CORBA objects. - -Thu Aug 20 14:14:30 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp : - * orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp : - Fixed compile errors and warning shown by g++. - -Thu Aug 20 13:58:53 1998 Carlos O'Ryan - - * tao/orbconf.h: - * tao/corba.h: - Exception support is controlled my the TAO_USE_EXCEPTIONS - macro. - - * tao/POAC.h: - * tao/POAC.cpp: - * tao/Typecode.cpp: - Added the _raise () methods, they use a macro (TAO_RAISE) to - actually throw the exception, the macro expands to nothing if - exceptions are not supported. - - * tao/Exception.h: - * tao/Exception.i: - * tao/Exception.cpp: - Fixed problems with operator= - The modifier for the CORBA_Environment::exception() would raise - the exception if native C++ exceptions are supported. - - * tao/Connect.h: - * tao/Connect.cpp: - Use TAO_TRY macros to catch the exceptions in the upcall, this - is in preparation for the support for native C++ exceptions. - - * TAO_IDL/be/be_visitor_exception/exception_ch.cpp: - * TAO_IDL/be/be_visitor_exception/exception_cs.cpp: - The compiler generates the _raise() method now. - - * tao/debug.h: - * tao/debug.cpp: - Removed some _FAR uses. - -Thu Aug 20 11:57:04 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/CosPropertyService.idl : - Changed the struct PropertyException back to exception - PropertyException as AVStreams.idl has one method raising this - exception. - -Thu Aug 20 11:41:03 1998 David L. Levine - - * orbsvcs/tests/Simulator/Event_Supplier/Makefile: - define TAO_ROOT if not already defined. - - * orbsvcs/tests/Simulator/Event_Supplier/DOVE_Supplier.cpp - (DOVE_Supplier): reordered initializers to match declaration order. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - added explicit template instantiations. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp - (load_schedule_data): don't dereference data->operation_name, - because it already is a char *. - - * orbsvcs/tests/Simulator/DOVEMIB/PrintVisitor.h (~PrintVisitor): - made destructor virtual because PrintVisitor inherits from a - class, NodeVisitor, that has virtual functions. - - * orbsvcs/tests/Simulator/DOVEMIB/Node.cpp: added explicit - template instantiations. - - * orbsvcs/tests/Simulator/{DOVEMIB,Event_Supplier}/Makefile, - orbsvcs/tests/Simulator/README: - added rules to copy .idl files, so that it doesn't have - to be done manually. And, added the .idl and generated - files to the realclean target. - - * orbsvcs/tests/Simulator/Makefile: added. - - * orbsvcs/orbsvcs/RtecEventComm.idl: added an any field, - unless TAO_LACKS_EVENT_CHANNEL_ANY is defined. This - field is needed by orbsvcs/tests/Simulator. It can - be omitted by a make flag: - - * orbsvcs/orbsvcs/Makefile: added support for tao_idl - -DTAO_LACKS_EVENT_CHANNEL_ANY. To enable, either uncomment - the marked line in the Makefile, or add - TAO_LACKS_EVENT_CHANNEL_ANY=1 to your make invocation. - -Thu Aug 20 08:29:13 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_operation/tie_si.cpp: - * TAO_IDL/be/be_operation.cpp: - The _tie classes generated improper code when one of the base - classes was imported from another file and the number of - arguments was non-zero. Thanks to Christa Schwanninger - , for patiently convincing - me that this problem was real. - -Wed Aug 19 21:03:38 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp} : - Fixed memory leaks. Added a destructor to - Task_State. - * tests/Cubit/TAO/MT_Cubit/client.cpp: - Added code to delete dynamically allocated - memory. - * tests/Cubit/TAO/MT_Cubit/server.cpp: - Removed unnecessary argv code and fixed memory leaks. - -Wed Aug 19 19:20:57 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp: - Fixed the declarations for <<= and >>= operators. - -Wed Aug 19 19:18:11 1998 Matthew J Braun - - * tests/Cubit/TAO/MT_Cubit/server.{h,cpp]: Added Naming_Utils code - to simplify Naming Service operations. Also added variable - definitions that was affecting compilation (around line 457). - -Wed Aug 19 17:54:13 1998 Matthew J Braun - - * orbsvcs/tests/AVStreams/benchmark/client.{h,cpp} - * orbsvcs/tests/AVStreams/benchmark/server.{h,cpp} - Added Naming_Utils code to simplify Naming Service - operations. Note: Due to multicast weirdness yet to be resolved - sometimes the Naming Service will not be properly detected. I - found that running the Naming Service and the server in the same - window helped. I added comments to that effect. - -Wed Aug 19 17:37:51 1998 Nagarajan Surendran - - * orbsvcs/orbsvcs/Makefile: Integrated the Audio/video streams - stuff into the mainstream orbsvcs. - -Wed Aug 19 17:32:40 1998 Matthew J Braun - - * orbsvcs/orbsvcs/Naming/Naming_Utils.{h,cpp}: I decided not to - add an init_old_naming () method to the Naming_Server since it - seemed inappropriate. I added a get_context () method which is - basically the same as "->" (they both return the - Naming_Context_ptr) for stylistic reasons. - -Wed Aug 19 16:49:21 1998 Matthew J Braun - - * tests/Cubit/TAO/DII_Cubit/client.cpp: Added Naming_Utils code to - simplify Naming Service operations. - -Wed Aug 19 16:43:36 1998 Jeff Parsons - - * Param_Test/objref.{h,cpp}: - Fixed the DII version of the objref test. They should all - work now. - -Wed Aug 19 16:38:37 1998 Alexander Babu Arulanthu - - * orbsvcs/orbsvcs/CosPropertyService.idl: - Changed to . - -Wed Aug 19 15:25:07 1998 Alexander Babu Arulanthu - - * $ACE_wrappers/TAO/orbsvcs/tests/CosPropertyService/client.cpp: - Fixed the SunCC warnings. - -Wed Aug 19 11:48:57 1998 Alexander Babu Arulanthu - - * tests/Cubit/TAO/IDL_Cubit/README: Removed the note on - IDL_Cubit_Test. It is no more there. run_test.pl does all. - -Wed Aug 19 15:58:23 1998 David L. Levine - - * TAO-INSTALL.html: added instructions for cross-compiled targets. - -Wed Aug 19 15:18:36 1998 Matthew J Braun - - * orbsvcs/orbsvcs/AV/Endpoint_Strategy.{h,cpp}: - Fixed template errors that derailed compilation - - * orbsvcs/tests/Property/client.{h,cpp}: - * tests/Cubit/TAO/MT_Cubit/Task_Client.{h,cpp}: - * tests/Cubit/TAO/MT_client/server.{h,cpp} - * tests/Cubit/TAO/IDL_Cubit/client_i.{h,cpp} - Replaced old code with Naming_Utils code. Added a - TAO_Naming_Client to the *.h, and used it in the *.cpp to - contact the Naming Service for binds and resolves. - -Wed Aug 19 15:06:59 1998 Carlos O'Ryan - - * tao/ORB.h: - * tao/Exception.h: - * tao/Exception.cpp: - * tao/Invocation.cpp: - Added the new CORBA::UnknownUserException, that is used with DII - when a user exception is raised. - User and system exceptions are created using the right dynamic - type. - Minimized code size by using a factory method for the system - exceptions in the TAO_Exceptions class. - - * tao/Typecode.h: - * tao/Typecode.cpp: - Completed the implementation for the Bounds and BadKind - exceptions. - - * tests/Param_Test/Makefile: - * tests/Param_Test/README: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/options.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/run_test.pl: - * tests/Param_Test/tests.h: - Added a new test for exceptions, it verifies that user - exceptions are properly transmitted and demarshaled and that - unexpected exceptions are converted into CORBA::UNKNOWN. - - * tests/Param_Test/any.cpp: - * tests/Param_Test/ub_any_seq.cpp: - The tests (specially the server side) are silent unless the - TAO_debug_level is greater than 0. - -Wed Aug 19 14:24:18 1998 David L. Levine - - * TAO version 0.2.5 released. - -Wed Aug 19 10:48:37 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Custom_Marshal/run_test.pl: - * orbsvcs/tests/EC_Throughput/run_test.pl: - Fixed syntax errors, wrong paths and increased sleep time, seems - to work now. - - * tests/Cubit/TAO/DII_Cubit/run_test.pl: - The script was giving the wrong options to the server. - - * tests/NestedUpcall/Reactor/run_test.pl: - Increased sleep time, simplify command line args. - -Wed Aug 19 09:47:58 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/README: removed instructions for - building client w/o libraries for VxWorks. They were out-of-date, - and too much of libACE/TAO are needed now for it to be done easily. - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (parse_args): check - for success of ACE_OS::fopen () call on the IOR file. Print - an ACE_ERROR message and return -1 if it failed. - - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp (main): replaced {0, 0} - initializers for Times with 0, now that CORBA::ULongLong is an - int type. - - * orbsvcs/tests/Sched_Conf/Makefile: replaced explicit build - rule for Sched_Conf with include of rules.bin.GNU. There's - no net difference on Unix, and now it builds on VxWorks. - -Wed Aug 19 08:07:38 1998 Douglas C. Schmidt - - * tao/debug: Fixed a couple of uses of TAO_Export to make MSVC 6.0 - happy. Thanks to Goran Lowkrantz - for reporting this. - -Tue Aug 18 23:58:05 1998 Irfan Pyarali - - * tao/ORB_Core.h (TAO_Resource_Factory): Changed this class so - that most of the methods are virtual and the private section is - protected. This makes it easier for users to inherit and extend - this class. - -Tue Aug 18 19:14:27 1998 Jeff Parsons - - * tests/Cubit/TAO/DII_Cubit/clinet.cpp: - Had an incorrect "owns-data" boolean arg in all the cubit - test request constructions. - -Tue Aug 18 17:54:16 1998 Irfan Pyarali - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp (init): Fixed incorrect - assignment. - - * tests/Cubit/TAO/IDL_Cubit/server.cpp (main): Added print - statements for initialization errors. - -Tue Aug 18 16:54:24 1998 David L. Levine - - * TAO version 0.2.4 released. - -Tue Aug 18 15:43:16 1998 Jeff Parsons - - * Param_Test/ub_objref_seq.cpp: - * Param_Test/client.dsp: - * Param_Test/README: - DII test now works with objref sequences. Also changed client - file to reflect that longlong.cpp was changed to ulonglong.cpp. - Updated README file. - -Tue Aug 18 15:23:21 1998 Steve Huston - - * tao/Any.cpp: Use operator delete directly, rather than delete, to - free un-typed memory. Thanks to John Mulhern for this fix. - -Tue Aug 18 09:39:50 1998 David L. Levine - - * tests/Param_Test/Makefile,driver.cpp,longlong.{h,cpp}, - options.{h,cpp},param_test.idl,param_test_i.{h,cpp}, - run_test.pl,tests.h,ulonglong.{h,cpp}: replaced - long long with unsigned long long, so that the test - builds and runs on platforms that don't have a native - 64-bit int type. - -Mon Aug 17 22:01:05 1998 Carlos O'Ryan - - * TAO_IDL/fe/lex.yy.cpp: - Removed unwanted #includes that produced warnings in some - platforms; thanks to David Levine for catching this one. - - * TAO_IDL/Makefile: - Yet another RCS id that was not properly protected, I also need - to thank David for this report. - -Mon Aug 17 17:16:29 1998 Douglas C. Schmidt - - * TAO_IDL: Renamed README to README.sun and INSTALL to INSTALL.sun - to reflect the fact that these documents are now very much out - of date. Thanks to Marherita Vittone - for reporting this. - -Mon Aug 17 15:10:25 1998 Carlos O'Ryan - - * TAO_IDL/be_include/be_visitor_context.h: - * TAO_IDL/be/be_visitor_context.cpp: - * TAO_IDL/be_include/be_visitor_interface/tie_si.h: - * TAO_IDL/be_include/be_visitor_interface/tie_sh.h: - * TAO_IDL/be/be_visitor_operation/tie_si.cpp: - * TAO_IDL/be/be_visitor_interface/tie_si.cpp: - * TAO_IDL/be/be_visitor_interface/tie_sh.cpp: - The _tie classes did not override the methods of the base - classes, thus, some _tie classes were abstract and thus - useless. - -Mon Aug 17 15:27:22 1998 Carlos O'Ryan - - * docs/releasenotes/ec.html: - Updated the "Known Issues" section. - - * docs/releasenotes/trader.html: - The problems in TAO that affected the trading server were - solved. - -Mon Aug 17 15:16:13 1998 Nagarajan Surendran - - * docs/releasenotes/index.html: Removed some outdated notes - on A/V streaming service. - -Mon Aug 17 11:07:09 1998 Carlos O'Ryan - - * orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff: - * orbsvcs/tests/Concurrency/CC_command.tab.cpp: - Removed unused label. Thanks to David for pointing this out. - -Mon Aug 17 10:45:09 1998 David L. Levine - - * orbsvcs/tests/Trading/Makefile: removed shared_libs_only=1, - because that's taken care of in the platform_macros.GNU file. - This module now builds on VxWorks. - - * tests/Cubit/TAO/IDL_Cubit/README: removed instructions for - building client w/o libraries for VxWorks. They were out-of-date, - and too much of libACE is needed now for it to be done easily. - - * orbsvcs/orbsvcs/Log/Logger_i.{h,cpp}: use ACE_Cstring instead - of const char * for the hash_map_ EXT_ID. - -Sun Aug 16 23:49:20 1998 Nanbor Wang - - * orbsvcs/tests/EC_Throughput/ECT_Consumer.dsp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.dsp: - Updated project files. - - * orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.dsw: - * orbsvcs/tests/EC_Custom_Marshal/ECCM_Supplier.dsp: - * orbsvcs/tests/EC_Custom_Marshal/ECCM_Consumer.dsp: - New projects/workspace added. - -Sun Aug 16 17:15:39 1998 Carlos O'Ryan - - * tao/Connect.h: - * tao/Connect.cpp: - Fixed incosistent use of response_required, sometimes it was an - int and other it was a CORBA_Boolean. Thanks to Naga for - reporting this problem. - -Sun Aug 16 11:52:47 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Trader/Offer_Database.h: - * orbsvcs/orbsvcs/Trader/Offer_Database.cpp: - Fixed unproper use of private typedefs and of ACE_TYPENAME - macro, thanks to John Mulhern <9107@mn3.lawson.lawson.com> for - this patches. - -Sun Aug 16 09:11:33 1998 David L. Levine - - * orbsvcs/orbsvcs/Trader/Trader.cpp: added #include - "Trader_Interfaces.h", for use by instantiation pragmas. - - * orbsvcs/orbsvcs/Trader/Trader.cpp: only instantiate - ACE_Unbounded_Queue, etc., if ACE_HAS_MOSTLY_UNICODE_APIS. - Otherwise, they're in ace/ARGV.cpp. - -Sat Aug 15 12:00:15 1998 Carlos O'Ryan - - * tao/varout.h: - * tao/varout.i: - Fixed some cast-away-const problems in the new - TAO_Object_Field_T class. - - * orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp: - Typecodes use a TAO_Unbounded_Pseudo_Sequence, not a - TAO_Unbounded_Object_Sequence. - -Sat Aug 15 08:19:26 1998 David L. Levine - - * tao/deep_free.cpp (deep_free), - tao/decode.cpp (decode), - tao/encode.cpp (encode): - replaced ACE_static_cast with an ACE_reinterpret_cast/ACE_const_cast. - - * orbsvcs/tests/Trading/Offer_Exporter.cpp (export_offers_to_all): - added a TAO_CHECK_ENV for platforms without - TAO_HAS_OBJECT_IN_STRUCT_MARSHAL_BUG. This avoids a warning - about TAO_TRY_LABEL being declared but not referenced. - - * orbsvcs/tests/Trading/Offer_Exporter.cpp (export_offers_to_all): - dereference link_info->target_reg with .in (). - - * orbsvcs/tests/Trading/Offer_Importer.cpp (perform_directed_queries): - dereference link_info->target with .in (). - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp,Trader_Utils.cpp: - added a few .in () dereferences. - - * orbsvcs/tests/Trading/Makefile: added LIBS, for use when - building libTTest. - - * orbsvcs/orbsvcs/Event_Utilities.h,Scheduler_Utilities.h, - Time_Utilities.h,Event/EC_Gateway.h,Event/EC_Gateway_UDP.h, - Trader/Trader.h: - added #include "orbsvcs/orbsvcs_export.h". Thanks to - Joseph E. LaPrade for - reporting this. - -Fri Aug 14 22:09:41 1998 David L. Levine - - * orbsvcs/tests/Logger/Logging_Test_i.cpp (init_naming_service): - dereferenced orb_ with .in () to please g++. - - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp (run): - dereferenced local_ec with .in () to please g++. - (shutdown): added ACE_UNUSED_ARG (_env). - -Fri Aug 14 20:13:28 1998 Carlos O'Ryan - - * tao/CDR.h: - * tao/GIOP.h: - * tao/GIOP.cpp: - * tao/corba.h: - * tao/ORB.cpp: - * tao/Principal.h: - * tao/Principal.cpp: - The operator<< and operator>> for marshaling and demarhaling - return a CORBA_Boolean, this makes the detection of errors - faster that returning a TAO_OutputCDR& or TAO_InputCDR&. - - * orbsvcs/tests/EC_Custom_Marshal/ECM_Data.h: - * orbsvcs/tests/EC_Custom_Marshal/ECM_Data.cpp: - The custom marshalling methods follow the same protocol as the - (proposed) compiled marshalling ones. - -Fri Aug 14 14:44:49 1998 Carlos O'Ryan - - * tao/IIOP_Interpreter.cpp: - * tao/deep_free.cpp: - * tao/encode.cpp: - * tao/decode.cpp: - Completed support for object references inside structures. - - * tao/Object.h: - * tao/Object.i: - * tao/Object.cpp: - * tao/varout.h: - * tao/varout.i: - * tao/varout.cpp: - Added a new class to represent an object reference when - contained inside a structure, it is similar to a T_var class - - * tao/Sequence.h: - * tao/Sequence.i: - * tao/Sequence.cpp: - * tao/Sequence_T.h: - * tao/Sequence_T.i: - * tao/Sequence_T.cpp: - Sequences contain new methods (_upcast() and _downcast()) that - help in the correct marshaling and demarshaling of sequences of - object references. - New parametric classes were added to support sequences of - pseudo-objects. - - - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: - Added support for the new TAO_Unbounded_Pseudo_Sequence used - for pseudo-objects. - - * TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp: - Generate the new _upcast() and _downcast() methods for sequences - of objects. - - * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp: - Generate the template instantiation for the - TAO_Object_Field_T class. - - * TAO_IDL/be/be_visitor_field/field_ch.cpp: - Object references in structures are defined using a - TAO_Object_Field_T object. - - * orbsvcs/orbsvcs/CosTrading.idl: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp: - The ORB supports object rereferences inside structures. - - * orbsvcs/orbsvcs/CosPropertyService.idl: - Cosmetic changes. - - * tests/Param_Test/Makefile: - * tests/Param_Test/README: - * tests/Param_Test/run_test.pl: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/objref_struct.cpp: - * tests/Param_Test/objref_struct.h: - * tests/Param_Test/options.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/tests.h: - * tests/Param_Test/ub_objref_seq.cpp: - Cleanup the object reference sequence test and added a test for - sequences inside structures. - -Fri Aug 14 09:46:44 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/DynSched.cpp (calculate_utilization_params): - removed ACE_UINT64_DBLCAST_ADAPTER from effective_period (), - because it's 32 bits, not 64. - - * orbsvcs/orbsvcs/Sched/SchedEntry.i (effective_execution_time): - replaced ACE_UINT32 static cast with ACE_U64_TO_U32, so that - it works with ACE_LACKS_LONGLONG_T. - - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp: - replaced long static casts with ACE_U64_TO_U32, so that - they work with ACE_LACKS_LONGLONG_T. - - * tao/POA.cpp: reordered template instantiations so that they - build with g++ 2.7.2.3, and removed some unneeded ones so that links - succeed with ghs/VxWorks. - -Fri Aug 14 09:15:51 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/CosTimeBase.idl: - Removed outdated comment, thanks to David Levine for pointing - this out. - -Thu Aug 13 17:45:00 1998 Chris Gill - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: changed dump_schedule - so that if one of the arrays is length 0, 0 is output for its size - (instead of a formula with a built-in access violation ;-) - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp - orbsvcs/orbsvcs/Sched/DynSched.cpp - orbsvcs/orbsvcs/Sched/SchedEntry.{cpp, h, i} - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{cpp, h}: fixes related to - the new 64 bit times for NT. - - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp: expanded the test to - 16 operations, ranging across 4 rates, and 2 criticalities - (half are still consumers, the other half suppliers) - - -Thu Aug 13 15:20:06 1998 David L. Levine - - * tao/ORB_Core.i (hash_i): suppress the specialization with - non-egcs g++. Older versions of g++, such as 2.7.2.3, - can't compile it. - - * orbsvcs/orbsvcs/Sched/Scheduler.cpp (dispatch_configuration): - made int return type explicit. - - * orbsvcs/orbsvcs/Sched/DynSched.cpp: added - ACE_Unbounded_Set template instatiations. - - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp (supplier_task), - orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp (supplier_task): - cast event_count_ to CORBA::Long instead of CORBA::ULong, - to avoid signed/unsigned comparison. - -Thu Aug 13 15:16:38 1998 Darrell Brunsch - - * TAOACE.dsw: When I changed the name of TAO_IDL's project - file, the dependencies got messed up. Now they should be - back to normal. - -Thu Aug 13 15:03:01 1998 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - * TAO_IDL/fe/lex.yy.cpp.diff: - The scanner was looking for wchar_t and wstring_t but the IDL - types are called wchar and wstring. - The patch is not needed when using a modern flex, like 2.5.4 - (available in /pkg/gnu/bin/flex for the DOC group). - - * TAO_IDL/Makefile: - Added a rule to generate (upon the user *explicit* request) the - lex.yy.cpp file. - -Thu Aug 13 09:14:12 1998 Carlos O'Ryan - - * tests/Param_Test/Makefile: - * tests/Param_Test/README: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/options.cpp: - * tests/Param_Test/options.h: - * tests/Param_Test/param_test.idl: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/param_test_i.h: - * tests/Param_Test/run_test.pl: - * tests/Param_Test/run_test.sh: - * tests/Param_Test/tests.h: - * tests/Param_Test/longlong.h: - * tests/Param_Test/longlong.cpp: - Added a new test to check if works. - - * orbsvcs/orbsvcs/CosTimeBase.idl: - * orbsvcs/orbsvcs/Event_Service_Constants.h: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/orbsvcs/Time_Utilities.cpp: - * orbsvcs/orbsvcs/Time_Utilities.h: - * orbsvcs/orbsvcs/Time_Utilities.i: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: - * orbsvcs/orbsvcs/Sched/DynSched.cpp: - * orbsvcs/orbsvcs/Sched/SchedEntry.cpp: - * orbsvcs/orbsvcs/Sched/SchedEntry.i: - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h: - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime_Dynamic.h: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - Modified CosTimeBase.idl to use instead of a - structure. - - * TAO_IDL/fe/fe_init.cpp: - The IDL name for wchar_t is just wchar, ditto for wstring. - - * docs/releasenotes/index.html: - Documented the fact that 64bit longs are working. - - * docs/releasenotes/ec.html: - Fixed minor syntax error. - -Wed Aug 12 14:40:00 1998 Chris Gill - - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp - orbsvcs/tests/EC_Mcast/EC_Mcast.cpp - orbsvcs/tests/Sched_Conf/Sched_Conf.cpp: - - Added config info to calls to compute_scheduling and dump_schedule - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp - - Added config info to calls to compute_scheduling, dump_schedule, - use_runtime, and ACE_Runtime_Scheduler::ACE_Runtime_Scheduler - - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime1.h - orbsvcs/tests/EC_Multiple/Scheduler_Runtime2.h - orbsvcs/tests/EC_Multiple/Scheduler_Runtime_Dynamic.h: - - Added config info array and size value - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - - Added missing ;'s to output - -Wed Aug 12 14:39:40 1998 Carlos O'Ryan - - * tao/Stub.h: - * tao/IIOP_Object.h: - * tao/IIOP_Object.cpp: - The do_static_call() method uses argc/argv style to receive all - the arguments (actually an array of void*) instead of the - varargs style used before. This is simpler, more efficient and - easier to debug. - - * TAO_IDL/be/be_visitor_operation/operation_cs.cpp: - * TAO_IDL/be/be_visitor_operation/argument.cpp: - * TAO_IDL/be/be_visitor_argument/docall_cs.cpp: - The generate code to use the new do_static_call() interface. - - * tao/Object.cpp: - * tao/POAC.cpp: - * tao/PolicyC.cpp: - Change the calls to do_static_call() - - * orbsvcs/orbsvcs/Runtime_Scheduler.h: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Sched/Scheduler.h: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp: - Removed some extra "enum" keywords accompanying - RtecScheduler::Dispatching_Type declarations that were choking - Sun/CC. - -Wed Aug 12 12:05:31 1998 Carlos O'Ryan - - * tao/POA.cpp: - Added several missing template instantiations for the new - Hash_Map_Manager. - -Wed Aug 12 12:00:00 1998 Chris Gill - - * orbsvcs/orbsvcs/Runtime_Scheduler.{h, cpp} - orbsvcs/orbsvcs/Sched/Scheduler.{h, cpp} - orbsvcs/orbsvcs/Sched/DynSched.{h, cpp} - orbsvcs/orbsvcs/Sched/Strategy_Scheduler.{h, cpp}: - - Added methods and data members to generate dispatching - queue configuration information. - -Tue Aug 11 18:24:13 1998 Irfan Pyarali - - * tao/POA.h (POA): Changed the children POA map from a Map_Manager - to a Hash_Map_Manager. This should improve the time it takes to - find child POAs. - -Tue Aug 11 17:27:58 1998 Alexander Babu Arulanthu - - * docs/compiler.html : Updated the documentation. - -Tue Aug 11 16:18:53 1998 Alexander Babu Arulanthu - - * be/be_codegen.cpp - * be/be_visitor_root/root_sh.cpp - * driver/drv_args.cpp - * include/idl_global.h - * util/utl_global.cpp - - Added options to to make the file names of the - IDL-generated stubs and skeletons optional. - - The following optins have been added. - - = File name endings for all the IDL generated header files, - stub files, skeleton files and inline files. - - = Various 'h'eader_file_name_endings. - - [-hc ] - Default is "C.h". - [-hs ] - Default is "S.h". - [-hT ] - Default is "S_T.h". - - = Various 'c'lient side stub file_name_endings. - - [-cs ] - Default is "C.cpp". - [-ci ] - Default is "C.i". - - = Various 's'erver side skeleton file name endings. - - [-ss ] - Default is "S.cpp". - [-sT ] - Default is "S_T.cpp". - [-si ] - Default is "S.i". - [-st ] - Default is "S_T.i". - -Tue Aug 11 13:51:00 1998 Carlos O'Ryan - - * TAO_IDL/driver/drv_preproc.cpp: - Under Win32 we need to convert backslashes into double - backslashes before printing the file name in the #line - directive, otherwise the C++ preprocessor gets confused. Thanks - to John Geiss for reporting this problem. - -Tue Aug 11 13:47:53 1998 David L. Levine - - * tao/ORB_Core.cpp: removed unnecessary trailing semicolons - on a couple of IMPLEMENT_{APP,PRE}_GET_METHOD macro invocations. - -Tue Aug 11 10:51:36 1998 Carlos O'Ryan - - * tao/Sequence.h: - * tao/Sequence.cpp: - * tao/CDR.cpp: - Added support for octet sequences containing chains of message - blocks. NOTE: the use of chains of message blocks inside octet - sequences is *ONLY* for custom marshaling, many octet sequence - features (such as get_buffer() or operator[]) are either hard or - expensive to implement when the buffer is split across several - message blocks; thus they are *not* supported. This is only an - issue if the users decides to take advantage of some TAO - extensions to octet sequences; using the normal octet sequences - has *no* side effects. - - * orbsvcs/tests/EC_Throughput/README: - * orbsvcs/tests/EC_Throughput/Makefile: - * orbsvcs/tests/EC_Throughput/run_test.pl: - * orbsvcs/tests/EC_Throughput/data.idl: - * orbsvcs/tests/EC_Throughput/ECT_Data.h: - * orbsvcs/tests/EC_Throughput/ECT_Data.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.h: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.h: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - The test was trying to achieve too much, I made it smaller by - taking the custom marshaling example to a new test - (EC_Custom_Marshal) and just trying to exercise throughput on - this one. - - * orbsvcs/tests/Makefile: - * EC_Custom_Marshal/Makefile: - * EC_Custom_Marshal/README: - * EC_Custom_Marshal/data.idl: - * EC_Custom_Marshal/run_test.pl: - * EC_Custom_Marshal/ECM_Data.h: - * EC_Custom_Marshal/ECM_Data.cpp: - * EC_Custom_Marshal/ECM_Consumer.h: - * EC_Custom_Marshal/ECM_Consumer.cpp: - * EC_Custom_Marshal/ECM_Supplier.h: - * EC_Custom_Marshal/ECM_Supplier.cpp: - Added a new test to show how custom marshaling works, actually - this was already in EC_Throughput, but that test was growing too - fat. - -Mon Aug 10 22:46:39 1998 David L. Levine - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: updated template - instantiations to reflect Memory_Pools.h changes. - -Mon Aug 10 20:02:45 1998 Jeff Parsons - - * Param_Test/README - Added info about the perl script command line args and a note - to the effect that there are still problems with objref. - -Mon Aug 10 19:10:27 1998 Jeff Parsons - - * Param_Test/*.{h,cpp}: - Had moved many #includes to corresponding .h files. I've - been advised that this is not always a good idea, so I - moved them back. - -Mon Aug 10 17:03:12 1998 Jeff Parsons - - * Param_Test/bd_string.cpp: - Opname was being set to "test_unbounded_string" (oops). - -Mon Aug 10 16:54:12 1998 Jeff Parsons - - * Param_Test/run_test.pl: - Added run-through for typecodes (it was missing) and increased wait - between server and client startup to 5 (first time you run server, it - takes a little longer to get going and the first test was getting - skipped). - -Mon Aug 10 16:46:50 1998 Darrell Brunsch - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Fixed an error - where "not all control paths return a value" in init (). - -Mon Aug 10 15:56:42 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Memory_Pools.h: - The memory pools are global from some time now, but they did not - have the right kind of lock; this lead to memory corruption - problems when sending events at a very high rate. Thanks to - Mark L. Boriack for reporting this - problem. - -Mon Aug 10 13:59:24 1998 Darrell Brunsch - - * orbsvcs/tests/ImplRepo/Impl_Repo.idl: - * orbsvcs/tests/ImplRepo/client.dsp: - * orbsvcs/tests/ImplRepo/client_impl.cpp: - * orbsvcs/tests/ImplRepo/implrepo.dsp: - * orbsvcs/tests/ImplRepo/ir_implrepo_impl.cpp: - * orbsvcs/tests/ImplRepo/ir_implrepo_impl.h: - * orbsvcs/tests/ImplRepo/ir_server.cpp: - * orbsvcs/tests/ImplRepo/server.dsp: - * orbsvcs/tests/ImplRepo/server_impl.cpp: - * orbsvcs/tests/ImplRepo/server_impl.h: - * orbsvcs/tests/ImplRepo/svc.conf: - The server now registers itself with the IR. - -Mon Aug 10 13:33:52 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/RtecEventChannelAdmin.idl: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Added suspend_connection/resume_connection calls to the - PushConsumerProxy interface ala Notification Service, using this - methods a Consumer can temporarly disable the reception of - events; the events are dropped on the Event Service side, thus - minimizing network traffic (but the EC still has to do some - computation). - - * orbsvcs/tests/Simple_Naming/Makefile: - Updated dependencies. - -Mon Aug 10 12:45:01 1998 Matthew J Braun - - * orbsvcs/tests/Logger/Logging_Test_i.cpp: Added extra code to - test the "logv ()" method. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.{h,cpp}: Added new method - "init_new_naming ()" which creates a new naming service. Modified - "init ()" to try and resolve a preexisting NameService before - calling "init_new_naming ()" - - * orbsvcs/orbsvcs/Log/Logger_i.{h,cpp}: Implemented new "logv ()" - method - - * orbsvcs/orbsvcs/Logger.idl (Logger): Added new method "logv ()" - which allows logging with a specified verbosity level. - -Mon Aug 10 10:51:08 1998 Carlos O'Ryan - - * tests/Cubit/TAO/DII_Cubit/client.cpp: - Removed signed/unsigned comparison, thanks to David for pointing - this out. - -Mon Aug 10 09:13:17 1998 David L. Levine - - * orbsvcs/orbsvcs/Log/Logger_i.cpp: added missing - ACE_Hash_Map_Iterator template instantiations. - -Sun Aug 09 23:36:31 1998 Douglas C. Schmidt - - * TAO version 0.2.3 released. - -Sun Aug 9 23:08:51 1998 Douglas C. Schmidt - - * Checked in a bunch of files/directories that I'd neglected - to check in before. - -Sun Aug 09 23:12:33 1998 Douglas C. Schmidt - - * TAO version 0.2.2 released. - -Sun Aug 9 19:46:33 1998 Jeff Parsons - - * Param_Test/var_array.cpp: - - Changed this->out_.out () in add_args to - this->out_.inout (), which works with dii requests. - -Sun Aug 9 19:08:53 1998 Carlos O'Ryan - - * tao/ORB_Core.cpp: - Removed explicit template instantiation for - ACE_Malloc and the - corresponding ACE_Allocator_Adapter<> because it is already - instantiated in ACE. - - * tao/ORB.cpp: - Added missing instantiation of - ACE_Guard, event it is not directly - used in TAO it is used by the ACE_Cached_Connector<> (when - instantiated using that lock) and some compilers do no recursive - instantiation. - -Sun Aug 9 18:20:59 1998 Darrell Brunsch - - * tests/Simple/client_static.dsp: - * tests/Simple/server_static.dsp: - * TAOACE_Static.dsw: - * TAO_IDL/tao_idl.dsp: - * TAO_IDL/tao_idl.dsw: - * TAO_IDL/tao_idl_static.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsw - * orbsvcs/orbsvcs/orbsvcs_static.dsp: - * tao/TAO_Static.dsp: - * tests/Simple/Simple_Object.dsw: - * tests/Simple/client.dsp: - * tests/Simple/server.dsp: - Added and updated projects for a static version of the - TAO libraries. - -Sun Aug 9 12:56:12 1998 Carlos O'Ryan - - * tests/Param_Test/fixed_struct.cpp: - * tests/Param_Test/objref.cpp: - * tests/Param_Test/ub_objref_seq.cpp: - * tests/Param_Test/ub_string.cpp: - * tests/Param_Test/var_array.cpp: - Added missing includes and fixed some T_var to base type - translation problems (it wouldn't compile on Sun/CC otherwise). - -Sun Aug 9 08:51:58 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Trader/Trader.cpp: Added a #include of - Offer_Iterators_T.h so that the code will compile on VxWorks. - Thanks to Sergio for reporting this. - -Sun Aug 9 000:45:55 1998 Jeff Parsons - - * Param_Test/client.dsp: - - Added a missing header file to FileView and created separate - client and server directories under Debug\ so separate .pdb - files can be kept for client and server projects. - - * Param_Test/ub_any_seq.{h,cpp}: - - DII test now works and is CORBA-compliant. - - * Param_Test/any.cpp: - * Param_Test/bd_long_seq.cpp: - * Param_Test/bd_short_seq.cpp: - * Param_Test/bd_str_seq.cpp: - * Param_Test/bd_struct_seq.cpp: - * Param_Test/client.cpp: - * Param_Test/driver,{h,cpp}: - * Param_Test/fixed_array.cpp: - * Param_Test/fixed_struct.cpp: - * Param_Test/nested_struct.cpp: - * Param_Test/objref.cpp: - * Param_Test/short.{h,cpp}: - * Param_Test/typecode.cpp: - * Param_Test/ub_long_seq.cpp: - * Param_Test/ub_objref_seq.cpp: - * Param_Test/ub_short_seq.cpp: - * Param_Test/ub_str_seq.cpp: - * Param_Test/ub_string.cpp: - * Param_Test/ub_struct_seq.cpp: - * Param_Test/var_array.cpp: - * Param_Test/var_struct.cpp: - - Made cosmetic changes to the code. - - -Sat Aug 8 22:47:22 1998 Jeff Parsons - - * Param_Test/fixed_array.{h,cpp}: - * Param_Test/var_array.{h,cpp}: - * Param_Test/var_struct.{h,cpp}: - * Param_Test/nested_struct.{h,cpp}: - * Param_Test/any.{h,cpp}: - - DII tests now work with _vars and are CORBA-compliant. - -Sat Aug 8 21:28:33 1998 Carlos O'Ryan - - * tao/Exception.h: - * tao/Exception.i: - * tao/Exception.cpp: - Removed superflous operator new and operator delete. - - * docs/releasenotes/TODO.html: - More updates. - - * docs/configurations.html: - Added a few hints on when to use ORB-per-thread and what the - consequences are. - -Fri Aug 7 21:39:26 1998 Carlos O'Ryan - - * docs/releasenotes/TODO.html: - Update the notes. - - * docs/releasenotes/index.html: - Added a pointer to the TODO list. - - * orbsvcs/tests/EC_Throughput/run_test.pl: - We need to wait for the NamingService and the EventService after - killing them. We also need a pause after starting up the - consumer. - - * tao/CDR.cpp: - * tao/CDR.h: - * tao/CDR.i: - The OutputCDR class receives allocators for the buffers and the - data blocks. - - * tao/Connect.cpp: - Minimize the number of calls to TAO_ORB_Core_instance() in the - upcall. - - * tao/IIOP_Object.cpp: - Use the ORB_Core allocators for the outgoing CDR stream. - - * tao/Invocation.cpp: - * tao/Invocation.h: - * tao/Invocation.i: - Receive the ORB_Core as an argument to minimize calls to - TAO_ORB_Core_instance. - Use allocators for the outgoing stream. - - * tao/ORB_Core.cpp: - * tao/ORB_Core.h: - * tao/ORB_Core.i: - Added TSS allocators for the outgoing stream. - - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Fixed problems with Timeprobe registrations. - Also made the <-x> option functional when -v or -o is used. - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - Enabled GPERF support in the IDL compiler again. - -Fri Aug 7 18:00:22 1998 Jeff Parsons - - * Param_Test/bd_short_seq.{h,cpp}: - * Param_Test/bd_long_seq.{h,cpp}: - * Param_Test/bd_str_seq.{h,cpp}: - * Param_Test/bd_struct_seq.{h,cpp}: - * Param_Test/ub_short_seq.{h,cpp}: - * Param_Test/ub_long_seq.{h,cpp}: - * Param_Test/ub_str_seq.{h,cpp}: - * Param_Test/ub_struct_seq.{h,cpp}: - - DII tests now work with _vars. - -Fri Aug 7 15:30:06 1998 Jeff Parsons - - * tests/Param_Test/typecode.{h,cpp}: - - DII test now works. - -Fri Aug 07 14:32:50 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (init): Removed the public set function and - made the ORB_Core a friend. - -Fri Aug 7 10:41:23 1998 Douglas C. Schmidt - - * tao/ORB_Core.cpp (init): Changed the code to use the new - shutdown_lock() accessor so TAO will compile. Thanks to Andy - Gokhale for reporting this. - - * tao/ORB: Added an accessor to set the shutdown lock. - -Fri Aug 07 01:10:48 1998 Irfan Pyarali - - * tao/ORB.cpp - - (shutdown): Restored the flag. In - shutdown, we try to cancel all the threads in the ORB (e.g., - threads from a thread-per-connection policy). If the - flag is set, we wait for all threads to - exit. Note that there is one problem with this: on platforms - that do not support thread cancellation, the threads won't get - cancelled. Therefore, the only way they will wake up and - realize that the ORB has shutdown is that a client makes a - request to them. Hence the flag cannot - reliably used on platforms that do not have thread cancellation. - - (run): Simplified code for accessing shutdown_lock_ and - should_shutdown_ - - * tao/ORB.i (should_shutdown): Added set and get methods for the - should_shutdown_ flag. - - * tao/ORB_Core.cpp - - (Pre_Allocated): Added a constructor that makes sure that the - thread manager does not wait for threads by default. - - (init): Set the for the ORB. - - * tao/Connect.cpp - - (handle_input): Check to see if we've been cancelled - cooperatively before executing the client request. - - (TAO_Server_Connection_Handler::TAO_Server_Connection_Handler, - TAO_Client_Connection_Handler::TAO_Client_Connection_Handler) - If the thread manager of the svc_handlers is zero, set them to - TAO_ORB_Core_instance ()->thr_mgr () and not - ACE_Thread_Manager::instance (). - - (activate): There is no need to assign the thr_mgr (again) as it - was already set correctly at creation time. - - (TAO_Client_Connection_Handler::close): Removed this method. The - base class already does this. - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp: - tests/NestedUpcall/Reactor/NestedUpCalls_Test.cpp: - Removed these tests since they have been superseded by the perl - scripts. Also updated the Makefiles. - - * tests/Cubit/CORBAplus/IDL_Cubit: - * tests/Cubit/TAO/IDL_Cubit: - Removed references to TAO_ORB_Core_Instance. - - * tests/Cubit/TAO/IDL_Cubit/svc.conf: Added back the tss flag for - ORBresources. This is necessary because the collocation test - uses two threads. - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: Removed the Cubit_Shutdown - object. It is not needed. Also removed the string from - make_cubit since it was not being used. - - * tests/Cubit/TAO/IDL_Cubit/server_i: - - Changed to a Cubit_Factory_i pointer and created - it dynamically so that we can pass it the ORB pointer. - - Removed , , , - , , , - - * tests/Cubit/TAO/IDL_Cubit/client_i: - - was removed since it was not needed anymore. - - Changed to a Cubit_var from a Cubit_ptr. - - Fixed the memory management for . - - Instead of using the Cubit_Shutdown object, we simply turn off - collocation, reinit all our vars (converting them from - collocated to regular objects), and then call shutdown on the - cubit object. - -Thu Aug 6 21:49:55 1998 Douglas C. Schmidt - - * orbsvcs/tests/Trading/Makefile: Changed - - LIBS = -lorbsvcs -lTAO - LDLIBS = -lTTest $(LIBS) - - to - - LDLIBS = -lTTest -lorbsvcs -lTAO - - to work around weirdo bugs with the HP/UX GNU make... Thanks to - John Mulhern <9107@mn3.lawson.lawson.com> for reporting this. - -Thu Aug 6 18:27:24 1998 Darrell Brunsch - - * tests/TAO_Tests.dsw: Added the Multiple Inheritance client - and server projects. - - * tests/Multiple_Inheritance/client.dsp: - * tests/Multiple_Inheritance/server.dsp: - Updated the Release versions to be in synch with the rest - of the tests. - -Thu Aug 6 18:11:20 1998 Darrell Brunsch - - * TAO-INSTALL.html: Added instructions on how to create a - static library for TAO. - - * orbsvcs/orbsvcs/Sched/DynSched.cpp: Fixed a typo where - there was a == when there should have been a =. This was - in schedule_threads (). - -Thu Aug 6 16:37:55 1998 Jeff Parsons - - * tests/Param_Test/typecode.{h,cpp}: - Moved the table of typecodes used for random - selection to be local to init_parameters (). - When it was global and static, the CORBA:: - typecodes could not be used - they weren't yet - initialized. - -Thu Aug 6 14:24:30 1998 Carlos O'Ryan - - * tests/Cubit/TAO/DII_Cubit/client.cpp: - Removed warning about unreached statement. - - * orbsvcs/orbsvcs/Trader/Trader.cpp: - Removed duplicate instantiation of a template. - -Thu Aug 6 13:39:32 1998 Jeff Parsons - - * tao_idl/be/be_visitor_argument/vardecl_ss.cpp: - * tao_idl/be/be_visitor_argument/post_upcall_ss.cpp: - Removed code from visit_predefined_type () in - post_upcall_ss.cpp and changed vardecl_ss.cpp to - accomplish the same thing in a less messy and more - memory-robust manner. Applies to code generated for - test_typecode_skel () in param_TestS.cpp. - -Thu Aug 06 12:51:52 1998 Irfan Pyarali - - * tao/orbconf.h: Added a define for the type of reactor that TAO - will use. By default, this is the Select_Reactor. - - * tao/ORB_Core.cpp (TAO_Default_Reactor): Instantiate TAO_REACTOR - instead of the Select_Reactor. Also made ~TAO_Default_Reactor - virtual. BTW, there is no need to keep a pointer to the - Reactor_Impl class. Simply ask the Reactor class to delete it - when its done. - -Thu Aug 6 09:46:46 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp : Used the new ARGV - constructor which creates a new ARGV with 2 argvs. Removed all - usages of 3*BUFSIZ. - -Wed Aug 5 22:14:39 1998 Douglas C. Schmidt - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp, - orbsvcs/orbsvcs/Trader/Offer_Database.cpp: removed unnecessary - typenames. Thanks to John Mulhern <9107@mn3.lawson.lawson.com> - for reporting this. - -Wed Aug 05 17:34:52 1998 Irfan Pyarali - - * tao/Invocation.h (TAO_GIOP_Invocation): Removed the - TAO_Client_Connection_Handler pointer from this class. It was - moved into the IIOP_Object where it would be easier to recycle - it since instances of TAO_GIOP_Invocation are transient while - IIOP_Objects are not. - - * tao/ORB_Core.cpp (TAO_Cached_Connector_Lock): Added a new - adaptive lock type TAO_Collocation_Table_Lock that will be used - to control the type of locking used by the connector in TAO. - - Moved all the connect strategies from the ORB_Core to the - resource factory. If the strategies were left in the ORB_Core, - each thread would get its own copy of the strategies since - ORB_Core is TSS. - - Removed all instances of TAO_HAS_CLIENT_CONCURRENCY. They were - incomplete, not used, and annoying. - - * tao/ORB.cpp: Changed the template instantiations of the - Connector to specify the new TAO_Cached_Connector_Lock instead - of ACE_SYNCH_NULL_MUTEX or ACE_SYNCH_MUTEX. - - * tao/default_server.cpp (parse_args): Added a new option - (-ORBconnectorlock) to control the lock on the connector. It - defaults to a thread lock, but can set to null. - - Also, changed the lock type of the collocation table from - ACE_SYNCH_RECURSIVE_MUTEX to ACE_SYNCH_MUTEX. - - * tests/Cubit/TAO/IDL_Cubit/svc.conf: Removed excessive options - from the svc.conf file. Also added -ORBconnectorlock null to - avoid locking in the connector. - - * tao: Renamed all instances of coltbl to collocation_table. - -Wed Aug 5 17:48:31 1998 Jeff Parsons - - * tests/Param_Test/var_struct.{h,cpp}: - * tests?param_Test/nested_struct.{h,cpp}: - DII now works, but is non-compliant (OUT arg - has to be extracted to get correct value). - -Wed Aug 5 17:05:36 1998 Darrell Brunsch - - * TAO-INSTALL.html: Added instruction for the addition of - ACE_wrappers/ace to the executable directories under MSVC - 5, since this is needed for the TAO_IDL compiler to work - inside of MSVC. - -Wed Aug 5 16:43:38 1998 Darrell Brunsch - - * docs/implrepo.html: Added information on the new POA policy where - the format of the persistent IOR can be changed from that of both - the last-known-server-IOR and Implementation Repository to that - just of the Implementation Repository. Also added a note on the - use of CLOEXEC to make TAO fork-safe. - -Wed Aug 5 16:04:21 1998 Darrell Brunsch - - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsp: - * tests/CDR/basic_types.dsp: - * tests/CDR/growth.dsp: - * tests/CDR/tc.dsp: - * tests/Cubit/TAO/DII_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/MT_Cubit/client.dsp: - * tests/Cubit/TAO/MT_Cubit/server.dsp: - * tests/NestedUpcall/MT_Client_Test/client.dsp: - * tests/NestedUpcall/MT_Client_Test/server.dsp: - * tests/NestedUpcall/Reactor/client.dsp: - * tests/NestedUpcall/Reactor/server.dsp: - * tests/NestedUpcall/Triangle_Test/initiator.dsp: - * tests/NestedUpcall/Triangle_Test/server_A.dsp: - * tests/NestedUpcall/Triangle_Test/server_B.dsp: - * tests/OctetSeq/OctetSeq.dsp: - * tests/POA/DSI/client.dsp: - * tests/POA/DSI/server.dsp: - * tests/POA/Default_Servant/client.dsp: - * tests/POA/Default_Servant/server.dsp: - * tests/POA/Explicit_Activation/server.dsp: - * tests/POA/FindPOA/FindPOA.dsp: - * tests/POA/Forwarding/client.dsp: - * tests/POA/Forwarding/server.dsp: - * tests/POA/Generic_Servant/server.dsp: - * tests/POA/NewPOA/NewPOA.dsp: - * tests/POA/On_Demand_Activation/server.dsp: - * tests/POA/RootPOA/RootPOA.dsp: - * tests/POA/TIE/client.dsp: - * tests/POA/TIE/server.dsp: - * tests/POA/locking/locking.dsp: - * tests/Param_Test/client.dsp: - * tests/Param_Test/server.dsp: - * tests/Quoter/Factory_Finder.dsp: - * tests/Quoter/Generic_Factory.dsp: - * tests/Quoter/client.dsp: - * tests/Quoter/server.dsp: - * tests/Simple/client.dsp: - * tests/Simple/server.dsp: - Updated all the Release versions of these projects. I'll - spend another session on converting the rest of the orbsvcs - soon. - - Note: Most of the run_test.pl's do not yet have support for - running the Release version instead of the debug version. - - * tests/TAO_Tests.dsw: Inserted a dependency between DII_Cubit - and IDL_Cubit. - - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: New and improved script - that supports more useful options. - - * tests/Cubit/TAO/IDL_Cubit/README: Added a reference to - run_test.pl and updated the "output" here to what it looks like - now. - -Wed Aug 5 16:02:08 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp : - Used TAO_ORB_Manager to do the ORB and POA - initialization and activation of servants. - -Wed Aug 5 15:38:34 1998 Jeff Parsons - - * tests/Param_Test/fixed_array.{h,cpp}: - * tests/Param_Test/var_array.{h,cpp}: - Fixed DII implementation. - -Wed Aug 5 14:17:27 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Log/Logger_i.cpp: - Added missing template instantiations. - - * orbsvcs/Logging_Service/Makefile: - Moved the TAO_ROOT definition to the top. - - * orbsvcs/Logging_Service/Logging_Service_i.cpp: - Fixed usage message. - -Wed Aug 5 11:21:29 1998 Carlos O'Ryan - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - Fixed couple of minor bugs: assignment of a to a - and a misplaced close paren. - - * tests/Cubit/TAO/DII_Cubit/client.cpp: - Removed EGCS warning about implicit use of & with function - pointers. - - * tests/Param_Test/bd_struct_seq.h: - Removed fully qualified name in method declaration. - -Tue Aug 4 22:23:47 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/MT_Cubit/server.cpp: Cleaned up some of the code - and the comments. - -Tue Aug 4 21:20:35 1998 Nagarajan Surendrany - - * tests/Cubit/TAO/MT_Cubit/server.cpp : - Replaced 3*BUFSIZ with ACE_DEFAULT_ARGV_BUFSIZ and - allocated memory after calculating the length. - -Tue Aug 4 20:00:59 1998 Jeff Parsons - - * Param_Test/ub_any_seq.{h,cpp}: - Added non-_var members for DII OUT arg and - return value. Test now works for DII and SII. - -Tue Aug 4 18:10:16 1998 Jeff Parsons - - * Param_Test/ub_short_seq.{h,cpp}: - Param_Test/ub_long_seq.{h.cpp}: - Param_Test/ub_str_seq.{h,cpp}: - Param_Test/ub_struct_seq.{h,cpp}: - Added non-_var members for DII OUT args and - return values. Tests now work for DII and SII. - -Tue Aug 4 17:32:30 1998 Matthew J Braun - - * orbsvcs/tests/Logger/Logging_Test_i.cpp: - * orbsvcs/Logging_Service/Logging_Service_i.cpp: - Added some debugging code to test the hashing feature. - - * orbsvcs/orbsvcs/Log/Logger_i.{h,cpp}: Added ACE_Hash_Map - code. Now calls to make_logger will use the parameter as a - hash key to return either a new Logger or a preexisting one. Added - some debugging code to the hash-relevant portions. - -Tue Aug 4 17:23:31 1998 Douglas C. Schmidt - - * orbsvcs/tests/Trading/export_test.cpp, - orbsvcs/tests/Trading/Trading_Service.cpp: Changed all uses of - TAO_OBJID_TRADINGSERVICE to "TradingService" to be compliant - with the CORBA specification. - -Tue Aug 04 16:42:50 1998 Irfan Pyarali - - * tests/Multiple_Inheritance: This module is used as a test for - IDL interfaces that inherit from multiple interfaces. The - "diamond of death" inheritance hierarchy is used in this example - where there is a common base class (A), two classes deriving - from the common base class (B and C) and then a final derived - class (D) that inherits from both B and C. - - The client starts off with CORBA Object, narrows to interface A, - then B, then C, and finally D. It calls all the methods on each - interface. - -Tue Aug 4 16:00:16 1998 Darrell Brunsch - - * TAO-INSTALL.html: Added a section on the use of - instead of . Also cleaned up some other - sections about TAOACE.dsw and adding a IDL file to a MSVC - project. - -Tue Aug 4 15:56:34 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp : Changed BUFSIZ to - 3*BUFSIZ to fit the arguments. Made the default base orb port - as 0. - -Tue Aug 4 14:52:12 1998 Jeff Parsons - - * TAO/tests/Param_Test/bd_struct_seq.{h,cpp}: - Same changes as other bounded sequence tests - checked in yesterday (non _var members for DII - OUT arg and return value). Test now works for DII - as well as SII. - -Tue Aug 4 12:55:06 1998 Matthew J Braun - - * orbsvcs/tests/Logger/run_test.pl: Revised test script to call - the executables in the correct directories. - -Tue Aug 4 12:11:55 1998 Matthew J Braun - - * docs/releasenotes/index.html: Added logging service section - -Tue Aug 04 11:08:56 1998 Nanbor Wang - - * TAO_IDL/GenExportH.BAT: Moved it to where it really belong, - $ACE_ROOT/bin/. - -Mon Aug 3 19:46:55 1998 Jeff Parsons - - * tao_idl/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp: - moved buffer allocation in default constructor from body to - base class call - prevents debug assertion in param tests. - - * tao/Sequence_T.i: - change corresponding to the above - - * TAO/tests/Param_Test/bd_short_seq.{h,cpp}: - TAO/tests/Param_Test/bd_long_seq.{h,cpp}: - TAO/tests/Param_Test/bd_str_seq.{h,cpp}: - created non-_var members for OUT args and return values, - changed add_args and check_validity accordingly. These - param tests now work for SII and DII. - -Mon Aug 3 17:21:42 1998 Gonzalo Diethelm - - * IIOP/test/clnt.cpp: - * IIOP/test/cubit.cpp: - * IIOP/test/cubitC.cpp: - * IIOP/test/cubitS.cpp: - * IIOP/test/cubit_i.cpp: - * IIOP/test/svr.cpp: - * IIOP/test/test1.cpp: - * IIOP/test/test1_clnt.cpp: - * IIOP/test/test1_svr.cpp: - * IIOP/test/Orbeline/base_server/Profile_Timer.cpp: - * IIOP/test/Orbeline/base_server/cubit_impl.cpp: - * IIOP/test/Orbeline/base_server/server.cpp: - * IIOP/test/Orbeline/client/Profile_Timer.cpp: - * IIOP/test/Orbeline/client/client.cpp: - * IIOP/test/Orbix/base_server/cubitC.cpp: - * IIOP/test/Orbix/base_server/cubitS.cpp: - * IIOP/test/Orbix/base_server/cubit_impl.cpp: - * IIOP/test/Orbix/base_server/server.cpp: - * IIOP/test/Orbix/base_server/tpr.cpp: - * IIOP/test/Orbix/client/client.cpp: - * IIOP/test/Orbix/client/cubitC.cpp: - * IIOP/test/Orbix/factory_client/client.cpp: - * IIOP/test/Orbix/factory_client/cubitC.cpp: - * IIOP/test/Orbix/factory_client/cubitS.cpp: - * IIOP/test/Orbix/tpool/cubitC.cpp: - * IIOP/test/Orbix/tpool/cubitS.cpp: - * IIOP/test/Orbix/tpool/cubit_impl.cpp: - * IIOP/test/Orbix/tpool/server.cpp: - * IIOP/test/Orbix/tpool/tpool.cpp: - * IIOP/test/Orbix/tpr/cubitC.cpp: - * IIOP/test/Orbix/tpr/cubitS.cpp: - * IIOP/test/Orbix/tpr/cubit_impl.cpp: - * IIOP/test/Orbix/tpr/server.cpp: - * IIOP/test/Orbix/tpr/tpr.cpp: - * IIOP/test/Orbix/tps/cubitC.cpp: - * IIOP/test/Orbix/tps/cubitS.cpp: - * IIOP/test/Orbix/tps/cubit_impl.cpp: - * IIOP/test/Orbix/tps/server.cpp: - * IIOP/test/Orbix/tps/tps.cpp: - * IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp: - * IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp: - * IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp: - * IIOP/tests/Cubit/Orbix/base_server/server.cpp: - * IIOP/tests/Cubit/Orbix/base_server/tpr.cpp: - * IIOP/tests/Cubit/Orbix/client/client.cpp: - * IIOP/tests/Cubit/Orbix/client/cubitC.cpp: - * IIOP/tests/Cubit/Orbix/factory_client/client.cpp: - * IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp: - * IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp: - * IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp: - * IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp: - * IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp: - * IIOP/tests/Cubit/Orbix/tpool/server.cpp: - * IIOP/tests/Cubit/Orbix/tpool/tpool.cpp: - * IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp: - * IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp: - * IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp: - * IIOP/tests/Cubit/Orbix/tpr/server.cpp: - * IIOP/tests/Cubit/Orbix/tpr/tpr.cpp: - * IIOP/tests/Cubit/Orbix/tps/cubitC.cpp: - * IIOP/tests/Cubit/Orbix/tps/cubitS.cpp: - * IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp: - * IIOP/tests/Cubit/Orbix/tps/tps.cpp: - * IIOP/tests/Cubit/TAO/clnt.cpp: - * IIOP/tests/Cubit/TAO/cubit.cpp: - * IIOP/tests/Cubit/TAO/cubitC.cpp: - * IIOP/tests/Cubit/TAO/cubitS.cpp: - * IIOP/tests/Cubit/TAO/cubit_i.cpp: - * IIOP/tests/Cubit/TAO/svr.cpp: - * IIOP/tests/Cubit/TAO/test1.cpp: - * IIOP/tests/Cubit/TAO/test1_clnt.cpp: - * IIOP/tests/Cubit/TAO/test1_svr.cpp: - * IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp: - * IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp: - * IIOP/tests/Cubit/VisiBroker/base_server/server.cpp: - * IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp: - * IIOP/tests/Cubit/VisiBroker/client/client.cpp: - * IIOP/tests/Thruput_test/client.cpp: - * IIOP/tests/Thruput_test/server.cpp: - * IIOP/tests/Thruput_test/ttcpC.cpp: - * IIOP/tests/Thruput_test/ttcpS.cpp: - * IIOP/tests/Thruput_test/ttcp_i.cpp: - * IIOP/tests/Thruput_test/utils.cpp: - Added ACE_RCSID to these files. - -Mon Aug 3 16:49:45 1998 Gonzalo Diethelm - - * TAO_IDL/Makefile: - We don't attempt to traverse any subdirectories now. - - * TAO_IDL/ast/Makefile: - * TAO_IDL/be/Makefile: - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be/be_state_argument.cpp: - * TAO_IDL/be/be_state_array.cpp: - * TAO_IDL/be/be_state_attribute.cpp: - * TAO_IDL/be/be_state_exception.cpp: - * TAO_IDL/be/be_state_operation.cpp: - * TAO_IDL/be/be_state_sequence.cpp: - * TAO_IDL/be/be_state_structure.cpp: - * TAO_IDL/be/be_state_typedef.cpp: - * TAO_IDL/be/be_state_union.cpp: - * TAO_IDL/driver/Makefile: - * TAO_IDL/fe/Makefile: - * TAO_IDL/narrow/Makefile: - * TAO_IDL/util/Makefile: - Erased these now useless files. - - * Benchmark/Marshal_Test/Orbix/marshal.h: - Added a RCS Id. - - * Benchmark/Marshal_Test/Orbix/client.cpp: - * Benchmark/Marshal_Test/Orbix/marshal.h: - * Benchmark/Marshal_Test/Orbix/orbix_marshal_client.cpp: - * Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.cpp: - * Benchmark/Marshal_Test/Orbix/orbix_marshal_server.cpp: - * Benchmark/Marshal_Test/Orbix/server.cpp: - * Benchmark/Marshal_Test/TAO/client.cpp: - * Benchmark/Marshal_Test/TAO/marshalC.cpp: - * Benchmark/Marshal_Test/TAO/marshalS.cpp: - * Benchmark/Marshal_Test/TAO/server.cpp: - * Benchmark/Marshal_Test/TAO/tao_marshal_client.cpp: - * Benchmark/Marshal_Test/TAO/tao_marshal_impl.cpp: - * Benchmark/Marshal_Test/TAO/tao_marshal_server.cpp: - * Benchmark/Marshal_Test/VisiBroker/client.cpp: - * Benchmark/Marshal_Test/VisiBroker/server.cpp: - * Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.cpp: - * Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.cpp: - * Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.cpp: - * Benchmark/benchmark/driver.cpp: - * Benchmark/benchmark/marshal_options.cpp: - * Benchmark/benchmark/marshal_proxy.cpp: - * Benchmark/benchmark/marshal_results.cpp: - Added ACE_RCSID to these files. - -Mon Aug 3 15:05:39 1998 Nagarajan Surendran - - * orbsvcs/tests/AVStreams/mpeg/Makefile: Added this Makefile - which compiles the AVStreams mpeg application. - -Mon Aug 3 14:23:22 1998 Gonzalo Diethelm - - * tests/CDR/basic_types.cpp: - * tests/CDR/growth.cpp: - * tests/CDR/tc.cpp: - * tests/Cubit/COOL/IDL_Cubit/client.cpp: - * tests/Cubit/COOL/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/COOL/IDL_Cubit/server.cpp: - * tests/Cubit/COOL/IDL_Cubit/tmplinst.cpp: - * tests/Cubit/COOL/MT_Cubit/Task_Client.cpp: - * tests/Cubit/COOL/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/COOL/MT_Cubit/client.cpp: - * tests/Cubit/COOL/MT_Cubit/cubit_impl.cpp: - * tests/Cubit/COOL/MT_Cubit/pccTimer.cpp: - * tests/Cubit/COOL/MT_Cubit/server.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/clnt.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/CORBAplus/IDL_Cubit/svr.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/client/Task_Client.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/client/client.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp: - * tests/Cubit/CORBAplus/MT_Cubit/server/svr.cpp: - * tests/Cubit/Hardpack/IDL_Cubit/client.cpp: - * tests/Cubit/Hardpack/IDL_Cubit/client_i.cpp: - * tests/Cubit/Hardpack/IDL_Cubit/server.cpp: - * tests/Cubit/Hardpack/IDL_Cubit/server_i.cpp: - * tests/Cubit/Orbix/base_server/cubit_impl.cpp: - * tests/Cubit/Orbix/base_server/server.cpp: - * tests/Cubit/Orbix/client/client.cpp: - * tests/Cubit/Orbix/client/cubitC.cpp: - * tests/Cubit/Orbix/factory_client/client.cpp: - * tests/Cubit/Orbix/factory_client/cubitC.cpp: - * tests/Cubit/Orbix/factory_client/cubitS.cpp: - * tests/Cubit/Orbix/tpool/cubitC.cpp: - * tests/Cubit/Orbix/tpool/cubitS.cpp: - * tests/Cubit/Orbix/tpool/cubit_impl.cpp: - * tests/Cubit/Orbix/tpool/server.cpp: - * tests/Cubit/Orbix/tpool/tpool.cpp: - * tests/Cubit/Orbix/tpr/cubitC.cpp: - * tests/Cubit/Orbix/tpr/cubitS.cpp: - * tests/Cubit/Orbix/tpr/cubit_impl.cpp: - * tests/Cubit/Orbix/tpr/server.cpp: - * tests/Cubit/Orbix/tpr/tpr.cpp: - * tests/Cubit/Orbix/tps/cubitC.cpp: - * tests/Cubit/Orbix/tps/cubitS.cpp: - * tests/Cubit/Orbix/tps/cubit_impl.cpp: - * tests/Cubit/Orbix/tps/tps.cpp: - * tests/Cubit/TAO/DII_Cubit/client.cpp: - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Test.cpp: - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/server.cpp: - * tests/Cubit/TAO/IDL_Cubit/server_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/tmplinst.cpp: - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - * tests/Cubit/TAO/MT_Cubit/Util_Thread.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - * tests/Cubit/TAO/MT_Cubit/cubit_i.cpp: - * tests/Cubit/TAO/MT_Cubit/pccTimer.cpp: - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/tmplinst.cpp: - * tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp: - * tests/Cubit/VisiBroker/base_server/cubit_impl.cpp: - * tests/Cubit/VisiBroker/base_server/server.cpp: - * tests/Cubit/VisiBroker/client/Profile_Timer.cpp: - * tests/Cubit/VisiBroker/client/client.cpp: - * tests/Demux_Test/client.cpp: - * tests/Demux_Test/server.cpp: - * tests/Demux_Test/CodeGen/client.cpp: - * tests/Demux_Test/CodeGen/gen.cpp: - * tests/Demux_Test/CodeGen/impl.cpp: - * tests/Demux_Test/CodeGen/objcreate.cpp: - * tests/Demux_Test/CodeGen/perf.cpp: - * tests/Demux_Test/CodeGen/skel.cpp: - * tests/Demux_Test/CodeGen/stub.cpp: - * tests/Demux_Test/CodeGen/tao.cpp: - * tests/NestedUpcall/MT_Client_Test/MT_Object_Impl.cpp: - * tests/NestedUpcall/MT_Client_Test/client.cpp: - * tests/NestedUpcall/MT_Client_Test/local_server.cpp: - * tests/NestedUpcall/MT_Client_Test/server.cpp: - * tests/NestedUpcall/Reactor/NestedUpCalls_Test.cpp: - * tests/NestedUpcall/Reactor/client.cpp: - * tests/NestedUpcall/Reactor/eh_i.cpp: - * tests/NestedUpcall/Reactor/reactor_i.cpp: - * tests/NestedUpcall/Reactor/server.cpp: - * tests/NestedUpcall/Triangle_Test/Initiator_Impl.cpp: - * tests/NestedUpcall/Triangle_Test/Object_A_Impl.cpp: - * tests/NestedUpcall/Triangle_Test/Object_B_Impl.cpp: - * tests/NestedUpcall/Triangle_Test/initiator.cpp: - * tests/NestedUpcall/Triangle_Test/server_A.cpp: - * tests/NestedUpcall/Triangle_Test/server_B.cpp: - * tests/OctetSeq/OctetSeq.cpp: - * tests/POA/DSI/Database_i.cpp: - * tests/POA/DSI/client.cpp: - * tests/POA/DSI/server.cpp: - * tests/POA/Default_Servant/File_i.cpp: - * tests/POA/Default_Servant/client.cpp: - * tests/POA/Default_Servant/server.cpp: - * tests/POA/Explicit_Activation/server.cpp: - * tests/POA/FindPOA/FindPOA.cpp: - * tests/POA/Forwarding/MyFooServant.cpp: - * tests/POA/Forwarding/Servant_Locator.cpp: - * tests/POA/Forwarding/client.cpp: - * tests/POA/Forwarding/server.cpp: - * tests/POA/Generic_Servant/MyFooServant.cpp: - * tests/POA/Generic_Servant/client.cpp: - * tests/POA/NewPOA/NewPOA.cpp: - * tests/POA/On_Demand_Activation/Servant_Activator.cpp: - * tests/POA/On_Demand_Activation/Servant_Locator.cpp: - * tests/POA/On_Demand_Activation/server.cpp: - * tests/POA/RootPOA/RootPOA.cpp: - * tests/POA/TIE/Foo_i.cpp: - * tests/POA/TIE/client.cpp: - * tests/POA/TIE/server.cpp: - * tests/POA/locking/locking.cpp: - * tests/Param_Test/any.cpp: - * tests/Param_Test/bd_long_seq.cpp: - * tests/Param_Test/bd_short_seq.cpp: - * tests/Param_Test/bd_str_seq.cpp: - * tests/Param_Test/bd_string.cpp: - * tests/Param_Test/bd_struct_seq.cpp: - * tests/Param_Test/client.cpp: - * tests/Param_Test/driver.cpp: - * tests/Param_Test/fixed_array.cpp: - * tests/Param_Test/fixed_struct.cpp: - * tests/Param_Test/helper.cpp: - * tests/Param_Test/nested_struct.cpp: - * tests/Param_Test/objref.cpp: - * tests/Param_Test/options.cpp: - * tests/Param_Test/param_test_i.cpp: - * tests/Param_Test/results.cpp: - * tests/Param_Test/server.cpp: - * tests/Param_Test/short.cpp: - * tests/Param_Test/tmplinst.cpp: - * tests/Param_Test/typecode.cpp: - * tests/Param_Test/ub_any_seq.cpp: - * tests/Param_Test/ub_long_seq.cpp: - * tests/Param_Test/ub_objref_seq.cpp: - * tests/Param_Test/ub_short_seq.cpp: - * tests/Param_Test/ub_str_seq.cpp: - * tests/Param_Test/ub_string.cpp: - * tests/Param_Test/ub_struct_seq.cpp: - * tests/Param_Test/var_array.cpp: - * tests/Param_Test/var_struct.cpp: - * tests/Quoter/Factory_Finder.cpp: - * tests/Quoter/Factory_Finder_Impl.cpp: - * tests/Quoter/Generic_Factory.cpp: - * tests/Quoter/Generic_Factory_Impl.cpp: - * tests/Quoter/Quoter_Impl.cpp: - * tests/Quoter/client.cpp: - * tests/Quoter/server.cpp: - * tests/Simple/client.cpp: - * tests/Simple/client_impl.cpp: - * tests/Simple/server.cpp: - * tests/Simple/server_impl.cpp: - * tests/Simple/simple_object_impl.cpp: - * tests/Thruput/COOL/client.cpp: - * tests/Thruput/COOL/server.cpp: - * tests/Thruput/COOL/ttcp_i.cpp: - * tests/Thruput/COOL/utils.cpp: - * tests/Thruput/CORBAplus/client.cpp: - * tests/Thruput/CORBAplus/server.cpp: - * tests/Thruput/CORBAplus/ttcp_i.cpp: - * tests/Thruput/CORBAplus/utils.cpp: - * tests/Thruput/Orbix/Client.cpp: - * tests/Thruput/Orbix/Srv_Main.cpp: - * tests/Thruput/Orbix/ttcp_i.cpp: - * tests/Thruput/Orbix/utils.cpp: - * tests/Thruput/TAO/client.cpp: - * tests/Thruput/TAO/server.cpp: - * tests/Thruput/TAO/tmplinst.cpp: - * tests/Thruput/TAO/ttcp_i.cpp: - * tests/Thruput/TAO/utils.cpp: - Added ACE_RCSID to these files. - -Mon Aug 3 13:51:27 1998 Gonzalo Diethelm - - * orbsvcs/Makefile: - * orbsvcs/Concurrency_Service/Concurrency_Service.cpp: - * orbsvcs/Dump_Schedule/Dump_Schedule.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - * orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp: - * orbsvcs/LifeCycle_Service/Factory_Trader.cpp: - * orbsvcs/LifeCycle_Service/Life_Cycle_Service.cpp: - * orbsvcs/LifeCycle_Service/Life_Cycle_Service_Impl.cpp: - * orbsvcs/Logging_Service/Logging_Service.cpp: - * orbsvcs/Logging_Service/Logging_Service_i.cpp: - * orbsvcs/Naming_Service/Naming_Service.cpp: - * orbsvcs/Scheduling_Service/Scheduling_Service.cpp: - * orbsvcs/Trading_Service/Trading_Service.cpp: - * orbsvcs/orbsvcs/Channel_Clients.cpp: - * orbsvcs/orbsvcs/Channel_Clients_T.cpp: - * orbsvcs/orbsvcs/Event_Utilities.cpp: - * orbsvcs/orbsvcs/IOR_Multicast.cpp: - * orbsvcs/orbsvcs/Runtime_Scheduler.cpp: - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - * orbsvcs/orbsvcs/Scheduler_Utilities.cpp: - * orbsvcs/orbsvcs/Time_Utilities.cpp: - * orbsvcs/orbsvcs/tmplinst-orbsvcs.cpp: - * orbsvcs/orbsvcs/AV/AVStreams_i.cpp: - * orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp: - * orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp: - * orbsvcs/orbsvcs/Event/BCU.cpp: - * orbsvcs/orbsvcs/Event/CORBA_Utils_T.cpp: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - * orbsvcs/orbsvcs/Event/GPlot_File.cpp: - * orbsvcs/orbsvcs/Event/Local_ESTypes.cpp: - * orbsvcs/orbsvcs/Event/Memory_Pools.cpp: - * orbsvcs/orbsvcs/Event/Module_Factory.cpp: - * orbsvcs/orbsvcs/Event/RT_Task.cpp: - * orbsvcs/orbsvcs/Event/ReactorTask.cpp: - * orbsvcs/orbsvcs/Event/Task_Manager.cpp: - * orbsvcs/orbsvcs/Log/Logger_i.cpp: - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - * orbsvcs/orbsvcs/Naming/Entries.cpp: - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: - * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp: - * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp: - * orbsvcs/orbsvcs/Sched/DynSched.cpp: - * orbsvcs/orbsvcs/Sched/SchedEntry.cpp: - * orbsvcs/orbsvcs/Sched/Scheduler.cpp: - * orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp: - * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Database.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Trader.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - * orbsvcs/orbsvcs/Trader/Trader_T.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp: - * orbsvcs/tests/AVStreams/benchmark/child.cpp: - * orbsvcs/tests/AVStreams/benchmark/client.cpp: - * orbsvcs/tests/AVStreams/benchmark/server.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/client/vcr.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/24bit.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/2x2.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/Command_Handler.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ab.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/audio.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ctr.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/decoders.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/file.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs2fast.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/fs4.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/global.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/gray.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybrid.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/hybriderr.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/info.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/jrevdct.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mb_ordered.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/mono.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/motionvector.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ordered2.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/para.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/parseblock.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/prog.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/ui.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/util32.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vb.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vd.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/video.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_client/vp.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibButton.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibDrawArea.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibFrame.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibLabel.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibList.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibMenu.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibRadioBox.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibScale.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibScrollBar.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibTextBig.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibTextBox.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibToggle.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_State.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Control_i.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Audio_Server.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Globals.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_State.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Control_i.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/Video_Server.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/as.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/las.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/lvs.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_server/vs.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/com.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/fileio.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/filters.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/routine.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/mpeg_shared/sendpt.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/Machine_Properties.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/Property_Exporter.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/as.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/server.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/vcrs.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery.cpp: - * orbsvcs/tests/AVStreams/server_discovery/Trader_Client.cpp: - * orbsvcs/tests/AVStreams/server_discovery/main.cpp: - * orbsvcs/tests/AVStreams/sfp/client.cpp: - * orbsvcs/tests/Concurrency/CC_client.cpp: - * orbsvcs/tests/Concurrency/CC_command.cpp: - * orbsvcs/tests/Concurrency/CC_naming_service.cpp: - * orbsvcs/tests/Concurrency/CC_test_utils.cpp: - * orbsvcs/tests/Concurrency/CC_tests.cpp: - * orbsvcs/tests/Concurrency/NS_client.cpp: - * orbsvcs/tests/Concurrency/tmplinst.cpp: - * orbsvcs/tests/CosPropertyService/client.cpp: - * orbsvcs/tests/CosPropertyService/main.cpp: - * orbsvcs/tests/CosPropertyService/server.cpp: - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Data.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - * orbsvcs/tests/ImplRepo/client.cpp: - * orbsvcs/tests/ImplRepo/client_impl.cpp: - * orbsvcs/tests/ImplRepo/ir_server.cpp: - * orbsvcs/tests/ImplRepo/ir_server_impl.cpp: - * orbsvcs/tests/ImplRepo/ir_simple_object_impl.cpp: - * orbsvcs/tests/ImplRepo/server.cpp: - * orbsvcs/tests/ImplRepo/server_impl.cpp: - * orbsvcs/tests/ImplRepo/simple_object_impl.cpp: - * orbsvcs/tests/Logger/Logging_Test.cpp: - * orbsvcs/tests/Logger/Logging_Test_i.cpp: - * orbsvcs/tests/Logger/client.cpp: - * orbsvcs/tests/Logger/client_i.cpp: - * orbsvcs/tests/Logger/server.cpp: - * orbsvcs/tests/Logger/server_i.cpp: - * orbsvcs/tests/Naming/ns_tree.cpp: - * orbsvcs/tests/Property/client.cpp: - * orbsvcs/tests/Property/main.cpp: - * orbsvcs/tests/Property/server.cpp: - * orbsvcs/tests/Sched/DynSched_Test.cpp: - * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp: - * orbsvcs/tests/Simple_Naming/client.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/AnyAnalyser.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/Node.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/PrintVisitor.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/any_test_i.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/clnt.cpp: - * orbsvcs/tests/Simulator/DOVEMIB/svr.cpp: - * orbsvcs/tests/Simulator/Event_Supplier/DOVE_Supplier.cpp: - * orbsvcs/tests/Simulator/Event_Supplier/Event_Con.cpp: - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.cpp: - * orbsvcs/tests/Trading/Offer_Exporter.cpp: - * orbsvcs/tests/Trading/Offer_Importer.cpp: - * orbsvcs/tests/Trading/Service_Type_Exporter.cpp: - * orbsvcs/tests/Trading/Simple_Dynamic.cpp: - * orbsvcs/tests/Trading/TT_Info.cpp: - * orbsvcs/tests/Trading/colocated_test.cpp: - * orbsvcs/tests/Trading/export_test.cpp: - * orbsvcs/tests/Trading/import_test.cpp: - Added ACE_RCSID to these files. - -Mon Aug 3 12:08:15 1998 Gonzalo Diethelm - - * TAO_IDL/tao_idl.cpp: - * TAO_IDL/ast/ast_argument.cpp: - * TAO_IDL/ast/ast_array.cpp: - * TAO_IDL/ast/ast_attribute.cpp: - * TAO_IDL/ast/ast_check.cpp: - * TAO_IDL/ast/ast_concrete_type.cpp: - * TAO_IDL/ast/ast_constant.cpp: - * TAO_IDL/ast/ast_decl.cpp: - * TAO_IDL/ast/ast_enum.cpp: - * TAO_IDL/ast/ast_enum_val.cpp: - * TAO_IDL/ast/ast_exception.cpp: - * TAO_IDL/ast/ast_expression.cpp: - * TAO_IDL/ast/ast_field.cpp: - * TAO_IDL/ast/ast_generator.cpp: - * TAO_IDL/ast/ast_interface.cpp: - * TAO_IDL/ast/ast_interface_fwd.cpp: - * TAO_IDL/ast/ast_module.cpp: - * TAO_IDL/ast/ast_native.cpp: - * TAO_IDL/ast/ast_operation.cpp: - * TAO_IDL/ast/ast_predefined_type.cpp: - * TAO_IDL/ast/ast_recursive.cpp: - * TAO_IDL/ast/ast_redef.cpp: - * TAO_IDL/ast/ast_root.cpp: - * TAO_IDL/ast/ast_sequence.cpp: - * TAO_IDL/ast/ast_string.cpp: - * TAO_IDL/ast/ast_structure.cpp: - * TAO_IDL/ast/ast_type.cpp: - * TAO_IDL/ast/ast_typedef.cpp: - * TAO_IDL/ast/ast_union.cpp: - * TAO_IDL/ast/ast_union_branch.cpp: - * TAO_IDL/ast/ast_union_label.cpp: - * TAO_IDL/be/be_args.cpp: - * TAO_IDL/be/be_argument.cpp: - * TAO_IDL/be/be_array.cpp: - * TAO_IDL/be/be_attribute.cpp: - * TAO_IDL/be/be_codegen.cpp: - * TAO_IDL/be/be_constant.cpp: - * TAO_IDL/be/be_decl.cpp: - * TAO_IDL/be/be_enum.cpp: - * TAO_IDL/be/be_enum_val.cpp: - * TAO_IDL/be/be_exception.cpp: - * TAO_IDL/be/be_expression.cpp: - * TAO_IDL/be/be_factory.cpp: - * TAO_IDL/be/be_field.cpp: - * TAO_IDL/be/be_generator.cpp: - * TAO_IDL/be/be_helper.cpp: - * TAO_IDL/be/be_init.cpp: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_interface_fwd.cpp: - * TAO_IDL/be/be_interpretive.cpp: - * TAO_IDL/be/be_module.cpp: - * TAO_IDL/be/be_native.cpp: - * TAO_IDL/be/be_operation.cpp: - * TAO_IDL/be/be_predefined_type.cpp: - * TAO_IDL/be/be_produce.cpp: - * TAO_IDL/be/be_root.cpp: - * TAO_IDL/be/be_scope.cpp: - * TAO_IDL/be/be_sequence.cpp: - * TAO_IDL/be/be_state.cpp: - * TAO_IDL/be/be_state_argument.cpp: - * TAO_IDL/be/be_state_array.cpp: - * TAO_IDL/be/be_state_attribute.cpp: - * TAO_IDL/be/be_state_exception.cpp: - * TAO_IDL/be/be_state_operation.cpp: - * TAO_IDL/be/be_state_sequence.cpp: - * TAO_IDL/be/be_state_structure.cpp: - * TAO_IDL/be/be_state_typedef.cpp: - * TAO_IDL/be/be_state_union.cpp: - * TAO_IDL/be/be_string.cpp: - * TAO_IDL/be/be_structure.cpp: - * TAO_IDL/be/be_sunsoft.cpp: - * TAO_IDL/be/be_type.cpp: - * TAO_IDL/be/be_typedef.cpp: - * TAO_IDL/be/be_union.cpp: - * TAO_IDL/be/be_union_branch.cpp: - * TAO_IDL/be/be_union_label.cpp: - * TAO_IDL/be/be_visitor.cpp: - * TAO_IDL/be/be_visitor_argument.cpp: - * TAO_IDL/be/be_visitor_array.cpp: - * TAO_IDL/be/be_visitor_attribute.cpp: - * TAO_IDL/be/be_visitor_constant.cpp: - * TAO_IDL/be/be_visitor_context.cpp: - * TAO_IDL/be/be_visitor_decl.cpp: - * TAO_IDL/be/be_visitor_enum.cpp: - * TAO_IDL/be/be_visitor_exception.cpp: - * TAO_IDL/be/be_visitor_field.cpp: - * TAO_IDL/be/be_visitor_interface.cpp: - * TAO_IDL/be/be_visitor_interface_fwd.cpp: - * TAO_IDL/be/be_visitor_module.cpp: - * TAO_IDL/be/be_visitor_operation.cpp: - * TAO_IDL/be/be_visitor_root.cpp: - * TAO_IDL/be/be_visitor_scope.cpp: - * TAO_IDL/be/be_visitor_sequence.cpp: - * TAO_IDL/be/be_visitor_structure.cpp: - * TAO_IDL/be/be_visitor_typecode.cpp: - * TAO_IDL/be/be_visitor_typedef.cpp: - * TAO_IDL/be/be_visitor_union.cpp: - * TAO_IDL/be/be_visitor_union_branch.cpp: - * TAO_IDL/be/be_visitor_argument/arglist.cpp: - * TAO_IDL/be/be_visitor_argument/argument.cpp: - * TAO_IDL/be/be_visitor_argument/docall_cs.cpp: - * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp: - * TAO_IDL/be/be_visitor_argument/post_docall_cs.cpp: - * TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp: - * TAO_IDL/be/be_visitor_argument/post_upcall_ss.cpp: - * TAO_IDL/be/be_visitor_argument/pre_docall_cs.cpp: - * TAO_IDL/be/be_visitor_argument/pre_upcall_ss.cpp: - * TAO_IDL/be/be_visitor_argument/upcall_ss.cpp: - * TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp: - * TAO_IDL/be/be_visitor_array/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_array/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_array/array.cpp: - * TAO_IDL/be/be_visitor_array/array_ch.cpp: - * TAO_IDL/be/be_visitor_array/array_ci.cpp: - * TAO_IDL/be/be_visitor_array/array_cs.cpp: - * TAO_IDL/be/be_visitor_attribute/attribute.cpp: - * TAO_IDL/be/be_visitor_constant/constant_ch.cpp: - * TAO_IDL/be/be_visitor_constant/constant_cs.cpp: - * TAO_IDL/be/be_visitor_enum/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_enum/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_enum/enum_ch.cpp: - * TAO_IDL/be/be_visitor_enum/enum_cs.cpp: - * TAO_IDL/be/be_visitor_exception/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_exception/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_exception/ctor_assign.cpp: - * TAO_IDL/be/be_visitor_exception/exception.cpp: - * TAO_IDL/be/be_visitor_exception/exception_ch.cpp: - * TAO_IDL/be/be_visitor_exception/exception_ci.cpp: - * TAO_IDL/be/be_visitor_exception/exception_cs.cpp: - * TAO_IDL/be/be_visitor_exception/exception_ctor.cpp: - * TAO_IDL/be/be_visitor_field/field_ch.cpp: - * TAO_IDL/be/be_visitor_field/field_ci.cpp: - * TAO_IDL/be/be_visitor_field/field_cs.cpp: - * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_interface/collocated_sh.cpp: - * TAO_IDL/be/be_visitor_interface/collocated_ss.cpp: - * TAO_IDL/be/be_visitor_interface/interface.cpp: - * TAO_IDL/be/be_visitor_interface/interface_ch.cpp: - * TAO_IDL/be/be_visitor_interface/interface_ci.cpp: - * TAO_IDL/be/be_visitor_interface/interface_cs.cpp: - * TAO_IDL/be/be_visitor_interface/interface_sh.cpp: - * TAO_IDL/be/be_visitor_interface/interface_si.cpp: - * TAO_IDL/be/be_visitor_interface/interface_ss.cpp: - * TAO_IDL/be/be_visitor_interface/tie_sh.cpp: - * TAO_IDL/be/be_visitor_interface/tie_si.cpp: - * TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp: - * TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ci.cpp: - * TAO_IDL/be/be_visitor_module/any_op.cpp: - * TAO_IDL/be/be_visitor_module/module.cpp: - * TAO_IDL/be/be_visitor_module/module_ch.cpp: - * TAO_IDL/be/be_visitor_module/module_sh.cpp: - * TAO_IDL/be/be_visitor_operation/arglist.cpp: - * TAO_IDL/be/be_visitor_operation/argument.cpp: - * TAO_IDL/be/be_visitor_operation/collocated_sh.cpp: - * TAO_IDL/be/be_visitor_operation/collocated_ss.cpp: - * TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp: - * TAO_IDL/be/be_visitor_operation/operation_ch.cpp: - * TAO_IDL/be/be_visitor_operation/operation_cs.cpp: - * TAO_IDL/be/be_visitor_operation/operation_sh.cpp: - * TAO_IDL/be/be_visitor_operation/operation_ss.cpp: - * TAO_IDL/be/be_visitor_operation/rettype.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_docall_cs.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_post_docall_cs.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_pre_docall_cs.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp: - * TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp: - * TAO_IDL/be/be_visitor_operation/tie_sh.cpp: - * TAO_IDL/be/be_visitor_operation/tie_si.cpp: - * TAO_IDL/be/be_visitor_root/any_op.cpp: - * TAO_IDL/be/be_visitor_root/root.cpp: - * TAO_IDL/be/be_visitor_root/root_ch.cpp: - * TAO_IDL/be/be_visitor_root/root_ci.cpp: - * TAO_IDL/be/be_visitor_root/root_cs.cpp: - * TAO_IDL/be/be_visitor_root/root_sh.cpp: - * TAO_IDL/be/be_visitor_root/root_si.cpp: - * TAO_IDL/be/be_visitor_root/root_ss.cpp: - * TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_sequence/buffer_type.cpp: - * TAO_IDL/be/be_visitor_sequence/elemtype.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_base.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_ci.cpp: - * TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp: - * TAO_IDL/be/be_visitor_structure/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_structure/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_structure/structure.cpp: - * TAO_IDL/be/be_visitor_structure/structure_ch.cpp: - * TAO_IDL/be/be_visitor_structure/structure_ci.cpp: - * TAO_IDL/be/be_visitor_structure/structure_cs.cpp: - * TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp: - * TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp: - * TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_typedef/typedef.cpp: - * TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp: - * TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp: - * TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp: - * TAO_IDL/be/be_visitor_union/any_op_ch.cpp: - * TAO_IDL/be/be_visitor_union/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_union/discriminant_ch.cpp: - * TAO_IDL/be/be_visitor_union/discriminant_ci.cpp: - * TAO_IDL/be/be_visitor_union/discriminant_cs.cpp: - * TAO_IDL/be/be_visitor_union/union.cpp: - * TAO_IDL/be/be_visitor_union/union_ch.cpp: - * TAO_IDL/be/be_visitor_union/union_ci.cpp: - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - * TAO_IDL/be/be_visitor_union_branch/private_ch.cpp: - * TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp: - * TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp: - * TAO_IDL/be/be_visitor_union_branch/public_ch.cpp: - * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp: - * TAO_IDL/be/be_visitor_union_branch/public_cs.cpp: - * TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp: - * TAO_IDL/driver/drv_args.cpp: - * TAO_IDL/driver/drv_fork.cpp: - * TAO_IDL/driver/drv_init.cpp: - * TAO_IDL/driver/drv_link.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - * TAO_IDL/driver/drv_private.cpp: - * TAO_IDL/fe/fe_declarator.cpp: - * TAO_IDL/fe/fe_extern.cpp: - * TAO_IDL/fe/fe_init.cpp: - * TAO_IDL/fe/fe_interface_header.cpp: - * TAO_IDL/fe/fe_private.cpp: - * TAO_IDL/narrow/narrow.cpp: - * TAO_IDL/util/utl_decllist.cpp: - * TAO_IDL/util/utl_error.cpp: - * TAO_IDL/util/utl_exceptlist.cpp: - * TAO_IDL/util/utl_exprlist.cpp: - * TAO_IDL/util/utl_global.cpp: - * TAO_IDL/util/utl_identifier.cpp: - * TAO_IDL/util/utl_idlist.cpp: - * TAO_IDL/util/utl_indenter.cpp: - * TAO_IDL/util/utl_labellist.cpp: - * TAO_IDL/util/utl_list.cpp: - * TAO_IDL/util/utl_namelist.cpp: - * TAO_IDL/util/utl_scope.cpp: - * TAO_IDL/util/utl_stack.cpp: - * TAO_IDL/util/utl_string.cpp: - * TAO_IDL/util/utl_strlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_decllist.cpp: - * TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_exprlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_idlist.cpp: - * TAO_IDL/util/utl_tmpl/utl_labellist.cpp: - * TAO_IDL/util/utl_tmpl/utl_list.cpp: - * TAO_IDL/util/utl_tmpl/utl_namelist.cpp: - * TAO_IDL/util/utl_tmpl/utl_strlist.cpp: - Added ACE_RCSID to these files. - -Mon Aug 3 09:27:46 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: - Bounded octet sequences do not have the Message_Block - constructor, but we were generating it. Thanks to John Geiss - for reporting this problem. - -Fri Jul 31 20:34:27 1998 Gonzalo Diethelm - - * tao/Any.cpp: - * tao/CDR.cpp: - * tao/Client_Strategy_Factory.cpp: - * tao/Connect.cpp: - * tao/CurrentC.cpp: - * tao/CurrentS.cpp: - * tao/Exception.cpp: - * tao/Forwarding_Servant.cpp: - * tao/GIOP.cpp: - * tao/IIOP_Interpreter.cpp: - * tao/IIOP_ORB.cpp: - * tao/IIOP_Object.cpp: - * tao/Invocation.cpp: - * tao/Marshal.cpp: - * tao/NVList.cpp: - * tao/ORB.cpp: - * tao/ORB_Core.cpp: - * tao/ORB_Strategies_T.cpp: - * tao/Object.cpp: - * tao/Object_KeyC.cpp: - * tao/Object_Table.cpp: - * tao/Operation_Table.cpp: - * tao/POA.cpp: - * tao/POAC.cpp: - * tao/POAS.cpp: - * tao/PolicyC.cpp: - * tao/PolicyS.cpp: - * tao/Principal.cpp: - * tao/Request.cpp: - * tao/Sequence.cpp: - * tao/Sequence_T.cpp: - * tao/Servant_Base.cpp: - * tao/Server_Request.cpp: - * tao/Server_Strategy_Factory.cpp: - * tao/Stub.cpp: - * tao/TAO.cpp: - * tao/TAO_Internal.cpp: - * tao/Typecode.cpp: - * tao/Typecode_Constants.cpp: - * tao/Union.cpp: - * tao/append.cpp: - * tao/debug.cpp: - * tao/decode.cpp: - * tao/deep_free.cpp: - * tao/default_client.cpp: - * tao/default_server.cpp: - * tao/encode.cpp: - * tao/params.cpp: - * tao/poa_T.cpp: - * tao/skip.cpp: - * tao/t-sizes.cpp: - Added ACE_RCSID to these files. - -Fri Jul 31 15:34:55 1998 Jeff Parsons - - * Param_Test/bd_string.cpp: - * Param_test/ub_string.cpp: - I had been playing around and left the files in a state - where dii wouldn't work - undid my oversight. - -Fri Jul 31 15:10:12 1998 Carlos O'Ryan - - * tao/Any.h: - * tao/Any.cpp: - * tao/decode.cpp: - When decoding Any's the ORB was not releasing the memory already - held by the Any. - -Fri Jul 31 13:51:46 1998 Seth Benjamin Widoff - - * orbsvcs/tests/AVStreams/mpeg/source/server/Machine_Properties.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/Property_Exporter.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.h: - * orbsvcs/tests/AVStreams/mpeg/source/server/Video_Repository.idl: - * orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.cpp: - * orbsvcs/tests/AVStreams/mpeg/source/server/augmented_server.h: - Added comments and made other cosmetic changes. - - * orbsvcs/tests/AVStreams/server_discovery/Makefile: - * orbsvcs/tests/AVStreams/server_discovery/Queue.java: - * orbsvcs/tests/AVStreams/server_discovery/README: - * orbsvcs/tests/AVStreams/server_discovery/Server_0005fDiscovery_0005fUtil.h: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery.cpp: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery.java: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Browser.java: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Perf.java: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Selection.java: - * orbsvcs/tests/AVStreams/server_discovery/Server_Discovery_Util.java: - * orbsvcs/tests/AVStreams/server_discovery/Strip_Chart.java: - * orbsvcs/tests/AVStreams/server_discovery/Trader_Client.cpp: - * orbsvcs/tests/AVStreams/server_discovery/Trader_Client.h: - * orbsvcs/tests/AVStreams/server_discovery/main.cpp: - This is the A/V Demo on the client side. The README file in this - directory details its design and current status, and includes a - description of the work that remains. - -Fri Jul 31 14:06:22 1998 Jeff Parsons - - * tao_idl/be/be_visitor_argument/post_upcal_ss.cpp: - added an action to visit_predefined_type for the - PT_pseudo case (OUT arg) that fixes the typecode - sii param test. - -Fri Jul 31 07:58:36 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_union_branch/{public_ci, - public_assign_cs}.cpp: The code for string members was using an - incorrect, undefined type for a _var variable. We now use - CORBA::String_var instead. Thanks to Kirk Ellett - for reporting this problem. - - * doc/releasenotes/index.html: Updated to indicate that anonymous - arrays are suppored inside structs but not inside unions. - -Thu Jul 30 17:05:09 1998 Douglas C. Schmidt - - * TAO version 0.2.1 released. - -Thu Jul 30 16:40:10 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Multiple/run_test.pl: - * orbsvcs/tests/EC_Throughput/run_test.pl: - * orbsvcs/tests/Event_Latency/run_test.pl: - * orbsvcs/tests/Simple_Naming/run_test.pl: - * tests/Cubit/TAO/DII_Cubit/run_test.pl: - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: - * tests/Cubit/TAO/MT_Cubit/run_test.pl: - * tests/NestedUpcall/MT_Client_Test/run_test.pl: - * tests/NestedUpcall/Triangle_Test/run_test.pl: - * tests/Param_Test/run_test.pl: - * tests/Quoter/run_test.pl: - * tests/Simple/run_test.pl: - Removed the last calls to system("del") and minor cosmetic - fixes. - -Thu Jul 30 15:38:52 1998 Matthew J Braun - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp - * orbsvcs/orbsvcs/Naming/CosNaming_i.cpp: - * orbsvcs/orbsvcs/IOR_Multicast.cpp: - * tao/ORB.cpp - Made some debugging messages dependent on - TAO_debug_level. - -Thu Jul 30 13:46:38 1998 Carlos O'Ryan - - * orbsvcs/tests/Concurrency/Makefile: - The CC_command.tab.{h,cpp} and lex.CC_command.cpp files are - distributed in the TAO release, there is no need for the users - to generate them. We do include targets to warn of potentially - outdated files, but this is only for our own purposes. - - * orbsvcs/tests/Concurrency/CC_command.y: - * orbsvcs/tests/Concurrency/CC_command.tab.h: - * orbsvcs/tests/Concurrency/CC_command.tab.cpp: - * orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff: - Generated using a modified version of yacc, that produces more - portable code. - -Thu Jul 30 13:07:00 1998 Matthew J Braun - - * orbsvcs/Makefile: - * orbsvcs/Logging_Service/Makefile: New file. Makefile for the - Logging service. - - * orbsvcs/Logging_Service/Logging_Service_i.{h,cpp}: New files, - renamed from tests/Logger/server_i.{h,cpp}. Migrated from a test - to a service. Added ability to name the factory from the command - line. - - * orbsvcs/tests/Logger/Makefile: Eliminated server - compilation. Changed client name to Logging_Test - - * orbsvcs/tests/Logger/Logging_Test_i.cpp: New file, renamed from - tests/Logger/client_i.cpp. Altered includes to reflect transition - of server from test server to actual service. - - * orbsvcs/tests/Logger/Logging_Test_i.h: New file, renamed from - tests/Logger/client_i.h. Added multiple include protection. - - * orbsvcs/tests/Logger/Logging_Test.cpp: New file, renamed from - tests/Logger/server.cpp. Removed some debugging code. - - * orbsvcs/tests/Logger/Logging_Test.cpp: New file, renamed from - tests/Logger/client.cpp. Edited to reflect changed filenames. - - -Thu Jul 30 00:39:10 1998 Douglas C. Schmidt - - * orbsvcs/tests/Concurrency/{CC_command.tab,lex.CC_command}.cpp.diff: - Updated these files to prevent complains from lex and yacc. - Thanks to J. Russell Noseworthy - for reporting this fix. - -Wed Jul 29 18:46:46 1998 Douglas C. Schmidt - - * orbsvcs/tests/Concurrency: Touched the lex and yacc files so - that Make won't try to remake their *.cpp files. This is just a - temporary fix until we get this working correctly. Thanks to - J. Russell Noseworthy for - reporting this and to Carlos for suggesting the fix. - -Wed Jul 29 18:46:46 1998 Douglas C. Schmidt - - * TAO version 0.2 released. - -Wed Jul 29 13:55:20 1998 Irfan Pyarali - - * tao/Connect.cpp: Fixed indentation. - - * tao/TAO_Internal.cpp (close_services): service_open_count_ - should be reduced by one. - -Wed Jul 29 12:32:48 1998 Carlos O'Ryan - - * tests/Param_Test/run_test.pl: - * tests/NestedUpcall/Triangle_Test/run_test.pl: - * tests/NestedUpcall/MT_Client_Test/run_test.pl: - * tests/Simple/run_test.pl: - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: - * tests/Cubit/TAO/DII_Cubit/run_test.pl: - Use unlink instead of system("rm") or system("del"). - - * tests/Cubit/TAO/Makefile: - * tests/Cubit/TAO/DII_Cubit/Makefile: - Added DII_Cubit to the default compilation. - - * tests/Cubit/TAO/MT_Cubit/run_test.pl: - Added a one-button test. - - * tests/NestedUpcall/MT_Client_Test/client.h: - * tests/NestedUpcall/MT_Client_Test/client.cpp: - Instead of using the thread id to decide which server we use - each client thread is assigned a number, even threads choose the - first server, odd threads the second one. The thread id - approach was non-portable. - - * tests/POA/RootPOA/README: - * tests/POA/FindPOA/README: - * tests/POA/NewPOA/README: - Updated this files, the tests don't print warning messages about - the svc.conf file anymore (actually the ORB doesn't). - -Wed Jul 29 08:58:01 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_field/{field_ci, field_cs}.cpp: Added code - to handle arrays. I had forgotten to invoke the code generator for - arrays that are struct members. I had only handled the header file - but not the inline file and the implementation file. The visitor - that does this was already done, but it was not getting - invoked. Thanks to Andreas Geisler - for reporting this problem. - -Wed Jul 29 06:45:54 1998 David L. Levine - - * tests/NestedUpcall/MT_Client_Test/ local_server.cpp (MT_Server): - reordered initializers to match declaration order. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: allow up to 1024 each - consumers and suppliers. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp (main): dynamically - allocate the Test_ECG instance so that a large stack space isn't - required. - - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime_Dynamic.h, - run_dynamic,gen_dynamic,dyn_plot: added 1000 low-priority - consumers. Used these versions for DASC-98 paper. - -Tue Jul 28 23:01:21 1998 Darrell Brunsch - - * orbsvcs/tests/Logger/runtests.pl: Removed this since it has been - replaced. - - * orbsvcs/tests/Logger/run_test.pl: Cleaned this script up by - removing the code that wasn't needed. - -Tue Jul 28 16:54:00 1998 Jeff Parsons - - * TAO/tests/Param_Test/bd_struct_seq.cpp: Sequence length - initialization didn't work, so zero-length sequence always - returned "correct" results in sii call. Fixed it so the - sequence length is actually initialized, gets correct results - in sii test, correct with dii as well, but request crashes on - release, same as for var_struct. Still looking into that. - -Tue Jul 28 16:43:22 1998 Carlos O'Ryan - - * orbsvcs/tests/Event_Latency/run_test.pl: - * orbsvcs/tests/EC_Multiple/run_test.pl: - * orbsvcs/tests/EC_Throughput/run_test.pl: - * orbsvcs/tests/Simple_Naming/run_test.pl: - Added and updated the one-button tests for this directories. - - * tests/Param_Test/bd_string.cpp: - The name of the test was wrong. - -Tue Jul 28 16:25:11 1998 Jeff Parsons - - * tao/Sequence_T.i : Reversed the order of 2 args in - the base class call of one of the - constructors for TAO_Bounded_Sequence and added a line to - this and to the default constructor for TAO_Bounded_Sequence - to allocate the buffer to MAX size upon instantiation. - - * tao_idl/be/be_visitor/gen_bounded_sequence_ch.cpp: - * tao_idl/be/be_visitor/gen_bounded_str_sequence_ch.cpp: - * tao_idl/be/be_visitor/gen_bounded_obj_sequence_ch.cpp: - Made the changes corresponding to the changes above in - Sequence_T.i. - -Tue Jul 28 16:22:28 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime_Dynamic.h: - removed ACE_Scheduler_Factory::use_runtime () call, so that - this header can be included by EC_Multiple.cpp even for - local (config) runs. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: added - ACE_Scheduler_Factory::use_runtime () calls, when in - runtime mode only. Also, added printouts just before - registering each supplier and consumer, to help debugging. - - * tests/NestedUpcall/MT_Client_Test/client.cpp (init): use of - ACE_thread_t as an unsigned long requires a reinterpret_cast. - -Tue Jul 28 15:07:32 1998 Nagarajan Surendran - - * tests/Cubit/Hardpack/IDL_Cubit/cubit.idl: - Added cube_oneway and cube_void operations. - * tests/Cubit/Hardpack/IDL_Cubit/cubit_impl.{h,cpp}: - * tests/Cubit/Hardpack/IDL_Cubit/client_i.{h,cpp}: - Added implementation code for cube_oneway and cube_void. - -Tue Jul 28 13:49:01 1998 Carlos O'Ryan - - * tests/NestedUpcall/Makefile: - Added MT_Client_Test. - - * tests/NestedUpcall/MT_Client_Test/Makefile: - Updated dependencies. - -Tue Jul 28 11:09:35 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp : - Removed unnecessary commented code. - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp: - Added argument processing code for option "-r" which - enables the thread-per-rate test. - * tests/Cubit/TAO/MT_Cubit/client.cpp: - Added code so that the main thread waits on a condition - variable after activating the CB_20_HZ_CONSUMER thread so - that it finishes the argument processing. - -Tue Jul 28 10:17:18 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/Scheduler_Runtime_Dynamic.h: - removed static storage class qualifier from declaration of - scheduler_factory_setup. It's the right thing to do, but - with it, DEC cxx complains about an unused variable. - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp (footer): removed - "static" storage class qualifier so that it's not inserted - into generated code. - -Tue Jul 28 10:08:33 1998 Seth Benjamin Widoff - - * orbsvcs/LifeCycle_service/Factory_Trader.cpp: - Addressed one cxx and one g++ error. - -Mon Jul 27 15:23:33 1998 Irfan Pyarali - - * tao/ORB.cpp (open): Changed the open_called_ flag from an atomic - op to a normal int. Also added the open_lock_ mutex to protect - the entire open routine. Now we do a double check instead of - checking the simply check the open_called_ atomic op. - - (create_stub_object): Added a new method to the ORB that makes - sure that the open routine has been called before creating any - stubs. - - * tao/ORB_Core.cpp (init): There is no need to call ORB::open if - the port is 0. It will automagically be called when the first - stub is created. - - * tao/Servant_Base.cpp (_create_stub): Made sure to call the new - ORB method when creating stubs. - - * tao/orbconf.h (TAO_DEFAULT_SERVER_PORT): Changed the default - port to 0. - - * tests/NestedUpcall/Reactor/client.cpp (run): - * tests/NestedUpcall/MT_Client_Test/local_server.cpp (run_ORB_briefly): - * tests/NestedUpcall/Triangle_Test/initiator.cpp (run): - - No need to call orb->run (ACE_Time_Value::zero) - -Mon Jul 27 17:30:53 1998 Darrell Brunsch - - * orbsvcs/LifeCycle_Service/Factory_Trader.{h,cpp}: Enabled all - the functionality by default since the Trading Service is now - in good shape. - - * tests/Quoter/client.cpp: - * tests/Quoter/Generic_Factory.cpp: - * tests/Quoter/run_test.pl: - Enabled all the LifeCycle functionality and all looks good on - NT. - - * TAO_IDL/tao_idl.dsp: Release version now has debug information - in a separate file (or else it doesn't work at all), and the - Release version of the compiler is placed in the Release - subdirectory. This will most likely be teh format we will use - for executables: the debug version in .\ and the release in - .\Release\ (both with the same name). - -Mon Jul 27 16:59:14 1998 Matthew J Braun - - * orbsvcs/orbsvcs/Naming/Naming_Utils.{h,cpp}: Added minor - formating changes - * orbsvcs/tests/Logger/README: Added minor formatting changes - * orbsvcs/tests/Logger/client.cpp: Added minor formatting changes - * orbsvcs/tests/Logger/server.cpp: Added minor formatting changes - * orbscvs/tests/Logger/client_i.{h,cpp}: Added minor formatting - changes - * orbsvcs/tests/Logger/server_i.{h,cpp}: Added minor formatting - changes - * orbsvcs/tests/Logger/run_test.pl: Fixed a small error where - script tried to kill a non-existant process. - -Mon Jul 27 17:15:25 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/dyn_plot: added this perl script, - which was used to generate plots for the DASC '98 paper. - -Mon Jul 27 17:11:07 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Trader_T.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_Visitor.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp: - Fixed compiler errors with g++ 2.7.2. Thanks to good ol' Sergio - for pointing this out. - -Mon Jul 27 16:55:18 1998 Carlos O'Ryan - - * tests/NestedUpcall/MT_Client_Test/run_test.pl: - * tests/NestedUpcall/Reactor/run_test.pl: - * tests/NestedUpcall/Triangle_Test/run_test.pl: - * tests/Simple/run_test.pl: - * tests/Cubit/TAO/DII_Cubit/run_test.pl: - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: - Capture the client status and return it, also wait (or kill) the - server before exit. - - * tests/Param_Test/results.h: - * tests/Param_Test/results.cpp: - * tests/Param_Test/client.cpp: - Print the test name *before* attempting to run it, so the output - is visible even on a crash. Also print an easy to grep message - on test failure. - - * tests/Param_Test/run_test.pl: - By default use ORBport 0 and run the tests 5 times (just for - luck). - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - Made the push() methods on the Supplier_Module and the - Consumer_Module virtual, so users can provide their own. - -Mon Jul 27 1:26:44 1998 Jeff Parsons - - * TAO/tests/Param_Test/var_struct{.h,.cpp}: Committed my - changes so far so others can check it out. DII version - doesn't work yet. - -Mon Jul 27 12:44:12 1998 Nanbor Wang - - * tao/Invocation.cpp (start): Modified the code in - TAO_ARL_USES_SAME_CONNECTOR_PORT so the connector always binds - to the host IP address specified in the ORB Core. Thanks to - Fred Kuhns for pointing this out. - -Sun Jul 26 21:01:09 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp: - * tests/Cubit/TAO/MT_Cubit/client.cpp: - Added preliminary argument processing code so - that we can allocate memory for data structures for the - number of threads specified on the command line. - -Sun Jul 26 16:58:54 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp : Fixed the argument - processing of low priority servants. - -Sun Jul 26 16:02:00 1998 Michael Kircher - - * tao/ORB_Core.cpp: Removed a line in unset_leader_wake_up_follower - which did not belong there any more. - -Sun Jul 26 13:50:20 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/Concurrency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * orbsvcs/tests/Trading/Makefile: - * tests/NestedUpcall/Reactor/Makefile: - * tests/NestedUpcall/Triangle_Test/Makefile: - * tests/POA/Default_Servant/Makefile: - * tests/POA/Generic_Servant/Makefile: - The realclean target was not removing all the files. - -Sun Jul 26 10:11:07 1998 Carlos O'Ryan - - * orbsvcs/Trading_Service/Trading_Service.cpp: - * orbsvcs/tests/Trading/colocated_test.cpp: - MSVC++ and std::auto_ptr don't like implicit conversions from - the pointer type to the auto_ptr, this is (I believe) the - standard behavior. - - * orbsvcs/tests/Logger/server.dsp: - * orbsvcs/tests/Logger/client.dsp: - Added missing files to the project. - -Sun Jul 26 09:17:58 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: increased - MAX_CONSUMERS and MAX_SUPPLIERS to 100. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: 1) added support - for dynamic scheduling test (ECM3). 2) In config runs, dump - the schedule before shutting the test down. An exception is - usually thrown when shutting the test down, for all but the - first EC. This change allows the schedule to still be dumped. - - * orbsvcs/tests/EC_Multiple/{Scheduler_Runtime_Dynamic.h, - run_dynamic,gen_dynamic}: added support for dynamic - scheduling test. Currently, it requires that TAO - be build with the CCFLAGS: -DTAO_USES_STRATEGY_SCHEDULER - -DTAO_USES_MUF_SCHEDULING -DTAO_MIN_CRITICAL_PRIORITY=0. - - * orbsvcs/tests/EC_Multiple/run_{latency,overhead,schedule, - throughput,utilization}: use ORBport 0 instead of hard-coded port. - For NameService, use $NameServicePort if it is defined in the - user's environment. - -Sat Jul 25 15:21:45 1998 Carlos O'Ryan - - * TAO_IDL/fe/idl.ll: - * TAO_IDL/fe/lex.yy.cpp: - The condition for imported vs. main file changed after the - addition of the #line directive. - -Sat Jul 25 14:15:46 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/Scheduler.cpp: removed - ACE_{Read,Write)_Guard template instantiations - because they're in libTAO. - -Sat Jul 25 13:56:45 1998 Carlos O'Ryan - - * TAO_IDL/driver/drv_preproc.cpp: - Generate a #line directive which is accepted by more compilers. - -Fri Jul 24 21:44:09 1998 Carlos O'Ryan - - * tao/Exception.i: - * tao/Exception.cpp: - ExceptionList was not releasing the TypeCodes in its destructor, - this produced a memory leak at shutdown, because there is a list - with the standard exceptions typecodes. - A similar problem ocurred with the CORBA::_tc_* exceptions. - NOTE: Purify-4.0.1 on Solaris 2.5 gets confused by these fixes - and reports bogus FNH and memory leak problems. The bug is - triggered by an interaction with TAO's use of the Service - Configurator to dynamically load libTAO, apparently when using - Purify the library static constructors are called two times; the - problem does not ocurr when *not* using purify or when not - loading the library. To test the latter just run a TAO test - (like $TAO_ROOT/tests/Param_Test) with and without the option - "-ORBsvcconf /dev/null". Verifying the purify confusion - requires more work, try stopping in one of the static - constructors (like TypeCodes), then set a breakpoint for the - same constructor at the same address and continue the program, - when TAO loads the library you will see the constructor executed - again; this will *not* happen when running without purify. - - * tao/Object_Table.h: - * tao/Object_Table.cpp: - Removed static object, now it is a member of the class. - - * tao/Typecode.cpp: - Removed outdated comments. - - * tests/Param_Test/svc.conf: - Removed obsolete comments, the web page describes the options in - more detail. - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Fixed delete of (void*). Thanks to John Mulhern - <9107@mn3.lawson.lawson.com> for reporting this. - - * tests/Param_Test/any.cpp: - Fixed ambiguous call to >>= also reported by John Mulhern - - * orbsvcs/orbsvcs/Makefile: - The maintaince of the .PRECIOUS directives for IDL generated - files was becoming a nightmare, it is automated now. - Some IDL files include others, we need to add an explicit - dependency in those cases. - - * TAO_IDL/driver/drv_preproc.cpp: - Added a #lineno "filename" directive to the temporary files, so - the IDL compiler can generate better error messages. - -Fri Jul 24 17:00:09 1998 David L. Levine - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp (open_queue): - set period of dispatch queue to its period, rather than 0, - so that the scheduler will handle it properly. - -Fri Jul 24 16:15:08 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Offer_Database.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.h: - Fixed template trait problems with HP/UX 11. Thanks to - John Mulhern <9107@mn3.lawson.lawson.com> for reporting this. - -Fri Jul 24 15:16:28 1998 Douglas C. Schmidt - - * orbsvcs/tests/Concurrency/CC_command.tab.cpp, - orbsvcs/tests/Concurrency/CC_command.tab.y: Fixed a couple of - minor inconsistencies that showed up on HP/UX 11. Thanks to - John Mulhern <9107@mn3.lawson.lawson.com> for reporting this. - -Fri Jul 24 09:56:27 1998 Carlos O'Ryan - - * tests/Simple/client_impl.cpp: - On UNIX you close() the handle, not the file name. - - * tests/Makefile: - * tests/Simple/Makefile: - Added $TAO_ROOT/tests/Simple to the compilation. - -Fri Jul 24 01:40:53 1998 Carlos O'Ryan - - * tao/CDR.cpp: - The check for memory ownership of the Message_Block was - inverted, thanks to Dave Meyer for - catching this one. - - * release.chk: - Updated the file to include the new platforms, the new tests in - Param_Test and to remove the old info (that is probably - outdated) - -Thu Jul 23 23:15:33 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/server.cpp (start_servants): - fixed some signed/unsigned comparisons. (main): removed - unused local "temp_ptr". - -Thu Jul 23 19:59:31 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.cpp: Added code so that -ORB - arguments are passed to the low priority thread as well. Also now - the high priority threads checks the -p and -h arguments before - ORB_init so that it uses the port specified on the command line. - -Thu Jul 23 16:54:59 1998 Carlos O'Ryan - - * tao/Server_Request.cpp: - Care must be exercised when transferring the exception from the - Environment to the Any (in set_exception()): both believe that - they own the Exception so the refcnt() must be increased. - - * tao/Any.cpp: - The Any owns the top-level memory for the objects it contains, - we delete it now. - - * tao/Typecode.h: - * tao/Typecode.cpp: - Fixed memory leaks in the private_member_name_list and in - Typecodes created on the stack (not owned by the ORB, yes there - are some). - - * orbsvcs/Trading_Service/Makefile: - * orbsvcs/tests/Trading/Makefile: - Updated dependencies. - -Thu Jul 23 13:06:10 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_union/union_cs.cpp: - Removed excesive unindentation, the generated code was - unreadable, but correct, it just happens that I have to debug it - every so often. - - * TAO_IDL/be/be_helper.cpp: - Never accept negative indentation values. - -Thu Jul 23 12:18:04 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/server.cpp: added - ACE_Singleton template instantiation. - -Wed Jul 22 19:18:03 1998 Irfan Pyarali - - * tao/ORB_Core.cpp (inherit_from_parent_thread): Added the - inheritance of the Acceptor, Reactor, and the Connector to the - newly created thread. - -Wed Jul 22 17:33:36 1998 Carlos O'Ryan - - * tao/compat/initguid.h: - * tao/compat/objbase.h: - This files are not used anymore, in fact, I thought I had - removed them already. - -Wed Jul 22 16:37:56 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: Added a new Globals - class which is used as a singleton by the various threads for - accessing the global parameters. Also added code so that the - server accepts -ORB arguments on the command line. - -Wed Jul 22 16:26:34 1998 Carlos O'Ryan - - * tao/Makefile: - * tao/Marshal.h: - * tao/Marshal.i: - * tao/deep_copy.cpp: - The deep_copy methods are not used any more, Anys using - marshalling instead. - - * tao/ORB.h: - * tao/NVList.h: - * tao/NVList.i: - * tao/Request.h: - * tao/Request.i: - Added T_var and T_out classes for NVList, NamedValue and - Request. - - * tao/Object.i: - * tao/Object.cpp: - All the Object_out and Object_var methods are defined as inline - methods. - - * tests/Param_Test/client.cpp: - Use the new CORBA::Request_var class. - - * tests/Param_Test/any.cpp: - * tests/Param_Test/any.h: - * tests/Param_Test/bd_long_seq.cpp: - * tests/Param_Test/bd_long_seq.h: - * tests/Param_Test/bd_short_seq.cpp: - * tests/Param_Test/bd_short_seq.h: - * tests/Param_Test/bd_str_seq.cpp: - * tests/Param_Test/bd_str_seq.h: - * tests/Param_Test/bd_string.cpp: - * tests/Param_Test/bd_string.h: - * tests/Param_Test/bd_struct_seq.cpp: - * tests/Param_Test/bd_struct_seq.h: - * tests/Param_Test/fixed_array.cpp: - * tests/Param_Test/fixed_array.h: - * tests/Param_Test/fixed_struct.cpp: - * tests/Param_Test/fixed_struct.h: - * tests/Param_Test/nested_struct.cpp: - * tests/Param_Test/nested_struct.h: - * tests/Param_Test/objref.cpp: - * tests/Param_Test/objref.h: - * tests/Param_Test/short.cpp: - * tests/Param_Test/short.h: - * tests/Param_Test/typecode.cpp: - * tests/Param_Test/typecode.h: - * tests/Param_Test/ub_any_seq.cpp: - * tests/Param_Test/ub_any_seq.h: - * tests/Param_Test/ub_long_seq.cpp: - * tests/Param_Test/ub_long_seq.h: - * tests/Param_Test/ub_objref_seq.cpp: - * tests/Param_Test/ub_objref_seq.h: - * tests/Param_Test/ub_short_seq.cpp: - * tests/Param_Test/ub_short_seq.h: - * tests/Param_Test/ub_str_seq.cpp: - * tests/Param_Test/ub_str_seq.h: - * tests/Param_Test/ub_string.cpp: - * tests/Param_Test/ub_string.h: - * tests/Param_Test/ub_struct_seq.cpp: - * tests/Param_Test/ub_struct_seq.h: - * tests/Param_Test/var_array.cpp: - * tests/Param_Test/var_array.h: - * tests/Param_Test/var_struct.cpp: - * tests/Param_Test/var_struct.h: - The add_args() method receives NVList_ptr parameters instead of - NVList_ptr& otherwise it is too hard to use a NVList_var. - -Wed Jul 22 15:58:11 1998 David L. Levine - - * TAO version 0.1.41 released. - -Wed Jul 22 15:00:00 1998 Matthew J Braun - - * orbsvcs/tests/Logger/client_i.cpp: Did a little cleaning up, - that's all. - - * orbsvcs/orbsvcs/Log/Logger_i.cpp: Adjusted the - method to work properly. - - -Wed Jul 22 14:16:53 1998 Matthew J Braun - - * Makefile: Removed the reference to "client.h" which was - confusing the compiler and causing all sorts of mayhem (since - client.h has been removed). Huzzah. - -Wed Jul 22 14:12:34 1998 Jeff Parsons - - * TAO/tests/Cubit/TAO/DII_Cubit/client.cpp - Changed ACE_OS::strdup () in constructor initializations to - CORBA::string_dup () and added corresponding CORBA::string_free () - in destructor. - -Wed Jul 22 13:43:15 1998 Jeff Parsons - - * TAO/tests/Param_Test/options.{h,cpp}: - fixed -f option in parse_args so a #define MAX_BUFFER_LENGTH - is no longer needed. Added private member function read_ior - which uses ACE_Read_Buffer. - -Wed Jul 22 12:41:22 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Database.h: - * orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - * orbsvcs/orbsvcs/Trader/Trader_T.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Utils.{h,cpp}: - Used CORBA::is_nil consistently. Fixed purify warning. - -Wed Jul 22 11:55:35 1998 Carlos O'Ryan - - * tao/Any.cpp: - Removed uses == operator for TypeCode_var and TypeCode_ptr, - NT does not like this (it is ambigous) and the semantics are - also broken, we use TypeCode::equal() instead; thanks to Darrell - Brunsch for reporting this. - - * tao/Server_Request.cpp: - * tao/NVList.cpp: - We were passing a TypeCode_var without calling .in() first, - thansk to Seth B. Widoff for catching up this one. - -Wed Jul 22 11:18:51 1998 Matthew J Braun - - * Makefile: Updated the Makefile to include the server_i and - client_i. This should fix failing compiles. I should have done - this in my previous commit. Gomen ^_^ - -Wed Jul 22 11:15:07 1998 David L. Levine - - * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp (compute_scheduling): - dereference infos (with ptr ()) before comparing it with 0. - No more visits from Mr. SIGSEGV. - -Wed Jul 22 11:09:55 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface/interface_si.cpp: - The in_multiple_inheritance() method was generated for the wrong - class. - -Wed Jul 22 10:07:17 1998 Carlos O'Ryan - - * tao/Any.cpp: - * tao/CurrentC.cpp: - * tao/IIOP_Object.cpp: - * tao/NVList.cpp: - * tao/POAC.cpp: - * tao/Server_Request.cpp: - * tao/append.cpp: - * tao/decode.cpp: - * tao/deep_copy.cpp: - * tao/deep_free.cpp: - * tao/encode.cpp: - * tao/skip.cpp: - Callers to Any::type should be careful to release the - TypeCode_ptr it returns. - - * TAO_IDL/be/be_visitor_union/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_exception/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_enum/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_array/any_op_cs.cpp: - * TAO_IDL/be/be_visitor_structure/any_op_cs.cpp: - The >>= was using Any::type() but not realeasing the memory that - method returns. We stick the result into a _var. I also added - a small optimization: for some types the >>= operator uses - replace() to change the contents of the Any (thus minimizing - future memory allocation and demarshalling), but it reused the - Any typecode, usually obtained from the wire; now we use the - global Typecode, in an attempt to free memory ASAP inside the - ORB. - - * docs/Options.html: - The info about the -ORBpoalock default value was wrong. - -Wed Jul 22 08:56:34 1998 Aniruddha Gokhale - - * TAO_IDL/be_include/be_interface.h - TAO_IDL/be/be_interface.cpp: - - Added a data member (called in_mult_inheritance_) and - corresponding set/get methods for determining if an - interface node is involved in some form of multiple inheritance - either directly or indirectly thru its ancestors. We make use of - the template method "traverse_inheritance_graph" by passing a new - helper method called "in_mult_inheritance_helper". - - * TAO_IDL/be_visitor_interface/{interface_sh, interface_si}.cpp: - Added code to generate the inline method on the skeleton class - that indicates if we are directly or indirectly involved in some - form of multiple inheritance. - -Wed Jul 22 00:29:32 1998 Carlos O'Ryan - - * tao/Invocation.cpp: - Fixed problem in TIMEPROBE initialization. - -Tue Jul 21 22:05:15 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/ Task_Client.cpp: added - ACE_Condition template instantiation. - -Tue Jul 21 21:12:31 1998 Matthew J Braun - - * orbsvcs/orbsvcs/Log/Logger_i.{h,cpp}:Added 2 new methods to get and - set the verbosity level - - * orbsvcs/orbsvcs/Logger.idl: Enabled the verbosity method - - * orbsvcs/tests/Logger/run_test.pl: Renamed from - runtests.pl. Removed nameservice code - - * orbsvcs/tests/Logger/README: Edited to provide more detail - - * orbsvcs/tests/Logger/client_i.{h,cpp}: New files. Interface and - implementation of the class - - * orbsvcs/tests/Logger/server_i.{h,cpp}: New files. Interface and - implementation of the class. - - * orbsvcs/tests/Logger/client.cpp: Restructured the code. Moved - most of the work onto the class defined in - client_i.h. main () is now rather stripped down - - * orbsvcs/tests/Logger/server.cpp: Restructured the code. Moved - most of the work onto the class defined in - server_i.h. main () is now rather stripped down. - -Tue Jul 21 17:29:15 1998 Darrell Brunsch - - * orbsvcs/orbsvcs/orbsvcs_lib.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsw - Removed orbsvcs_lib since it isn't needed anymore and it is - very out-of-date. - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsp: - tests/Cubit/TAO/IDL_Cubit/IDL_Cubit.dsw: - The perl script run_tests.pl replaces the executable. - - * TAOACE.dsw: - Added Naming Service to the list, since it is used by many - tests (and I was forgetting to rebuild it all the time). - - * tests/Simple/run_test.pl: - * tests/Quoter/run_test.pl: - * tests/Cubit/TAO/IDL_Cubit/run_test.pl: - Uses common Uniqueid now. - - * tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw: - The included project was renamed. - - * tests/TAO_Tests.dsw: - New Workspace that includes all the project files for TAO tests. - - * orbsvcs/orbsvcs.dsw: - Moved some tests out and some servers in. - - * TAO_IDL/tao_idl.dsp - * orbsvcs/Concurrency_Service/Concurrency_Service.dsp: - * orbsvcs/Dump_Schedule/Dump_Schedule.dsp: - * orbsvcs/Event_Service/Event_Service.dsp: - * orbsvcs/LifeCycle_Service/LifeCycle_Service.dsp: - * orbsvcs/Naming_Service/Naming_Service.dsp: - * orbsvcs/Scheduling_Service/Scheduling_Service.dsp: - * orbsvcs/Trading_Service/Trading_Service.dsp: - * orbsvcs/orbsvcs/orbsvcs.dsp: - * orbsvcs/tests/Concurrency/CC_client.dsp: - * orbsvcs/tests/EC_Mcast/EC_Mcast.dsp: - * orbsvcs/tests/EC_Multiple/EC_Multiple.dsp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.dsp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.dsp: - * orbsvcs/tests/Event_Latency/Event_Latency.dsp: - * orbsvcs/tests/Logger/client.dsp: - * orbsvcs/tests/Logger/server.dsp: - * orbsvcs/tests/Sched_Conf/Sched_Conf.dsp: - * orbsvcs/tests/Simple_Naming/client.dsp: - * orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.dsp: - * orbsvcs/tests/Simulator/DOVEMIB/DOVEMIBx.dsp: - * orbsvcs/tests/Simulator/DOVEMIB/TestClient.dsp: - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.dsp: - * orbsvcs/tests/Trading/Colocated_Test.dsp: - * orbsvcs/tests/Trading/Export_Test.dsp: - * orbsvcs/tests/Trading/Import_Test.dsp: - * orbsvcs/tests/Trading/TradingLib.dsp: - * tao/TAO.dsp: - * tests/CDR/basic_types.dsp: - * tests/CDR/growth.dsp: - * tests/CDR/tc.dsp: - * tests/Cubit/TAO/DII_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/client.dsp: - * tests/Cubit/TAO/IDL_Cubit/collocation_test.dsp: - * tests/Cubit/TAO/IDL_Cubit/server.dsp: - * tests/Cubit/TAO/MT_Cubit/client.dsp: - * tests/Cubit/TAO/MT_Cubit/server.dsp: - * tests/NestedUpcall/MT_Client_Test/client.dsp: - * tests/NestedUpcall/MT_Client_Test/server.dsp: - * tests/NestedUpcall/Reactor/client.dsp: - * tests/NestedUpcall/Reactor/server.dsp: - * tests/NestedUpcall/Triangle_Test/initiator.dsp: - * tests/NestedUpcall/Triangle_Test/server_A.dsp: - * tests/NestedUpcall/Triangle_Test/server_B.dsp: - * tests/OctetSeq/OctetSeq.dsp: - * tests/POA/DSI/client.dsp: - * tests/POA/DSI/server.dsp: - * tests/POA/Default_Servant/client.dsp: - * tests/POA/Default_Servant/server.dsp: - * tests/POA/Explicit_Activation/server.dsp: - * tests/POA/FindPOA/FindPOA.dsp: - * tests/POA/Forwarding/client.dsp: - * tests/POA/Forwarding/server.dsp: - * tests/POA/Generic_Servant/client.dsp: - * tests/POA/Generic_Servant/server.dsp: - * tests/POA/NewPOA/NewPOA.dsp: - * tests/POA/On_Demand_Activation/server.dsp: - * tests/POA/RootPOA/RootPOA.dsp: - * tests/POA/TIE/client.dsp: - * tests/POA/TIE/server.dsp: - * tests/POA/locking/locking.dsp: - * tests/Param_Test/client.dsp: - * tests/Param_Test/server.dsp: - * tests/Quoter/Factory_Finder.dsp: - * tests/Quoter/Generic_Factory.dsp: - * tests/Quoter/client.dsp: - * tests/Quoter/server.dsp: - * tests/Simple/client.dsp: - * tests/Simple/server.dsp: - Changed the libraries to use the *d.dll naming convention so - all the projects needed to be changed. While I was there, - also cleaned things up by adding some folders and added the - dependency to the tao_idl compiler, so if the compiler changes, - the idl files get recompiled. - - In the future I'll work on the release versions of the projects - to set them up correctly. Until now, most often the release - version in the project was ignored since it was a major hassle - to test it. - -Tue Jul 21 17:41:26 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - * orbsvcs/orbsvcs/Trader/Trader_T.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp: - Since according to Carlos' last ChangeLog entry the call to - CORBA::Any::type () returns a duplicated typecode, I've ensured - calls to type () are matched with CORBA::TypeCode::release ()s. - - * tao/Any.cpp (type): needed return statement. - -Tue Jul 21 17:29:18 1998 Carlos O'Ryan - - * tao/Any.cpp: - The type() method has to return a copy (per the spec). - The replace() method first duplicate its TypeCode arg and *then* - releases the internal TypeCode, this protect us in case both are - the same thing. - We still have to fix some problems in the IDL generated - operator>>=. - -Tue Jul 21 16:57:07 1998 Irfan Pyarali - - * tao/IIOP_ORB.cpp (iiop_string_to_object): Don't decrement the - ref count on the IIOP_Object since the policy has changed such - that the CORBA_Object is taking ownership of the IIOP_Object. - -Tue Jul 21 15:49:34 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/server.{h,cpp}: Added a new Server - class and moved all the static functions and variables to that - class. - -Tue Jul 21 15:46:49 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp (svc): changed - char*const* argv to char **argv so that it compiles on platforms - like IRIX . Thanks to Carlos for reporting this. - -Tue Jul 21 14:53:09 1998 David L. Levine - - * orbsvcs/tests/EC_Multiple/README: use ORBport 0 with - EC_Multiple. - -Tue Jul 21 14:19:28 1998 Carlos O'Ryan - - * General pass though memory managment: - + Added the pseudo-object mandatory methods (T::_duplicate, - T::_nil()) missing in several classes. - + Normalized the use of reference counting, all the classes - follow the same protocol. - + Added locks to protect reference counting mechanisms. - + Fixed problems in STUB_Object memory managment. - + The CORBA::release(), CORBA::is_nil(), T::_nil() and - T::_duplicate() methods are on the .i files now. - - * tao/Any.h: - * tao/Any.i: - * tao/Any.cpp: - Anys don't need reference counting, they are regular C++ object - and (per the spec) their contents are deep copied by the copy - ctor, the assignment operator and other methods. - Also fixed several methods that did *not* duplicate the - TypeCode, per the spec, they have to do it; we use - TypeCode::_duplicate() for that purpose, not the (propietary) - _incr_refcnt() - - * tao/Server_Request.h: - * tao/Server_Request.i: - * tao/Server_Request.cpp: - The CORBA::release(), CORBA::is_nil(), T::_nil() and - T::_duplicate() methods are on the .i files now. - NOTE: Server_Request objects in TAO are magical, the - _duplicate() method returns 0 and release() does nothing. - The problem starts because Server_Request is allocated from the - stack (to speed up things), hence reference counting would be - useless. Adding a clone() method will work better, but the - Server_Request holds pointers to several positions in the CDR - stream, we could clone the CDR stream, but a normal - Server_Request does not own it.... In our opinion (Carlos and - Irfan) we need not worry about this until we find a use case for - it. - - * tao/Typecode_Constants.cpp: - Use CORBA::release() instead of calling the delete operator - directly, this removed some nasty FMR and FMW problems at - shutdown. - - * TAO_IDL/be/be_visitor_argument/post_upcall_ss.cpp: - The generated code leaked object references passed as - inout arguments. - - * TAO_IDL/be/be_visitor_interface/interface_cs.cpp: - The generated code did not manage STUB_Object memory properly. - - * tao/IIOP_Object.h: - * tao/IIOP_Object.i: - * tao/IIOP_Object.cpp: - Refcount follows the same pattern as for the pseudo-objects, it - starts at 1, it is stored in a CORBA::ULong and delete happens - when count reaches 0. - - * tao/NVList.h: - * tao/NVList.i: - * tao/NVList.cpp: - * tao/ORB.h: - * tao/ORB.i: - * tao/ORB.cpp: - * tao/Exception.h: - * tao/Exception.cpp: - Pseudo object methods revision. - - * tao/Object.h: - * tao/Object.i: - * tao/Object.cpp: - Added locking to the reference count; this should *not* affect - the critical path, hence it is a *good* change. - - * tao/CurrentC.cpp: - * tao/POAC.cpp: - * tao/PolicyC.cpp: - Hand crafted the changes in the IDL compiler (mostly fixes to - STUB_Object memory managment). - - * tao/Principal.h: - * tao/Principal.i: - * tao/Principal.cpp: - * tao/Request.h: - * tao/Request.i: - * tao/Request.cpp: - Completed the pseudo object support for this class. - - * tao/Typecode.h: - * tao/Typecode.i: - * tao/Typecode.cpp: - ORB owned typecodes follow the same memory rules as normal - ones. Since the ORB always holds a reference to them they just - survive for a longer time. - - * tao/decode.cpp: - Corrections to the memory managment of STUB_Objects; the - CORBA_Object does release them, but it does not increase the - refcnt on the ctor. - - * tao/deep_copy.cpp: - Used T::_duplicate instead of the (propietary) - object->_incr_refcnt(). - - * tests/Param_Test/param_test_i.cpp: - The objref test was not releasing its inout argument before - changing it. - -Tue Jul 21 12:09:40 1998 Darrell Brunsch - - * tests/NestedUpcall/MT_Client_Test/run_test.pl: - * tests/NestedUpcall/Reactor/run_test.pl: - * tests/NestedUpcall/Triangle_Test/run_test.pl: - Added new perl scripts for the tests. - -Tue Jul 21 12:02:41 1998 Nagarajan Surendran - - * tests/Cubit/TAO/MT_Cubit/Task_Client.cpp : - Added code so that the client can accept -ORB arguments on - the command line. The main thread blocks on a condition - variable until the high priority thread does the argument - parsing and changes the global Task_State . The main - thread then creates the low priority threads. - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - Added code for the main thread to block on a condition - variable after activating the high priority thread until the high - priority thread wakes it up. - -Tue Jul 21 10:00:00 1998 Michael Kircher - - * tao/Connect.cpp: Improved the location forwarding, now we check - the environment for exceptions and the Server Request. - - * tao/ORB.{h,cpp}: Moved the leader_follower model variables form - the ORB_Core to in here. The ORB_Core has methods to access - all the variables. - - * tao/ORB_Core.{h,cpp}: Removed the leader_follower model variables - but kept the accessing methods. - - * tao/Server_Request.{h,cpp}: Changed the exception handling slightly. - A forwarding exception has the type USER_EXCEPTION now. - Also, two accessor methods were added to get the forward location - and the exception type. This is all used in the Server_Connection_Handler. - -Mon Jul 20 23:09:21 1998 Nagarajan Surendran - - * docs/release_notes.html: Updated the status on the Audio/Video - streaming service. - -Mon Jul 20 23:10:00 1998 Michael Kircher - - * docs/locate_request.html: Locate request documentation. - - * docs/releasenotes/index.html: Added a reference to the - locate request documentation. - -Mon Jul 20 21:10:00 1998 Michael Kircher - - * tests/Cubit/TAO/IDL_Cubit/IDL_Cubit_Client.java: - A class to access the IDL_Cubit server via the JavaIDL - ORB. - - * tests/Cubit/TAO/IDL_Cubit/README: Documented how to - use the aforementioned Java class. - -Mon Jul 20 19:06:57 1998 David L. Levine - - * tao/Invocation.cpp (invoke): wrapped final return statement - with ACE_NOTREACHED. - - * orbsvcs/tests/Trading/Makefile: moved -lorbsvcs and -lTAO - from LDLIBS to LIBS, so that the libTTest.so build will link - against them. - -Mon Jul 20 18:17:02 1998 Alexander Babu Arulanthu - - * docs/releasenotes/index.html: Updated the IDL compiler entry - (GPERF-IDL integration). - -Mon Jul 20 17:51:01 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Offer_Iterators.h: - * orbsvcs/orbsvcs/Trader/Trader_Utils.h: - * orbsvcd/tests/Trading/import_test.cpp: - Fixed another g++ linker error and one compile-time error. - -Mon Jul 20 17:30:49 1998 Alexander Babu Arulanthu - - * TAO_IDL/be/be_interface.cpp (gen_perfect_hash_methods): Changed - the absolute path for gperf to $ACE/bin. - -Mon Jul 20 16:55:54 1998 Seth Benjamin Widoff - - * TAO_IDL/be/be_interface.cpp (copy_ctor_helper): - * TAO_IDL/be/be_visitor_interface/interface_sh.cpp (visit_interface): - * TAO_IDL/be/be_visitor_interface/interface_ss.cpp (visit_interface): - * TAO_IDL/be_include/be_interface.h (copy_ctor_helper): - To alleviate the g++ linker's confusion in the face of profuse - virtual inheritence in the skeletons, the IDL compiler now - explicitly generates a copy constructor in each skeleton - class. The copy constructor calls the copy constructor of each - superclass in the skeleton's inheritence hierarchy. - -Mon Jul 20 15:08:11 1998 Alexander Babu Arulanthu - - * TAO_IDL/driver/drv_args.cpp (DRV_parse_args): Added a "#if - !defined (ACE_HAS_GPERF)" so that IDL Compiler will use Dynamic - Hashing if gperf is not found but -P option is specified. - - * TAO_IDL/be/be_interface.cpp (gen_perfect_hash_methods): Fixed - the ACE_Process' command line to use absolute path - <$ACE/apps/gperf/src/gperf>. - -Mon Jul 20 13:00:41 1998 Carlos O'Ryan - - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/IDL_Cubit/client_i.h: - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp: - Added options to just run the VOID or the ONEWAY test. - -Mon Jul 20 12:27:29 1998 Seth Benjamin Widoff - - * docs/releasenotes/index.html: - Added a reference to trader.html in the Trading Service portion - of the releasenotes. - - * docs/releasenotes/trader.html: - Minor editorial changes to the trader documentation. - -Mon Jul 20 11:46:04 1998 Carlos O'Ryan - - * tao/corba.h: - TAO_THROW_SPEC is a little different than ACE_THROW_SPEC, not - only we need support for exceptions in the platform, we also - would need them in the IDL compiler. - Plus it gives a lot of warnings in MSVC++ 5.0 - -Mon Jul 20 11:15:52 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Trader.cpp: - Eliminated superfluous template instantiation - ACE_Unbounded_Queue. - -Mon Jul 20 10:57:00 1998 Michael Kircher - - * tao/Connect.cpp: Changed the handle_locate method completely - to try to upcall to the non_existent method. This method - is not part of the standard, is TAO internal. We know - that this method is supported by each TAO Object. So - if we fail we know the object is not there. If we succeed, - the object is available and if we get forward_request - exception we will forward the call. - - * tao/IIOP_Object.{h,i,cpp}: Added code to branch to do a conditonal - locate request, depending on two flags. One tells to - use it at all the other tells if it is the first call- - because we want to do it only on the first call. - - * tao/Invocation.{h,i,cpp}: Added code to the start method, - which branches into different CDR stream generation, - depending on the kind of message we want to send. The two - options right now are: Request and LocateRequest. - A new subclass has been introduces: TAO_GIOP_ - LocateRequest_Invocation, which is similar to the - Twoway subclass but does a locate request. It has its own - invoke method and does not call the common invoke method. - Closing of a connection is the same in all the three cases - (oneway, twoway, locate_request), I factored the code out - into a close_connection method. - - * tao/Object.{h,cpp}: Added a method call to activate - the locate request on the first call after the activation. - The locate request will be done only once unless it is activated - a second time. - - * TAO_IDL/be/be_visitor_interface/interface_ss.cpp: Changed - the code generation of the non_existent method. It accepts - only one parameter, not two. So I changed the param_count - from 2 to 1. - -Mon Jul 20 10:35:33 1998 David L. Levine - - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.{h,cpp}, - Offer_Iterators_T.cpp: - wrapped TAO_THROW_SPEC arguments with double parens. - - * orbsvcs/orbsvcs/Trader/Offer_Iterators.h: moved = 0 (for pure - virtual) to after the exceptions spec. - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp,Trader_Utils.cpp: - fixed exceptions specs to match declarations in .h files. - - * orbsvcs/tests/Trading/TT_Info.cpp (dump_properties): changed - types of locals "seq_length" and "i" from CORBA::ULong to - CORBA::Long to avoid signed/unsigned comparison. - -Mon Jul 20 10:20:00 1998 Michael Kircher - - * docs/releasenotes/index.html: Added a reference to the - global resources and leader-follower model documentation. - - * docs/leader_follower.html: Documentation about the leader-follower - model used for global resources, especially for one Reactor - accessed by multiple threads. - -Mon Jul 20 06:52:02 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_array/{array_ch, array_ci, array_cs}.cpp: - Added support for anonymous arrays. This is yet to be tested - - * TAO_IDL/be/be_visitor_field/field_ch.cpp: Handled anonymous - array declaration in structures. - - *Note* that although the above changes were made a couple of weeks - back I have not been able to test them. - -Sun Jul 19 22:58:45 1998 David L. Levine - - * orbsvcs/orbsvcs/Trader/Trader.cpp: added - ACE_Unbounded_Queue, etc., template - instantiations. - - * tao/corba.h: define TAO_THROW_SPEC using ACE_THROW_SPEC. - -Sat Jul 18 23:01:51 1998 Douglas C. Schmidt - - * TAO version 0.1.40 released. - -Sat Jul 18 22:16:14 1998 Douglas C. Schmidt - - * TAO version 0.1.39 released. - -Sat Jul 18 20:22:19 1998 Michael Kircher - - * tests/Quoter/run_test.sh: Removed this file, - all the functionality is provided by the - run_test.pl script. - - * tao/Server_Request.{h,cpp}: Added a new constructor, - which does not need an input CDR stream. It is going - to be used for locate requests. When we invoke - the non_existend method on the object to see if it - is there, forwarded or not existent. - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2: - Adopted to the new interfaces for the Event Service. - -Sat Jul 18 19:37:19 1998 Darrell Brunsch - - * orbsvcs/tests/Simple_Naming/client.cpp: The ORB now looks - at argv and argc before the client does. - - * orbsvcs/tests/Simple_Naming/run_test.pl: New Perl script - for testing. - -Sat Jul 18 17:31:29 1998 Nagarajan Surendran - - * tests/Cubit/Hardpack/IDL_Cubit/cubit.idl: - * tests/Cubit/Hardpack/IDL_Cubit/cubit_impl.{hh,cc}: - * tests/Cubit/Hardpack/IDL_Cubit/client_i.{h,cpp}: - * tests/Cubit/Hardpack/IDL_Cubit/server_i.{h,cpp}: - * tests/Cubit/Hardpack/IDL_Cubit/client.cpp: - * tests/Cubit/Hardpack/IDL_Cubit/server.cpp: - * tests/Cubit/Hardpack/IDL_Cubit/Makefile: - * tests/Cubit/Hardpack/IDL_Cubit/README: - * tests/Cubit/Hardpack/IDL_Cubit/initref.cfg: - Added these files for the IDL_Cubit test for the Hardpack - ORB. - -Sat Jul 18 15:44:59 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Database.*: - * orbsvcs/orbsvcs/Trader/Offer_Iterators.*: - * orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Trader.cpp: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.*: - * orbsvcs/orbsvcs/Trader/Trader_T.cpp - * orbsvcs/orbsvcs/Trader/Trader_Utils.*: - * orbsvcs/tests/Trading/Offer_Exporter.*: - * orbsvcs/tests/Trading/Service_Type_Exporter.*: - * orbsvcs/tests/Trading/Offer_Importer.*: - * orbsvcs/tests/Trading/export_test.cpp: - * orbsvcs/tests/Trading/import_test.cpp: - * orbsvcs/tests/Trading/collocated_test.cpp: - * orbsvcs/tests/Trading/Makefile: - * orbsvcs/Trading_Service/Trading_Service.cpp: - * orbsvcs/Trading_Service/Makefile: - - Fixed g++ 2.7.2 compilation warnings/errors. Note: the tests and - applications, although they compile now with g++ 2.7.2, don't link - properly because the g++ linker is baffled by the profuse - virtual/multiple inheritance in the skeletons generated from the - CosTrading.idl file, and can't find the copy constructors it - autogenerated. The solution is to have the IDL compiler generate - explicit copy constructors for these skeleton classes. - -Sat Jul 18 15:39:42 1998 Darrell Brunsch - - * orbsvcs/tests/Simple_Naming/client.dsp: Updated this MSVC - project file to use the latest changes to the Simple - Naming test. - -Sat Jul 18 15:30:00 1998 Michael Kircher - - * docs/forwarding.html: Added some optimization - suggestions. - -Sat Jul 18 14:19:48 1998 Seth Benjamin Widoff - - * tao/orbconf.h: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/CosTrading.idl: - Moved the definition of TAO_HAS_OBJECT_IN_STRUCT_MARSHAL_BUG into - orbconf.h and CosTrading.idl, and out of the orbsvcs Makefile. - -Sat Jul 18 14:12:00 1998 Michael Kircher - - * tests/Cubit/TAO/IDL_Cubit/svc.conf: Added the - ORBiiopprofilelock switch to the client configuration to - switch off the lock needed for forwarding. We know, we - do not need it, so we use a null lock instead. This - should improve the performance a little bit. - - * tao/Connect.cpp: Added code for handle_locate, which is still - commented, because not tested. - The TAO_ORB_Core_instance is now cached in send_request and - handle_input. - -Sat Jul 18 14:00:38 1998 Douglas C. Schmidt - - * tests/Cubit/TAO/IDL_Cubit/Makefile: Always try to - generate perfect hash functions for the operation - dispatching by enabling the -P flag. - -Sat Jul 18 11:29:43 1998 Chris Gill - - * orbsvcs/orbsvcs/Event/RT_Task.h - orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp - - Changed to always typedef ACE_ES_QUEUE as the base - template class ACE_Message_Queue and - explicitly construct dynamic message queues as needed. - -Sat Jul 18 10:19:37 1998 David L. Levine - - * orbsvcs/tests/Logger/client.cpp (nesting_test): added return 0 - at end. (init): removed unused local factory_ref2. - -Sat Jul 18 08:19:24 1998 Douglas C. Schmidt - - * orbsvcs/tests/Simple_Naming/client.cpp: Beefed up this test so - that it illustrates how to bind(), resolve(), and unbind() an - object reference to a remote Naming Context. This is an - important test to make sure that things are working properly. - - * orbsvcs/orbsvcs/Naming/Naming_Utils: Added an init() method to - this class to begin to factor out common code for being a client - of a Naming Service. - - * TAO/orbsvcs/tests/Naming/ns_tree.cpp (main): Cleaned up the - formatting for this test. - - * orbsvcs/tests/Simple_Naming: Renamed clnt.* to client.* to - be more consistent. - - * tests/Cubit/TAO/IDL_Cubit/svc.conf: Changed the default ORB - concurrency model from reactive to thread-per-connection since - the latter is considerably faster. - -Fri Jul 17 17:42:27 1998 Douglas C. Schmidt - - * docs/Options.html: Added documentation for the TAO environment - variables. - - * tao/ORB.cpp (resolve_trading_service): Changed the environment - variable for NameService and TradingService to NameServiceIOR - and TradingServiceIOR to be more consistent. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.h: Started adding the new - TAO_Naming_Client class, which will simplify the initialization - and access to a NamingContext. - - * orbsvcs/orbsvcs/Naming/Naming_Utils.cpp: Changed the - capitalization of GetNamingContext() to get_naming_context(), - which is consistent w/TAO programming style. - - * tao/skip.cpp: Replaced uses of old-style C casts with a - static_cast. - -Fri Jul 17 19:34:11 1998 Darrell Brunsch - - * tao/ORB.cpp: The return value for acceptor ().enable () is no - longer being checked for -1, since platforms that don't - support it (like NT) will return -1. - -Fri Jul 17 18:46:17 1998 Matthew J Braun - - * orbsvcs/orbsvcs/Log/Logger_i.h: Added new fields for verbosity - * orbsvcs/orbsvcs/Log/Logger_i.cpp: Adjusted for new fields - * orbsvcs/tests/client.h: Added new methods- resolve_name () & - nesting_test () - * orbsvcs/tests/client.cpp: Compacted code somewhat. Broke run () and - init () into smaller functions - * orbsvcs/orbsvcs/Logger.idl: Adjusted TAO_MAXLOGMSGLEN - * orbsvcs/tests/server.cpp: Partialy incomplete incorporation of - name service - -Fri Jul 17 17:58:37 1998 Darrell Brunsch - - * docs/implrepo.html: Addressed some more comments. - -Fri Jul 17 11:47:42 1998 David L. Levine - - * tao/IIOP_Object.cpp (do_static_call,put_params): on sparcs - with g++ prior to 2.8, e.g., 2.7.2.3, only; added an awful - hack to two-way va_arg processing. The hack throws away - the first var arg. Apparently, g++ 2.7.2.3 provides a bogus - arg to the first va_arg call by mistake. This ugliness - works around that problem. We haven't seen this elsewhere - with va_arg, or with later versions of g++. - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp: - fixed supplier id (it was the same for all suppliers) and other - very minor cleanup. - - * orbsvcs/tests/Event_Latency/run_tests.sh: added. - -Fri Jul 17 11:02:29 1998 Seth Benjamin Widoff - - * tao/POAC.h: unclosed comments. - - * orbsvcs/tests/AVStreams/source/mpeg/server/Machine_Properties.{h,cpp}: - * orbsvcs/tests/AVStreams/source/mpeg/server/Video_Repository.{h,cpp}: - * orbsvcs/tests/AVStreams/source/mpeg/server/Property_Exporter.{h,cpp}: - * orbsvcs/tests/AVStreams/source/mpeg/server/augmented_server.{h,cpp}: - Updated these files in light of recent changes to the Trading Service. - -Fri Jul 17 09:46:56 1998 Douglas C. Schmidt - - * tao/POAC.h: Replaced #endif // ... with #endif /* ... */ since - this is more portable... - - * tao/POAC.h: Changed CORBA::Policy to ACE_CORBA_1 (Policy) to - work around friggin' bugs with MSVC++ 4.2. Thanks to Ernesto - Guisado for reporting this. - -Fri Jul 17 08:28:55 1998 David L. Levine - - * Makefile (CONTROLLED_FILES): added TAO-inheritance.{pdf,ps}.gz - to distribution. - -Thu Jul 16 15:20:12 1998 Carlos O'Ryan - - * tao/Connect.cpp: - * tao/ORB.cpp: - Set the close-on-exec flag using the new IPC_SAP interfaces. - - * tao/ORB_Core.cpp: - * orbsvcs/orbsvcs/Event/RT_Task.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.h: - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/tests/EC_Mcast/EC_Mcast.h: - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp: - Use ACE_SYNCH_CONDITION instead of - ACE_Condition some template instantiations are - removed. - -Thu Jul 16 15:15:46 1998 Seth Benjamin Widoff - - * orbsvcs/Makefile: - * orbsvcs/tests/Makefile: - * orbsvcs/orbsvcs/Makefile: - Trading Service now compiles by default! Let the mayhem begin! - -Thu Jul 16 12:55:54 1998 Carlos O'Ryan - - * tao/Connect.cpp: - Added the close-on-exec flag the Client and Server - Connection_Handlers, this avoid resource leaks in the event of - fork/execs. - -Thu Jul 16 12:57:08 1998 Seth Benjamin Widoff - - * tao/ORB_Core.cpp: Fixed explicit template instantiation of - ACE_Thread_Condition and ACE_Condition on IRIX. - -Thu Jul 16 11:50:00 1998 Michael Kircher - - * tao/ORB_Core.{h,cpp}: Due to merging a cvs branch - to the main trunk, the following changes went away, and - where now reintroduced: - -Thu Jul 16 00:00:20 1998 Carlos O'Ryan - - * Removed all the COM madness, TAO no longer uses the IUnknown - classes, QueryInterface(), AddRef() or Release(). The new - reference counting methods are called _incr_refcnt and - _decr_refcnt (the leading underscore is necessary for CORBA - complaince, but it breaks ANSI/C or ANSI/C++ complaince, yuk!). - This change save a few microseconds on the critical path, - because QueryInterface() was used in remote method invocation, - invoking many virtual methods, increasing the refcnt and then - decreasing it again; but the real motivations are: - + It was confusing to users it what way did TAO support COM (it - does not, yet). - + Removing QueryInterface() and the ref counting from the - critical path will allow us to protect the ref counts with - mutexes (strategized, of course). - - * tao/Any.cpp: - * tao/Any.h: - * tao/CurrentC.cpp: - * tao/Exception.cpp: - * tao/Exception.h: - * tao/IIOP_ORB.cpp: - * tao/IIOP_Object.cpp: - * tao/IIOP_Object.h: - * tao/Invocation.cpp: - * tao/Makefile: - * tao/Marshal.i: - * tao/NVList.cpp: - * tao/NVList.h: - * tao/ORB.cpp: - * tao/ORB.h: - * tao/ORB.i: - * tao/Object.cpp: - * tao/Object.h: - * tao/Object.i: - * tao/POAC.cpp: - * tao/PolicyC.cpp: - * tao/Principal.cpp: - * tao/Principal.h: - * tao/Request.cpp: - * tao/Request.h: - * tao/Server_Request.cpp: - * tao/Server_Request.h: - * tao/Server_Request.i: - * tao/Stub.h: - * tao/Typecode.cpp: - * tao/Typecode.h: - * tao/append.cpp: - * tao/corba.h: - * tao/decode.cpp: - * tao/deep_copy.cpp: - * tao/encode.cpp: - * tao/skip.cpp: - This are the files affected by the change. - - * tao/compat/initguid.h: - * tao/compat/objbase.h: - Removed! COM is gone from TAO. - - * TAO_IDL/be/be_visitor_operation/operation_cs.cpp: - * TAO_IDL/be/be_visitor_interface/interface_ss.cpp: - * TAO_IDL/be/be_visitor_interface/interface_cs.cpp: - Generate the new CORBA_Object methods to gain access to the - STUB_Object, we don't generate the old COM methods. - - * taoconfig.mk: - Removed -I$(TAO_ROOT)/tao/compat - - * Makefiles: - Updated the dependencies in all the Makfiles of TAO (due to the - removal of objbase.h & friends). Also fixed many problems in the - Makefiles, like missing SRC or LSRC lists, removed the - -I$(TAO_ROOT)/tao/compat includes, added missing TAO_ROOT - definitions, etc. - - * docs/releasenotes/ec.html: - Added the latest changes. - - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp: - Fixed mismatched memory free (new vs. malloc). - - * orbsvcs/tests/Logger/client.h: - Fixed method declaration. - -Wed Jul 15 22:17:20 1998 David L. Levine - - * tao/ORB_Core.cpp: added ACE_Unbounded_Set, - etc., template instantiations. Added ACE_Thread_Condition and - ACE_Condition instantiations, w/o ACE_HAS_TEMPLATE_TYPEDEFS. - -Wed Jul 15 21:16:19 1998 Darrell Brunsch - - * orbsvcs/Trading_Service/Trading_Service.{dsp,dsw}: - * orbsvcs/tests/Trading/Trading.dsw: - * orbsvcs/tests/Trading/Colocated_Test.dsp: - * orbsvcs/tests/Trading/Export_Test.dsp: - * orbsvcs/tests/Trading/Import_Test.dsp: - * orbsvcs/tests/Trading/TradingLib.dsp: - Project files for the Trading service for MSVC. - -Wed Jul 15 20:12:47 1998 Darrell Brunsch - - * tao/ORB_Core.cpp: Changed the warnings that occur when - a conf file is not found to be debug warnings (only show - up with -ORBdebug) - -Wed Jul 15 19:28:51 1998 Seth Widoff - - * orbsvcs/orbsvcs/orbsvcs.dsp: Added trader files. - -Wed Jul 15 18:00:00 1998 Michael Kircher - - * tao/Invocation.cpp: Made sure, that all control paths - resume the handler - checking invoke methods. - -Wed Jul 15 16:27:01 1998 Darrell Brunsch - - * tests/Simple: Added a new test that is just a simple test - which can be used as a basis for new tests or just to see - the basics of a CORBA client and server. - -Wed Jul 15 16:00:39 1998 Matthew J Braun - - * client.cpp: Changed a few cast statments; added comments - - * runtests.pl: New script to automate running of tests - -Wed Jul 15 15:44:10 1998 Jeff Parsons - - * tao/Invocation.cpp: Carlos corrected his omission of code to - invoke before waiting for a reply. - -Wed Jul 15 12:40:00 1998 Michael Kircher - - * tao/Connect.{h,cpp}: Changed handle_input and send_request - of the Client Connection Handler to support global - resources and multiple threads. It is achieved through - the leader follower model. - - * tao/Invocation.cpp: The suspended Client Connection Handler - from Connect.cpp get resumed (TAO_GIOP_Invocation::invoke). - - * tao/ORB.{h,cpp}: The run method conforms to the rules - of the leader follower model. - - * tao/ORB_Core.{h,cpp}: The ORB Core now supports all - the variables for the leader follower model. - -Wed Jul 15 12:07:15 1998 Carlos O'Ryan - - * tao/Servant_Base.cpp: - Added timeprobes in operation lookup. - - * tests/Cubit/TAO/IDL_Cubit/client.cpp: - * tests/Cubit/TAO/IDL_Cubit/server.cpp: - Added TIMEPROBE_PRINT at the end. - -Wed Jul 15 12:11:01 1998 Nagarajan Surendran - - * orbsvcs/tests/Property/Makefile: - Removed unnecessary STL dependencies. - -Wed Jul 15 11:44:57 1998 Alexander Babu Arulanthu - - * orbsvcs/tests/CosPropertyService/Makefile: Removed STL stuff and - did a make depend. - -Wed Jul 15 10:55:33 1998 David L. Levine - - * tests/Quoter/run_tests.pl: removed hard-coded perl path. - -Wed Jul 15 09:47:17 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Event/Module_Factory.cpp: - Removed a bogus include file. - - * orbsvcs/orbsvcs/Makefile: - Updated dependencies again. - -Tue Jul 14 21:56:30 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Makefile (FILES): updated dependencies. - -Tue Jul 14 21:50:04 1998 David L. Levine - - * tests/Quoter/run_test.sh: use sh instead of ksh, $login - instead of mk1, and $ps_opts. - - * orbsvcs/tests/start_services: bash doesn't always supply $USER, - so use $login with it also. - -Tue Jul 14 21:25:19 1998 Seth Benjamin Widoff - - * orbsvcs/tests/Trading/Makefile: - * orbsvcs/tests/Trading/Offer_Exporter.{h,cpp}: - * orbsvcs/tests/Trading/Offer_Importer.{h,cpp}: - * orbsvcs/tests/Trading/Offer_Importer.h: - * orbsvcs/tests/Trading/Service_Type_Exporter.{h,cpp}: - * orbsvcs/tests/Trading/TT_Info.{h,cpp}: - * orbsvcs/tests/Trading/colocated_test.cpp: - * orbsvcs/tests/Trading/export_test.cpp: - * orbsvcs/tests/Tradingimport_test.cpp: - These tests now copmile with egcs. In addition, Added modify and - withdraw_using_constraint tests, and the "quiet" flag, which will - staunch the usual barrage of output by not printing the contents - of offers and service types. - - * orbsvcs/Trading_Service/Trading_Service.cpp: compiles with - egcs. - - * orbsvcs/orbsvcs/Trader/*.*: Compiles with egcs. Improved the - modify method. - -Tue Jul 14 19:15:41 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Event/Module_Factory.h: - * orbsvcs/orbsvcs/Event/Module_Factory.cpp: - * orbsvcs/orbsvcs/Event/Fast_Reactor.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.h: - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp: - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - The Event Channel modules are constructed using a Factory class, - that will simplify configuration of the EC, like using RTU or - FIFO dispatching, disabling correlation, or filtering, etc. - -Tue Jul 14 18:35:56 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp: - The generated replace() method released the buffer twice. - -Tue Jul 14 15:56:46 1998 Nagarajan Surendran - - * orbsvcs/tests/AVStreams/Machine_Properties.{h,cpp}: - * orbsvcs/tests/AVStreams/Property_Exporter.{h,cpp}: - Removed as they are moved to - orbsvcs/tests/AVStreams/mpeg/source/server. - - * orbsvcs/tests/AVStreams/Makefile: - * orbsvcs/tests/AVStreams/server.{h,cpp}: - Removed as they are outdated. - -Tue Jul 14 15:28:44 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_field/field_ch.cpp: - Added support for arrays inside structures. Anonymous arrays do - *not* work. Thanks to Eric Powers for this - patch. - -Tue Jul 14 14:40:36 1998 David L. Levine - - * orbsvcs/tests/Event_Latency/Event_Latency.cpp (print_stats): - when short-circuiting, don't print out time breakdowns to/in/from EC. - -Tue Jul 14 13:30:01 1998 Chris Gill - - * orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp - orbsvcs/orbsvcs/Event/RT_Task.h: - - Added conditional compilation logic to cause EC to use dynamic queues - with appropriate dispatching strategies when the MUF, EDF, or MLF - strategies are defined. This is a temporary measure to allow - testing of the EC performance with the dynamic queues, and will - be relaced with a better configuration mechanism, based on the results - of the off-line scheduling run, in the very near future. - -Tue Jul 14 12:00:18 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_interface/interface_ss.cpp: - * TAO_IDL/be/be_visitor_interface/interface_sh.cpp: - * TAO_IDL/be/be_visitor_interface/be_interface.cpp: - Added server side support for CORBA::Object::_non_existent, in - the future it could be implemented in the POA, saving an - operation lookup and reducing the footprint somewhat. - - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.h: - * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp: - * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h: - * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp: - Replaced ACE_Thread_Mutex with ACE_SYNCH_MUTEX so it compiles in - platforms without threads, not that it will work though. - -Tue Jul 14 12:30:45 1998 David L. Levine - - * tests/Cubit/TAO/MT_Cubit/client.cpp (do_priority_inversion_test): - removed dependence on local context_switch on platforms that don't - have ACE_HAS_PRUSAGE_T and ACE_HAS_GETRUSAGE. Thanks to - Arturo Montes for reporting this. Also, - removed csw on those platforms, because it was no longer being used. - -Tue Jul 14 11:48:23 1998 Nanbor Wang - - * tao/ORB_Core.{h,cpp} (arl_same_port_connect): Added the new - member function to ORB_Core to check if we want the client to - initiate a connection using the same local port number as - server's. - - * tao/Invocation.cpp (start): Added code to specify the following: - - This change is only for ARL only and to enable the feature, you - must add - - #if defined (TAO_ARL_USES_SAME_CONNECTOR_PORT) - - to your $ACE_ROOT/ace/config.h. Add the command line option - - -ORBarlsameportconnect yes - - when starting the client. - - *** This is not for the general audience of TAO. Don't use - it. *** - -Tue Jul 14 11:34:02 1998 David L. Levine - - * tao/IIOP_Object.cpp (do_static_call): commented out unused - local "status". - -Mon Jul 13 18:35:22 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: - * TAO_IDL/be/be_sequence.cpp: - Code generation for sequences of octets was incorrect in - platforms that do not support automatic template - instantiation. Thanks to Eric Powers for - pointing this out. - -Mon Jul 13 17:50:35 1998 Nanbor Wang - - * tao/TAO.dsp: Added Invocation.cpp into project. - - - The following two changes were made per Carlos' instructions. - (I was just typing.) - - * tao/deep_free.cpp (DEEP_FREE): Commented out 'delete source' in - case of CORBA::tk_struct. - - * tao/Any.cpp (operator=, ~CORBA_Any, replace): Added delete - this->value after DEEP_FREEing. - -Mon Jul 13 17:37:01 1998 Carlos O'Ryan - - * tao/Object.cpp: - Fixed some problems in the implementation of _non_existent(), - thanks to Dave Meyer - -Mon Jul 13 16:20:30 1998 Carlos O'Ryan - - * tao/corba.h: - * tao/Makefile: - * tao/Invocation.h: - * tao/Invocation.i: - * tao/Invocation.cpp: - * tao/GIOP.h: - * tao/GIOP.i: - * tao/GIOP.cpp: - * tao/IIOP_Object.h: - * tao/IIOP_Object.cpp: - On the client side we can optimize memory allocation for - oneway requests by not allocating the response - buffer. But to do this and take as much memory as possible from - the stack also requires to follow different execution paths for - the oneway vs. two way tests. - With this changes the memory allocations are: - + For oneways: - 1 on the client side (can be TSS allocator). - 3 on the server side (one can be TSS allocator). - + For twoway: - 3 on the client side (1 can be a TSS allocator). - 3 on the server side (1 can be TSS allocator). - - - * tests/Cubit/TAO/IDL_Cubit/cubit.idl: - * tests/Cubit/TAO/IDL_Cubit/client_i.h: - * tests/Cubit/TAO/IDL_Cubit/client_i.cpp: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.h: - * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp: - Added simple tests with no arguments or return values, also - added a oneway test. - - * orbsvcs/Dump_Schedule/Makefile: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/LifeCycle_Service/Makefile: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/EC_Mcast/Makefile: - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/EC_Throughput/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * tests/CDR/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/NestedUpcall/Reactor/Makefile: - * tests/NestedUpcall/Triangle_Test/Makefile: - * tests/OctetSeq/Makefile: - * tests/POA/Default_Servant/Makefile: - * tests/POA/Explicit_Activation/Makefile: - * tests/POA/FindPOA/Makefile: - * tests/POA/Generic_Servant/Makefile: - * tests/POA/NewPOA/Makefile: - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/RootPOA/Makefile: - * tests/Param_Test/Makefile: - * tests/Quoter/Makefile: - * tests/Thruput/TAO/Makefile: - The new files in the tao library changed the dependencies. - - * orbsvcs/Dump_Schedule/Makefile: - Sources were listed in the wrong macro. - -Mon Jul 13 14:37:06 1998 David L. Levine - - * Event_Latency.cpp: use ACE_CU64_TO_CU32 to convert const - 64-bit u_ints to 32-bits happily with Sun C++. Also, replaced - a function-style cast and some other old casts with ACE - ANSI-style casts. - -Mon Jul 13 13:59:08 1998 Carlos O'Ryan - - * tests/Param_Test/run_test.pl: - Fixed a few (minor) perl warnings. - -Mon Jul 13 11:49:29 1998 Seth Benjamin Widoff - - * tao/Marshall.i: Now setting freed string pointer to zero. - - * tao/deep_free.cpp: Although the struct fields were being freed, - the memory for the struct itself wasn't. Note: other types may - also have this problem. - -Sun Jul 12 19:47:34 1998 Seth Widoff - - * docs/releasenotes/trader.html: - Finished the initial draft of the Trading Service documentation. - -Sun Jul 12 13:45:00 1998 Michael Kircher - - * tests/NestedUpcalls/MT_Client_Test/*: - Added a new test for testing multiple threads accessing - global resources, which means, one ORB and one Reactor. - It also tests for proper nested upcalls. - -Sun Jul 12 01:40:58 1998 Carlos O'Ryan - - * Fixed several problems reported by John Mulhern - <9107@mn3.lawson.lawson.com>, that fix portability problems to - HP/aCC. - - * tao/Typecode.cpp: - Declared a temporary buffer as CORBA::Octet* instead of void*, - otherwise HP/aCC balks. - - * TAO_IDL/be_include/be_sequence.h: - * TAO_IDL/be/be_sequence.cpp: - fe_add_sequence() was redefined with different arguments and - return value. It was not the intention and it triggered warnings - on several compilers (HP/aCC, SGI/CC). - - * TAO_IDL/fe/y.tab.cpp: - Removed indent pragma. - Declared tao_yyerror as taking a const char*, it is not used - anyway. - - * TAO_IDL/be/be_visitor_operation/tie_si.cpp: - Tie delegation is similar to collocated upcalls, the arguments - are T_ptr objects and not T_var, hence, no .in () calls are - needed. - - * TAO_IDL/fe/fe_extern.cpp: - * TAO_IDL/driver/drv_preproc.cpp: - Changed old C-style cast to reinterpret_cast, that should make - HP/aCC compiler happy. This is just because SunCFE uses File* as - a compilation barrier for FILE*, IMHO a waste of time. - -Sat Jul 11 10:17:35 1998 Carlos O'Ryan - - * orbsvcs/tests/Makefile: - Added EC_Mcast to the list of tests. - -Fri Jul 10 22:25:44 1998 David L. Levine - - * TAO version 0.1.38 released. - -Fri Jul 10 22:06:16 1998 David L. Levine - - * tao/CDR.i (do_byte_swap): added explicit int return type. - -Fri Jul 10 17:51:13 1998 Jeff Parsons - - * Param_Test/bd_str_seq.cpp: - * Param_Test/ub_str_seq.cpp: - DII tests now work. - - * Param_Test/bd_short_seq.cpp: - * Param_Test/ub_short_seq.cpp: - * Param_Test/bd_long_seq.cpp: - * Param_Test/ub_long_seq.cpp: - Minor changes in notation - no new functionality. - -Fri Jul 10 17:29:25 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Mcast/Makefile: - * orbsvcs/tests/EC_Mcast/svc.conf: - * orbsvcs/tests/EC_Mcast/EC_Mcast.h: - * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h: - * orbsvcs/orbsvcs/Event/EC_Gateway_UDP.cpp: - Added the first implementation of a UDP/Mcast based gateway to - the EC. The current classes require a lot of manual - configuration. - Also implemented a small test to show the usage. - - * tao/CDR.h: - * tao/CDR.i: - * tao/CDR.cpp: - Give access to external users of the swap_ methods, also - provide an accesor for the byte swapping flag in OutputCDRs. - - * tao/GIOP.cpp: - Use the new byte swap accessor. - - * orbsvcs/orbsvcs/Event/Event_Channel.h: - * orbsvcs/orbsvcs/Event/Event_Channel.i: - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Completed support for gateways that are interested in the - supplier list changes. It is now possible to add Gateways - *after* the consumer or supplier list has stabilized. - - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - Do nothing if receive a supplier update. - - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - Destroy the Event Channel *after* the consumers unsubscribe from - it. - - * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: - * orbsvcs/Event_Service/Event_Service.cpp: - Before a normal exit we unbind the Event Service (and, if local, - the Scheduling Service) from the Naming Service. - -Fri Jul 10 17:03:11 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.h: - * orbsvcs/orbsvcs/Trader/Offer_Database.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Trader.{h, cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp: - * orbsvcs/orbsvcs/Trader/Trader_T.h: - * orbsvcs/orbsvcs/Trader/Trader_Utils.{h,cpp}: - Addressed a number of memory leaks in the Trading - Service. However, typecodes still leak oodles of memory. - - * orbsvcs/Trading_Service/Trading_Service.cpp: - Cleans self up properly after catching SIGINT. - - * orbsvcs/tests/Trading/TT_Info.cpp: - * orbsvcs/tests/Trading/Service_Type_Exporter.cpp: - * orbsvcs/tests/Trading/export_test.cpp: - Aesthetic changes. - -Fri Jul 10 16:35:21 1998 Jeff Parsons - - * TAO/tests/Param_Test/client.cpp: - Fixed bug in DII arg list creation. - - * TAO/tests/Param_Test/bd_short_seq.cpp: - * TAO/tests/Param_Test/bd_long_seq.cpp: - * TAO/tests/Param_Test/ub_short_seq.cpp: - * TAO/tests/Param_Test/ub_long_seq.cpp: - DII tests now work. - - * TAO/tests/Param_Test/any.cpp: - Made some changes - not done yet. DII test still doesn't work. - -Fri Jul 10 15:32:42 1998 Darrell Brunsch - - * docs/implrepo.html: Another pass. - -Fri Jul 10 12:21:18 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Throughput/Makefile: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - Fixed errors and warnings reported by David. - -Fri Jul 10 00:32:51 1998 Carlos O'Ryan - - * TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp: - The skeletons were not releasing the strings allocated while - demarshalling the arguments. - - * docs/implrepo.html: - Another pass at the design document. - -Thu Jul 09 23:02:48 1998 Irfan Pyarali - - * tao/POA.cpp (create_internal_lock): Change method to watch out - for platforms without threads. Thanks to Hongyin Quan - for pointing this out. - -Thu Jul 9 17:48:37 1998 Darrell Brunsch - - * docs/implrepo.html: Carlos's comments have been addressed. - -Thu Jul 9 15:12:35 1998 Seth Benjamin Widoff - - * tao/deep_free.cpp: wasn't freeing string fields of structs. - - * tests/Quoter/Makefile: removed STL vestige. - -Wed Jul 8 21:08:53 1998 Carlos O'Ryan - - * docs/implrepo.html: - Quick revision and added comments with remaining issues. - -Wed Jul 8 19:01:02 1998 Darrell Brunsch - - * docs/implrepo.html: Another big revision of the paper. - -Wed Jul 8 17:13:00 1998 Jeff Parsons - - * TAO/tests/Cubit/TAO/DII_Cubit/client.cpp, - TAO/tests/Cubit/TAO/DII_Cubit/client.h, - TAO/tests/Cubit/TAO/DII_Cubit/DII_Cubit.dsw, - TAO/tests/Cubit/TAO/DII_Cubit/DII_Cubit_Test.cpp, - TAO/tests/Cubit/TAO/DII_Cubit/DII_Cubit_Test.dsp, - TAO/tests/Cubit/TAO/DII_Cubit/README, - TAO/tests/Cubit/TAO/DII_Cubit/Makefile: - Combined client.h and client.cpp into one file, - initialized the return variables in all the Cubit - operations (to get rid of some UMRs in Purify), - removed the one-button test file DII_Cubit_Test.cpp - and the corresponding project file in VC (the perl - script does the same thing and more safely), updated - the DII_Cubit.dsw, Makefile and README files. - -Tue Jul 8 14:00:00 1998 Michael Kircher - - * orbsvcs/orbsvcs/orbsvcs.dsp: When changing the RtecEventComm.id - file or the RtecScheduler.idl file, it is needed to - recompile the RtecEventChannelAdmin.idl file. This is a common - problem. So the programmer has to take care that the - dependencies in the Makefile or VC++ project file - are set properly. - - * orbsvcs/tests/Simulator/Event_Supplier/DOVE_Supplier.cpp, - orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java, - orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2, - orbsvcs/tests/Simulator/README: - Simplified the event data. - -Tue Jul 7 22:11:17 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Trader.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_T.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.{h,cpp}: - Fixed DEC cxx errors, addressed a memory leak. - -Tue Jul 7 20:48:37 1998 Nanbor Wang - - * tao/Connect.{h,cpp}: Revert my previous changes. - -Tue Jul 7 19:47:15 198 Jeff Parsons - - * TAO/tao/Request.cpp: Slight modification (Andy's - suggestion) to send_oneway (), getting rid of an - error message when shutting down the Cubit server - via DII. - -Tue Jul 7 19:25:55 1998 Jeff Parsons - - * tests/Cubit/TAO/DII_Cubit/DII_Cubit_Test.cpp: - New file that implements a "one-button" DII Cubit test. - * DII_Cubit/Makefile: Added a build for dii_cubit_test.exe. - * DII_Cubit/DII_Cubit_Test.dsp: New project in the workspace. - * DII_Cubit/DII_Cubit.dsw: Updated workspace (new project). - -Tue Jul 7 08:21:41 1998 Carlos O'Ryan - - * TAO_IDL/Makefile: - * orbsvcs/Dump_Schedule/Makefile: - * orbsvcs/Event_Service/Makefile: - * orbsvcs/LifeCycle_Service/Makefile: - * orbsvcs/Naming_Service/Makefile: - * orbsvcs/Scheduling_Service/Makefile: - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/tests/Concurrency/Makefile: - * orbsvcs/tests/EC_Multiple/Makefile: - * orbsvcs/tests/EC_Throughput/Makefile: - * orbsvcs/tests/Event_Latency/Makefile: - * orbsvcs/tests/Logger/Makefile: - * orbsvcs/tests/Simple_Naming/Makefile: - * tao/Makefile: - * tests/CDR/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: - * tests/Cubit/TAO/MT_Cubit/Makefile: - * tests/OctetSeq/Makefile: - * tests/POA/Default_Servant/Makefile: - * tests/POA/Explicit_Activation/Makefile: - * tests/POA/FindPOA/Makefile: - * tests/POA/Generic_Servant/Makefile: - * tests/POA/NewPOA/Makefile: - * tests/POA/On_Demand_Activation/Makefile: - * tests/POA/RootPOA/Makefile: - * tests/Param_Test/Makefile: - * tests/Quoter/Makefile: - * tests/Thruput/TAO/Makefile: - * tests/NestedUpcall/Reactor/Makefile: - * tests/NestedUpcall/Triangle_Test/Makefile: - Updated dependencies. - -Tue Jul 07 07:36:36 1998 David L. Levine - - * tao/compat/objbase.h: use #if 0 instead of // to comment out a - multiline #define, to avoid warning about a multiline comment. - - * tests/Param_Test/results.{h,cpp}: added trailing $ to Id string. - -Mon Jul 6 19:33:54 1998 Jeff Parsons - - * TAO/tests/Cubit/TAO/DII_Cubit/client.cpp: - Made the shutdown request DII instead of SII. Everything - works on NT except for the shutdown option. Unix is OK. - Also, changed the parse_args call to come after initializing - the orb, so other orb-specific args can be used and not - confuse parse_args. - -Mon Jul 6 19:17:00 1998 Michael Kircher - - * docs/Options.html: Added documentation about the - -ORBiiopprofilelock switch. - -Mon Jul 6 17:00:00 1998 Jeff Parsons - - * TAO/tests/Cubit/TAO/DII_Cubit/client.{h,cpp}: - Added a DII request on the naming service to get the - Cubit factory IOR, plus code to implement all the - command line options. Built with SunCC, it works on Unix, - but not yet on NT. - -Mon Jul 6 15:46:35 1998 Carlos O'Ryan - - * tao/decode.cpp: - Strings contain a nested CDR with the bounds for it, the - demarshalling code in that case was invoking the TypeCode - constructor with the wrong parameters, hence the bounds were - invalid. The problem only shows up now because we were ignoring - the bounds in previous releases. - -Mon Jul 6 15:24:21 1998 Matthew J Braun - - * tests/Logger/client.h - * tests/Logger/client.cpp - * orbsvcs/orbsvcs/Log/Logger_i.h - * orbsvcs/orbsvcs/Log/Logger_i.cpp - * orbsvcs/orbsvcs/Logger.idl - - Routine checkin. Ignore the man behind that curtain.... - Fully working version complete, but not yet Purified. - -Mon Jul 06 15:13:11 1998 Nanbor Wang - - * tao/compat/initguid.h: Reordered some stuff. - - * tao/corba.h: Don't include in "compat/initguid.h" anymore. - -Mon Jul 6 15:10:30 1998 Carlos O'Ryan - - * orbsvcs/Naming_Service/Makefile: - Updated dependencies. - - * orbsvcs/tests/EC_Throughput/ECT_Data.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - The CDR size was wrong, this resulted in all kind of strange - errors n the client side. This is another reminder that an octet - sequence only uses a single Message_Block, not a chain of them. - -Mon Jul 06 14:58:14 1998 Nanbor Wang - - * tao/IIOP_Object.{h,cpp}: - * tao/Object.{h,i,cpp}: - * tao/Server_Request.{h,cpp}: - * tao/compat/objbase.h: Renamed REFIID to TAO_REFIID and - DEFINE_GUID to TAO_DEFINE_GUID to avoid conflict with MSVC's - COM. We don't support COM at this moment. - - * tao/compat/objbase.h: Disable the definition of TAO_VARENUM. It - is not used currently. Thanks to Maximilian Hoferer - for noticing this. - -Mon Jul 06 09:07:36 1998 Steve Huston - - * tao/ORB_Core.{i cpp}: Removed redundant preprocessing token - concatentations - HP-UX aCC warned about them. - - * tao/Connect.h: Added #include "tao/corba.h" so the defs are visible - at template instantiation on AIX xlC. - -Mon Jul 6 04:45:02 1998 Nanbor Wang - - * tao/Connect.h (TAO_Client_Connect_Handler): Added a new data - member to trace whether this client connection is - running reactively or in a separate thread (other than the main - thread.) - - * tao/Connect.cpp (open,close,send_request): Check to see if the - client is going to run in a separate thread (by comparing its - thread id with that of reactor's.) If so, the handler won't try - to register itself with the reactor and simply block on the - socket IO calls. This change enables the NestedUpcall/Reactor - example to use the thread-per-connection strategy. - -Sun Jul 5 21:22:42 1998 Darrell Brunsch - - * tao/orbconf.h: Undid the change I made on July 3. Although it - fixed the one problem I was looking at, it broke everything - else. Oops. - - * TAO_IDL/be/be_codegen.cpp: Changed the TAO_EXPORT_MACRO - definition to override any that came before. Without this the - ordering of includes (putting corba.h before an orbsvc, such as - CosNamingC.h) would break in certain configurations. Also moved - it after the includes so it shouldn't affect included files. - -Sat Jul 4 01:18:21 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_Visitor.cpp: - * orbsvcs/orbsvcs/Trader/Constraint_l.cpp: - * orbsvcs/orbsvcs/Trader/Offer_Interpreters.cpp: - * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp: - * orbsvcs/orbsvcs/Trader/Trader.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp: - Addressed warnings/errors on IRIX. - -Fri Jul 03 21:51:44 1998 David L. Levine - - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp (parse_args): - reset n_suppliers_ to 1, if <= 0, before the ACE_ERROR_RETURN - instead of after. (supplier_task): cast event_count_ to - CORBA::ULong to avoid signed/unsigned comparison. - - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp (push_consumer): - commented out unused local "ID". - -Fri Jul 3 19:54:03 1998 Darrell Brunsch - - * tao/orbconf.h: Changed the TAO_NAMESPACE_STORAGE_CLASS macros to - work better with namespaces on MSVC. - -Fri Jul 3 18:40:46 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Utils.{h,cpp}: - Debugged and tested directed queries. - - * orbsvcs/tests/Trading/Offer_Importer.{h,cpp}: - * orbsvcs/tests/Trading/import_test.cpp: - Added code to test directed queries. - -Fri Jul 03 17:30:00 1998 Michael Kircher - - * orbsvcs/tests/Simulator/README: Added more documentation. - - * orbsvcs/tests/Simulator/DOVEBrowser/PushConsumer.java: Register - now only for notification events. - - * orbsvcs/tests/Simulator/DOVEMIB/AnyAnalyser.{h,cpp}: support time stamps. - - * orbsvcs/tests/Simulator/DOVEMIB/DOVEMIB.{h,cpp}: support time stamps. - - * orbsvcs/tests/Simulator/DOVEMIB/PrintVisitor.{h,cpp}: support time stamps - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.{h, cpp}: moved - a lot of connection management into the new DOVE Supplier. - - * orbsvcs/tests/Simulator/Event_Supplier/Event_Sup.dsp: Added the DOVE - Suplier files. - - * orbsvcs/tests/Simulator/Event_Supplier/DOVE_Supplier.{h,cpp}: All - the connection management with the event service is done here. - A standardized interface is now supported, thanks to - Kevin Stanley . - -Fri Jul 03 16:38:12 1998 Steve Huston - - * tao/Sequence.h (TAO_Unbounded_Sequence) Removed the - template type specification from constructor names so that this - compiles on AIX xlC as well as Sun C++ and HPUX aCC. - -Fri Jul 03 13:58:08 1998 David L. Levine - - * TAO version 0.1.37 released. - -Fri Jul 3 13:05:01 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Throughput/ECT_Data.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - Fixed template instantiations. - -Fri Jul 03 11:36:04 1998 David L. Levine - - * tests/Param_Test/Makefile, - tests/Cubit/TAO/IDL_Cubit/Makefile: disabled perfect - hashing until we can stabilize its use. - -Fri Jul 03 11:34:38 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Throughput/Makefile: - Added new object files to the Makefile. - - * orbsvcs/orbsvcs/Event/EC_Gateway.cpp: - Protected against null publication or subscription list. - - * orbsvcs/orbsvcs/Event/Event_Channel.cpp: - Removed a possible race condition in consumer - disconnections. Thanks to Thomas Venturella - for the last two fixes. - -Fri Jul 03 08:40:28 1998 Steve Huston - - * tao/corba.h: Reordered some includes to get it to compile clean on - HP-UX aCC. - -Fri Jul 03 02:03:23 1998 Carlos O'Ryan - - * orbsvcs/tests/EC_Throughput/ECT_Data.h: - * orbsvcs/tests/EC_Throughput/ECT_Data.cpp: - * orbsvcs/tests/EC_Throughput/data.idl: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - Added an example on how to send C++ data across the wire. - - * orbsvcs/orbsvcs.dsw: - * orbsvcs/tests/EC_Throughput/EC_Throughput.dsw: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.dsp: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.dsp: - Added MSVC++ project files for the new test. - - * tao/CDR.h: - Fixed typo in a extraction operator for InputCDR and strings, it - was declared as operator>>. - -Fri Jul 3 00:39:03 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Utils.{h,cpp}: - Added code to sort by preference the merged result sequence of a - federated query. - -Thu Jul 2 19:41:46 1998 Alexander Babu Arulanthu - - * tests/Param_Test/Makefile: - * tests/Cubit/TAO/IDL_Cubit/Makefile: Added TAO_IDLFLAGS -P to enable - Perfect-hashed-operation-lookup strategy for the idl compiler. - -Thu Jul 2 19:22:24 1998 Carlos O'Ryan - - * orbsvcs/tests/Makefile: - * orbsvcs/tests/EC_Throughput/Makefile: - * orbsvcs/tests/EC_Throughput/svc.conf: - * orbsvcs/tests/EC_Throughput/data.idl: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.h: - * orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.h: - * orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp: - This test shows how to use the EC for custom marshalling, later - it will be adapted to measure throughput in the EC. - - * orbsvcs/orbsvcs/RtecEventComm.idl: - Added some padding so the payload (an encapsulated CDR) is - always properly aligned. - - * orbsvcs/tests/EC_Throughput/README: - * docs/releasenotes/ec.html: - Included some info about this new test. - -Thu Jul 2 14:28:01 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_array.cpp: We were generating incorrect code for - the out () and _retn () methods of the Array_var class. - - * TAO_IDL/be_include/be.h: Missing #include for Process.h added. - - * TAO_IDL/Makefile: Ran make depend - - * tests/Param_Test/README: Added description for the array tests. - -Thu Jul 2 12:36:28 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Trader/Trader[_T].{h,cpp}: - * orbsvcs/orbsvcs/Trader/Constraint_Visitors.{h,cpp}: - For the 'in' operator in the standard OMG constraint language, the - Constraint Interpreter needs to identify and extract from Anys - sequences of primitive types, regardless of how many times the - sequence has been typedef'd. Added code to do this. - - * orbsvcs/tests/Trading/TTest.idl: - * orbsvcs/tests/Trading/TT_Info.cpp: - * orbsvcs/tests/Trading/Service_Type_Exporter.cpp: - * orbsvcs/tests/Trading/Offer_Exporter.cpp: - Now sends aliased sequences to the Trader to test the above - enhancement. - -Thu Jul 2 12:29:10 1998 Alexander Babu Arulanthu - - The Next round of changes for GPERF + TAO_IDL integration. NT - related stuff have been taken care of. attributes also should work - now. - * TAO_IDL/driver/drv_args.cpp: - * TAO_IDL/be_include/be_interface.h: - * TAO_IDL/be_include/be_codegen.h: - * TAO_IDL/be/be_interface.cpp: - * TAO_IDL/be/be_helper.cpp: - * TAO_IDL/be/be_codegen.cpp: - -Thu Jul 02 09:17:57 1998 David L. Levine - - * tests/CDR/growth.cpp (main), - tests/OctetSeq/OctetSeq.cpp (run): replaced - ACE_hrtime_t-to-ACE_INT32 static casts with ACE_U64_TO_U32 - for compatibility with ACE_U_LongLong. - - * tests/NestedUpcall/Triangle_Test/Object_A_Impl.cpp: added - newline at end of file. - - * tests/POA/On_Demand_Activation/Servant_Locator.cpp (postinvoke): - added ACE_UNUSED_ARG (my_servant) to avoid compile warning about - unused variable with ACE_NDEBUG. - - * tests/Cubit/TAO/MT_Cubit/Task_Client (run_tests): use - ACE_OS::fprintf instead of fprintf, and fixed the format - specifier to match the argument type. - - * Makefile (release): use $(MAKE) instead of make for - recursive make. - -Thu Jul 02 01:50:58 1998 Irfan Pyarali - - * tao/POA: Renamed TAO_POA_Locking to Synchronization. Also - renamed the related enums to not use the USE_ prefix. - -Wed Jul 1 22:42:13 1998 Seth Benjamin Widoff - - * orbsvcs/orbsvcs/Makefile: - * orbsvcs/orbsvcs/CosTrading.idl: - Merged Sequences.idl into CosTrading.idl. - - * orbsvcs/orbsvcs/Trader/Trader.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_T.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Utils.{h,cpp}: - * orbsvcs/orbsvcs/Trader/Trader_Interfaces.{h,cpp}: - Addressed DEC cxx warnings/errors. Hopefully solved some, probbaly - introduced more. - -Wed Jul 01 21:14:11 1998 David L. Levine - - * tests/Param_Test/any.cpp: commented out unused static - any_table. - - * tests/Param_Test/fixed_array.cpp (check_validity): commented - out unused local ret. - - * tests/Param_Test/{bd,ub}_str_seq.cpp (init_parameters): - commented out unused local gen. - -Wed Jul 1 19:20:00 1998 Michael Kircher - - * orbsvcs/LifeCycle_Service/Makefile: I hopefully - fixed the complains of the DEC cxx compiler. - -Wed Jul 1 15:50:00 1998 Michael Kircher - - * tao/ORB.cpp: Fixed a memory leak in the initial - references code. The pointers (name_service_ and trading_service_) - were not properly reused and not properly released. - - * tao/Operation_Table.h: Fixed a spelling problem with - TAO_operation_db_entry. - -Wed Jul 1 13:59:30 1998 Seth Benjamin Widoff - - * orbsvcs/LifeCycle_Service/Makefile: Removed STL flags. - - * tao/TAO.{h,cpp}: Passing in argc to the TAO_ORB_Manager by - reference, since ORB_init takes argc by reference. - - * orbsvcs/Trading_Service/Trading_Service.{h,cpp}: - * orbsvcs/Trading_Service/Makefile: - Made Trading Service app resemble other orbsvcs apps. Accepts -TS* - command line arguments. Has the ability to form a complete graph - federation with other traders on the same multicast network. - - * orbsvcs/tests/Trading/Offer_Exporter.{h,cpp}: - * orbsvcs/tests/Trading/Offer_Importer.{h,cpp}: - * orbsvcs/tests/Trading/Service_Type_Exporter.{h,cpp}: - * orbsvcs/tests/Trading/export_test.cpp: - * orbsvcs/tests/Trading/Makfile: - export_test will now export service types and offers to all - traders linked to the multicast-enabled trader, so import_test - will test federated queries. - - * orbsvcs/orbsvcs/IOR_Multicast.{h,cpp}: Added an init method for - initialization outside the constructor. - - * orbsvcs/orbsvcs/Makefile: Changed macro name from - TAO_HAS_DYNAMIC_PROPERTY_BUG to TAO_HAS_OBJECT_IN_STRUCT_MARSHAL_BUG. - - * orbsvcs/orbsvcs/Trader/*.*: - o Hopefully fixed DEC cxx errors/warnings. - o Added command-line configuration of trader policies, interfaces, - and multithreading support. - o Debugged link interface and federated queries. - o Added explicit template specialization. - -Wed Jul 1 1:55:23 1998 Jeff Parsons - - * TAO/tests/Cubit/TAO/DII_Cubit/Makefile: It works, at least with - SunCC. It builds the DII client and also the IDL server if - necessary (since we run it before running client.exe) -thanks - to David Levine for that. - * TAO/tests/Cubit/TAO/DII_Cubit/client.h, cpp: Now builds and - executes on Unix and NT. Also added some macros for the - environment checking inside the operations. - -Wed Jul 1 10:28:07 1998 Alexander Babu Arulanthu - - * TAO_IDL/be_include/be_interface.h (be_type): Fixed the warnings - in g++. - -Wed Jul 1 06:36:11 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp: For the copying - version of the <<= operator, we were not doing a copy. Thanks to - Seth Widoff for pointing this out. - -Tue Jun 30 22:08:38 1998 David L. Levine - - * TAO_IDL/be/be_codegen.cpp (lookup_strategy): added full - qualification of TAO_CodeGen::LOOKUP_STRATEGY return type. - -Tue Jun 30 18:27:49 1998 Carlos O'Ryan - - * tao/Sequence_T.i: - Another ACE_CAST_CONST problem, thanks to Seth Widoff - (sbw1@cs.wustl.edu) for catching this one. - -Tue Jun 30 18:21:04 1998 Seth Benjamin Widoff - - * tests/Quoter/Makefile: - Removed STL includes --- no longer needed for Trading Service. - -Tue Jun 30 16:50:12 1998 Alexander Babu Arulanthu - - First round of changes for GPERF + TAO_IDL integration. Execute - tao_idl with -P option to enable PERFECT_HASH operation lookup - strategy. - - IDL-Attributes are not supported yet. - - * TAO_IDL/driver/drv_args.cpp: Added option -P to enable - PERFECT_HASH operation lookup strategy. - - * TAO_IDL/be_include/be_interface.h: Added methods to generate - perfect hashing operation lookup table in the server skeleton - code. - - * TAO_IDL/be_include/be_helper.h (class TAO_OutStream): Added a - new stream type GPERF_INPUT to indicate the outstream is for - gperf's input file. - - * TAO_IDL/be_include/be_codegen.h (class TAO_CodeGen): Added to indicate various lookup - strategies. Added the member and access methods that keeps track - of the TAO_OutStream that corresponds to the gperf's input file. - - * TAO_IDL/be_include/be.h: Included "ace/Process.h". - - * TAO_IDL/be/be_interface.cpp: - - * TAO_IDL/be/be_helper.cpp: - - * TAO_IDL/be/be_codegen.cpp: - - * tao/Operation_Table.h (TAO_Perfect_Hash_OpTable): - * tao/Operation_Table.cpp : - Defined the class TAO_Perfect_Hash_OpTable, the factory - class for Perfect_Hashing-Operation_Lookup strategy. - -Tue Jun 30 13:23:59 1998 Carlos O'Ryan - - * orbsvcs/orbsvcs/Scheduler_Factory.cpp: - Workaround Sun/CC problem when compiling with -O (but not - -fast). Apparently it does not like to use static (file) scope - symbols in the definition of a template. - -Tue Jun 30 10:40:00 1998 Michael Kircher - - * docs/configurations.html: Added documentation about the - -ORBiiopprofilelock switch. - - * tao/Client_Strategy_Factory.{h,cpp}: Added the create_iiop_profile_lock (void) - - * tao/GIOP.cpp: Use ACE_Lock instead of ACE_SYNCH_MUTEX. - - * tao/IIOP_Object.cpp: Added the initialization of the fwd_profile_lock_ptr to - the constructor. - - * tao/IIOP_Object.h: Changed the forward profile lock to a pointer to a lock. - - * tao/IIOP_Object.i: Added the initialization of the fwd_profile_lock_ptr to - the constructor. - - * tao/default_client.{h,cpp}: Added the parsing of "-ORBportiiopproflielock" to - the parse_args method. "thread" (default) means to use a mutex lock - on the access of the forwarding iiop profile. "null" means, use a null - mutex, which is faster, but does not provide any protection. - Added also the function create_iiop_profile_lock () to allow - others to create a new lock, depending on the above mentioned switch. - -Tue Jun 30 00:58:57 1998 Douglas C. Schmidt - - * TAO version 0.1.36 released. - -Mon Jun 29 14:43:17 1998 David L. Levine - - * TAO_IDL/be/be_array.cpp (gen_forany_defn): changed - declaration of friend CORBA::Any to friend class CORBA_Any, - to keep DEC cxx from complaining. Also, commented out - the declaration, because it doesn't appear to be necessary. - - * tests/OctetSeq/OctetSeq.cpp (main): cast sizeof to int - to avoid egcs warning about signed/unsigned comparison. - -Mon Jun 29 11:05:03 1998 Carlos O'Ryan - - * tao/encode.cpp: - Removed unused variable. - -Mon Jun 29 11:00:26 1998 Aniruddha Gokhale - - * TAO_IDL/be/be_visitor_operation/operation_cs.cpp: - - After the call to do_static_call, we were not checking if some - exception was raised. This was causing major problems if there was - any post do_static_call processing such as narrowing to be - done. Thanks to Seth Widoff for reporting the problem. - -Sun Jun 28 21:33:48 1998 David L. Levine - - * tao/GIOP.cpp: replaced ACE_SYNCH_RW_MUTEX with - ACE_SYNCH_MUTEX so that it will compile with g++ - (and be correct :-). - - * tests/OctetSeq/OctetSeq.cpp (main): changed loop index - i from u_int to int to avoid signed/unsigned comparison. - -Sun Jun 28 16:10:00 1998 Michael Kircher - - * tests/NestedUpcalls/Triangle_Test/Makefile: Added - this Makefile for use on Unix machines. - -Sun Jun 28 15:30:00 1998 Michael Kircher - - * tao/GIOP.cpp: In method location_forwarding, removed - the explicit release of the IIOP_Object. It is implicitly - released by the release of the CORBA::OBject pointer. - - * tests/Quoter/Generic_Factory_Impl.{h,cpp}: Splitted - the create_object method into two parts. - -Sat Jun 27 18:13:05 1998 Irfan Pyarali - - * TAO/tests/POA/Explicit_Activation/server.cpp (main): Changed - #include "ace/Timeprobes.h" to #include "tao/Timeprobes.h". diff --git a/TAO/IIOP/Build/default.bld b/TAO/IIOP/Build/default.bld deleted file mode 100755 index 7b67d4a13c9..00000000000 --- a/TAO/IIOP/Build/default.bld +++ /dev/null @@ -1,16 +0,0 @@ -#!build -default: - nobuild - :debuglevel=multi -tao.bld - library - :cx_e_option=nomsgnumbers - :dependency=nodepend - :cx_silent=1 - :cx_silent=21 - :cx_silent=191 - :sourcedirs=/home/ace/ACE_wrappers.vxworks - :sourcedirs=../lib - :sourcedirs=.. - :libraries=/home/ace/ACE_wrappers.vxworks/libACE.a - :libraries=/appl/newgreen/vxppc603/indlib.o diff --git a/TAO/IIOP/Build/tao.bld b/TAO/IIOP/Build/tao.bld deleted file mode 100755 index 21007d8ab61..00000000000 --- a/TAO/IIOP/Build/tao.bld +++ /dev/null @@ -1,53 +0,0 @@ -#!build -default: - library - :defines=__IIOP_BUILD - :defines=DEBUG -../lib/any.cpp - C++ -../lib/cdr.cpp - C++ -../lib/connmgr.cpp - C++ -../lib/corbacom.cpp - C++ -../lib/debug.cpp - C++ -../lib/except.cpp - C++ -../lib/giop.cpp - C++ -../lib/iiopobj.cpp - C++ -../lib/iioporb.cpp - C++ -../lib/interp.cpp - C++ -../lib/invoke.cpp - C++ -../lib/marshal.cpp - C++ -../lib/nvlist.cpp - C++ -../lib/object.cpp - C++ -../lib/orbobj.cpp - C++ -../lib/principa.cpp - C++ -../lib/request.cpp - C++ -../lib/svrrqst.cpp - C++ -../lib/t-sizes.cpp - C++ -../lib/tc_const.cpp - C++ -../lib/tcpoa.cpp - C++ -../lib/toa.cpp - C++ -../lib/typecode.cpp - C++ -../lib/roa.cpp - C++ diff --git a/TAO/IIOP/Makefile b/TAO/IIOP/Makefile deleted file mode 100644 index f6dba1717ab..00000000000 --- a/TAO/IIOP/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = - -DIRS = lib #test - -CLONE = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/IIOP/docs/us/codecounts/align.hh.cccc b/TAO/IIOP/docs/us/codecounts/align.hh.cccc deleted file mode 100644 index 13cb1ddca0e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/align.hh.cccc +++ /dev/null @@ -1,29 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/align.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef unsigned int ptr_arith_t; 1 21 14 2 0 0.1 0.0 -typedef unsigned long ptr_arith_t; 24 24 0 0 0 -typedef unsigned long long ptr_arit 27 27 0 0 0 -static inline ptr_arith_t align_bin 35 46 5 5 1 1.0 0.2 -static inline unsigned char*ptr_ali 49 61 8 4 1 0.5 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 27 16 2 0.6 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/any.cpp.cccc b/TAO/IIOP/docs/us/codecounts/any.cpp.cccc deleted file mode 100644 index 44e6cce66e5..00000000000 --- a/TAO/IIOP/docs/us/codecounts/any.cpp.cccc +++ /dev/null @@ -1,41 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/any.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t any_lock=PTH 1 48 34 1 0 0.0 0.0 -CORBA_TypeCode_ptr CORBA_Any::type( 53 57 0 4 1 ! *** ! *** -void*CORBA_Any::value()const{return 59 63 0 4 1 ! *** ! *** -CORBA_Any::CORBA_Any(){} 65 78 7 6 0 0.9 0.0 -CORBA_Any::CORBA_Any(){} 81 97 5 11 0 2.2 0.0 -static CORBA_TypeCode::traverse_sta 100 305 44 ? 131 ! 30 3.0 0.7 -CORBA_Any::CORBA_Any(){} 308 329 4 13 1 3.3 0.3 -static CORBA_TypeCode::traverse_sta 332 457 46 60 ! 21 1.3 0.5 -CORBA_Any::~CORBA_Any(){} 460 481 10 9 2 0.9 0.2 -void CORBA_Any::replace(){} 484 509 3 19 2 6.3 0.7 -DEFINE_GUID(IID_CORBA_Any,0xa201e4c 511 517 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_Any::AddRef() 520 529 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_Any::Release( 531 548 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_Any::QueryI 550 567 0 14 5 ! *** ! *** -CORBA_Any::CORBA_Any(){} 570 583 4 8 0 2.0 0.0 -CORBA_Any&CORBA_Any::operator=(){} 585 660 16 45 ? 15 2.8 0.9 -CORBA_Any::operator VARIANT(){VARIA 662 670 1 5 1 5.0 1.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 178 365 83 2.1 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/any.hh.cccc b/TAO/IIOP/docs/us/codecounts/any.hh.cccc deleted file mode 100644 index 6cfac7fd831..00000000000 --- a/TAO/IIOP/docs/us/codecounts/any.hh.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/any.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef CORBA_Any*CORBA_Any_ptr; 1 10 9 0 0 0.0 0.0 -extern const IID IID_CORBA_Any; 12 12 0 0 0 -class CORBA_Any{}; 14 87 16 46 2 2.9 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 25 49 2 2.0 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc deleted file mode 100644 index aa92c9f81bd..00000000000 --- a/TAO/IIOP/docs/us/codecounts/cdr.cpp.cccc +++ /dev/null @@ -1,36 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/cdr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_Boolean CDR::put_byte(){} 1 60 37 11 4 0.3 0.1 -CORBA_Boolean CDR::put_short(){} 63 90 7 18 4 2.6 0.6 -CORBA_Boolean CDR::put_long(){} 92 120 7 18 4 2.6 0.6 -CORBA_Boolean CDR::put_longlong(){} 122 149 7 18 4 2.6 0.6 -CORBA_Boolean CDR::put_longdouble() 151 178 7 18 4 2.6 0.6 -CORBA_Boolean CDR::get_byte(){} 181 196 3 11 3 3.7 1.0 -CORBA_Boolean CDR::get_short(){} 199 230 6 22 4 3.7 0.7 -CORBA_Boolean CDR::get_long(){} 232 269 10 24 4 2.4 0.4 -CORBA_Boolean CDR::get_longlong(){} 271 312 10 28 4 2.8 0.4 -CORBA_Boolean CDR::get_longdouble() 315 363 9 36 4 4.0 0.4 -CORBA_Boolean CDR::skip_string(){CO 366 377 2 8 4 4.0 2.0 -CORBA_Boolean CDR::grow(){} 380 460 37 34 ? 9 0.9 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 142 258 52 1.8 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/cdr.hh.cccc b/TAO/IIOP/docs/us/codecounts/cdr.hh.cccc deleted file mode 100644 index 627ff33a9d9..00000000000 --- a/TAO/IIOP/docs/us/codecounts/cdr.hh.cccc +++ /dev/null @@ -1,26 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/cdr.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -struct _EXPCLASS CDR{enum{SHORT_SIZ 1 362 155 ? 142 ! 25 0.9 0.2 -; 362 362 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 155 143 25 0.9 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc deleted file mode 100644 index e934a7ebd12..00000000000 --- a/TAO/IIOP/docs/us/codecounts/connmgr.cpp.cccc +++ /dev/null @@ -1,38 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/connmgr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static client_endpoint*client_list; 1 77 40 2 0 0.1 0.0 -static server_endpoint*server_list; 78 78 0 0 0 -static pthread_mutex_t client_lock= 82 88 6 0 0 0.0 0.0 -static pthread_mutex_t server_lock= 89 89 0 0 0 -static ACE_HANDLE signal_fd; 91 97 6 0 0 0.0 0.0 -static ACE_HANDLE signal_in_fd; 99 103 4 0 0 0.0 0.0 -void client_endpoint::release(){} 108 120 3 6 0 2.0 0.0 -client_endpoint*client_endpoint::lo 123 290 75 69 ? 18 0.9 0.2 -void client_endpoint::dump(){} 295 318 6 12 1 2.0 0.2 -void server_endpoint::release(){} 324 354 17 7 0 0.4 0.0 -server_endpoint*server_endpoint::in 357 507 50 72 ? 16 1.4 0.3 -server_endpoint*server_endpoint::bl 510 742 89 ? 105 ! 27 1.2 0.3 -void server_endpoint::shutdown_conn 744 765 0 16 2 ! *** ! *** -void server_endpoint::dump(){} 770 790 3 12 2 4.0 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 299 315 66 1.1 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc b/TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc deleted file mode 100644 index e688b27d271..00000000000 --- a/TAO/IIOP/docs/us/codecounts/connmgr.hh.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/connmgr.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -template<>class autorelease{}; 1 47 14 16 6 1.1 0.4 -struct client_endpoint{}; 50 85 11 15 0 1.4 0.0 -class server_endpoint{}; 88 141 15 27 0 1.8 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 40 61 6 1.5 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc b/TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc deleted file mode 100644 index b7859bad94a..00000000000 --- a/TAO/IIOP/docs/us/codecounts/corbacom.cpp.cccc +++ /dev/null @@ -1,32 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/corbacom.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_String CORBA_string_alloc(){} 1 26 10 5 1 0.5 0.1 -CORBA_String CORBA_string_copy(){} 28 37 0 7 3 ! *** ! *** -void CORBA_string_free(){} 39 43 0 4 0 ! *** -extern"unsigned wslen(const wchar_t 47 60 4 8 2 2.0 0.5 -extern"wchar_t*wscpy(wchar_t*dest,c 62 70 0 7 2 ! *** ! *** -CORBA_WString CORBA_wstring_alloc() 74 82 4 4 1 1.0 0.3 -CORBA_WString CORBA_wstring_copy(){ 84 92 0 7 3 ! *** ! *** -void CORBA_wstring_free(){} 94 98 0 4 0 ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 18 54 12 3.0 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc b/TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc deleted file mode 100644 index 256095a8f3e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/corbacom.hh.cccc +++ /dev/null @@ -1,59 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/corbacom.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef bool CORBA_Boolean; 1 13 6 1 0 0.2 0.0 -typedef int CORBA_Boolean; 18 18 0 0 0 -enum{CORBA_B_FALSE=0,CORBA_B_TRUE=1 19 19 0 0 0 -; 19 19 0 0 0 -typedef unsigned char CORBA_Octet; 22 22 0 0 0 -typedef short CORBA_Short; 24 24 0 0 0 -typedef unsigned short CORBA_UShort 25 25 0 0 0 -typedef long CORBA_Long; 27 32 4 0 0 0.0 0.0 -typedef unsigned long CORBA_ULong; 33 33 0 0 0 -typedef int CORBA_Long; 35 36 1 0 0 0.0 0.0 -typedef unsigned CORBA_ULong; 37 37 0 0 0 -typedef long long CORBA_LongLong; 40 47 6 0 0 0.0 0.0 -typedef unsigned long long CORBA_UL 48 48 0 0 0 -typedef long CORBA_LongLong; 50 50 0 0 0 -typedef unsigned long CORBA_ULongLo 51 51 0 0 0 -typedef __int64 CORBA_LongLong; 53 53 0 0 0 -typedef unsigned __int64 CORBA_ULon 54 54 0 0 0 -struct CORBA_LongLong{}; 56 64 6 0 0 0.0 0.0 -struct CORBA_ULongLong{}; 65 65 0 0 0 -struct CORBA_LongLong{}; 67 67 0 0 0 -struct CORBA_ULongLong{}; 68 68 0 0 0 -typedef float CORBA_Float; 72 72 0 0 0 -typedef double CORBA_Double; 73 73 0 0 0 -typedef long double CORBA_LongDoubl 75 83 7 0 0 0.0 0.0 -struct CORBA_LongDouble{}; 86 88 0 2 0 ! *** -typedef char CORBA_Char; 91 91 0 0 0 -typedef CORBA_Char*CORBA_String; 92 92 0 0 0 -CORBA_String CORBA_string_alloc(); 94 94 0 0 0 -CORBA_String CORBA_string_copy(); 95 95 0 0 0 -void CORBA_string_free(); 96 96 0 0 0 -typedef wchar_t CORBA_WChar; 98 104 6 0 0 0.0 0.0 -typedef CORBA_WChar*CORBA_WString; 105 105 0 0 0 -CORBA_WString CORBA_wstring_alloc() 107 107 0 0 0 -CORBA_WString CORBA_wstring_copy(); 108 108 0 0 0 -void CORBA_wstring_free(); 109 109 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 36 37 0 1.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/debug.cpp.cccc b/TAO/IIOP/docs/us/codecounts/debug.cpp.cccc deleted file mode 100644 index 486b8373461..00000000000 --- a/TAO/IIOP/docs/us/codecounts/debug.cpp.cccc +++ /dev/null @@ -1,39 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/debug.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -unsigned debug_level=0; 1 43 13 1 0 0.1 0.0 -char*debug_filter="; 44 44 0 0 0 -static FILE*debug_stream=stderr; 45 45 0 0 0 -static pid_t my_pid; 48 63 13 1 0 0.1 0.0 -static pthread_once_t debug_init=PT 68 71 3 0 0 0.0 0.0 -static void setup_once(){} 75 79 0 4 0 ! *** -static void emit_prefix(){} 81 87 0 5 0 ! *** -static void setup(){} 91 102 5 6 1 1.2 0.2 -static void setup(){} 109 120 5 6 1 1.2 0.2 -void _EXPFUNC dmsg_filter(const cha 130 170 3 28 ? 12 ? 9.3 4.0 -void _EXPFUNC dmsg_filter(unsigned 172 193 1 15 3 ?15.0 3.0 -void _EXPFUNC dmsg_v(const char*_FA 195 213 1 13 1 ?13.0 1.0 -void _EXPFUNC _dmsg_x(CORBA_Environ 215 239 1 18 1 ?18.0 1.0 -void _EXPFUNC dmsg_opaque(char*_FAR 241 286 1 38 ? 10 !38.0 ?10.0 -void _EXPFUNC dmsg_opaque_full(char 288 335 1 39 ? 11 !39.0 ?11.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 47 189 40 4.0 0.9 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/debug.hh.cccc b/TAO/IIOP/docs/us/codecounts/debug.hh.cccc deleted file mode 100644 index 932d9fb5a19..00000000000 --- a/TAO/IIOP/docs/us/codecounts/debug.hh.cccc +++ /dev/null @@ -1,29 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/debug.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern"char*strerror(int); 1 12 6 1 0 0.2 0.0 -extern unsigned debug_level; 15 22 7 0 0 0.0 0.0 -extern char*debug_filter; 22 23 1 0 0 0.0 0.0 -_dmsg_x(env,s); 23 43 8 3 0 0.4 0.0 -line 43: syntax error at "}" missing Eof --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 42 21 0 0.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/except.cpp.cccc b/TAO/IIOP/docs/us/codecounts/except.cpp.cccc deleted file mode 100644 index 8b1b2294821..00000000000 --- a/TAO/IIOP/docs/us/codecounts/except.cpp.cccc +++ /dev/null @@ -1,53 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/except.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t except_lock= 1 31 12 1 0 0.1 0.0 -DEFINE_GUID(IID_CORBA_Exception,0x7 35 45 2 2 0 1.0 0.0 -DEFINE_GUID(IID_CORBA_UserException 47 49 1 1 0 1.0 0.0 -DEFINE_GUID(IID_CORBA_SystemExcepti 51 53 1 1 0 1.0 0.0 -CORBA_Exception::CORBA_Exception(){ 56 66 0 10 1 ! *** ! *** -CORBA_Exception::CORBA_Exception(){ 68 78 0 10 1 ! *** ! *** -CORBA_Exception::~CORBA_Exception() 80 91 5 5 0 1.0 0.0 -CORBA_Exception&CORBA_Exception::op 93 107 0 13 3 ! *** ! *** -const CORBA_String CORBA_Exception: 109 119 0 9 3 ! *** ! *** -const CORBA_TypeCode_ptr CORBA_Exce 121 126 0 5 1 ! *** ! *** -ULONG __stdcall CORBA_Exception::Ad 128 141 3 7 1 2.3 0.3 -ULONG __stdcall CORBA_Exception::Re 143 167 2 12 3 6.0 1.5 -HRESULT __stdcall CORBA_Exception:: 169 192 4 15 5 3.8 1.3 -CORBA_UserException::CORBA_UserExce 195 203 3 5 0 1.7 0.0 -CORBA_UserException::~CORBA_UserExc 205 207 0 2 0 ! *** -CORBA_SystemException::CORBA_System 209 218 0 9 0 ! *** -CORBA_SystemException::~CORBA_Syste 220 222 0 2 0 ! *** -static CORBA_TypeCode_ptr sys_excep 228 228 0 0 0 -CORBA_ExceptionList __system_except 229 229 0 0 0 -static void make_standard_typecode( 231 318 29 49 ? 10 1.7 0.3 -SYSEX(UNKNOWN)SYSEX(BAD_PARAM)SYSEX 321 396 24 36 1 1.5 0.0 -static CORBA_Octet tc_buf_Bounds[]= 400 418 7 11 0 1.6 0.0 -static CORBA_TypeCode tc_std_Bounds 419 420 0 1 0 ! *** -CORBA_TypeCode_ptr _tc_CORBA_Bounds 421 421 0 0 0 -static CORBA_Octet tc_buf_BadKind[] 423 437 3 11 0 3.7 0.0 -static CORBA_TypeCode tc_std_BadKin 438 439 0 1 0 ! *** -CORBA_TypeCode_ptr _tc_CORBA_BadKin 440 440 0 0 0 -CORBA_ExceptionType CORBA_Environme 444 469 8 13 6 1.6 0.8 -void _EXPFUNC print_exception(const 472 535 24 35 7 1.5 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 128 295 42 2.3 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/except.hh.cccc b/TAO/IIOP/docs/us/codecounts/except.hh.cccc deleted file mode 100644 index 430ef037b0d..00000000000 --- a/TAO/IIOP/docs/us/codecounts/except.hh.cccc +++ /dev/null @@ -1,37 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/except.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern const IID IID_CORBA_Exceptio 1 15 13 1 0 0.1 0.0 -extern const IID IID_CORBA_UserExce 16 16 0 0 0 -extern const IID IID_CORBA_SystemEx 17 17 0 0 0 -class _EXPCLASS CORBA_Exception:pub 19 52 3 25 2 ? 8.3 0.7 -; 52 52 0 0 0 -typedef CORBA_Exception*CORBA_Excep 53 53 0 0 0 -class _EXPCLASS CORBA_UserException 55 65 5 5 0 1.0 0.0 -; 65 65 0 0 0 -enum CORBA_CompletionStatus{}; 67 75 7 1 0 0.1 0.0 -class _EXPCLASS CORBA_SystemExcepti 77 99 2 16 2 ? 8.0 1.0 -; 99 99 0 0 0 -extern CORBA_TypeCode_ptr _tc_CORBA 102 117 6 4 0 0.7 0.0 -line 117: syntax error at "}" missing Eof --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 44 112 6 2.5 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/generate b/TAO/IIOP/docs/us/codecounts/generate deleted file mode 100755 index c04f8b92e19..00000000000 --- a/TAO/IIOP/docs/us/codecounts/generate +++ /dev/null @@ -1,24 +0,0 @@ -#/bin/sh - -error() -{ - ret=$1; shift - echo "ERROR: " $@ - return $ret -} - -test -x ${CCCC:=/usr/local/bin/cccc} \ - || error 1 "Value of \$CCCC ($CCCC) not found." - -test -d ${TOPDIR:=../../../lib} \ - || error 1 "Unable to locate \$TOPDIR ($TOPDIR)." - -find $TOPDIR \( -name '*.h' -o -name '*.i' -o -name '*.hh' -o -name '*.cpp' \) -print | -while read file -do - outname=`basename $file`.cccc - $CCCC $file > $outname 2>&1 - echo -n "." -done - -echo diff --git a/TAO/IIOP/docs/us/codecounts/giop.cpp.cccc b/TAO/IIOP/docs/us/codecounts/giop.cpp.cccc deleted file mode 100644 index d4aa24bb14b..00000000000 --- a/TAO/IIOP/docs/us/codecounts/giop.cpp.cccc +++ /dev/null @@ -1,50 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/giop.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t fwd_info_loc 1 79 45 2 0 0.0 0.0 -static inline CORBA_Boolean start_m 83 112 6 19 3 3.2 0.5 -static const char digits[]="; 115 115 0 0 0 -static const char*names[]={}; 116 120 0 4 0 ! *** -static void dump_msg(){} 122 136 0 13 4 ! *** ! *** -CORBA_Boolean GIOP::send_message(){ 142 226 30 43 ? 12 1.4 0.4 -static const char close_message[]={ 229 250 16 5 0 0.3 0.0 -void GIOP::close_connection(ACE_HAN 253 272 8 11 0 1.4 0.0 -static const char error_message[]={ 274 286 7 5 0 0.7 0.0 -static inline void send_error(ACE_H 288 297 0 9 0 ! *** -static int read_buffer(){} 300 331 6 18 4 3.0 0.7 -GIOP::MsgType GIOP::read_message(){ 334 481 75 56 ? 18 0.7 0.2 -GIOP::Invocation::Invocation(IIOP_O 484 524 22 14 0 0.6 0.0 -GIOP::Invocation::~Invocation(){} 526 528 0 2 0 ! *** -static const CORBA_Long _oc_opaque[ 530 543 13 0 0 0.0 0.0 -CORBA_TypeCode TC_opaque(); 544 546 0 2 0 ! *** -static const CORBA_Long _oc_svc_ctx 549 610 50 9 0 0.2 0.0 -static CORBA_TypeCode TC_ServiceCon 611 613 0 2 0 ! *** -void GIOP::Invocation::start(CORBA_ 616 729 58 45 ? 15 0.8 0.3 -extern CORBA_ExceptionList __system 731 731 0 0 0 -GIOP::ReplyStatusType GIOP::Invocat 733 1086 175 ? 144 ! 38 0.8 0.2 -void GIOP::incoming_message(){} 1089 1353 79 ? 151 ! 24 1.9 0.3 -template class autorelease 1 37 19 1 0 0.1 0.0 -class IOP{}; 39 109 45 21 0 0.5 0.0 -class GIOP{}; 112 321 65 ? 120 0 1.8 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 129 145 0 1.1 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc b/TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc deleted file mode 100644 index b440bf69b76..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iiopobj.cpp.cccc +++ /dev/null @@ -1,34 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iiopobj.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t iiopobj_lock 1 30 13 1 0 0.1 0.0 -IIOP::ProfileBody::ProfileBody(cons 35 50 0 13 0 ! *** -CORBA_ULong IIOP_Object::hash(){} 53 81 10 15 2 1.5 0.2 -CORBA_Boolean IIOP_Object::is_equiv 84 124 10 25 ? 9 2.5 0.9 -DEFINE_GUID(IID_IIOP_Object,0xa201e 127 133 4 2 0 0.5 0.0 -DEFINE_GUID(IID_STUB_Object,0xa201e 135 141 4 2 0 0.5 0.0 -DEFINE_GUID(IID_CORBA_Object,0xa201 143 145 1 1 0 1.0 0.0 -ULONG __stdcall IIOP_Object::AddRef 147 160 3 7 1 2.3 0.3 -ULONG __stdcall IIOP_Object::Releas 162 179 0 10 3 ! *** ! *** -HRESULT __stdcall IIOP_Object::Quer 182 214 11 18 7 1.6 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 56 104 22 1.9 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc b/TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc deleted file mode 100644 index 866ab27c769..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iiopobj.hh.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iiopobj.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef CORBA_SEQUENCE 1 15 10 1 0 0.1 0.0 -class _EXPCLASS IIOP{public:struct 17 48 8 17 0 2.1 0.0 -; 48 48 0 0 0 -extern"const IID IID_IIOP_Object; 51 59 8 0 0 0.0 0.0 -class _EXPCLASS IIOP_Object:public 61 152 33 47 0 1.4 0.0 -; 152 152 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 59 69 0 1.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc b/TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc deleted file mode 100644 index 6d1e462cf27..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iioporb.cpp.cccc +++ /dev/null @@ -1,35 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iioporb.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static const char ior_prefix[]="; 1 27 9 1 0 0.1 0.0 -static const char iiop_prefix[]="; 28 28 0 0 0 -static const char xchars[]="; 29 29 0 0 0 -static inline char nibble2hex(unsig 32 39 3 4 1 1.3 0.3 -static inline unsigned char hex2byt 41 51 0 10 5 ! *** ! *** -CORBA_String IIOP_ORB::object_to_st 54 174 42 64 ? 17 1.5 0.4 -static CORBA_Object_ptr ior_string_ 177 231 14 33 ? 10 2.4 0.7 -static CORBA_Object_ptr iiop_string 234 349 34 68 ! 22 2.0 0.6 -CORBA_Object_ptr IIOP_ORB::string_t 352 374 6 13 5 2.2 0.8 -DEFINE_GUID(IID_IIOP_ORB,0xa201e4c4 376 382 4 2 0 0.5 0.0 -HRESULT __stdcall IIOP_ORB::QueryIn 385 408 3 16 6 5.3 2.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 115 222 66 1.9 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc b/TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc deleted file mode 100644 index e016469fd1e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/iioporb.hh.cccc +++ /dev/null @@ -1,28 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/iioporb.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class IIOP_ORB*IIOP_ORB_ptr 1 13 9 1 0 0.1 0.0 -extern const IID IID_IIOP_ORB; 15 15 0 0 0 -class _EXPCLASS IIOP_ORB:public COR 17 47 4 22 0 5.5 0.0 -; 47 47 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 13 26 0 2.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/initguid.h.cccc b/TAO/IIOP/docs/us/codecounts/initguid.h.cccc deleted file mode 100644 index b106c9a8731..00000000000 --- a/TAO/IIOP/docs/us/codecounts/initguid.h.cccc +++ /dev/null @@ -1,25 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/initguid.h -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -const IID name={0} 1 6 2 1 0 0.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 2 2 0 1.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/interp.cpp.cccc b/TAO/IIOP/docs/us/codecounts/interp.cpp.cccc deleted file mode 100644 index 690563b2274..00000000000 --- a/TAO/IIOP/docs/us/codecounts/interp.cpp.cccc +++ /dev/null @@ -1,40 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/interp.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef size_t attribute_calculator 1 86 69 6 0 0.1 0.0 -static attribute_calculator calc_st 88 88 0 0 0 -static attribute_calculator calc_ex 89 89 0 0 0 -static attribute_calculator calc_un 90 90 0 0 0 -static attribute_calculator calc_al 91 91 0 0 0 -static attribute_calculator calc_ar 92 92 0 0 0 -typedef CORBA_Boolean param_skip_rt 95 99 4 0 0 0.0 0.0 -static CORBA_Boolean skip_encapsula 101 105 0 4 1 ! *** ! *** -static CORBA_Boolean skip_long(){} 107 113 0 5 1 ! *** ! *** -struct table_element{}; 116 139 18 5 0 0.3 0.0 -static table_element table[]={}; 141 188 37 10 0 0.3 0.0 -{struct align_struct_ x one;char du 191 221 23 4 0 0.2 0.0 -; 221 221 0 0 0 -align_struct_ table[t].size=sizeof( 223 224 0 0 0 -table[t].alignment=(char*)&align.tw 225 226 0 1 0 ! *** -line 227: syntax error at "}" missing Eof --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 603 709 174 1.2 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc b/TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc deleted file mode 100644 index a6b006f91e5..00000000000 --- a/TAO/IIOP/docs/us/codecounts/invoke.cpp.cccc +++ /dev/null @@ -1,26 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/invoke.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -void IIOP_Object::do_call(CORBA_Env 1 193 87 77 ! 24 0.9 0.3 -void IIOP_Object::do_dynamic_call(c 196 346 44 85 ! 26 1.9 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 131 164 50 1.3 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc b/TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc deleted file mode 100644 index 90175d333fb..00000000000 --- a/TAO/IIOP/docs/us/codecounts/marshal.cpp.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/marshal.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern"{unsigned wslen(const wchar_ 1 58 39 4 0 0.1 0.0 -extern CORBA_TypeCode TC_opaque; 61 61 0 0 0 -CORBA_TypeCode::traverse_status CDR 64 494 146 ? 230 ! 71 1.6 0.5 -const CORBA_TypeCode_ptr __tc_const 497 548 23 24 0 1.0 0.0 -; 548 548 0 0 0 -CORBA_TypeCode::traverse_status CDR 551 1107 163 ? 323 ! 88 2.0 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 371 586 159 1.6 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc b/TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc deleted file mode 100644 index d07414860b1..00000000000 --- a/TAO/IIOP/docs/us/codecounts/nvlist.cpp.cccc +++ /dev/null @@ -1,40 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/nvlist.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t nvlist_lock= 1 21 9 1 0 0.1 0.0 -DEFINE_GUID(IID_CORBA_NamedValue,0x 26 32 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_NamedValue::A 35 44 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_NamedValue::R 46 61 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_NamedValue: 63 80 0 14 5 ! *** ! *** -void CORBA_release(){} 82 90 3 5 1 1.7 0.3 -CORBA_Boolean CORBA_is_nil(){} 92 96 0 4 1 ! *** ! *** -CORBA_NamedValue::~CORBA_NamedValue 98 102 0 4 1 ! *** ! *** -DEFINE_GUID(IID_CORBA_NVList,0x7742 105 111 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_NVList::AddRe 114 123 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_NVList::Relea 125 140 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_NVList::Que 142 159 0 14 5 ! *** ! *** -void CORBA_release(){} 161 169 3 5 1 1.7 0.3 -CORBA_Boolean CORBA_is_nil(){} 171 175 0 4 1 ! *** ! *** -CORBA_NVList::~CORBA_NVList(){} 177 188 0 9 2 ! *** ! *** -CORBA_NamedValue_ptr CORBA_NVList:: 190 262 32 35 6 1.1 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 55 147 31 2.7 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc b/TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc deleted file mode 100644 index b680140d4b9..00000000000 --- a/TAO/IIOP/docs/us/codecounts/nvlist.hh.cccc +++ /dev/null @@ -1,37 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/nvlist.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -class _EXPCLASS CORBA_NamedValue; 1 13 12 0 0 0.0 0.0 -void CORBA_release(); 15 15 0 0 0 -CORBA_Boolean CORBA_is_nil(); 16 16 0 0 0 -enum{CORBA_ARG_IN=0x01,CORBA_ARG_OU 18 25 1 6 0 6.0 0.0 -; 25 25 0 0 0 -class _EXPCLASS CORBA_NamedValue{pu 27 57 3 21 3 7.0 1.0 -; 57 57 0 0 0 -class _EXPCLASS CORBA_NVList; 60 71 11 0 0 0.0 0.0 -void CORBA_release(); 73 73 0 0 0 -CORBA_Boolean CORBA_is_nil(); 74 74 0 0 0 -extern"const IID IID_CORBA_NVList; 76 76 0 0 0 -class _EXPCLASS CORBA_NVList{public 78 119 3 31 2 ?10.3 0.7 -; 119 119 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 30 68 5 2.3 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/objbase.h.cccc b/TAO/IIOP/docs/us/codecounts/objbase.h.cccc deleted file mode 100644 index 02225ed7d9f..00000000000 --- a/TAO/IIOP/docs/us/codecounts/objbase.h.cccc +++ /dev/null @@ -1,37 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/objbase.h -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef unsigned long ULONG; 1 23 18 1 0 0.1 0.0 -typedef unsigned long HRESULT; 24 24 0 0 0 -typedef char IID[16]; 26 36 8 1 0 0.1 0.0 -typedef const IID&REFIID; 36 37 1 0 0 0.0 0.0 -DEFINE_GUID(IID_IUnknown,b,c,d,e,f, 41 55 4 9 0 2.3 0.0 -; 55 55 0 0 0 -typedef unsigned long SCODE; 59 61 1 1 0 1.0 0.0 -inline HRESULT ResultFromScode(SCOD 63 63 0 0 1 ! *** -typedef unsigned short VARTYPE; 69 79 10 0 0 0.0 0.0 -enum VARENUM{}; 80 98 18 0 0 0.0 0.0 -struct CY{}; 100 111 3 5 0 1.7 0.0 -typedef double DATE; 113 117 4 0 0 0.0 0.0 -struct VARIANT{}; 119 160 35 6 0 0.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 102 34 1 0.3 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/object.cpp.cccc b/TAO/IIOP/docs/us/codecounts/object.cpp.cccc deleted file mode 100644 index 82d8215949f..00000000000 --- a/TAO/IIOP/docs/us/codecounts/object.cpp.cccc +++ /dev/null @@ -1,55 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/object.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_Object::CORBA_Object(){} 1 25 9 5 0 0.6 0.0 -CORBA_Object::~CORBA_Object(){} 27 29 0 2 0 ! *** -void CORBA_release(){} 31 41 3 7 1 2.3 0.3 -CORBA_Object_ptr CORBA_Object::_dup 43 49 0 6 2 ! *** ! *** -CORBA_Object_ptr CORBA_Object::_nil 51 58 3 4 1 1.3 0.3 -CORBA_Boolean CORBA_is_nil(){} 60 64 0 4 1 ! *** ! *** -void __stdcall CORBA_Object::_creat 67 86 6 13 0 2.2 0.0 -CORBA_Request_ptr __stdcall CORBA_O 89 98 0 9 1 ! *** ! *** -static const paramdata Object_get_i 101 108 5 2 0 0.4 0.0 -static const calldata Object_get_in 109 113 0 4 0 ! *** -; 113 113 0 0 0 -CORBA_InterfaceDef_ptr __stdcall CO 116 150 16 15 3 0.9 0.2 -static const paramdata Object_is_a_ 153 160 4 3 0 0.8 0.0 -static const calldata Object_is_a_c 161 165 0 4 0 ! *** -; 165 165 0 0 0 -CORBA_Boolean __stdcall CORBA_Objec 168 218 27 19 6 0.7 0.2 -static const paramdata Object_get_i 221 228 5 2 0 0.4 0.0 -static const calldata Object_get_im 229 233 0 4 0 ! *** -; 233 233 0 0 0 -CORBA_ImplementationDef_ptr __stdca 236 253 0 15 3 ! *** ! *** -static const paramdata Object_non_e 256 263 5 2 0 0.4 0.0 -static const calldata Object_non_ex 264 268 0 4 0 ! *** -; 268 268 0 0 0 -CORBA_Boolean __stdcall CORBA_Objec 271 306 3 28 ? 8 ? 9.3 2.7 -CORBA_ULong __stdcall CORBA_Object: 309 329 4 14 3 3.5 0.8 -CORBA_Boolean __stdcall CORBA_Objec 332 360 7 18 5 2.6 0.7 -DEFINE_GUID(IID_IUnknown,0x77420089 363 374 7 3 0 0.4 0.0 -DEFINE_GUID(IID_CORBA_Object,0xa201 378 380 1 1 0 1.0 0.0 -ULONG __stdcall CORBA_Object::AddRe 384 389 0 5 1 ! *** ! *** -ULONG __stdcall CORBA_Object::Relea 391 396 0 5 1 ! *** ! *** -HRESULT __stdcall CORBA_Object::Que 398 406 0 8 1 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 105 233 37 2.2 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/object.hh.cccc b/TAO/IIOP/docs/us/codecounts/object.hh.cccc deleted file mode 100644 index b8f3b41f6c5..00000000000 --- a/TAO/IIOP/docs/us/codecounts/object.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/object.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_Object*CORBA_Ob 1 11 10 0 0 0.0 0.0 -void CORBA_release(); 12 12 0 0 0 -CORBA_Boolean CORBA_is_nil(); 13 13 0 0 0 -extern const IID IID_CORBA_Object; 15 15 0 0 0 -class _EXPCLASS CORBA_Object:public 17 109 28 58 0 2.1 0.0 -; 109 109 0 0 0 -line 112: syntax error at "ÿ" missing Start --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 39 63 0 1.6 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orb.hh.cccc b/TAO/IIOP/docs/us/codecounts/orb.hh.cccc deleted file mode 100644 index c5687f297f9..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orb.hh.cccc +++ /dev/null @@ -1,33 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orb.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_TypeCode*CORBA_ 1 112 90 5 0 0.1 0.0 -typedef class CORBA_Any*CORBA_Any_p 113 113 0 0 0 -typedef class CORBA_ImplementationD 115 115 0 0 0 -typedef class CORBA_InterfaceDef*CO 117 117 0 0 0 -typedef class CORBA_Request*CORBA_R 119 119 0 0 0 -typedef class CORBA_NamedValue*CORB 121 121 0 0 0 -typedef class CORBA_NVList*CORBA_NV 123 123 0 0 0 -typedef unsigned CORBA_Flags; 125 125 0 0 0 -line 160: syntax error at "ÿ" missing Start --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 101 17 0 0.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc b/TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc deleted file mode 100644 index 12c296cc020..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orbconf.hh.cccc +++ /dev/null @@ -1,26 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orbconf.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef unsigned long pid_t; 1 148 56 24 0 0.4 0.0 -line 183: syntax error at "ÿ" missing Start --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 67 27 0 0.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc b/TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc deleted file mode 100644 index 927fc2f58fb..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orbobj.cpp.cccc +++ /dev/null @@ -1,41 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orbobj.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -extern void __TC_init_table(); 1 28 10 1 0 0.1 0.0 -extern void __TC_init_standard_exce 29 29 0 0 0 -static pthread_mutex_t refcnt_lock= 32 32 0 0 0 -CORBA_ORB::CORBA_ORB(){} 41 47 3 3 0 1.0 0.0 -CORBA_ORB::~CORBA_ORB(){} 49 52 0 3 0 ! *** -void CORBA_release(){} 54 64 3 7 1 2.3 0.3 -CORBA_ORB_ptr CORBA_ORB::_duplicate 66 72 0 6 2 ! *** ! *** -CORBA_ORB_ptr CORBA_ORB::_nil(){} 74 81 3 4 1 1.3 0.3 -CORBA_Boolean CORBA_is_nil(){} 83 87 0 4 1 ! *** ! *** -DEFINE_GUID(IID_CORBA_ORB,0xa201e4c 90 96 4 2 0 0.5 0.0 -DEFINE_GUID(IID_STUB_Object,0xa201e 99 101 1 1 0 1.0 0.0 -ULONG __stdcall CORBA_ORB::AddRef() 105 114 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_ORB::Release( 116 135 0 11 3 ! *** ! *** -static CORBA_ORB_ptr the_orb; 138 145 7 0 0 0.0 0.0 -CORBA_ORB_ptr CORBA_ORB_init(int&,c 147 290 59 60 ! 23 1.0 0.4 -void CORBA_ORB::create_list(){} 292 308 0 14 1 ! *** ! *** -CORBA_ORB_ptr _orb(){} 311 322 7 4 1 0.6 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 97 143 34 1.5 0.4 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc b/TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc deleted file mode 100644 index ccc192d6a06..00000000000 --- a/TAO/IIOP/docs/us/codecounts/orbobj.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/orbobj.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_ORB*CORBA_ORB_p 1 8 7 0 0 0.0 0.0 -void CORBA_release(); 9 9 0 0 0 -CORBA_Boolean CORBA_is_nil(); 10 10 0 0 0 -extern const IID IID_CORBA_ORB; 12 12 0 0 0 -CORBA_ORB_ptr CORBA_ORB_init(); 14 23 3 6 0 2.0 0.0 -class _EXPCLASS CORBA_ORB:public IU 25 71 13 26 0 2.0 0.0 -; 71 71 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 23 38 0 1.7 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/principa.cpp.cccc b/TAO/IIOP/docs/us/codecounts/principa.cpp.cccc deleted file mode 100644 index 6486125713e..00000000000 --- a/TAO/IIOP/docs/us/codecounts/principa.cpp.cccc +++ /dev/null @@ -1,33 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/principa.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t principal_lo 1 22 9 1 0 0.1 0.0 -void CORBA_release(){} 26 31 0 5 1 ! *** ! *** -CORBA_Boolean CORBA_is_nil(){} 33 37 0 4 1 ! *** ! *** -CORBA_Principal::CORBA_Principal(){ 39 41 0 2 0 ! *** -CORBA_Principal::~CORBA_Principal() 43 49 0 5 1 ! *** ! *** -DEFINE_GUID(IID_CORBA_Principal,0xa 51 57 4 2 0 0.5 0.0 -ULONG __stdcall CORBA_Principal::Ad 60 69 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_Principal::Re 71 88 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_Principal:: 90 107 0 14 5 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 13 58 12 4.5 0.9 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/principa.hh.cccc b/TAO/IIOP/docs/us/codecounts/principa.hh.cccc deleted file mode 100644 index eee81276ec6..00000000000 --- a/TAO/IIOP/docs/us/codecounts/principa.hh.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/principa.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_Principal*CORBA 1 8 7 0 0 0.0 0.0 -void CORBA_release(); 10 10 0 0 0 -CORBA_Boolean CORBA_is_nil(); 11 11 0 0 0 -extern const IID IID_CORBA_Principa 13 13 0 0 0 -class _EXPCLASS CORBA_Principal:pub 15 52 12 17 0 1.4 0.0 -; 52 52 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 19 22 0 1.2 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/request.cpp.cccc b/TAO/IIOP/docs/us/codecounts/request.cpp.cccc deleted file mode 100644 index 5b717985743..00000000000 --- a/TAO/IIOP/docs/us/codecounts/request.cpp.cccc +++ /dev/null @@ -1,36 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/request.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -DEFINE_GUID(IID_CORBA_Request,0x774 1 19 7 2 0 0.3 0.0 -static pthread_mutex_t refcnt_lock= 22 22 0 0 0 -ULONG __stdcall CORBA_Request::AddR 26 35 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_Request::Rele 37 52 0 10 3 ! *** ! *** -HRESULT __stdcall CORBA_Request::Qu 54 71 0 14 5 ! *** ! *** -void CORBA_release(){} 73 81 3 5 1 1.7 0.3 -CORBA_Boolean CORBA_is_nil(){} 83 87 0 4 1 ! *** ! *** -CORBA_Request::CORBA_Request(CORBA_ 89 106 3 14 0 4.7 0.0 -CORBA_Request::CORBA_Request(){} 109 121 0 11 0 ! *** -CORBA_Request::~CORBA_Request(){} 123 131 0 7 0 ! *** -void CORBA_Request::invoke(){} 133 154 8 11 2 1.4 0.3 -void CORBA_Request::send_oneway(){} 156 168 0 11 2 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 21 107 15 5.1 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/request.hh.cccc b/TAO/IIOP/docs/us/codecounts/request.hh.cccc deleted file mode 100644 index 6859f7eaf38..00000000000 --- a/TAO/IIOP/docs/us/codecounts/request.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/request.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -void CORBA_release(); 1 8 6 1 0 0.2 0.0 -CORBA_Boolean CORBA_is_nil(); 9 9 0 0 0 -typedef CORBA_SEQUENCE 86 87 1 0 0 0.0 0.0 -template class ACE_Message_Queuestruct CORBA_SEQUENCE{}; 1 21 5 10 0 2.0 0.0 -typedef CORBA_SEQUENCE 23 23 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 5 12 0 2.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/stub.hh.cccc b/TAO/IIOP/docs/us/codecounts/stub.hh.cccc deleted file mode 100644 index 2dad231e858..00000000000 --- a/TAO/IIOP/docs/us/codecounts/stub.hh.cccc +++ /dev/null @@ -1,32 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/stub.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -enum param_type{}; 1 27 20 4 0 0.2 0.0 -struct paramdata{}; 29 49 19 1 0 0.1 0.0 -struct calldata{}; 52 83 28 3 0 0.1 0.0 -typedef void(*skeleton)(); 86 98 12 0 0 0.0 0.0 -struct skel_entry{}; 100 103 1 2 0 2.0 0.0 -extern const IID IID_STUB_Object; 107 117 10 0 0 0.0 0.0 -class _EXPCLASS STUB_Object:public 119 224 63 34 0 0.5 0.0 -; 224 224 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 153 51 0 0.3 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc b/TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc deleted file mode 100644 index b9e9230c2e0..00000000000 --- a/TAO/IIOP/docs/us/codecounts/svrrqst.cpp.cccc +++ /dev/null @@ -1,39 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/svrrqst.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -DEFINE_GUID(IID_IIOP_ServerRequest, 1 20 7 2 0 0.3 0.0 -DEFINE_GUID(IID_CORBA_ServerRequest 22 24 1 1 0 1.0 0.0 -static pthread_mutex_t svrqst_lock= 29 29 0 0 0 -IIOP_ServerRequest::~IIOP_ServerReq 33 42 0 9 3 ! *** ! *** -ULONG __stdcall IIOP_ServerRequest: 45 55 0 7 1 ! *** ! *** -ULONG __stdcall IIOP_ServerRequest: 57 73 0 11 3 ! *** ! *** -HRESULT __stdcall IIOP_ServerReques 75 95 0 17 6 ! *** ! *** -void __stdcall IIOP_ServerRequest:: 98 173 36 31 3 0.9 0.1 -void __stdcall IIOP_ServerRequest:: 176 196 6 12 3 2.0 0.5 -void __stdcall IIOP_ServerRequest:: 199 219 4 15 3 3.8 0.8 -CORBA_String __stdcall IIOP_ServerR 222 230 3 5 1 1.7 0.3 -CORBA_Object_ptr __stdcall IIOP_Ser 232 238 1 5 1 5.0 1.0 -CORBA_Principal_ptr __stdcall IIOP_ 240 246 1 5 1 5.0 1.0 -CORBA_ORB_ptr __stdcall IIOP_Server 248 253 0 5 1 ! *** ! *** -TOA_ptr __stdcall IIOP_ServerReques 255 260 0 5 1 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 59 145 27 2.5 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc b/TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc deleted file mode 100644 index aa6da40edce..00000000000 --- a/TAO/IIOP/docs/us/codecounts/svrrqst.hh.cccc +++ /dev/null @@ -1,35 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/svrrqst.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class CORBA_ServerRequest*C 1 16 9 1 0 0.1 0.0 -typedef class CORBA_ORB*CORBA_ORB_p 17 17 0 0 0 -typedef class TOA*TOA_ptr; 18 18 0 0 0 -void CORBA_release(); 20 20 0 0 0 -CORBA_Boolean CORBA_is_nil(); 21 21 0 0 0 -extern const IID IID_CORBA_ServerRe 23 23 0 0 0 -class _EXPCLASS CORBA_ServerRequest 25 78 29 21 0 0.7 0.0 -; 78 78 0 0 0 -extern const IID IID_IIOP_ServerReq 80 80 0 0 0 -class _EXPCLASS IIOP_ServerRequest: 82 159 17 51 0 3.0 0.0 -; 159 159 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 55 82 0 1.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc b/TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc deleted file mode 100644 index 24592ade908..00000000000 --- a/TAO/IIOP/docs/us/codecounts/t-sizes.cpp.cccc +++ /dev/null @@ -1,25 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/t-sizes.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -int main(){} 6 15 0 9 0 ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 0 10 0 ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc deleted file mode 100644 index b32010c4109..00000000000 --- a/TAO/IIOP/docs/us/codecounts/t-xdr.cpp.cccc +++ /dev/null @@ -1,29 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/t-xdr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef CORBA_SEQUENCE 1 34 12 2 0 0.2 0.0 -struct interesting{}; 36 73 18 12 0 0.7 0.0 -extern CORBA_TypeCode TC_opaque; 75 78 2 1 0 0.5 0.0 -static void do_test(){} 80 225 34 82 ! 30 2.4 0.9 -int main(){} 228 264 3 29 3 ? 9.7 1.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 69 131 33 1.9 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc b/TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc deleted file mode 100644 index e606b23721b..00000000000 --- a/TAO/IIOP/docs/us/codecounts/tc_const.cpp.cccc +++ /dev/null @@ -1,68 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/tc_const.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static CORBA_TypeCode tc_null(); 1 25 18 1 0 0.1 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 26 26 0 0 0 -CORBA_TypeCode_ptr CORBA_TypeCode:: 28 32 0 4 1 ! *** ! *** -static CORBA_TypeCode tc_void(); 34 34 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 35 35 0 0 0 -static CORBA_TypeCode tc_short(); 37 40 3 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 41 41 0 0 0 -static CORBA_TypeCode tc_long(); 43 43 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 44 44 0 0 0 -static CORBA_TypeCode tc_longlong() 46 46 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 47 47 0 0 0 -static CORBA_TypeCode tc_ushort(); 49 49 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 50 50 0 0 0 -static CORBA_TypeCode tc_ulong(); 52 52 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 53 53 0 0 0 -static CORBA_TypeCode tc_ulonglong( 55 55 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 56 56 0 0 0 -static CORBA_TypeCode tc_float(); 58 61 3 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 62 62 0 0 0 -static CORBA_TypeCode tc_double(); 64 64 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 65 65 0 0 0 -static CORBA_TypeCode tc_longdouble 67 67 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 68 68 0 0 0 -static CORBA_TypeCode tc_boolean(); 70 73 3 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 74 74 0 0 0 -static CORBA_TypeCode tc_octet(); 76 76 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 77 77 0 0 0 -static CORBA_TypeCode tc_char(); 79 84 5 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 85 85 0 0 0 -static CORBA_TypeCode tc_wchar(); 87 87 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 88 88 0 0 0 -static CORBA_TypeCode tc_string(); 90 90 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 91 91 0 0 0 -static CORBA_TypeCode tc_wstring(); 93 93 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 94 94 0 0 0 -static CORBA_TypeCode tc_any(); 96 100 4 0 0 0.0 0.0 -const CORBA_TypeCode_ptr _tc_CORBA_ 101 101 0 0 0 -static CORBA_TypeCode tc_typecode() 103 103 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 104 104 0 0 0 -static CORBA_TypeCode tc_principal( 106 106 0 0 0 -const CORBA_TypeCode_ptr _tc_CORBA_ 107 107 0 0 0 -static const unsigned char oc_objre 109 128 8 11 0 1.4 0.0 -static CORBA_TypeCode tc_objref(); 129 131 0 2 0 ! *** -const CORBA_TypeCode_ptr _tc_CORBA_ 132 132 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 44 62 1 1.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc b/TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc deleted file mode 100644 index a5e145edfe2..00000000000 --- a/TAO/IIOP/docs/us/codecounts/tcpoa.cpp.cccc +++ /dev/null @@ -1,51 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/tcpoa.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static TCP_OA*the_oa; 1 44 14 1 0 0.1 0.0 -static pthread_key_t request_key; 47 47 0 0 0 -static pthread_mutex_t tcpoa_mutex= 48 48 0 0 0 -static pthread_mutex_t tcpoa_lock=P 49 49 0 0 0 -static pthread_attr_t thread_attr; 50 50 0 0 0 -static void tcp_oa_dispatcher(){} 53 180 45 59 ? 10 1.3 0.2 -static GIOP::LocateStatusType tcp_o 182 206 4 18 5 4.5 1.3 -TCP_OA::TCP_OA(CORBA_ORB_ptr owning 209 237 5 19 3 3.8 0.6 -TCP_OA::~TCP_OA(){} 239 241 0 2 0 ! *** -TCP_OA_ptr TCP_OA::init(){} 244 288 11 18 3 1.6 0.3 -CORBA_Object_ptr __stdcall TCP_OA:: 291 348 9 41 ? 8 4.6 0.9 -CORBA_OctetSeq*__stdcall TCP_OA::ge 351 364 4 9 1 2.3 0.3 -((GIOP::RequestHeader*)pthread_gets 368 382 9 1 0 0.1 0.0 -CORBA_Object_ptr __stdcall _this(){ 386 436 23 22 6 1.0 0.3 -CORBA_OctetSeq*__stdcall TCP_OA::ge 439 454 6 8 1 1.3 0.2 -CORBA_Principal_ptr __stdcall TCP_O 457 472 6 8 1 1.3 0.2 -void TCP_OA::handle_message(){} 474 489 3 8 1 2.7 0.3 -void*TCP_OA::worker(){} 493 527 16 15 4 0.9 0.3 -void __stdcall TCP_OA::get_request( 531 779 128 82 ? 14 0.6 0.1 -void __stdcall TCP_OA::please_shutd 782 797 3 9 0 3.0 0.0 -void __stdcall TCP_OA::clean_shutdo 799 824 3 15 2 5.0 0.7 -void __stdcall TCP_OA::register_dir 827 848 3 16 2 5.3 0.7 -void __stdcall TCP_OA::get_request( 850 873 9 13 2 1.4 0.2 -DEFINE_GUID(IID_TCP_OA,0xa201e4c4,0 876 882 4 2 0 0.5 0.0 -ULONG __stdcall TCP_OA::AddRef(){Cr 885 894 0 6 1 ! *** ! *** -ULONG __stdcall TCP_OA::Release(){C 896 913 0 10 3 ! *** ! *** -HRESULT __stdcall TCP_OA::QueryInte 915 934 0 16 6 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 305 425 73 1.4 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc b/TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc deleted file mode 100644 index 8feca7cce56..00000000000 --- a/TAO/IIOP/docs/us/codecounts/tcpoa.hh.cccc +++ /dev/null @@ -1,31 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/tcpoa.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -class _EXPCLASS TCP_OA; 1 33 26 1 0 0.0 0.0 -typedef TCP_OA*TCP_OA_ptr; 34 34 0 0 0 -extern const IID IID_TCP_OA; 38 38 0 0 0 -class _EXPCLASS TCP_OA:public TOA{p 40 224 93 61 2 0.7 0.0 -; 224 224 0 0 0 -typedef TCP_OA*TCP_OA_ptr; 226 226 0 0 0 -extern CORBA_Object_ptr __stdcall _ 229 245 16 0 0 0.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 135 68 2 0.5 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/thread.hh.cccc b/TAO/IIOP/docs/us/codecounts/thread.hh.cccc deleted file mode 100644 index 4b1e08a0cfd..00000000000 --- a/TAO/IIOP/docs/us/codecounts/thread.hh.cccc +++ /dev/null @@ -1,35 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/thread.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef thread_t pthread_t; 1 67 39 4 0 0.1 0.0 -typedef mutex_t pthread_mutex_t; 68 68 0 0 0 -typedef cond_t pthread_cond_t; 69 69 0 0 0 -typedef unsigned long pthread_attr_ 70 70 0 0 0 -typedef thread_key_t pthread_key_t; 71 71 0 0 0 -struct pthread_once_t{}; 81 84 0 3 0 ! *** -inline void pthread_once(pthread_on 88 97 0 9 1 ! *** ! *** -inline void*pthread_getspecific(pth 107 114 0 6 1 ! *** ! *** -inline int pthread_create(pthread_t 118 127 0 9 1 ! *** ! *** -class Critical{}; 133 156 6 14 0 2.3 0.0 -class ForceSynchronousCancel{}; 159 181 10 8 0 0.8 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 55 64 3 1.2 0.1 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/toa.cpp.cccc b/TAO/IIOP/docs/us/codecounts/toa.cpp.cccc deleted file mode 100644 index 98d352ea297..00000000000 --- a/TAO/IIOP/docs/us/codecounts/toa.cpp.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/toa.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -DEFINE_GUID(IID_TOA,0xa201e4c8,0xf2 1 44 14 3 0 0.2 0.0 -TOA_ptr TOA::get_named_toa(){} 47 102 28 22 5 0.8 0.2 -TOA_ptr TOA::get_toa(){} 105 147 15 22 5 1.5 0.3 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 57 50 10 0.9 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/toa.hh.cccc b/TAO/IIOP/docs/us/codecounts/toa.hh.cccc deleted file mode 100644 index 3229e548e61..00000000000 --- a/TAO/IIOP/docs/us/codecounts/toa.hh.cccc +++ /dev/null @@ -1,30 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/toa.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -typedef class TOA*TOA_ptr; 1 18 10 1 0 0.1 0.0 -CORBA_Boolean is_nil(); 20 20 0 0 0 -void release(); 21 21 0 0 0 -extern const IID IID_TOA; 23 23 0 0 0 -class TOA:public IUnknown{public:vi 25 187 113 41 0 0.4 0.0 -; 187 187 0 0 0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 123 47 0 0.4 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc b/TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc deleted file mode 100644 index 11a4a8c0c88..00000000000 --- a/TAO/IIOP/docs/us/codecounts/typecode.cpp.cccc +++ /dev/null @@ -1,41 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/typecode.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -static pthread_mutex_t refcnt_lock= 1 38 20 1 0 0.1 0.0 -void CORBA_release(){} 42 47 0 5 1 ! *** ! *** -CORBA_Boolean CORBA_is_nil(){} 49 53 0 4 1 ! *** ! *** -CORBA_TypeCode::CORBA_TypeCode(CORB 55 69 4 10 0 2.5 0.0 -CORBA_TypeCode::CORBA_TypeCode(CORB 72 115 20 21 1 1.0 0.1 -CORBA_TypeCode::~CORBA_TypeCode(){} 118 129 5 6 2 1.2 0.4 -DEFINE_GUID(IID_CORBA_TypeCode,0xa2 132 139 5 2 0 0.4 0.0 -ULONG __stdcall CORBA_TypeCode::Add 142 151 0 6 1 ! *** ! *** -ULONG __stdcall CORBA_TypeCode::Rel 153 168 0 11 4 ! *** ! *** -HRESULT __stdcall CORBA_TypeCode::Q 170 187 0 14 5 ! *** ! *** -CORBA_TCKind CORBA_TypeCode::kind(C 190 200 3 7 1 2.3 0.3 -static CORBA_Boolean skip_typecode( 203 252 15 29 ? 9 1.9 0.6 -CORBA_Any_ptr CORBA_TypeCode::membe 255 341 29 44 ? 19 1.5 0.7 -CORBA_ULong CORBA_TypeCode::param_c 344 434 23 53 ! 22 2.3 1.0 -CORBA_ULong CORBA_TypeCode::ulong_p 437 507 26 36 ? 16 1.4 0.6 -CORBA_TypeCode_ptr CORBA_TypeCode:: 510 672 43 99 ! 58 2.3 1.3 -CORBA_String CORBA_TypeCode::id(COR 675 711 15 19 3 1.3 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 208 384 143 1.8 0.7 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/typecode.hh.cccc b/TAO/IIOP/docs/us/codecounts/typecode.hh.cccc deleted file mode 100644 index 494931168d4..00000000000 --- a/TAO/IIOP/docs/us/codecounts/typecode.hh.cccc +++ /dev/null @@ -1,36 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/typecode.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -enum CORBA_TCKind{}; 1 50 23 26 0 1.1 0.0 -extern CORBA_TypeCode_ptr _tc_CORBA 53 56 3 0 0 0.0 0.0 -class CORBA_Bounds{}; 57 62 0 5 0 ! *** -extern CORBA_TypeCode_ptr _tc_CORBA 64 64 0 0 0 -class CORBA_BadKind{}; 65 70 0 5 0 ! *** -typedef class CORBA_TypeCode*CORBA_ 73 82 9 0 0 0.0 0.0 -void CORBA_release(); 83 83 0 0 0 -CORBA_Boolean CORBA_is_nil(); 84 84 0 0 0 -extern const IID IID_CORBA_TypeCode 86 86 0 0 0 -class _EXPCLASS CORBA_TypeCode:publ 88 266 101 56 2 0.6 0.0 -; 266 266 0 0 0 -extern const CORBA_TypeCode_ptr _tc 268 298 3 21 0 7.0 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 139 124 2 0.9 0.0 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc b/TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc deleted file mode 100644 index 90d59d8dd98..00000000000 --- a/TAO/IIOP/docs/us/codecounts/xdr.cpp.cccc +++ /dev/null @@ -1,33 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/xdr.cpp -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -CORBA_Boolean XDR_stream::put_longl 1 52 31 6 1 0.2 0.0 -CORBA_Boolean XDR_stream::get_longl 54 59 0 5 1 ! *** ! *** -CORBA_Boolean XDR_stream::put_longd 62 70 3 5 1 1.7 0.3 -CORBA_Boolean XDR_stream::get_longd 72 77 0 5 1 ! *** ! *** -CORBA_TypeCode::traverse_status XDR 80 406 82 ? 202 ! 65 2.5 0.8 -extern CORBA_TypeCode_ptr __tc_cons 410 413 3 0 0 0.0 0.0 -CORBA_TypeCode::traverse_status XDR 416 766 82 ? 220 ! 60 2.7 0.7 -CORBA_Boolean XDR_stream::flush_fra 769 801 10 15 3 1.5 0.3 -CORBA_Boolean XDR_stream::read_frag 804 815 5 5 1 1.0 0.2 --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 216 472 133 2.2 0.6 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/codecounts/xdr.hh.cccc b/TAO/IIOP/docs/us/codecounts/xdr.hh.cccc deleted file mode 100644 index 45e2ca773c7..00000000000 --- a/TAO/IIOP/docs/us/codecounts/xdr.hh.cccc +++ /dev/null @@ -1,27 +0,0 @@ - -CCCC - a code counter for C and C++ -=================================== - -A program to analyse C and C++ source code and report on -some simple software metrics -Version 1.00 -Copyright Tim Littlefair, 1995 - -The development of this program was heavily dependent on -the Purdue Compiler Construction Tool Set (PCCTS) -by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung -and others. - -This software is provided with NO WARRANTY - - -Scope: ../../../lib/xdr.hh -Canonical name From To COM LOC MVG L/C M/C --------------------- ---- ---- ----- ----- ----- ----- ----- -class XDR_stream{}; 1 269 78 ? 149 ! 32 1.9 0.4 -inline CORBA_Boolean XDR_stream::ou 271 275 0 4 1 ! *** ! *** -inline CORBA_Boolean XDR_stream::pu 277 287 0 10 4 ! *** ! *** --------------------- ---- ---- ----- ----- ----- ----- ----- -Summary for scope: 78 166 37 2.1 0.5 --------------------- ---- ---- ----- ----- ----- ----- ----- - diff --git a/TAO/IIOP/docs/us/plan.html b/TAO/IIOP/docs/us/plan.html deleted file mode 100644 index 5650257a330..00000000000 --- a/TAO/IIOP/docs/us/plan.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - IIOP Notes - - - -

IIOP Notes

- -

- The current plan for transforming the Sun IIOP Reference - implementation into the basis of the TAO is: - -

    -
  1. Replace selected portions of code with ACE components while maintaining the current architecture and design. -
  2. Distill the design patterns and begin re-architecting. -
- -

- Please feel free to email additions to this list! - -


-
Chris Cleeland
- - -Last modified: Fri Feb 14 15:46:52 CST - - - diff --git a/TAO/IIOP/docs/us/server b/TAO/IIOP/docs/us/server deleted file mode 100644 index afad69638a8..00000000000 --- a/TAO/IIOP/docs/us/server +++ /dev/null @@ -1,5 +0,0 @@ -This note describes architectural differences between the Sun IIOP -Reference implementation (SIR) and a new architecture based on ACE. -After narrating the SIR architecture, shortcomings of that design are -highlighted, and a solution known as The ACE ORB (TAO) presented. - diff --git a/TAO/IIOP/test/Build/clnt.bld b/TAO/IIOP/test/Build/clnt.bld deleted file mode 100755 index 76e60ef8967..00000000000 --- a/TAO/IIOP/test/Build/clnt.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../cubit.cpp - C++ -../clnt.cpp - C++ diff --git a/TAO/IIOP/test/Build/default.bld b/TAO/IIOP/test/Build/default.bld deleted file mode 100755 index cdf3e2e8210..00000000000 --- a/TAO/IIOP/test/Build/default.bld +++ /dev/null @@ -1,19 +0,0 @@ -#!build -default: - nobuild - :debuglevel=multi - :target=vxwppc - :sourcedirs=/home/ace/ACE_wrappers.vxworks - :sourcedirs=../../proto/include - :sourcedirs=../.. - :libraries=../../proto/lib/tao.a - :libraries=/home/ace/ACE_wrappers.vxworks/ace/libACE.a - :libraries=/appl/newgreen/vxppc603/indlib.o - :defines=DEBUG -clnt.bld - program - :debuglevel=multi -svr.bld - program - :debuglevel=multi - :defines=USE_ACE_EVENT_HANDLING diff --git a/TAO/IIOP/test/Build/svr.bld b/TAO/IIOP/test/Build/svr.bld deleted file mode 100755 index 7c8725356b2..00000000000 --- a/TAO/IIOP/test/Build/svr.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../svr.cpp - C++ -../cubit.cpp - C++ diff --git a/TAO/IIOP/test/Makefile b/TAO/IIOP/test/Makefile deleted file mode 100644 index 9237323f9c8..00000000000 --- a/TAO/IIOP/test/Makefile +++ /dev/null @@ -1,121 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lcorba - -PROG_SRCS = svr.cpp clnt.cpp cubit.cpp \ - test1.cpp test1_clnt.cpp test1_svr.cpp \ - echo_clnt.cpp echo_svr.cpp - -LSRC = $(PROG_SRCS) - -CUBIT_SVR_OBJS = svr.o cubit_i.o cubitS.o -CUBIT_CLT_OBJS = clnt.o cubitC.o - -BASIC_SVR_OBJS = test1.o test1_svr.o -BASIC_CLT_OBJS = test1.o test1_clnt.o - -ECHO_SVR_OBJS = test1.o echo_svr.o -ECHO_CLT_OBJS = test1.o echo_clnt.o - -BIN = svr clnt test1_svr test1_clnt -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.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 - -# Local modifications to variables imported by includes above. -LDFLAGS += -L../proto/lib -CPPFLAGS += -I../proto/include -DUSE_ACE_EVENT_HANDLING -DDEBUG - -svr: $(addprefix $(VDIR),$(CUBIT_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -clnt: $(addprefix $(VDIR),$(CUBIT_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_svr: $(addprefix $(VDIR),$(BASIC_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_clnt: $(addprefix $(VDIR),$(BASIC_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -######## -# Sanity check builds by running basic functionality tests. -# -# "sleep 5" in the server startup is usually enough to get the -# objref into the file so the client can read it. -# -check: $(TESTS) - @echo "testing with 'cube' calls, stub + DII, IOR strings" - @./svr -i30 -o non-internet > obj.1 & sleep 5 - @./clnt -n250 -O `cat obj.1` -x - @echo '' - @echo "testing request forwarding with 'cube' calls, stub + DII" - @./svr -f -i30 > obj.2 & sleep 5 - @./clnt -n250 -O `cat obj.2` -x - @echo '' - @echo "testing transmission of primitive data types" - @./test1_svr -i30 > obj.3 & sleep 5 - @./test1_clnt -n50 -O `cat obj.3` -x - @echo '' -# @echo "testing echo of primitive data values" -# @./echo_svr -i30 > obj.4 & sleep 5 -# @./echo_clnt -O `cat obj.4` -x -# @echo '' - @echo "testing with 'cube' calls, MT-ized (no forwarding)" - @./svr -t -i30 -o non-internet > obj.5 & sleep 5 - @./clnt -n250 -O `cat obj.5` -x - @echo '' - -ifdef LOCALRULES -######## -# CUBIT test -svr: svr.o cubit.o - $(LINK.cc) -o svr svr.o cubit.o $(LDLIBS) $(POSTLINK) -clnt: cubit.o clnt.o - $(LINK.cc) -o clnt clnt.o cubit.o $(LDLIBS) $(POSTLINK) - -######## -# BASIC DATATYPES test -test1_clnt: test1.o test1_clnt.o - $(LINK.cc) -o test1_clnt test1_clnt.o test1.o $(LDLIBS) $(POSTLINK) -test1_svr: test1.o test1_svr.o - $(LINK.cc) -o test1_svr test1_svr.o test1.o $(LDLIBS) $(POSTLINK) - -######## -# ECHO test ... "test1" where the operation semantics are violated; -# this aids some porting work, but is a less rigorous test -echo_clnt: test1.o echo_clnt.o - $(LINK.cc) -o echo_clnt echo_clnt.o test1.o $(LDLIBS) $(POSTLINK) -echo_svr: test1.o echo_svr.o - $(LINK.cc) -o echo_svr echo_svr.o test1.o $(LDLIBS) $(POSTLINK) -endif - -clean: - -rm -rf *.o $(BIN) obj.* core Templates.DB .make.state - -install: - -@echo "Nothing to install, these are tests!" - - - - - diff --git a/TAO/IIOP/test/Orbeline/base_server/Makefile b/TAO/IIOP/test/Orbeline/base_server/Makefile deleted file mode 100644 index 9fdad280ffc..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = server - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -server: cubitS.o cubitC.o server.o Profile_Timer.o cubit_impl.o - $(CC) -o server cubitS.o cubitC.o cubit_impl.o server.o Profile_Timer.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp b/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp deleted file mode 100644 index 42dce7eb80a..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -ACE_RCSID(base_server, Profile_Timer, "$Id$") - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h b/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/test/Orbeline/base_server/cubit.idl b/TAO/IIOP/test/Orbeline/base_server/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp b/TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp deleted file mode 100644 index 123406d993c..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(base_server, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit () - {} diff --git a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.h b/TAO/IIOP/test/Orbeline/base_server/cubit_impl.h deleted file mode 100644 index f1f5e3fa3ea..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/cubit_impl.h +++ /dev/null @@ -1,35 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubitS.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual _sk_Cubit { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - -#ifdef Cubit_USE_BOA - Cubit_Impl (const char *obj_name = NULL) : - _sk_Cubit(obj_name) - {} -#else - Cubit_Impl (const char *obj_name = NULL) - {} -#endif /* Cubit_USE_BOA */ - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - virtual CORBA::Short cube_short(CORBA::Short s); - virtual CORBA::Long cube_long(CORBA::Long l); - virtual Cubit::Many cube_struct(const Cubit::Many& values); - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - virtual void please_exit(); -}; - -#endif diff --git a/TAO/IIOP/test/Orbeline/base_server/server.cpp b/TAO/IIOP/test/Orbeline/base_server/server.cpp deleted file mode 100644 index ad0070d731a..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/server.cpp +++ /dev/null @@ -1,54 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** - -#include "cubit_impl.h" // server header file - -ACE_RCSID(base_server, server, "$Id$") - -int -main (int argc, char** argv) -{ - - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); - CORBA::BOA_var boa = orb->BOA_init(argc, argv); - -#ifdef Cubit_USE_BOA - Cubit_Impl cb("Cubit"); - cout << "Using BOA approach" << endl; -#else - Cubit_Impl tied("Cubit"); - _tie_Cubit cb(tied, "Cubit"); - - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - try { - - boa->obj_is_ready(&cb); - - boa->impl_is_ready(); - - } catch (const CORBA::Exception &excep) { - cerr << "Server error: " << excep << endl; - return -1; - } catch (...) { - cerr << "Unknown exception" << endl; - return -1; - } - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbeline/base_server/stdmk b/TAO/IIOP/test/Orbeline/base_server/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/test/Orbeline/base_server/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/test/Orbeline/client/Makefile b/TAO/IIOP/test/Orbeline/client/Makefile deleted file mode 100644 index d9c26fe56f0..00000000000 --- a/TAO/IIOP/test/Orbeline/client/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = client - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -client: cubitC.o Profile_Timer.o client.o - $(CC) -o client cubitC.o Profile_Timer.o client.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp b/TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp deleted file mode 100644 index 2d1f74b2e69..00000000000 --- a/TAO/IIOP/test/Orbeline/client/Profile_Timer.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -ACE_RCSID(client, Profile_Timer, "$Id$") - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/test/Orbeline/client/Profile_Timer.h b/TAO/IIOP/test/Orbeline/client/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/test/Orbeline/client/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/test/Orbeline/client/client.cpp b/TAO/IIOP/test/Orbeline/client/client.cpp deleted file mode 100644 index 57eecf3abe3..00000000000 --- a/TAO/IIOP/test/Orbeline/client/client.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include -#include -#include -#include -#include -#include "cubitC.h" -#include "Profile_Timer.h" - -ACE_RCSID(client, client, "$Id$") - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - if (argc != 3) { - cerr << "Format: client " << endl; - return -1; - } - - strcpy(SERVER_HOST, argv[1]); - - LOOP_COUNT = atoi(argv[2]); - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - try { - cb = Cubit::_bind ("Cubit", SERVER_HOST); - - } catch (const CORBA::Exception & sysEx) { - cerr << "Binding failed: " << endl; - cerr << sysEx; - } catch (...) { - cerr << "Unexpected exception" << endl; - } - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - Profile_Timer pt; - - pt.start(); - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - try { - ret_octet = cb->cube_octet (arg_octet); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - try { - ret_short = cb->cube_short (arg_short); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - try { - ret_long = cb->cube_long (arg_long); - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - try { - ret_struct = cb->cube_struct (arg_struct); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - pt.stop(); - - Elapsed_Time et; - pt.elapsed_time(et); - - if (call_count > 0) - { - if (error_count == 0) - { - unsigned long us = et.real_time * 1000 * 1000; - - us /= call_count; - - if (us > 0) - printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/test/Orbeline/client/cubit.idl b/TAO/IIOP/test/Orbeline/client/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/test/Orbeline/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbeline/client/stdmk b/TAO/IIOP/test/Orbeline/client/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/test/Orbeline/client/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/test/Orbix/Makefile b/TAO/IIOP/test/Orbix/Makefile deleted file mode 100644 index 96935fb78fc..00000000000 --- a/TAO/IIOP/test/Orbix/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the Gateway application -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = README - -DIRS = base_server \ - client \ - tpr \ - tpool \ - tps - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/IIOP/test/Orbix/base_server/Makefile b/TAO/IIOP/test/Orbix/base_server/Makefile deleted file mode 100644 index 3bf0684dfd5..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/base_server/cubit.h b/TAO/IIOP/test/Orbix/base_server/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/base_server/cubit.idl b/TAO/IIOP/test/Orbix/base_server/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/base_server/cubitC.cpp b/TAO/IIOP/test/Orbix/base_server/cubitC.cpp deleted file mode 100644 index 619a3c776f0..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(base_server, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/base_server/cubitC.h b/TAO/IIOP/test/Orbix/base_server/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/test/Orbix/base_server/cubitS.cpp b/TAO/IIOP/test/Orbix/base_server/cubitS.cpp deleted file mode 100644 index 758c1201ad8..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitS.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(base_server, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/base_server/cubitS.h b/TAO/IIOP/test/Orbix/base_server/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp b/TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp deleted file mode 100644 index 4661cba6809..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(base_server, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/test/Orbix/base_server/cubit_impl.h b/TAO/IIOP/test/Orbix/base_server/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/base_server/server.cpp b/TAO/IIOP/test/Orbix/base_server/server.cpp deleted file mode 100644 index b8b5b991536..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/server.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -ACE_RCSID(base_server, server, "$Id$") - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/base_server/tpr.cpp b/TAO/IIOP/test/Orbix/base_server/tpr.cpp deleted file mode 100644 index 9f3bb99ef7e..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/tpr.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#include "tpr.h" - -ACE_RCSID(base_server, tpr, "$Id$") - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/test/Orbix/base_server/tpr.h b/TAO/IIOP/test/Orbix/base_server/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/test/Orbix/base_server/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/test/Orbix/client/Makefile b/TAO/IIOP/test/Orbix/client/Makefile deleted file mode 100644 index 73f775bee2f..00000000000 --- a/TAO/IIOP/test/Orbix/client/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/client/client.cpp b/TAO/IIOP/test/Orbix/client/client.cpp deleted file mode 100644 index 617f212d9a5..00000000000 --- a/TAO/IIOP/test/Orbix/client/client.cpp +++ /dev/null @@ -1,236 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -ACE_RCSID(client, client, "$Id$") - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cb = Cubit::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/test/Orbix/client/cubit.h b/TAO/IIOP/test/Orbix/client/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/client/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/client/cubit.idl b/TAO/IIOP/test/Orbix/client/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/client/cubitC.cpp b/TAO/IIOP/test/Orbix/client/cubitC.cpp deleted file mode 100644 index 0913c5bb786..00000000000 --- a/TAO/IIOP/test/Orbix/client/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(client, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/factory_client/Makefile b/TAO/IIOP/test/Orbix/factory_client/Makefile deleted file mode 100644 index 63cc8a65e02..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/factory_client/client.cpp b/TAO/IIOP/test/Orbix/factory_client/client.cpp deleted file mode 100644 index d39892c91fe..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/client.cpp +++ /dev/null @@ -1,239 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -ACE_RCSID(factory_client, client, "$Id$") - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - Cubit_Factory_var cf; - - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cf = Cubit_Factory::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - cb = cf->create_cubit ("My_Cubit"); - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.h b/TAO/IIOP/test/Orbix/factory_client/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.hh b/TAO/IIOP/test/Orbix/factory_client/cubit.hh deleted file mode 100644 index 72e2fb81395..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.hh +++ /dev/null @@ -1,1111 +0,0 @@ - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.idl b/TAO/IIOP/test/Orbix/factory_client/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/test/Orbix/factory_client/cubitC.cpp b/TAO/IIOP/test/Orbix/factory_client/cubitC.cpp deleted file mode 100644 index e265863e99a..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubitC.cpp +++ /dev/null @@ -1,714 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -ACE_RCSID(factory_client, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/factory_client/cubitS.cpp b/TAO/IIOP/test/Orbix/factory_client/cubitS.cpp deleted file mode 100644 index 6ab08ef55ba..00000000000 --- a/TAO/IIOP/test/Orbix/factory_client/cubitS.cpp +++ /dev/null @@ -1,286 +0,0 @@ -// $Id$ - - - -#include "cubit.hh" - -ACE_RCSID(factory_client, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/orb.mk b/TAO/IIOP/test/Orbix/orb.mk deleted file mode 100644 index cf7b12d3b1b..00000000000 --- a/TAO/IIOP/test/Orbix/orb.mk +++ /dev/null @@ -1,146 +0,0 @@ -# ------------------------------------------------------------ -# Orbix 2.2 implicit rules for SunOS/GNU Make -# ------------------------------------------------------------ -# -# If you cut'n'paste this into your /usr/include/make/default.mk -# file, beware! This is not officially supported by Iona -# Technologies, and you may want to be a bit of a Makefile hacker -# to make it integrate well with your site's setup. - -# The best thing to do would be put it in a standard place and -# anyone who wants the Orbix implicit rule set can include -# it with an "include /orbix.mk" line in their -# Makefile. A good place to put it might be /usr/include/make. - -# These rules define default C++, C++FLAGS and C++SUFFIX. -# C++ is the C++ compiler to use; C++FLAGS are command-line -# flags to the C++ compiler for use in compiling C++ source -# files into objects; C++SUFFIX is the filename suffix -# indicating C++ source. By default, it's set to "C" for AT&T C++, -# and "cc" for GNU g++. - -# Feel free to override these in your Makefiles *after* -# including this file. - -# IMPORTANT: If the -M switch is specified in IDLFLAGS, the IDL -# compiler appends to the user-specified file. The dependency for -# specified_file.o in the linking target should appear _after_ any use -# of the IDL compiler which takes the -M flag. Putting it _last_ -# is normally the best approach. - -# Note that these rule definitions use pattern matching, -# and therefore only work with SunOS make and GNU make. - -# They may not work with other vendor's versions of make. -# If they do not, you may wish to try using GNU make, which -# is free software produced by the Free Software Foundation. - -# If the version of make you wish to use does not support -# pattern matching, use the sample explicit rule set in -# the comments at the end of this file. - -# ------------------------------------------------------------ -# Essential: set these to the locations into which you -# have installed Orbix' components: - -ORBIX_BINDIR = /opt/Orbix_2.2MT/corba2/bin -ORBIX_LIBDIR = /opt/Orbix_2.2MT/corba2/lib -ORBIX_INCDIR = /opt/Orbix_2.2MT/corba2/include - -#------------------------------------------------------------- -# To compile the demos, you should change these values as -# appropriate for your particular system installation -#------------------------------------------------------------- - -X11BASE = /usr/openwin -X11INCDIR = $(X11BASE)/include -X11LIBDIR = $(X11BASE)/lib - -# C++ = CC -# C++FLAGS = -I$(ORBIX_INCDIR) -I. -mt -D_REENTRANT -# C++SUFFIX = cpp - -# ------------------------------------------------------------ -# ITCLT, IRCLT and ITSRV can be either statically or dynamically linked -# Use -Bdynamic or -Bstatic as appropriate. -# ------------------------------------------------------------ - -ITCLT = -Bstatic -lorbixmt -IRCLT = -Bstatic -lIRcltmt -ITSRV = -Bstatic -lorbixmt -ITIIOP = -Bstatic -liiopmt -ITDSI = -Bstatic -lDSImt -ITIFR = -Bstatic -lifrmt - -# ------------------------------------------------------------ -# SYSLIBS must be dynamically linked; otherwise you can expect to -# get linkage errors for symbols in the nsl library -# ------------------------------------------------------------ - -LDFLAGS += -L$(ORBIX_LIBDIR) -SYSLIBS = -Bdynamic -lnsl -lsocket - -IDL = $(ORBIX_BINDIR)/idl -IDLFLAGS = - -# ------------------------------------------------------------ -# The following section defines implicit rules for creating -# *.{C,S}.C files, rules for compiling those -# into objects, and even a rule for compiling C++ source into -# objects (in case one isn't already defined). - -# ------------------------------------------------------------ -# first, put the new suffixes at the *head* of the suffix list, -# overriding any existing .C compilation method. -.SUFFIXES: -.SUFFIXES: .$(C++SUFFIX) .idl $(SUFFIXES) - -# .SUFFIXES: .$(C++SUFFIX) .idl .hh $(SUFFIXES) -# ------------------------------------------------------------ -# *[CS].o must be compiled here, and depends -# mostly on the C++ files produced from the IDL file. - -%C.o: %C.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%S.o: %S.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%.o: %.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -# and here's how to compile C++ files from the IDL file. -# only ONE of these rules will be run at make-time, - -%S.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%C.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%.hh: %.idl - $(IDL) $(IDLFLAGS) $< - -# ------------------------------------------------------------ -# If the version of make you wish to use does not support -# pattern matching, here's a sample of an explicit rule set. - -# We assume the IDL file is called "foobar.idl", we wish -# to compile "foobarC.o", "foobarS.o", and -# "foobar.hh", and the C++ file suffix. -# ------------------------------------------------------------ - -# foobarC.o: foobar.hh foobarC.C -# $(C++) -c ($C++FLAGS) foobarC.C -# -# foobarS.o: foobar.hh foobarS.C -# $(C++) -c ($C++FLAGS) foobarS.C -# -# foobarC.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobarS.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobar.hh: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl diff --git a/TAO/IIOP/test/Orbix/tpool/Makefile b/TAO/IIOP/test/Orbix/tpool/Makefile deleted file mode 100644 index 0e425af78b1..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpool.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpool.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/tpool/cubit.h b/TAO/IIOP/test/Orbix/tpool/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/tpool/cubit.idl b/TAO/IIOP/test/Orbix/tpool/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/tpool/cubitC.cpp b/TAO/IIOP/test/Orbix/tpool/cubitC.cpp deleted file mode 100644 index afd00fd5c23..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpool, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpool/cubitS.cpp b/TAO/IIOP/test/Orbix/tpool/cubitS.cpp deleted file mode 100644 index f4f78545bac..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubitS.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpool, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp b/TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp deleted file mode 100644 index e1ed154b9f6..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(tpool, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/test/Orbix/tpool/cubit_impl.h b/TAO/IIOP/test/Orbix/tpool/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/tpool/server.cpp b/TAO/IIOP/test/Orbix/tpool/server.cpp deleted file mode 100644 index fd486ba5d6f..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/server.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file -#include "tpool.h" - -ACE_RCSID(tpool, server, "$Id$") - -int -main (int argc, char** argv) -{ - - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // Register our thread-pool dispatcher - int n_threads = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_THREADS; - Thread_Pool tpool_dispatcher (n_threads); - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/tpool/tpool.cpp b/TAO/IIOP/test/Orbix/tpool/tpool.cpp deleted file mode 100644 index 008f777cb22..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/tpool.cpp +++ /dev/null @@ -1,46 +0,0 @@ -// $Id$ - -#include "tpool.h" - -ACE_RCSID(tpool, tpool, "$Id$") - -Thread_Pool::Thread_Pool (int n_threads) - : ACE_Task (ACE_Thread_Manager::instance ()) -{ - if (this->activate (THR_DETACHED | THR_NEW_LWP, n_threads) == -1) - ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); -} - -int -Thread_Pool::svc (void) -{ - cout << "Pool thread activated" << endl; - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return -1; -} - - -int -Thread_Pool::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - // Enqueue the request - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - this->msg_queue ()->enqueue (mb); - // Done - return -1; -} - - - diff --git a/TAO/IIOP/test/Orbix/tpool/tpool.h b/TAO/IIOP/test/Orbix/tpool/tpool.h deleted file mode 100644 index 337a7f54e65..00000000000 --- a/TAO/IIOP/test/Orbix/tpool/tpool.h +++ /dev/null @@ -1,17 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class Thread_Pool : public ACE_Task, public CORBA::ThreadFilter -{ -public: - Thread_Pool (int n_threads); - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); - virtual int svc (void); - -}; - - diff --git a/TAO/IIOP/test/Orbix/tpr/Makefile b/TAO/IIOP/test/Orbix/tpr/Makefile deleted file mode 100644 index 650d6aaf259..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpr.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpr.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/tpr/cubit.h b/TAO/IIOP/test/Orbix/tpr/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/tpr/cubit.idl b/TAO/IIOP/test/Orbix/tpr/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/Orbix/tpr/cubitC.cpp b/TAO/IIOP/test/Orbix/tpr/cubitC.cpp deleted file mode 100644 index 4bc7a548c54..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpr, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpr/cubitC.h b/TAO/IIOP/test/Orbix/tpr/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpr/cubitS.cpp b/TAO/IIOP/test/Orbix/tpr/cubitS.cpp deleted file mode 100644 index 410e34b7de3..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitS.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpr, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/tpr/cubitS.h b/TAO/IIOP/test/Orbix/tpr/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp b/TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp deleted file mode 100644 index d0fea470713..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(tpr, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/test/Orbix/tpr/cubit_impl.h b/TAO/IIOP/test/Orbix/tpr/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/tpr/server.cpp b/TAO/IIOP/test/Orbix/tpr/server.cpp deleted file mode 100644 index a47b9aea225..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/server.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -ACE_RCSID(tpr, server, "$Id$") - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/tpr/tpr.cpp b/TAO/IIOP/test/Orbix/tpr/tpr.cpp deleted file mode 100644 index 239cf322833..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/tpr.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#include "tpr.h" - -ACE_RCSID(tpr, tpr, "$Id$") - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/test/Orbix/tpr/tpr.h b/TAO/IIOP/test/Orbix/tpr/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/test/Orbix/tpr/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/test/Orbix/tps/Makefile b/TAO/IIOP/test/Orbix/tps/Makefile deleted file mode 100644 index 69701ba3b63..00000000000 --- a/TAO/IIOP/test/Orbix/tps/Makefile +++ /dev/null @@ -1,349 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tps.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tps.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitS.o .shobj/cubitS.so: cubitS.cpp cubit.h cubitC.cpp -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(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/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(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/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(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/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(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/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(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/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(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/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/tps.o .shobj/tps.so: tps.cpp tps.h cubit.h cubit_impl.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(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/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(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/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(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/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/test/Orbix/tps/cubit.h b/TAO/IIOP/test/Orbix/tps/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/test/Orbix/tps/cubit.idl b/TAO/IIOP/test/Orbix/tps/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/test/Orbix/tps/cubitC.cpp b/TAO/IIOP/test/Orbix/tps/cubitC.cpp deleted file mode 100644 index 5791756e6a4..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubitC.cpp +++ /dev/null @@ -1,714 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -ACE_RCSID(tps, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/test/Orbix/tps/cubitS.cpp b/TAO/IIOP/test/Orbix/tps/cubitS.cpp deleted file mode 100644 index 98e859ca575..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubitS.cpp +++ /dev/null @@ -1,286 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -ACE_RCSID(tps, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/test/Orbix/tps/cubit_impl.cpp b/TAO/IIOP/test/Orbix/tps/cubit_impl.cpp deleted file mode 100644 index 94c1c4262d1..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit_impl.cpp +++ /dev/null @@ -1,85 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(tps, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &) throw (CORBA::SystemException) { -} - -Cubit_ptr Cubit_Factory_Impl:: create_cubit (const char * name, CORBA::Environment &) throw (CORBA::SystemException) { - cerr << "Creating Cubit for " << name << endl; - -#ifdef Cubit_USE_BOA - Cubit_Impl_Task *cubit = new Cubit_Impl_Task (); -#else - Cubit_Impl_Task *cubit = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl_Task); -#endif - Cubit::_duplicate ((Cubit *)cubit); - cubit->activate (1); - return (Cubit *) cubit; -} - -int -Cubit_Impl_Task::svc (void) -{ - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return 0; -} - -void * -Cubit_Impl_Task::_deref (void) -{ - return this; -} diff --git a/TAO/IIOP/test/Orbix/tps/cubit_impl.h b/TAO/IIOP/test/Orbix/tps/cubit_impl.h deleted file mode 100644 index 0fea9857af3..00000000000 --- a/TAO/IIOP/test/Orbix/tps/cubit_impl.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" -#include "ace/Task.h" - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - -}; - -#ifdef Cubit_USE_BOA -class Cubit_Factory_Impl : public virtual Cubit_FactoryBOAImpl { -#else -class Cubit_Factory_Impl { -#endif - -public: - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -class Cubit_Impl_Task : public virtual Cubit_Impl, public virtual ACE_Task { -public: - // For ACE_Task - int svc (void); - // for narrowing - virtual void *_deref (); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -DEF_TIE_Cubit_Factory (Cubit_Factory_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/test/Orbix/tps/server.cpp b/TAO/IIOP/test/Orbix/tps/server.cpp deleted file mode 100644 index 5f02dbfbe08..00000000000 --- a/TAO/IIOP/test/Orbix/tps/server.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -ACE_RCSID(tps, server, "$Id$") - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_Factory_var cf = new Cubit_Factory_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_Factory_var cf = new TIE_Cubit_Factory (Cubit_Factory) (new Cubit_Factory); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit_Factory", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/test/Orbix/tps/tps.cpp b/TAO/IIOP/test/Orbix/tps/tps.cpp deleted file mode 100644 index 9ab83e9bc8d..00000000000 --- a/TAO/IIOP/test/Orbix/tps/tps.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#include "tps.h" - -ACE_RCSID(tps, tps, "$Id$") - -int -TPS_Filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment& env) -{ - // Get target - CORBA::Object_ptr obj = r.target (); - Cubit * cb = Cubit::_narrow (obj, env); - - if (env) // Not for our object!! - return 1; // continue in the same thread - - // Enqueue the request - Cubit_Impl_Task *ct; - if (CORBA::is_nil (cb)) - return 1; - ct = (Cubit_Impl_Task *) DEREF(cb); - if (ct) { - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - ct->msg_queue ()->enqueue (mb); - } - // Done - return -1; -} - -TPS_Filter tps_filter; diff --git a/TAO/IIOP/test/Orbix/tps/tps.h b/TAO/IIOP/test/Orbix/tps/tps.h deleted file mode 100644 index 362c9ed4e91..00000000000 --- a/TAO/IIOP/test/Orbix/tps/tps.h +++ /dev/null @@ -1,13 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "cubit_impl.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class TPS_Filter : public ACE_Task, public CORBA::ThreadFilter -{ -public: - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/test/clnt.cpp b/TAO/IIOP/test/clnt.cpp deleted file mode 100644 index e207957a820..00000000000 --- a/TAO/IIOP/test/clnt.cpp +++ /dev/null @@ -1,512 +0,0 @@ -// $Id$ - -// @(#)clnt.cpp 1.2 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: Simple "cube" client, calling hand-crafted stubs. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include -//#include - -#if unix -# include -# include - -#elif defined (VXWORKS) -# include -# include - -#else // windows - -#endif // unix - -#include "cubitC.h" - -#include - -ACE_RCSID(test, clnt, "$Id$") - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -inline int func (unsigned i) { return i - 117; } - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - - -// -// forward declarations -// -static void cube_union_stub(unsigned, unsigned&, unsigned&, - CORBA_Object_ptr, CORBA_Environment &); - -static void cube_union_dii(unsigned &, unsigned &, - CORBA_Object_ptr, CORBA_Environment &); - -// Global variables -const char* TAO_arg_ior = 0; -unsigned loop_count = 1; -int exit_later = 0; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dn:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - { - TAO_arg_ior = ACE_OS::strdup(opts.optarg); - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - CORBA_Environment env; - - orb_ptr = CORBA_ORB_init(argc, argv, "internet", env); - if (env.exception() != 0) - { - print_exception(env.exception(), "ORB initialization"); - return 1; - } - - // - // Parse command line and verify parameters. - // - parse_args(argc, argv); - - if (TAO_arg_ior == 0) - ACE_ERROR_RETURN((LM_ERROR, "%s: must specify an object reference using -O \n", argv[0]), 1); - - objref = orb_ptr->string_to_object ((CORBA_String)TAO_arg_ior, env); - - ACE_OS::free((void*)TAO_arg_ior); - TAO_arg_ior = 0; - - if (env.exception () != 0) - { - print_exception (env.exception (), "string2object"); - return 1; - } - - if (CORBA_is_nil (objref) == 1) - ACE_ERROR_RETURN((LM_ERROR, "%s: must identify non-null target objref\n", argv [0]), 1); - - // Narrow the CORBA_Object reference to the stub object, checking - // the type along the way using _is_a - Cubit_ptr aCubit = Cubit::_narrow(objref); - if (aCubit == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to narrow object reference to a Cubit_ptr.\n"), 1); - - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - for (i = 0; i < loop_count; i++) - { - // - // Cube an octet. - // - CORBA_Octet arg_octet, ret_octet; - - call_count++; - ret_octet = aCubit->Cubit_cube_octet (arg_octet = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_octet"); - error_count++; - } - else - { - dmsg2 ("cube octet: %d --> %d\n", arg_octet, ret_octet); - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) ERROR (--> %d)\n", - (CORBA_Octet) func (i), ret_octet); - error_count++; - } - } - - // - // Cube a short. - // - CORBA_Short arg_short, ret_short; - - call_count++; - ret_short = aCubit->Cubit_cube_short (arg_short = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_short"); - error_count++; - } - else - { - dmsg2 ("cube short: %d --> %d\n", arg_short, ret_short); - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) - { - ACE_OS::printf ("** cube_short(%d) ERROR (--> %d)\n", - (CORBA_Short) func (i), ret_short); - error_count++; - } - } - - // - // Cube a long. - // - CORBA_Long arg_long, ret_long; - - call_count++; - ret_long = aCubit->Cubit_cube_long (arg_long = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_long"); - error_count++; - } - else - { - dmsg2 ("cube long: %d --> %d\n", arg_long, ret_long); - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%ld) ERROR (--> %ld)\n", - (CORBA_Long) func (i), ret_long); - error_count++; - } - } - - // - // Cube a "struct" ... - // - Cubit_Many arg_struct, *ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - ret_struct = aCubit->Cubit_cube_struct (arg_struct, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_struct"); - error_count++; - } - else - { - dmsg ("cube struct ..."); - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o; - - if (arg_struct.l != ret_struct->l - || arg_struct.s != ret_struct->s - || arg_struct.o != ret_struct->o) - { - ACE_OS::printf ("** cube_struct ERROR\n"); - error_count++; - } - delete ret_struct; - } - - } - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } - - // - // Simple test for DII: call "cube_struct". (It's not timed - // since the copious mallocation of DII would bias numbers against - // typical stub-based calls.) - // - do { - // - // Create the request ... - // - CORBA_Request_ptr req; - - req = objref->_request ((const CORBA_String) "cube_struct", env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request create"); - break; - } - - // - // ... initialise the argument list and result ... - // - Cubit_Many arg, *result; - - arg.o = 3; arg.l = 5; arg.s = -7; - - CORBA_Any tmp_arg (TC_Cubit_Many, &arg, 0); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request arg add"); - CORBA_release (req); - break; - } - - req->result ()->value () - ->replace (TC_Cubit_Many, 0, 1, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request result type"); - CORBA_release (req); - break; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - print_exception (req->env ()->exception (), "DII invoke"); - CORBA_release (req); - break; - } - - result = (Cubit_Many *) req->result ()->value ()->value (); - - if (result->o != 27 || result->l != 125 || result->s != -343) - ACE_OS::fprintf (stderr, "DII cube_struct -- bad results\n"); - else - dmsg ("DII cube_struct ... success!!"); - - CORBA_release (req); - - } while (0); - - // - // Two more tests, using the "cube_union" function - // - cube_union_dii(call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - cube_union_stub(i, call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - if (exit_later) { - aCubit->Cubit_please_exit (env); - dexc (env, "server, please ACE_OS::exit"); - } - - CORBA_release (objref); - - return (error_count == 0) ? 0 : 1; -} - - -static void -cube_union_stub(unsigned i, - unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - Cubit_ptr aCubit = Cubit::_narrow(objref); - // - // Cube a "union" ... - // - Cubit_oneof u, *r; - - call_count++; - - u._disc = e_2nd; - u.l = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.l = u.l * u.l * u.l ; - - if (u.l != r->l) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } - - // - // Cube another "union" which uses the default arm ... - // - call_count++; - - u._disc = e_5th; - u.cm.l = func (i); - u.cm.s = func (i); - u.cm.o = func (i); - - u.cm.l = 7; - u.cm.s = 5; - u.cm.o = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.cm.l = u.cm.l * u.cm.l * u.cm.l; - u.cm.s = u.cm.s * u.cm.s * u.cm.s; - u.cm.o = u.cm.o * u.cm.o * u.cm.o; - - if (u.cm.l != r->cm.l - || u.cm.s != r->cm.s - || u.cm.o != r->cm.o) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } -} - - -static void -cube_union_dii (unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - // - // Create the request ... - // - CORBA_Request_ptr req; - - call_count++; - - req = objref->_request ((const CORBA_String) "cube_union", env); - if (env.exception () != 0) { - error_count++; - - print_exception (env.exception (), "cube_union_dii request create"); - return; - } - - // - // ... initialise the argument list and result ... - // - Cubit_oneof u, *r; - - u._disc = e_3rd; - u.cm.l = 5; - u.cm.s = -7; - u.cm.o = 3; - - CORBA_Any tmp_arg (TC_Cubit_oneof, &u, 0); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii request arg add"); - CORBA_release (req); - return; - } - - req->result ()->value ()->replace (TC_Cubit_oneof, 0, 1, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii result type"); - CORBA_release (req); - return; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - error_count++; - print_exception (req->env ()->exception (),"cube_union_dii invoke"); - CORBA_release (req); - return; - } - - r = (Cubit_oneof *) req->result ()->value ()->value (); - - if (r->cm.o != 27 || r->cm.l != 125 || r->cm.s != -343) { - error_count++; - ACE_OS::fprintf (stderr, "cube_union_dii -- bad results\n"); - } - else - dmsg ("cube_union_dii ... success!!"); - - CORBA_release (req); -} diff --git a/TAO/IIOP/test/cubit.cpp b/TAO/IIOP/test/cubit.cpp deleted file mode 100644 index 0d0dddd4845..00000000000 --- a/TAO/IIOP/test/cubit.cpp +++ /dev/null @@ -1,579 +0,0 @@ -// $Id$ - -// @(#)cubit.cpp 1.2 95/09/29 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// -// NOTE: these "skeletons" are really the methods, using DSI. No real -// ORB would be implemented in this particular way. Several things would -// be more typical of real (static) skeletons: -// -// * Most of the "in" (and much of the "out") parameter data would -// be preallocated on the stack, not heap allocated. (Static -// preallocation doesnt' really work in a multithreaded system, -// and moreover can waste a lot of space.) -// -// * The ORB core wouldn't be told about parameters using heap -// allocated data structures (e.g. NVList). -// -// * Skeletons would need to some kind of "marshal the response NOW" -// API so that stack-allocated "out" values wouldn't become invalid -// up until they were safely marshaled. -// -// * They'd handle exceptions rather than just generating debugging -// messages when they happen. -// -// * Method code would be called by the skeletons, not written as -// part of the "skeleton" itself! -// -// A key part of turning this code into a complete ORB would be to ensure -// that skeletons were always efficient and correct. They might not need -// to be sharable between different implementations of the same OMG-IDL -// object interface, but many ORBs choose to be structured that way. -// - -#include "cubit.h" // for stubs ... -#include // ... and skeletons - -#include // ... and debugging - -ACE_RCSID(test, cubit, "$Id$") - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = { - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_octet_calldata = { - "cube_octet", 1, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -) -{ - CORBA_Octet retval = 0; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - data->Release (); - } - return retval; -} - -static void -_cube_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - CORBA_Octet* value = new CORBA_Octet; - - *value = *(CORBA_Octet *)nv->value ()->value (); - // dmsg1 ("cube octet, parameter '%d'", *value); - *value = (CORBA_Octet) ((*value) * (*value) * (*value)); - // dmsg1 ("cube octet, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Octet, value, 1); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = { - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = { - "cube_short", 1, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit_cube_short (Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_short_calldata, - &retval, &s); - data->Release (); - } - return retval; -} - -static void -_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - CORBA_Short* value = new CORBA_Short; - - *value = *(CORBA_Short *)nv->value ()->value (); - // dmsg1 ("cube short, parameter '%d'", *value); - *value =(CORBA_Short) ((*value) * (*value) * (*value)); - // dmsg1 ("cube short, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Short, value, 1); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = { - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = { - "cube_long", 1, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit_cube_long (Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - data->Release (); - } - return retval; -} - - -static void -_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - CORBA_Long* value = new CORBA_Long; - - *value = *(CORBA_Long *)nv->value ()->value (); - // dmsg1 ("cube long, parameter '%d'", *value); - *value = (*value) * (*value) * (*value); - // dmsg1 ("cube long, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Long, value, 1); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = { - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - 0); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = { - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = { - "cube_struct", 1, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many * -Cubit_cube_struct (Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - Cubit_Many *value; - Cubit_Many *retval = new Cubit_Many; - - value = (Cubit_Many *)nv->value ()->value (); - - retval->o = (CORBA_Octet) (value->o * value->o * value->o); - retval->s = (CORBA_Short) (value->s * value->s * value->s); - retval->l = value->l * value->l * value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = - new CORBA_Any (TC_Cubit_Many, retval, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = { - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - 0); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = { - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = { - "cube_union", 1, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof * -Cubit_cube_union (Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - Cubit_oneof *v; - Cubit_oneof *r = new Cubit_oneof; - - v = (Cubit_oneof *)nv->value ()->value (); - r->_disc = v->_disc; - - switch (v->_disc) { - case e_0th: - r->o = (CORBA_Octet) (v->o * v->o * v->o); - break; - - case e_1st: - r->s = (CORBA_Short) (v->s * v->s * v->s); - break; - - case e_2nd: - r->l = v->l * v->l * v->l; - break; - - case e_3rd: - default: - r->cm.o = (CORBA_Octet) (v->cm.o * v->cm.o * v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s * v->cm.s * v->cm.s); - r->cm.l = v->cm.l * v->cm.l * v->cm.l; - break; - } - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = { - "please_exit", 0, - 0, 0, - 0, 0 -}; - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_please_exit_calldata - ); - data->Release (); - } -} - -static void -_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); -} - - -const CORBA_Char *Cubit__id = (CORBA_Char *) - "IDL:Eng.SUN.COM/Cubit:1.1"; - - -// -// table of all operations, used by operation dispatch to get to the -// right skeleton ... could be sorted by the IDL compiler so bsearch -// is effective, perhaps with help from opname hashes and a small cache -// (e.g. like Obj-C?). for now, just lsearch. -// -const TAO_Skel_Entry Cubit_operations [] = { - { &Cubit_cube_octet_calldata, _cube_octet_skel }, - { &Cubit_cube_short_calldata, _cube_short_skel }, - { &Cubit_cube_long_calldata, _cube_long_skel }, - { &Cubit_cube_struct_calldata, _cube_struct_skel }, - { &Cubit_cube_union_calldata, _cube_union_skel }, - { &Cubit_please_exit_calldata, _please_exit_skel }, - { 0, 0 } // last entry -}; diff --git a/TAO/IIOP/test/cubit.h b/TAO/IIOP/test/cubit.h deleted file mode 100644 index 78d6b604052..00000000000 --- a/TAO/IIOP/test/cubit.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// @(#)cubit.hh 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Hand-crafted C language binding glue ... -// -// This doesn't use C++ since doing the obvious derivation -// (all parent interfaces are virtual public parents) makes -// object references have different "views". That is, a -// pointer to a Cubit (i.e. a Cubit_ptr) would not have -// the same binary value as a pointer to a CORBA_Object -// (i.e. a CORBA_Object_ptr, generic objref). That'd -// mean lots of narrowing/widening/RTTI infrastructure. -// - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include -#include - - -// -// C style binding -// - -typedef CORBA_Object Cubit; -typedef Cubit *Cubit_ptr, *CubitRef; - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many { - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5}; - -struct Cubit_oneof { - Cubit_discrim _disc; - - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -); - -CORBA_Short -Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env -); - -CORBA_Long -Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env -); - -Cubit_Many * -Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env -); - -Cubit_oneof * -Cubit_cube_union ( - Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env -); - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -); - -extern const CORBA_Char *Cubit__id; // type ID - -extern const TAO_Skel_Entry Cubit_operations []; - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/test/cubit.idl b/TAO/IIOP/test/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/test/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/test/cubitC.cpp b/TAO/IIOP/test/cubitC.cpp deleted file mode 100644 index 53763b6c14a..00000000000 --- a/TAO/IIOP/test/cubitC.cpp +++ /dev/null @@ -1,385 +0,0 @@ -// $Id$ - -// @(#)cubitC.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubitC.h" // for stubs ... - -ACE_RCSID(test, cubitC, "$Id$") - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj) -{ - if (obj) - obj->AddRef(); - - return obj; -} - -Cubit_ptr Cubit::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:Cubit:1.0", env)) - { - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - return Cubit::_nil(); - } - Cubit_ptr new_obj = new Cubit(istub); - return Cubit::_duplicate(new_obj); - } - return Cubit::_nil(); -} - -Cubit_ptr Cubit::_nil() -{ - return (Cubit_ptr)NULL; -} - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = -{ - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - - -static const TAO_Call_Data Cubit_cube_octet_calldata = -{ - "cube_octet", 1, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - CORBA_Octet retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - istub->Release (); - - return retval; -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = -{ - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = -{ - "cube_short", 1, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call(env, &Cubit_cube_short_calldata, - &retval, &s); - - istub->Release (); - - return retval; -} - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = -{ - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = -{ - "cube_long", 1, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - istub->Release (); - - return retval; -} - - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = -{ - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - 0); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = -{ - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = -{ - "cube_struct", 1, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many* -Cubit::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = -{ - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - 0); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = -{ - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = -{ - "cube_union", 1, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof* -Cubit::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = -{ - "please_exit", 0, - 0, 0, - 0, 0 -}; - -void -Cubit::Cubit_please_exit (CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - - istub->do_call (env, &Cubit_please_exit_calldata); - istub->Release (); -} diff --git a/TAO/IIOP/test/cubitC.h b/TAO/IIOP/test/cubitC.h deleted file mode 100644 index 98610b55116..00000000000 --- a/TAO/IIOP/test/cubitC.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -// @(#)cubitC.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include "corba/orb.h" -#include "corba/stub.h" - -#include - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many -{ - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim - { e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5 }; - -struct Cubit_oneof -{ - Cubit_discrim _disc; - - union - { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr Cubit_ref; - -class Cubit : public virtual CORBA_Object -{ -public: - - static Cubit_ptr _duplicate(Cubit_ptr obj); - static Cubit_ptr _narrow(CORBA_Object_ptr obj); - static Cubit_ptr _nil(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); - -protected: - Cubit() { } - Cubit(STUB_Object *objref) - : CORBA_Object(objref) { } - virtual ~Cubit() { } - - -}; - -extern const CORBA_Char *Cubit__id; // type ID - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/test/cubitS.cpp b/TAO/IIOP/test/cubitS.cpp deleted file mode 100644 index da418380bec..00000000000 --- a/TAO/IIOP/test/cubitS.cpp +++ /dev/null @@ -1,236 +0,0 @@ -// $Id$ - -// @(#)cubitS.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// - -#include "cubitS.h" -#include "cubitC.cpp" - -#include "connect.h" -#include "params.h" - -#include "corba/debug.h" // ... and debugging -#include "corba/optable.h" // TAO Dynamic Operation Table -#include "method_db.i" -#include "iiopobj.h" - -ACE_RCSID(test, cubitS, "$Id$") - -#if defined(CUBIT_USE_DYNAMIC_HASH) -TAO_Dynamic_Hash_OpTable tao_cubit_optable(7); // Dynamic Operation Table -#else -TAO_Linear_OpTable tao_cubit_optable(7); -#endif - -_skel_Cubit::_skel_Cubit(const char* obj_name) -{ - const char* mn = "_skel_Cubit::_skel_Cubit()"; - - // Initialize Method Database - initialize_method_db (&tao_cubit_optable); - - char *type_id = "IDL:Cubit:1.0"; - // CORBA_String type_id = "IDL:Cubit:1.0"; - IIOP_Object *data; - - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); - if (oa == 0) - { - // We just have to assume that oa will be good, or we have to - // throw an exception. For now we "assume", but we'll - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to locate a valid object adapter\n", mn)); - return; - } - - this->optable_ = &tao_cubit_optable; - data = new IIOP_Object(type_id); - - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - - ACE_OS::memcpy (data->profile.object_key.buffer, - obj_name, - data->profile.object_key.length+1); - - this->set_parent(data); - this->sub_ = this; - - if (oa->bind(data->profile.object_key, this) == -1) - { - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to bind object to key '%s': %p\n", mn, data->profile.object_key.buffer)); - return; - } -} - -void -_skel_Cubit::_cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - // Call Implementation - CORBA_Octet *value = new CORBA_Octet; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - - *value = the_cubit->Cubit_cube_octet(*(CORBA_Octet *)nv->value()->value(), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Octet, value, 1); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - -void -_skel_Cubit::_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - // Call Implementation - CORBA_Short *value = new CORBA_Short; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_short(*(CORBA_Short *)nv->value ()->value (), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Short, value, 1); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - -void -_skel_Cubit::_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - // Call Implementation - CORBA_Long *value = new CORBA_Long; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_long(*(CORBA_Long *)nv->value ()->value (), env); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Long, value, 1); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -void -_skel_Cubit::_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - // Call Implementation - Cubit_Many *value; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - value = the_cubit->Cubit_cube_struct(*(Cubit_Many*)nv->value()->value(), env); - - Cubit_Many *retval = new Cubit_Many; - retval->o = (CORBA_Octet)value->o; - retval->s = (CORBA_Short)value->s; - retval->l = value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = new CORBA_Any (TC_Cubit_Many, retval, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - // Call Implementation - Cubit_oneof *v; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - v = the_cubit->Cubit_cube_union(*(Cubit_oneof *)nv->value ()->value (), env); - - Cubit_oneof *r = new Cubit_oneof; - r->_disc = v->_disc; - r->o = (CORBA_Octet) (v->o); - r->s = (CORBA_Short) (v->s); - r->l = v->l; - r->cm.o = (CORBA_Octet) (v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s); - r->cm.l = v->cm.l; - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - the_cubit->Cubit_please_exit(env); -} diff --git a/TAO/IIOP/test/cubitS.h b/TAO/IIOP/test/cubitS.h deleted file mode 100644 index a4b4b853901..00000000000 --- a/TAO/IIOP/test/cubitS.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -// @(#)cubitS.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _SKEL_CUBIT_HH -#define _SKEL_CUBIT_HH - -#include "cubitC.h" - -class _skel_Cubit; -typedef _skel_Cubit *_skel_Cubit_ptr; -typedef _skel_Cubit_ptr _skel_Cubit_ref; - -class _skel_Cubit : public Cubit -{ -public: - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) = 0; - static - void _cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) = 0; - - static - void _cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) = 0; - - static - void _cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) = 0; - - static - void _cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) = 0; - - static - void _cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env) = 0; - - static - void _please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_Cubit(const char* obj_name = 0); - virtual ~_skel_Cubit() { } - -}; - -#endif // _SKEL_CUBIT_HH diff --git a/TAO/IIOP/test/cubit_i.cpp b/TAO/IIOP/test/cubit_i.cpp deleted file mode 100644 index 31ca107132f..00000000000 --- a/TAO/IIOP/test/cubit_i.cpp +++ /dev/null @@ -1,95 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubit_i.h" - -#include // ... and skeletons -#include // ... and debugging - -#include "connect.h" -#include "params.h" - -ACE_RCSID(test, cubit_i, "$Id$") - -Cubit_i::Cubit_i(const char* obj_name) -: _skel_Cubit(obj_name) -{ -} - -Cubit_i::~Cubit_i() -{ -} - -CORBA_Octet -Cubit_i::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - - return (CORBA_Octet) (o * o * o); -} - -CORBA_Short -Cubit_i::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - return (CORBA_Short) (s * s * s); -} - - -CORBA_Long -Cubit_i::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - return (CORBA_Long) (l * l * l); -} - -Cubit_Many* -Cubit_i::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - values.o = values.o * values.o * values.o; - values.s = values.s * values.s * values.s; - values.l = values.l * values.l * values.l; - - return &values; -} - -Cubit_oneof* -Cubit_i::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - switch (values._disc) { - case e_0th: - values.o = (CORBA_Octet) (values.o * values.o * values.o); - break; - case e_1st: - values.s = (CORBA_Short) (values.s * values.s * values.s); - break; - case e_2nd: - values.l = values.l * values.l * values.l; - break; - case e_3rd: - default: - values.cm.o = (CORBA_Octet) (values.cm.o * values.cm.o * values.cm.o); - values.cm.s = (CORBA_Short) (values.cm.s * values.cm.s * values.cm.s); - values.cm.l = values.cm.l * values.cm.l * values.cm.l; - } - return &values; -} - -void Cubit_i::Cubit_please_exit (CORBA_Environment &env) -{ - TAO_OA_Parameters* params = TAO_OA_PARAMS::instance(); - - dmsg ("I've been asked to shut down..."); - params->oa()->please_shutdown(env); - dexc (env, "please_exit, please_shutdown"); -} diff --git a/TAO/IIOP/test/cubit_i.h b/TAO/IIOP/test/cubit_i.h deleted file mode 100644 index 7ddf1947cd3..00000000000 --- a/TAO/IIOP/test/cubit_i.h +++ /dev/null @@ -1,56 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_I_HH -#define _CUBIT_I_HH - -#include "cubitS.h" - -class Cubit_i; -typedef Cubit_i *Cubit_i_ptr; -typedef Cubit_i_ptr Cubit_i_ref; - -class Cubit_i : public _skel_Cubit -{ -public: - Cubit_i(const char* obj_name = 0); - ~Cubit_i(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); -}; - -#endif // _CUBIT_I_HH diff --git a/TAO/IIOP/test/method_db.i b/TAO/IIOP/test/method_db.i deleted file mode 100644 index e23fdbb3a7c..00000000000 --- a/TAO/IIOP/test/method_db.i +++ /dev/null @@ -1,69 +0,0 @@ -// $Id$ - -// @(#)method_db.i 05/14/97 - -// This file provides a way of initializing the method database -// Written by: Brian Mendel - -#include "cubitS.h" - -static void -is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *) nv->value()->value(); - - if (ACE_OS::strcmp ((char*)value, "IDL:Cubit:1.0") == 0 - || ACE_OS::strcmp ((char *)value, _tc_CORBA_Object->id (env)) == 0) - retval = new CORBA_Boolean (1); - else - retval = new CORBA_Boolean (0); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Boolean, retval, 1); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - - -struct method_db -{ - CORBA_String opname; - TAO_Skeleton skel_ptr; -}; - -static const method_db cubit_operations[] = { - { "_is_a", &is_a_skel }, - { "cube_octet", &_skel_Cubit::_cube_octet_skel }, - { "cube_short", &_skel_Cubit::_cube_short_skel }, - { "cube_long", &_skel_Cubit::_cube_long_skel }, - { "cube_struct", &_skel_Cubit::_cube_struct_skel }, - { "cube_union", &_skel_Cubit::_cube_union_skel }, - { "please_exit", &_skel_Cubit::_please_exit_skel }, - { 0, 0 } -}; - - -void initialize_method_db (TAO_Operation_Table *the_optable) -{ - for (int ndx = 0; ndx < 7; ndx++) - the_optable->bind(cubit_operations[ndx].opname, - cubit_operations[ndx].skel_ptr); - -} diff --git a/TAO/IIOP/test/results/Orbix b/TAO/IIOP/test/results/Orbix deleted file mode 100644 index c3abce78d3f..00000000000 --- a/TAO/IIOP/test/results/Orbix +++ /dev/null @@ -1,133 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.876 533 - 2 2.202 454 - 3 2.740 364 - -MT-Orbix Thread-Per-Request 1 1.886 530 - 2 3.1 322 - 3 5.0 200 - -MT-Orbix Thread-Pool (25) 1 1.875 533 - 2 3.1 322 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 2.002 499 - 2 3.306 302 - 3 5.15 194 - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.818 550 - 2 1.968 508 - 3 2.803 356 - - -MT-Orbix Thread-Per-Request 1 1.846 541 - 2 3.1 322 - 3 4.98 200 - -MT-Orbix Thread-Pool (25) 1 1.913 522 - 2 3.18 314 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 1.959 510 - 2 3.29 303 - 3 5.15 194 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 7.918 126 - 2 14.300 70 - 3 21.000 47 - - -MT-Orbix Thread-Per-Request 1 8.302 120 - 2 10.128 98 - 3 13.722 72 - -MT-Orbix Thread-Pool (25) 1 8.442 118 - 2 15.764 63 - 3 22.595 44 - -MT-Orbix Thread-Per-Session 1 8.956 111 - 2 9.581 104 - 3 16.702 59 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 6.667 149 - 2 12.165 82 - 3 18.634 54 - - -MT-Orbix Thread-Per-Request 1 6.812 146 - 2 6.937 144 - 3 7.706 128 - -MT-Orbix Thread-Pool (25) 1 6.813 146 - 2 6.954 144 - 3 7.776 128 - -MT-Orbix Thread-Per-Session 1 6.85 145 - 2 7.253 137 - 3 7.645 130 - - TNF client-side profile for MT-Orbix without filters for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_wait 6.23 4250.242 1824 2.330 106.171 1.205 0.091 -mutex_lock 0.23 159.830 56662 0.003 1.215 0.002 0.000 -mutex_unlock 0.22 146.756 56663 0.003 0.326 0.002 0.000 -cond_signal 0.09 61.030 1825 0.033 0.475 0.009 0.000 -rw_rdlock 0.01 7.179 1826 0.004 0.014 0.003 0.000 -rw_unlock 0.01 6.548 1827 0.004 0.014 0.003 0.000 -rw_wrlock 0.00 0.004 1 0.004 0.004 0.004 0.000 - - TNF server-side profile for MT-Orbix without filters for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_timedwait 1.25 923.527 797 1.159 20.219 0.324 0.028 -mutex_lock 0.21 153.839 56435 0.003 4.342 0.002 0.000 -mutex_unlock 0.20 149.208 56433 0.003 3.559 0.002 0.000 -cond_signal 0.03 21.506 809 0.027 1.826 0.003 0.002 -rw_unlock 0.02 16.058 3224 0.005 2.915 0.003 0.001 -rw_rdlock 0.02 11.924 3221 0.004 0.087 0.003 0.000 -rw_wrlock 0.00 0.010 2 0.005 0.005 0.004 0.000 - - TNF server-side profile for MT-Orbix with thread-per-request for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.55 797.890 57618 0.014 4.624 0.002 0.000 -cond_timedwait 0.52 748.560 478 1.566 3.918 0.222 0.019 -mutex_unlock 0.36 514.627 57616 0.009 3.975 0.002 0.000 -cond_signal 0.02 24.216 1151 0.021 1.161 0.002 0.001 -rw_rdlock 0.01 13.120 2301 0.006 1.180 0.003 0.001 -rw_unlock 0.01 10.575 2307 0.005 0.316 0.003 0.000 -thr_sigsetmask 0.00 1.949 30 0.065 1.064 0.013 0.035 -rw_wrlock 0.00 0.033 6 0.006 0.008 0.004 0.001 - - - diff --git a/TAO/IIOP/test/results/TAO b/TAO/IIOP/test/results/TAO deleted file mode 100644 index de4a7bf23ae..00000000000 --- a/TAO/IIOP/test/results/TAO +++ /dev/null @@ -1,92 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.172 853 - 2 1.342 745 - 3 1.902 525 - -TAO threaded version 1 1.174 851 - 2 1.219 820 - 3 1.600 625 - - -Cubit results over ATM with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.161 861 - 2 1.302 768 - 3 1.732 577 - -TAO threaded version 1 1.170 854 - 2 1.3 769 - 3 1.600 625 - - -Cubit results over ATM after optimizations with 20,000 calls ------------------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.127 887 - 2 1.238 807 - 3 1.501 666 - -TAO threaded version 1 1.057 946 - 2 1.225 816 - 3 1.471 679 - -Prime_Factor results over ATM with 20,000 calls -------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 7.407 135 - 2 13.7 73 - 3 19.7 51 - -TAO threaded version 1 7.389 135 - 2 8.080 124 - 3 10.726 93 - -IO-bound results over ATM with 20,000 calls --------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 6.404 156 - 2 11.909 83 - 3 17.324 57 - -TAO threaded version 1 6.378 156 - 2 6.449 155 - 3 6.500 153 - - - - - Sample client-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.40 146.579 20006 0.007 1.200 0.005 0.000 -rw_unlock 0.25 91.386 20009 0.005 0.058 0.004 0.000 -mutex_lock 0.06 21.087 5265 0.004 0.178 0.002 0.000 -mutex_unlock 0.04 14.372 5271 0.003 0.075 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.034 0.005 0.008 - - - Sample server-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.12 154.491 54507 0.003 0.140 0.002 0.000 -mutex_unlock 1.06 145.638 54508 0.003 0.310 0.002 0.000 -rw_rdlock 0.27 37.265 6813 0.005 0.037 0.004 0.000 -rw_unlock 0.20 27.792 6813 0.004 0.045 0.004 0.000 - diff --git a/TAO/IIOP/test/results/Visibroker b/TAO/IIOP/test/results/Visibroker deleted file mode 100644 index 8d6bb2457c7..00000000000 --- a/TAO/IIOP/test/results/Visibroker +++ /dev/null @@ -1,79 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - - -Visibroker reactive 1 1.167 856 - 2 1.39 718 - 3 1.664 600 - -Visibroker thr-per-connection 1 1.077 928 - 2 1.228 814 - 3 1.789 558 - - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 1.195 836 - 2 1.241 805 - 3 1.56 641 - -Visibroker thr-per-connection 1 1.060 943 - 2 1.327 753 - 3 2.108 474 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 7.43 134 - 2 13.652 73 - 3 17.738 56 - -Visibroker thr-per-connection 1 7.371 135 - 2 8.561 116 - 3 11.376 87 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 6.424 155 - 2 11.895 84 - 3 17.468 57 - -Visibroker thr-per-connection 1 6.41 156 - 2 6.496 154 - 3 6.524 153 - - - - - TNF client-side profile for Visibroker for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.31 188.930 61797 0.003 1.027 0.002 0.000 -mutex_lock 1.21 175.465 61790 0.003 0.330 0.002 0.000 - - - TNF server-side profile for Visibroker for 20000 calls - - Profile - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.18 165.141 60432 0.003 0.501 0.002 0.000 -mutex_unlock 0.16 153.891 60432 0.003 0.373 0.002 0.000 - - diff --git a/TAO/IIOP/test/results/orbs.xls b/TAO/IIOP/test/results/orbs.xls deleted file mode 100644 index 149078dd383..00000000000 Binary files a/TAO/IIOP/test/results/orbs.xls and /dev/null differ diff --git a/TAO/IIOP/test/svr.cpp b/TAO/IIOP/test/svr.cpp deleted file mode 100644 index ca2ae25e27c..00000000000 --- a/TAO/IIOP/test/svr.cpp +++ /dev/null @@ -1,216 +0,0 @@ -// $Id$ - -// @(#)svr.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "cubit.idl" interface. -// -// Starts up, builds an objref, prints its string in debug mode, -// listens for messages, responds to them. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "ace/Get_Opt.h" -#include "ace/Log_Msg.h" - -#include "corba/orb.h" -#include "corba/debug.h" -#include "connect.h" - -#include "cubit_i.h" - -ACE_RCSID(test, svr, "$Id$") - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -// Global Variables -CORBA_String key = (CORBA_String)"key0"; -int num_of_objs = 1; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dk:n:"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'k': // key (str) - key = (CORBA_String) opts.optarg; - continue; - - case 'n': // idle seconds b4 exit - num_of_objs = ACE_OS::atoi(opts.optarg); - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-k {object_key}]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_Object_ptr obj = 0; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - char *orb_name = "internet"; - int idle = -1; - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // Initialize the Basic Object Adapter - oa_ptr = orb_ptr->BOA_init(argc, argv, "ROA"); - if (oa_ptr == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to initialize the BOA.\n"), 1); - - - // - // Parse remaining command line and verify parameters. - // - parse_args(argc, argv); - - // Create implementation object with user specified key - Cubit_i_ptr *my_cubit = new Cubit_i_ptr[num_of_objs]; - for (int ndx = 0; ndx < num_of_objs; ndx++) - { - CORBA_String obj_str = CORBA_string_alloc(ACE_OS::strlen ((char *)key)+2); - sprintf(obj_str, "%s%d", (char*)key, ndx); - my_cubit[ndx] = new Cubit_i(obj_str); - if (my_cubit[ndx] == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object&d\n", ndx), 2); - - if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) obj_str; - obj_key.length = obj_key.maximum = ACE_OS::strlen (obj_str); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("Object Created at: '%ul'", obj); - dmsg1 ("listening as object '%s'", str); - - } - CORBA_string_free(obj_str); - } -// Cubit_i_ptr my_cubit = new Cubit_i(key); -// if (my_cubit1 == 0) -// ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object\n"), 2); - -/* if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen ((char *)key); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - obj_key.buffer = (CORBA_Octet *)"key1"; - obj_key.length = obj_key.maximum = 4; - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - } -*/ - // Handle requests for this object until we're killed, or one of - // the methods asks us to exit. - // - int terminationStatus = 0; - - -#if !defined(USE_HOMEBREW_EVENT_LOOP) - ACE_Reactor::run_event_loop(); -#else - while (1) - { - int result = params->reactor()->handle_events (); - - if (result == -1) - { - terminationStatus = -1; - break; - } - } -#endif - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - oa_ptr->clean_shutdown (env); - return 0; -} diff --git a/TAO/IIOP/test/test.mak b/TAO/IIOP/test/test.mak deleted file mode 100644 index a27147d5f32..00000000000 --- a/TAO/IIOP/test/test.mak +++ /dev/null @@ -1,463 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -!IF "$(CFG)" == "" -CFG=server - Win32 Debug -!MESSAGE No configuration specified. Defaulting to server - Win32 Debug. -!ENDIF - -!IF "$(CFG)" != "client - Win32 Release" && "$(CFG)" != "client - Win32 Debug"\ - && "$(CFG)" != "server - Win32 Release" && "$(CFG)" != "server - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE on this makefile -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "test.mak" CFG="server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF -################################################################################ -# Begin Project -# PROP Target_Last_Scanned "server - Win32 Debug" -RSC=rc.exe -CPP=cl.exe - -!IF "$(CFG)" == "client - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "client\Release" -# PROP BASE Intermediate_Dir "client\Release" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(OUTDIR)\client.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -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 ..\lib\TAO.lib 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 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib 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 /incremental:no\ - /pdb:"$(OUTDIR)/client.pdb" /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client\Debug" -# PROP BASE Intermediate_Dir "client\Debug" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\client.exe" - -@erase "$(OUTDIR)\client.ilk" - -@erase "$(OUTDIR)\client.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -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 -# ADD LINK32 aced.lib ..\lib\TAO.lib 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 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib 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 /incremental:yes\ - /pdb:"$(OUTDIR)/client.pdb" /debug /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "server\Release" -# PROP BASE Intermediate_Dir "server\Release" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(OUTDIR)\server.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -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 ..\lib\TAO.lib 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 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib 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 /incremental:no\ - /pdb:"$(OUTDIR)/server.pdb" /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "server\Debug" -# PROP BASE Intermediate_Dir "server\Debug" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\server.exe" - -@erase "$(OUTDIR)\server.ilk" - -@erase "$(OUTDIR)\server.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -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 -# ADD LINK32 aced.lib ..\lib\TAO.lib 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 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib 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 /incremental:yes\ - /pdb:"$(OUTDIR)/server.pdb" /debug /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.c{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -################################################################################ -# Begin Target - -# Name "client - Win32 Release" -# Name "client - Win32 Debug" - -!IF "$(CFG)" == "client - Win32 Release" - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\clnt.cpp -DEP_CPP_CLNT_=\ - "..\..\..\ace\config-win32.h"\ - ".\cubitC.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_CLNT_=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\clnt.obj" : $(SOURCE) $(DEP_CPP_CLNT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubitC.cpp -DEP_CPP_CUBIT=\ - ".\cubitC.h"\ - -NODEP_CPP_CUBIT=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\cubitC.obj" : $(SOURCE) $(DEP_CPP_CUBIT) "$(INTDIR)" - - -# End Source File -# End Target -################################################################################ -# Begin Target - -# Name "server - Win32 Release" -# Name "server - Win32 Debug" - -!IF "$(CFG)" == "server - Win32 Release" - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\cubitS.cpp -DEP_CPP_CUBITS=\ - ".\cubitC.cpp"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - ".\method_db.i"\ - -NODEP_CPP_CUBITS=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\optable.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\iiopobj.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubitS.obj" : $(SOURCE) $(DEP_CPP_CUBITS) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubit_i.cpp -DEP_CPP_CUBIT_=\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - -NODEP_CPP_CUBIT_=\ - ".\connect.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubit_i.obj" : $(SOURCE) $(DEP_CPP_CUBIT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\svr.cpp -DEP_CPP_SVR_C=\ - "..\..\..\ace\config-win32.h"\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_SVR_C=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\svr.obj" : $(SOURCE) $(DEP_CPP_SVR_C) "$(INTDIR)" - - -# End Source File -# End Target -# End Project -################################################################################ diff --git a/TAO/IIOP/test/test.mdp b/TAO/IIOP/test/test.mdp deleted file mode 100644 index dc1aea7d5be..00000000000 Binary files a/TAO/IIOP/test/test.mdp and /dev/null differ diff --git a/TAO/IIOP/test/test1.cpp b/TAO/IIOP/test/test1.cpp deleted file mode 100644 index ec9f4621efe..00000000000 --- a/TAO/IIOP/test/test1.cpp +++ /dev/null @@ -1,393 +0,0 @@ -// $Id$ - -// @(#)test1.cpp 1.4 95/09/28 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST stubs for "test1" -// - -#include - -#include "test1.h" - -ACE_RCSID(test, test1, "$Id$") - -// -// Define all the stubs ... it's a lot less error prone to do it with -// macros than by hand! -// -// NOTE: the "calldata" is exported for use by the skeletons. At some -// point skeletons will probably be fully abstracted; for now they aren't. -// -// Also, for some reason, name mangling is changed by the explicit -// declaration as "extern" -- if it's not done, linking fails. -// -#define DEFINE_TEST3(typename, truetype, truetypename) \ - static const TAO_Param_Data test1_ ## typename ## _paramdata [4] = { \ - { _tc_CORBA_ ## truetypename, PARAM_RETURN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_IN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_OUT, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_INOUT, 0 }, \ - }; \ - \ - extern const TAO_Call_Data test1_ ## typename ## _calldata; \ - \ - const TAO_Call_Data test1_ ## typename ## _calldata = { \ - "test_" #typename, 1, \ - 4, &test1_ ## typename ## _paramdata [0], \ - 0, 0, \ - }; \ - \ - CORBA_ ## truetype \ - test1_test_ ## typename (test1_ptr target, \ - CORBA_ ## truetype in_a1, \ - CORBA_ ## truetype &out_a2, \ - CORBA_ ## truetype &inout_a3, \ - CORBA_Environment &env) { \ - CORBA_ ## truetype _retval; \ - STUB_Object *_obj; \ - if (target->QueryInterface (IID_STUB_Object, (void **)&_obj) \ - != NOERROR) \ - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); \ - else { \ - _obj->do_call (env, &test1_ ## typename ## _calldata, \ - &_retval, &in_a1, &out_a2, &inout_a3); \ - _obj->Release (); \ - } \ - return _retval; \ - } - -// changed extern const calldata test1_ ## typename ## _calldata; -// to const calldata test1_ ## typename ## _calldata; \ - -// changed CORBA_ ## truetype _retval = 0; to changed CORBA_ ## truetype _retval; - -#define DEFINE_TEST(typename, truetype) \ - DEFINE_TEST3(typename, truetype, truetype) - - -// -// Generate a system exception, passing an operation ID that's -// not allowed by IIOP (much less this interface) and verifying -// that the server returns some kind of system exception. -// -static const TAO_Call_Data illegal_calldata = { - "+_illegal", 1, - 0, 0, - 0, 0 -}; - -void -test_illegal (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &illegal_calldata - ); - data->Release (); - } -} - - -extern const TAO_Call_Data test1_void_calldata; -const TAO_Call_Data test1_void_calldata = { - "test_void", 1, - 0, 0, - 0, 0 -}; - -void -test1_test_void (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_void_calldata - ); - data->Release (); - } -} - -DEFINE_TEST (short, Short); -DEFINE_TEST (long, Long); -DEFINE_TEST (ushort, UShort); -DEFINE_TEST (ulong, ULong); - -#if defined(MIPS) -// -// NOTE: C/C++ compilers as a rule pass a "float" in the space that -// a "double" takes up. Conversions are evidently optional; portability -// forces the following "explicit temporary" hack to work on at least -// one MIPS platform, which converts the parameter to "double" and -// hence changes the binary representation. (Even if that is a compiler -// bug, it's probably required by now for binary compatibility!) -// -// A "-k ansi" compiler flag may be needed to get correct behaviour; -// passing the "in" parameters by reference apparently works too. At -// this time, none of these solutions is used by default. -// -// This stub-level hackery seems like it could be replaced inside of the -// stub interpreter, which could just manually convert "float" parameters -// (all of them) as special cases. But of course, that would slow the -// interpreter down on _every_ call, not just the ones that require it -// (such as this one). Tradeoffs! -// -static const TAO_Param_Data test1_float_paramdata [4] = { - { _tc_CORBA_Float , PARAM_RETURN , 0 }, - { _tc_CORBA_Float , PARAM_IN , 0 }, - { _tc_CORBA_Float , PARAM_OUT , 0 }, - { _tc_CORBA_Float , PARAM_INOUT , 0 } -}; - -extern const TAO_Call_Data test1_float_calldata; - -const TAO_Call_Data test1_float_calldata = { - "test_float", 1, - 4 , &test1_float_paramdata [0], - 0 , 0 -}; - -CORBA_Float -test1_test_float ( - test1_ptr target, - CORBA_Float in_a1, - CORBA_Float &out_a2, - CORBA_Float &inout_a3, - CORBA_Environment &env -) -{ - CORBA_Float _retval; - - // These three temporaries required due to MIPS compiler bug - CORBA_Float _in_a1 = in_a1; - CORBA_Float _out_a2 = out_a2; - CORBA_Float _inout_a3 = inout_a3; - - target -> data -> do_call (env, - &test1_float_calldata, - &_retval, - &_in_a1, - &_out_a2, - &_inout_a3); - return _retval; -} - -#else -DEFINE_TEST (float, Float); -#endif // MIPS - - -DEFINE_TEST (double, Double); -DEFINE_TEST (boolean, Boolean); -DEFINE_TEST (char, Char); -DEFINE_TEST (octet, Octet); - -/* -CORBA_Any * -test1_test_any (test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env) -{ - // XXX implement this stub! ... annoying that C++ mapping - // calls for so much special casing -} -*/ - - -DEFINE_TEST3 (TypeCode, TypeCode_ptr, TypeCode); -DEFINE_TEST3 (Principal, Principal_ptr, Principal); -DEFINE_TEST3 (Object, Object_ptr, Object); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (string, Char *, String); - -DEFINE_TEST (longlong, LongLong); -DEFINE_TEST (ulonglong, ULongLong); -DEFINE_TEST (wchar, WChar); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (wstring, WChar *, WString); - -#if !defined(NONNATIVE_LONGDOUBLE) -DEFINE_TEST (longdouble, LongDouble); -#endif - -#undef DEFINE_TEST - - -// -// Utility macros used to construct octet codes that are aligned -// on longword boundaries, and with a known byte order. This -// happens to use big endian encoding since it was convenient. -// (Longword alignment is a happy accident of the specification -// of OMG-IDL ... it could have been much worse!) -// -// It'd be much simpler to lay out such data in assembler! -// - -#if defined (WORDS_BIGENDIAN) -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((a) & 0xff) << 24) | (((b) & 0xff) << 16) \ - | (((c) & 0xff) << 8) | ((d) & 0xff)) -# define BIG_ENDIAN_LONG(x) (x) - -#else // LITTLE_ENDIAN -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((d) & 0xff) << 24) | (((c) & 0xff) << 16) \ - | (((b) & 0xff) << 8) | ((a) & 0xff)) -# define BYTE_FROM(n,integer) (((integer)>>(8*(n)))&0xff) -# define BIG_ENDIAN_LONG(integer) \ - MAKE_BIG_LONG (BYTE_FROM(3,integer), BYTE_FROM(2,integer),\ - BYTE_FROM(1,integer), BYTE_FROM(0,integer)) -#endif - - - -// -// "x1" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x1 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '1'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (1), // only one struct member - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x1 (tk_except, sizeof oc_x1, - (unsigned char *)&oc_x1, 0); -CORBA_TypeCode_ptr _tc_test1_x1 = &tc_x1; - - - -// -// "x2" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x2 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '2'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (2), // two struct members - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_objref), - BIG_ENDIAN_LONG (29), // type ID + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('o', 'm', 'g', '.'), - MAKE_BIG_LONG ('o', 'r', 'g', '/'), - MAKE_BIG_LONG ('C', 'O', 'R', 'B'), - MAKE_BIG_LONG ('A', '/', 'O', 'b'), - MAKE_BIG_LONG ('j', 'e', 'c', 't'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x2 (tk_except, sizeof oc_x2, - (unsigned char *)&oc_x2, 0); -CORBA_TypeCode_ptr _tc_test1_x2 = &tc_x2; - - -// -// parameter, exception, and call descriptions for "test_throw" -// -static const TAO_Param_Data test1_test_throw_paramdata [1] = { - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static CORBA_TypeCode_ptr test1_test_throw_excepts [2] = { - &tc_x1, &tc_x2 -}; - -extern const TAO_Call_Data test1_test_throw_calldata; - -const TAO_Call_Data test1_test_throw_calldata = { - "test_throw", 1, - 1, &test1_test_throw_paramdata [0], - 2, &test1_test_throw_excepts [0] -}; - -// -// "test_throw" stub -// -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_test_throw_calldata, - &case_num); - data->Release (); - } -} - -// -// PLEASE EXIT -// - -static const TAO_Call_Data test1_please_exit_calldata = { - "please_exit", 0, - 0, 0, - 0, 0 -}; - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_please_exit_calldata - ); - data->Release (); - } -} - diff --git a/TAO/IIOP/test/test1.h b/TAO/IIOP/test/test1.h deleted file mode 100644 index 63e409d36c3..00000000000 --- a/TAO/IIOP/test/test1.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// @(#)test1.hh 1.2 95/09/12 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST interface for "test1" -// - -#ifndef _TEST1_HH -#define _TEST1_HH - -#include -#include - - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -typedef CORBA_UShort test1_ushort; -typedef CORBA_ULong test1_ulong; - -typedef CORBA_LongLong test1_longlong; -typedef CORBA_ULongLong test1_ulonglong; -typedef CORBA_LongDouble test1_longdouble; - -typedef CORBA_Object test1; -typedef test1 *test1_ptr; - -#define DECL_TEST(typename, truetype) \ - truetype \ - test1_test_ ## typename ( \ - test1_ptr target, \ - truetype in_a1, \ - truetype &out_a2, \ - truetype &inout_a3, \ - CORBA_Environment &env \ - ) - -void test_illegal (test1_ptr target, CORBA_Environment &env); -void test1_test_void (test1_ptr target, CORBA_Environment &env); - -DECL_TEST (short, CORBA_Short); -DECL_TEST (long, CORBA_Long); -DECL_TEST (ushort, CORBA_UShort); -DECL_TEST (ulong, CORBA_ULong); -DECL_TEST (float, CORBA_Float); -DECL_TEST (double, CORBA_Double); -DECL_TEST (boolean, CORBA_Boolean); -DECL_TEST (char, CORBA_Char); -DECL_TEST (octet, CORBA_Octet); - -CORBA_Any * -test1_test_any ( - test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env -); - -DECL_TEST (TypeCode, CORBA_TypeCode_ptr); -DECL_TEST (Principal, CORBA_Principal_ptr); -DECL_TEST (Object, CORBA_Object_ptr); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (string, CORBA_String); - -DECL_TEST (longlong, CORBA_LongLong); -DECL_TEST (ulonglong, CORBA_ULongLong); -DECL_TEST (wchar, CORBA_WChar); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (wstring, CORBA_WString); - -DECL_TEST (longdouble, CORBA_LongDouble); - -#undef DECL_TEST - -extern CORBA_TypeCode_ptr _tc_test1_x1; - -class test1_x1 : public CORBA_UserException { - public: - CORBA_Long case_num; - - test1_x1 (CORBA_Long n) - : CORBA_UserException (_tc_test1_x1), case_num (n) - { } -}; - -extern CORBA_TypeCode_ptr _tc_test1_x2; - -class test1_x2 : public CORBA_UserException { - public: - CORBA_Object_ptr obj; - CORBA_Long case_num; - - test1_x2 (CORBA_Object_ptr obj1, - CORBA_Long n) - : CORBA_UserException (_tc_test1_x2), - obj (obj1), case_num (n) { } - - ~test1_x2 () - { CORBA_release (obj); } -}; - -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -); - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -); - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _TEST1_HH - diff --git a/TAO/IIOP/test/test1.idl b/TAO/IIOP/test/test1.idl deleted file mode 100644 index d47ab676ef5..00000000000 --- a/TAO/IIOP/test/test1.idl +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -// @(#)test1.idl 1.1 95/09/11 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -// TEST basic marshaling tests for all IDL primitive types, modes -// -// This test omits constructed types (struct, union, enum, sequence, and -// array types), and only tests very simple user defined exceptions. -// -// Values returned are well defined functions of the input values: -// -// * For numeric types (octet, short, long, longlong, float, double, -// longdouble, and unsigned variants) the value is cubed. -// * For Boolean, it's the negation. -// * For Any, TypeCode, Principal, Object, char and wchar, -// string and wstring, it's the input value. -// -// The "return" and "out" parameter is the function of the "in" parameter; -// the "inout" parameter is the function of its original value. -// -// The "echo" test has all output values be the input values, with no -// changes to the bit patterns originally transmitted. While easier to -// use to identify some kinds of problem, it is not as complete a test. -// - -#define DECL_TEST(type) \ - type test_ ## type ( in type a1, out type a2, inout type a3) - -#pragma prefix "Eng.SUN.COM" // only for Sun-defined interfaces - -interface test1 { - void test_void (); - - typedef unsigned short ushort; - typedef unsigned long ulong; - - typedef long long longlong; - typedef unsigned long long ulonglong; - typedef long double longdouble; - - DECL_TEST (short); - DECL_TEST (long); - DECL_TEST (ushort); - DECL_TEST (ulong); - DECL_TEST (float); - DECL_TEST (double); - DECL_TEST (boolean); - DECL_TEST (char); - DECL_TEST (octet); - DECL_TEST (any); - DECL_TEST (TypeCode); - DECL_TEST (Principal); - DECL_TEST (Object); // CORBA::Object - DECL_TEST (string); // unbounded string - - DECL_TEST (longlong); - DECL_TEST (ulonglong); - DECL_TEST (wchar); - DECL_TEST (wstring); // unbounded wstring - DECL_TEST (longdouble); - - // - // All cases, "case_num" in the exception is the same as the 'in' param - // * negative or zero, throws x1 - // * positive even cases, throws x2 with obj = null objref - // * positive odd cases, throws x2 with obj = target objref - // - exception x1 { long case_num; }; - exception x2 { Object obj; long case_num; }; - - void test_throw (in long case_num) raises (x1, x2); - - // - // Aid for test cleanup in case server's not told to quit after - // being idle for some time period - // - oneway void please_exit (); -}; - diff --git a/TAO/IIOP/test/test1_clnt.cpp b/TAO/IIOP/test/test1_clnt.cpp deleted file mode 100644 index ffbab44cd7a..00000000000 --- a/TAO/IIOP/test/test1_clnt.cpp +++ /dev/null @@ -1,640 +0,0 @@ -// $Id$ - -// @(#)test1_clnt.cpp 1.5 95/09/24 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST client driver for "test1" -// - -#ifdef USE_IOSTREAM -#include -#endif - -#include -#include -#include - -#if unix -# include - -#else // windows - -#endif // unix - -#include "test1.h" -#include - -ACE_RCSID(test, test1_clnt, "$Id$") - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - - -// -// All tests are specified so that the return value and "out" (second) -// parameters are easily tested functions of the "in" (first) parameter, -// and the "inout" (third) parameter is the same function the its -// initial value. Caller is expected to specify two different "in" -// values. This helps make the marshaled bits vary, and turn up a class -// of potential problems that'd be hidden if parameter order had no -// effect on the test. -// -// PERFORM_TEST calls a test for a given type, reporting in cases where -// the ORB or operation failed. The COMPARE symbol can be redefined -// to achieve different functions -- e.g. cubing numbers, identity, -// negation, etc. It should return true iff the correct result was -// returned. -// -// BAD_COMPARE_VALUES is to produce diagnostics when a test fails, -// showing the actual and expected values of returned parameters. -// This helps diagnose specific porting problems. -// -// The RELEASE symbol may be defined to free memory, eliminating client -// side memory leaks in the test. -// -#define RELEASE(X) // NOP by default -#define PERFORM_TEST(name,type,value1,value2) \ - { \ - CORBA_ ## type v1, v2, v3; \ - \ - v1 = (CORBA_ ## type)(value1); \ - v2 = 0; \ - v3 = (CORBA_ ## type)(value2); \ - \ - test_count++; \ - v1 = test1_test_ ## name (target, v1, v2, v3, env); \ - if (env.exception () != 0) { \ - print_exception (env.exception (), "perform test_" #name); \ - error_count++; \ - } else if (!COMPARE (CORBA_ ## type, v1, value1) \ - || !COMPARE (CORBA_ ## type, v2, value1) \ - || !COMPARE (CORBA_ ## type, v3, value2) ) { \ - ACE_OS::fprintf (stderr, "bad comparison, test_" #name "\n"); \ - BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - error_count++; \ - } \ - RELEASE (v1); RELEASE (v2); RELEASE (v3); \ - } - -// -// This messing about is because the ostream op << cannot always -// be used with all kinds of data ... e.g. LongDouble, TypeCode. -// -#ifdef USE_IOSTREAM -# define DO_IO(x) x -#else -# define DO_IO(x) -#endif -#define BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) \ - DO_IO( cerr << " v1=" << v1; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v2=" << v2; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v3=" << v3; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value2) << "\n"); -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) - - -// -// test utility -- should be able to just use is_equivalent() directly -// but this implementation uses null pointers for nil, so this must -// check for nulls first. (May be noncompliant with C++ mapping!) -// -static CORBA_Boolean -compare_objrefs ( - CORBA_Object_ptr v1, - CORBA_Object_ptr v2 -) -{ - CORBA_Boolean temp; - CORBA_Environment env; - - if (v1 == v2) - return 1; - - if (CORBA_is_nil (v1)) - return CORBA_is_nil (v2); - - temp = v1->_is_equivalent (v2, env); - if (env.exception () != 0) { - print_exception (env.exception (), "compare objref"); - return 0; - } - return temp; -} - - -// -// Helper routine to help sure math (especially for floating point) -// gets done correctly. -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - - -static int skip_longdouble = 0; - -// -// This just performs the tests ... -// -void -do_tests ( - test1_ptr target, - unsigned loop_count, - unsigned &test_count, - unsigned &error_count -) -{ - int count; - - for (count = 0; count < loop_count; count++) { - CORBA_Environment env; - CORBA_Environment env2; // XXX - - // - // test_void - // - test_count++; - test1_test_void (target, env); - if (env.exception () != 0) { - print_exception (env.exception (), "perform test_void"); - error_count++; - } - - // - // Numeric tests ... try some variety in computation, no real - // rationale in the choice of initial parameter values except - // not to use the same values all the time. - // -#define EXPVAL(type,original_value) ((type) cube((type)(original_value))) -#define COMPARE(type,retval,original_value) \ - ((retval) == EXPVAL(type, original_value)) - - PERFORM_TEST (octet, Octet, count + 29, count - 22); - - PERFORM_TEST (short, Short, count - 23, count + 19); - PERFORM_TEST (ushort, UShort, count + 23, count - 19); - - PERFORM_TEST (long, Long, count - 17, count + 20); - PERFORM_TEST (ulong, ULong, count + 17, count - 20); - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - PERFORM_TEST (longlong, LongLong, count - 177, count + 3); - PERFORM_TEST (ulonglong, ULongLong, count + 177, count - 3); -#endif // !NONNATIVE_LONGLONG - -#if !defined (i386) - // - // XXX not sure what's wrong with the COMPARE macro with respect to - // floating point on x86, since fprintf shows the values basically - // look correct ... but these float/double tests fail. - // - PERFORM_TEST (float, Float, count - 0.29, count + 3.14159); - PERFORM_TEST (double, Double, count * 1.77, count * 2.71); -#endif // !defined (i386) - - -#ifndef NONNATIVE_LONGDOUBLE -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - // - // don't try this between two platforms that don't provide - // arithmetic support for LongDouble values ... - // - if (!skip_longdouble) { - PERFORM_TEST (longdouble, LongDouble, - count - 2.33, count * 3.14159); - } - -# undef BAD_COMPARE_VALUES -# define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) -#endif // !NONNATIVE_LONGDOUBLE - -#undef COMPARE -#undef EXPVAL - - - // - // Boolean -- negation - // -#define EXPVAL(type,original_value) (!(type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (boolean, Boolean, - (count & 0x01) != 0, (count & 0x01) == 0); -#undef COMPARE -#undef EXPVAL - - // - // Char, WChar -- identity - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (char, Char, count + 26, count - 5); - PERFORM_TEST (wchar, WChar, count, count + 25); -#undef COMPARE -#undef EXPVAL - - // - // Object_ptr -- identity (special comparision) - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (compare_objrefs (retval, original_value) == 1) -#undef RELEASE -#define RELEASE(obj) \ - { CORBA_release (obj); } - - PERFORM_TEST (Object, Object_ptr, target, CORBA_Object::_nil ()); -#undef COMPARE -#undef EXPVAL - - // - // TypeCode_ptr -- identity (special comparision), and verifies - // that most of the built-in typecode constants exist. - // - // XXX should try this on all standard and system exceptions! - // - // XXX this currently tests only marshaling/unmarshaling of - // "no parameter" TypeCodes ... complex ones (objref, struct, - // union, enum, sequence, array, alias, exception) are _NOT_ - // currently attempted. - // - // XXX for the simple typecodes (string, wstring), the single - // "bound" parameter isn't exercised/verified as it should be. - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original) \ - (((retval) == (original)) || \ - ((retval)->_kind == (original)->_kind)) - -#undef RELEASE -#define RELEASE(tc) \ - { CORBA_release (tc); } - -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - { - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Null, _tc_CORBA_Void); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Short, _tc_CORBA_UShort); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Long, _tc_CORBA_ULong); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongLong, _tc_CORBA_ULongLong); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Float, _tc_CORBA_Double); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Boolean, _tc_CORBA_Octet); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Any, _tc_CORBA_TypeCode); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Principal); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Char, _tc_CORBA_String); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_WChar, _tc_CORBA_WString); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Octet); - - // - // Try all of the standard exception typecodes. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_UNKNOWN, _tc_CORBA_BAD_PARAM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_MEMORY, _tc_CORBA_IMP_LIMIT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_COMM_FAILURE, _tc_CORBA_INV_OBJREF); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJECT_NOT_EXIST, _tc_CORBA_NO_PERMISSION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTERNAL, _tc_CORBA_MARSHAL); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INITIALIZE, _tc_CORBA_NO_IMPLEMENT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BAD_TYPECODE, _tc_CORBA_BAD_OPERATION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_RESOURCES, _tc_CORBA_NO_RESPONSE); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_PERSIST_STORE, _tc_CORBA_BAD_INV_ORDER); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_TRANSIENT, _tc_CORBA_FREE_MEM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INV_IDENT, _tc_CORBA_INV_FLAG); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTF_REPOS, _tc_CORBA_BAD_CONTEXT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJ_ADAPTER, _tc_CORBA_DATA_CONVERSION); - - // - // All the built-in "user defined" system exceptions. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BadKind, _tc_CORBA_Bounds); - } -#undef COMPARE -#undef RELEASE - - // - // string (unbounded)-- identity (special comparision) - // -#define COMPARE(type,retval,original_value) \ - (strcmp ((char *)(retval), (char*)(original_value)) == 0) -#undef RELEASE -#define RELEASE(obj) CORBA_string_free(obj) - static const CORBA_Char str1 [] = "small"; - static const CORBA_Char str2 [] = - "relatively long string, constructed" - " with the aid of C++ implicit string" - " catenation, which simplifies much stuff"; - PERFORM_TEST (string, String, str1, str2); -#undef COMPARE -#undef RELEASE - - - // XXX any, principal, wstring ... output _is_ input - - - // - // Three test cases involve throwing user-defined exceptions. - // - { - CORBA_Exception *xp; - - // - // Case one: with parameter <= zero, must throw - // an "x1" exception whose "case_num" is that parameter - // - test_count++; - - test1_test_throw (target, -5, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x1->id (env2)) != 0) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } else { - test1_x1 *xp2 = (test1_x1 *) xp; - - if (xp2->case_num != -5) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - // else, right exception was thrown - } - } else { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "no exception thrown !!\n"); - } - - - // - // Case two: with positive odd parameter, must throw - // an "x2" exception whose obj is null, and whose case_num - // is that parameter - // - test_count++; - - test1_test_throw (target, 101, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } else { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 101) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - if (!CORBA_is_nil (xp2->obj)) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "non-null objref thrown\n"); - } - - // else, right exception was thrown - } - } else { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "no exception thrown !!\n"); - } - - -#if 0 -// 18-sept-95: commented this out. Work remains to be done in -// this area: (a) ServerRequest::target operation unimplemented, -// so for the servers of current interest this test is no help; -// (b) probable pointer leak in exceptions holding data. - - // - // Case three: with positive even parameter, must throw - // an "x2" exception whose obj is the target, and whose - // case_num is that parameter - // - test_count++; - - test1_test_throw (target, 42, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } else { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 42) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - CORBA_Boolean status; - - status = target->_is_equivalent (xp2->obj, env); - - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), - "test_throw/3 call to is_equivalent"); - } else if (status != 1) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "non-equivalent objref thrown\n"); - } - - // else, right exception was thrown - } - } else { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "no exception thrown !!\n"); - } - - env.clear (); -#endif // 0 - - } - - // - // test_illegal -- generate a BAD_OPERATION system exception - // from the remote process - // - test_count++; - test_illegal (target, env); - if (env.exception () == 0 - || ACE_OS::strcmp ((char *) env.exception()->id(), - (char *) _tc_CORBA_BAD_OPERATION->id (env2)) != 0) { - ACE_OS::fprintf (stderr, "couldn't generate BAD_OPERATION exception\n"); - error_count++; - } - } -} - - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Environment env; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - unsigned loop_count = 1; - unsigned tests = 0, errors = 0; - int exit_later = 0; - - orb_ptr = CORBA_ORB_init (argc, argv, "internet", env); - if (env.exception () != 0) { - dexc (env, "ORB initialisation"); - return 1; - } - - // - // Parse and verify parameters. - // - ACE_Get_Opt get_opt (argc, argv, "dln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) { - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'l': // skip "long double" test - skip_longdouble++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (get_opt.optarg); - continue; - - case 'O': // stringified objref - { - objref = orb_ptr->string_to_object ( - (CORBA_String)get_opt.optarg, env); - if (env.exception () != 0) { - dexc (env, "string2object"); - return 1; - } - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-l]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - if (CORBA_is_nil (objref) == 1) { - ACE_OS::fprintf (stderr, "%s: must identify non-null target objref\n", - argv [0]); - return 1; - } - - - do_tests (objref, loop_count, tests, errors); - - char *progname = ACE_OS::strrchr (argv [0], '/'); - - if (progname != 0) - progname += 1; - else - progname = argv [0]; - - ACE_OS::fprintf (stderr, "%s: %d loops, %d tests (%d errors)\n", - progname, loop_count, tests, errors); - - if (exit_later) { - test1_please_exit (objref, env); - if (env.exception () != 0) - print_exception (env.exception (), "test1_please_exit"); - } - - CORBA_release (objref); - - return errors != 0; -} diff --git a/TAO/IIOP/test/test1_svr.cpp b/TAO/IIOP/test/test1_svr.cpp deleted file mode 100644 index 69f602cf22c..00000000000 --- a/TAO/IIOP/test/test1_svr.cpp +++ /dev/null @@ -1,673 +0,0 @@ -// $Id$ - -// @(#)test1_svr.cpp 1.7 95/09/25 -// Copyright 1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "test1.idl" interface. -// -// Starts up, builds an objref, prints its string, listens for -// messages, responds to them. -// - -#include -#include -#include - -#if unix -# include // for getopt on some systems - -#else // windows - -#endif - -#include "test1.h" -#include -#include - -#include - -ACE_RCSID(test, test1_svr, "$Id$") - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -// -// Skeleton code ... just a macro for a bunch of DSI-based method code, -// in lieu of having an IDL compmiler generate static skeletons. Static -// skeletons would be more efficient; most mallocation could go away. -// -// Use by: defining OPERATION macro, call DEFINE_SKEL3 as needed, then -// undef OPERATION. -// -// NOTE: "v1_copy" below is needed to work around a bug with the -// HP9000 G++ 2.6.3 compiler, with "LongLong". -// -// XXX this could probably be a template ... or could even be merged -// directly into the Dynamic Implementation Routine below. -// -// XXX we must currently use IN_COPY_VALUE since the memory consumed -// by the parameters must be deallocated by the ORB. When we get an -// updated version of DSI which provides "send it now" semantics, -// these should preallocate the values and not use IN_COPY_VALUE. A -// net decrease in malloc overhead can be had that way. (NVList should -// also get a public constructor, and a way to provide the buffer.) -// -#define DEFINE_SKEL3(name,truetype,truetypename) \ - static void \ - _test1_test_ ## name ( \ - CORBA_ServerRequest &req, \ - CORBA_Object_ptr obj, \ - CORBA_Environment &env \ - ) \ - { \ - CORBA_NVList_ptr nvlist; \ - CORBA_ ## truetype scratch = 0; \ - CORBA_Any temp_value (_tc_CORBA_ ## truetypename, \ - &scratch, 0); \ - \ - req.orb ()->create_list (3, nvlist); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_IN, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_OUT, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_INOUT, env); \ - \ - req.params (nvlist, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, req.params"); \ - return; \ - } \ - \ - CORBA_ ## truetype *v1, *v2, *retval; \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (0)->value ()->value (); \ - v2 = new CORBA_ ## truetype; \ - *v2 = (CORBA_ ## truetype) OPERATION (*v1); \ - retval = new CORBA_ ## truetype; \ - *retval = (CORBA_ ## truetype) OPERATION (*v1); \ - \ - CORBA_Any_ptr any_val; \ - \ - any_val = nvlist->item (1)->value (); \ - any_val->replace (any_val->type (), v2, 1, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, val2 replace"); \ - return; \ - } \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (2)->value ()->value (); \ - CORBA_ ## truetype v1copy = *v1; \ - *v1 = (CORBA_ ## truetype) OPERATION (v1copy); \ - \ - any_val = new CORBA_Any (_tc_CORBA_ ## truetypename, \ - retval, 1); \ - req.result (any_val, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, result"); \ - return; \ - } \ - } \ - extern TAO_Call_Data test1_ ## name ## _calldata; - - -extern const TAO_Call_Data test1_void_calldata; - -static void -_test1_test_void (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - - req.orb ()->create_list (0, nvlist); - req.params (nvlist, env); - - if (env.exception () != 0) - dexc (env, "test_throw, get params"); -} - - -// -// Dynamic Skeleton methods for numeric types ... these all just -// cube their parameters in various permutations -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - -#define OPERATION(n) cube(n) - -DEFINE_SKEL3 (octet, Octet, Octet) - -DEFINE_SKEL3 (short, Short, Short) -DEFINE_SKEL3 (ushort, UShort, UShort) - -DEFINE_SKEL3 (long, Long, Long) -DEFINE_SKEL3 (ulong, ULong, ULong) - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -DEFINE_SKEL3 (longlong, LongLong, LongLong) -DEFINE_SKEL3 (ulonglong, ULongLong, ULongLong) -#endif // !NONNATIVE_LONGLONG - -DEFINE_SKEL3 (float, Float, Float) -DEFINE_SKEL3 (double, Double, Double) - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -DEFINE_SKEL3 (longdouble, LongDouble, LongDouble) -#endif // !NONNATIVE_LONGDOUBLE - -#undef OPERATION - -// -// Dynamic Skeleton methods for Boolean type ... just negates its -// parameters -// -#define OPERATION(x) (!(x)) -DEFINE_SKEL3 (boolean, Boolean, Boolean) -#undef OPERATION - -// -// For character types, output is same as input, no magic needed. -// -#define OPERATION(x) (x) -DEFINE_SKEL3 (char, Char, Char) -DEFINE_SKEL3 (wchar, WChar, WChar) -#undef OPERATION - -// -// For objref, typecode, output is same as input but duplication -// is needed -// -#define OPERATION(x) ((x) ? (x)->AddRef() : 0, x) -DEFINE_SKEL3 (Object, Object_ptr, Object) -DEFINE_SKEL3 (TypeCode, TypeCode_ptr, TypeCode) -#undef OPERATION - -// -// For string, output is copy of input -// -#define OPERATION(x) (CORBA_string_copy(x)) -DEFINE_SKEL3 (string, String, String) -#undef OPERATION - -// -// For wstring, output is copy of input -// -#define OPERATION(x) (CORBA_wstring_copy(x)) -DEFINE_SKEL3 (wstring, WString, WString) -#undef OPERATION - -// -// XXX IMPLEMENT THE REST OF THE DATA TYPES -// -// any, principal -- out is in -// - - -// -// All cases, "case_num" in the exception is the same as the 'in' param -// * negative or zero, throws x1 -// * positive even cases, throws x2 with obj = null objref -// * positive odd cases, throws x2 with obj = target objref -// -// exception x1 { long case_num; }; -// exception x2 { Object obj; long case_num; }; -// -// void test_throw (in long case_num) raises (x1, x2); -// - -extern const TAO_Call_Data test1_test_throw_calldata; - -static void -_test1_test_throw (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - CORBA_Long value; - - req.orb ()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "test_throw, get params"); - return; - } - - value = *(CORBA_Long *)nv->value ()->value (); - if (env.exception () != 0) - { - dexc (env, "test_throw, param value"); - return; - } - - CORBA_Any_ptr any; - - if (value <= 0) - { - test1_x1 *x; - - x = new test1_x1 (value); - any = new CORBA_Any (_tc_test1_x1, x, 1); - - } - else if (value & 0x01) - { - test1_x2 *x; - - x = new test1_x2 (CORBA_Object::_nil (), value); - any = new CORBA_Any (_tc_test1_x2, x, 1); - - } - else - { -#if 0 - test1_x2 *x; - - x = new test1_x2 (req.oa()->target (), value); - any = new CORBA_Any (_tc_test1_x2, x, 1); -#else - // - // XXX right now, we don't have a target() operation on the - // BOA ... needs to be added. Verify the client side memory - // leak of pointers embedded in user exceptions is fixed, too. - // - env.exception (new CORBA_IMP_LIMIT (COMPLETED_NO)); - return; -#endif - } - - req.exception (USER_EXCEPTION, any, env); -} - - -// -// This table is used to associate operation names with the Dynamic -// Skeleton method ... someday it could return static skeletons. -// -#define DECL_SKEL(name) \ - { & test1_ ## name ## _calldata, _test1_test_ ## name } - -static const TAO_Skel_Entry test1_operations [] = { - DECL_SKEL (void), - - DECL_SKEL (octet), - DECL_SKEL (char), - - DECL_SKEL (wchar), - - DECL_SKEL (short), - DECL_SKEL (ushort), - DECL_SKEL (long), - DECL_SKEL (ulong), - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - DECL_SKEL (longlong), - DECL_SKEL (ulonglong), -#endif - - DECL_SKEL (float), - DECL_SKEL (double), - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... - DECL_SKEL (longdouble), -#endif // !NONNATIVE_LONGDOUBLE - - DECL_SKEL (boolean), - - DECL_SKEL (Object), - DECL_SKEL (TypeCode), - - DECL_SKEL (string), - DECL_SKEL (wstring), - - { & test1_test_throw_calldata, _test1_test_throw }, - - { 0, 0 } -}; - - -// -// Dispatch to method code ... -// -// Knows how to interpret "context" to get target objref, and where to -// get second level skeletons for that target. Both of those operations -// will generally be abstracted (into library and stub code) so the main -// body of this routine would be invisible to most applications. -// -// However, there are applications that need to do this stuff themselves -// (like bridging between environments, e.g. different ORBs, languages, or -// other object systems). Everything needed to work without using an IDL -// compiler is a public, supported API. -// -static void -level1_skeleton ( - CORBA_OctetSeq &key, - CORBA_ServerRequest &req, - void *context, - CORBA_Environment &env -) -{ - // - // Verify that the target object and "this" object have the - // same key. Normally, this would be used to figure out - // which object was the target, and hence which operations - // vector to dispatch the request. - // - CORBA_OctetSeq *obj_key; - - obj_key = (CORBA_OctetSeq *) context; - if (obj_key->length != key.length - || ACE_OS::memcmp (obj_key->buffer, key.buffer, - obj_key->length) != 0) - { - env.exception (new CORBA_OBJECT_NOT_EXIST (COMPLETED_NO)); -#ifdef DEBUG - if (TAO_debug_level) - dmsg_opaque ("request to nonexistent object, key = ", - key.buffer, key.length); -#endif - return; - } - - // - // Find a "level 2 skeleton" for this operation, then - // call it with the right per-object state. - // - const TAO_Skel_Entry *entry; - CORBA_String opname; - - opname = req.op_name (); - for (entry = &test1_operations [0]; entry->op_descriptor; entry++) - { - if (strcmp ((char *)opname, entry->op_descriptor->opname) == 0) - { - // We pass a bogus object because this version of the cubit example is - // so tightly coupled that it doesn't use it. Future modifications will, - // hopefully! - CORBA_Object_ptr bogus_object = 0; - entry->impl_skeleton (req, bogus_object, env); - return; - } - } - - // - // XXX True top-level skeleton code would also have to understand - // the built-in operations: - // - // * _is_a (for narrowing tests) ... can be derived by searching an - // appropriately structured graph of level2 skeletons. - // - // * _non_existent ... if the level1 skeleton consults a module - // which understands object lifespans, this should be simple. - // - // * _get_interface ... could either (a) fail; (b) return the ref - // from some IFR; or most interestingly (c) return a ref to some - // code in this process that can answer all IFR queries from the - // skeleton data structures. - // - // * _get_implementation ... return some administrative hook to - // the object implementation: - // - // No other legal operations start with a character that's not an - // ASCII alphanumeric, for what it's worth. - // - // The skeleton might want to use data in the object key to find - // the objref's type; if it's integrated with object creation, and - // an per-process implementation repository, this should be easy. - // - - // - // bypass level 2 skeletons for this one ... - // - if (strcmp ((char *) opname, "please_exit") == 0) - { - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); - return; - } - - // - // No match. Operation not implemented; say so. - // - dmsg1 ("unknown operation, %s", opname); - env.exception (new CORBA_BAD_OPERATION (COMPLETED_NO)); -} - - -// -// Create and print the objref, listen for calls on it until done. -// -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -int -OA_listen (CORBA_ORB_ptr orb_ptr, - CORBA_BOA_ptr oa_ptr, - CORBA_String key, - int idle) -{ - // - // Create the object we'll be implementing. - // - CORBA_OctetSeq obj_key; - CORBA_Object_ptr obj; - CORBA_Environment env; - - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen (key); - - obj = oa_ptr->create (obj_key, (CORBA_String) "", env); - if (env.exception () != 0) - { - print_exception (env.exception (), "BOA::create"); - return 1; - } - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - // - // Clean up -- "key" is sufficient to dispatch all requests. - // - CORBA_release (obj); - CORBA_string_free (str); - env.clear (); - - // - // Handle requests for this object until we're killed, or one of - // the methods makes us exit. - // - // NOTE: apart from registering the top level skeleton, the rest - // of this loop is exactly what BOA::run() does. It's here to - // show there's no magic. - // -#if 0 - oa_ptr->register_dir (level1_skeleton, &obj_key, env); -#else - oa_ptr->register_dir (oa_ptr->dispatch, &obj_key, env); -#endif - if (env.exception () != 0) - { - print_exception (env.exception (), "register_dir"); - return 1; - } - - for (;;) { - if (idle == -1) - oa_ptr->get_request (0, 0, env); - else - { - timeval tv; - - tv.tv_sec = idle; - tv.tv_usec = 0; - oa_ptr->get_request (0, &tv, env); - } - - CORBA_Exception_ptr xp; - - if ((xp = env.exception ()) != 0) - { - CORBA_Environment env2; // XXX - char *id; - - id = env.exception ()->id (); - - // - // We get BAD_INV_ORDER if we call get_request() after - // shutdown was initiated. Simpler to rely on that - // than to arrange any handshaking in this simple app. - // - if (strcmp (id, _tc_CORBA_BAD_INV_ORDER->id (env2)) == 0) - { - break; - - // - // Other exceptions are errors. - // - } - else - { - print_exception (env.exception (), "BOA::get_request"); - return 1; - } - } - env.clear (); - } - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - // XXX shutdown is not quite the same as release, unless we want mem - // leaks to cause some rude failure modes. BOA just hasn't been - // updated yet to have any handshake about this though. - // - oa_ptr->Release (); - return 0; -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - CORBA_String key = (CORBA_String) "elvis"; - char *oa_name = 0; - char *orb_name = "internet"; - int idle = -1; - - // - // Parse the command line, get options - // - ACE_Get_Opt get_opt (argc, argv, "dln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) - { - case 'd': // more debug noise - TAO_debug_level++; - continue; - - case 'i': // idle seconds b4 exit - idle = ACE_OS::atoi (get_opt.optarg); - continue; - - case 'k': // key (str) - key = (CORBA_String) get_opt.optarg; - continue; - - case 'o': // orb name - orb_name = get_opt.optarg; - continue; - - case 'p': // portnum - oa_name = get_opt.optarg; - continue; - - // XXX set debug filters ... - - // - // XXX ignore OMG-specified options ... hope nobody ever tries - // to use that "-ORB* param" and "-OA* param" syntax, it flies - // in the face of standard command parsing algorithms which - // require single-character option specifiers. - // - - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-i idle_seconds]" - " [-k object_key=elvis]" - " [-o orbname=internet]" - " [-p oa_name]" - "\n", argv [0] - ); - return 1; - } - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // - // The BOA may or may not actually be named ... - // - oa_ptr = CORBA_BOA::get_named_boa (orb_ptr, oa_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "OA init"); - return 1; - } - - return OA_listen (orb_ptr, oa_ptr, key, idle); -} - diff --git a/TAO/IIOP/test/tnf/Orbix.svr.summary b/TAO/IIOP/test/tnf/Orbix.svr.summary deleted file mode 100644 index 1c01995f7d5..00000000000 --- a/TAO/IIOP/test/tnf/Orbix.svr.summary +++ /dev/null @@ -1,32 +0,0 @@ - Profile for 10000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.04 8.505 3386 0.003 0.349 0.002 0.000 -mutex_unlock 0.04 8.205 3386 0.002 0.127 0.002 0.000 - - - Profile for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.01 8.875 3386 0.003 0.373 0.002 0.000 -mutex_unlock 0.01 8.353 3386 0.002 0.093 0.002 0.000 - - Profile for 30000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.02 8.979 3386 0.003 0.386 0.002 0.000 -mutex_unlock 0.02 8.465 3386 0.002 0.030 0.002 0.000 - - Profile for 40000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.01 8.849 3388 0.003 0.355 0.002 0.000 -mutex_unlock 0.01 7.937 3388 0.002 0.029 0.002 0.000 diff --git a/TAO/IIOP/test/tnf/clnt.summary b/TAO/IIOP/test/tnf/clnt.summary deleted file mode 100644 index bed4a22d35e..00000000000 --- a/TAO/IIOP/test/tnf/clnt.summary +++ /dev/null @@ -1,43 +0,0 @@ - Profile for 10000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.28 53.642 10006 0.005 0.192 0.004 0.000 -rw_unlock 0.28 52.672 10009 0.005 0.037 0.005 0.000 -mutex_lock 0.06 11.366 2765 0.004 0.161 0.002 0.000 -mutex_unlock 0.04 6.996 2771 0.003 0.028 0.002 0.000 -rw_wrlock 0.00 0.047 3 0.016 0.034 0.006 0.007 - - Profile for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.40 146.579 20006 0.007 1.200 0.005 0.000 -rw_unlock 0.25 91.386 20009 0.005 0.058 0.004 0.000 -mutex_lock 0.06 21.087 5265 0.004 0.178 0.002 0.000 -mutex_unlock 0.04 14.372 5271 0.003 0.075 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.034 0.005 0.008 - - Profile for 30000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.41 241.807 30006 0.008 1.181 0.005 0.000 -rw_unlock 0.24 141.506 30009 0.005 0.503 0.004 0.000 -mutex_lock 0.07 38.545 7765 0.005 0.171 0.002 0.000 -mutex_unlock 0.03 19.591 7771 0.003 0.078 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.033 0.005 0.007 - - Profile for 40000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.39 307.763 40006 0.008 2.031 0.005 0.000 -rw_unlock 0.23 184.537 40009 0.005 0.138 0.004 0.000 -mutex_lock 0.05 38.808 10265 0.004 0.173 0.002 0.000 -mutex_unlock 0.03 25.931 10271 0.003 0.078 0.002 0.000 -rw_wrlock 0.00 0.043 3 0.014 0.033 0.004 0.008 diff --git a/TAO/IIOP/test/tnf/svr.summary b/TAO/IIOP/test/tnf/svr.summary deleted file mode 100644 index 6e1c024aacd..00000000000 --- a/TAO/IIOP/test/tnf/svr.summary +++ /dev/null @@ -1,49 +0,0 @@ - Profile for 10000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.18 191.077 54588 0.004 1.158 0.003 0.000 -mutex_lock 1.18 190.652 54587 0.003 0.198 0.003 0.000 -rw_rdlock 0.29 46.844 6823 0.007 0.173 0.004 0.000 -rw_unlock 0.18 28.419 6823 0.004 0.064 0.004 0.000 - - Profile for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.12 154.491 54507 0.003 0.140 0.002 0.000 -mutex_unlock 1.06 145.638 54508 0.003 0.310 0.002 0.000 -rw_rdlock 0.27 37.265 6813 0.005 0.037 0.004 0.000 -rw_unlock 0.20 27.792 6813 0.004 0.045 0.004 0.000 - - Profile for 30000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.19 150.344 54654 0.003 0.621 0.002 0.000 -mutex_unlock 1.15 144.776 54655 0.003 0.071 0.002 0.000 -rw_rdlock 0.27 33.772 6832 0.005 0.078 0.004 0.000 -rw_unlock 0.19 23.613 6832 0.003 0.105 0.003 0.000 - - Profile for 40000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.48 209.259 54770 0.004 18.223 0.002 0.000 -mutex_lock 1.46 206.619 54769 0.004 10.473 0.002 0.000 -rw_rdlock 0.78 110.047 6846 0.016 38.115 0.003 0.006 -rw_unlock 0.17 23.844 6846 0.003 0.112 0.003 0.000 - - Profile for 50000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.19 150.149 54477 0.003 0.152 0.002 0.000 -mutex_lock 1.18 149.113 54477 0.003 1.376 0.002 0.000 -rw_rdlock 0.34 43.048 6809 0.006 10.113 0.003 0.001 -rw_unlock 0.19 23.796 6810 0.003 0.326 0.003 0.000 diff --git a/TAO/IIOP/tests/Cubit/Build/clnt.bld b/TAO/IIOP/tests/Cubit/Build/clnt.bld deleted file mode 100755 index 76e60ef8967..00000000000 --- a/TAO/IIOP/tests/Cubit/Build/clnt.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../cubit.cpp - C++ -../clnt.cpp - C++ diff --git a/TAO/IIOP/tests/Cubit/Build/default.bld b/TAO/IIOP/tests/Cubit/Build/default.bld deleted file mode 100755 index cdf3e2e8210..00000000000 --- a/TAO/IIOP/tests/Cubit/Build/default.bld +++ /dev/null @@ -1,19 +0,0 @@ -#!build -default: - nobuild - :debuglevel=multi - :target=vxwppc - :sourcedirs=/home/ace/ACE_wrappers.vxworks - :sourcedirs=../../proto/include - :sourcedirs=../.. - :libraries=../../proto/lib/tao.a - :libraries=/home/ace/ACE_wrappers.vxworks/ace/libACE.a - :libraries=/appl/newgreen/vxppc603/indlib.o - :defines=DEBUG -clnt.bld - program - :debuglevel=multi -svr.bld - program - :debuglevel=multi - :defines=USE_ACE_EVENT_HANDLING diff --git a/TAO/IIOP/tests/Cubit/Build/svr.bld b/TAO/IIOP/tests/Cubit/Build/svr.bld deleted file mode 100755 index 7c8725356b2..00000000000 --- a/TAO/IIOP/tests/Cubit/Build/svr.bld +++ /dev/null @@ -1,8 +0,0 @@ -#!build -default: - program - :debuglevel=multi -../svr.cpp - C++ -../cubit.cpp - C++ diff --git a/TAO/IIOP/tests/Cubit/Orbix/Makefile b/TAO/IIOP/tests/Cubit/Orbix/Makefile deleted file mode 100644 index 96935fb78fc..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the Gateway application -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = README - -DIRS = base_server \ - client \ - tpr \ - tpool \ - tps - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile b/TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile deleted file mode 100644 index 3bf0684dfd5..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp deleted file mode 100644 index 619a3c776f0..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(base_server, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp deleted file mode 100644 index 758c1201ad8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(base_server, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp deleted file mode 100644 index 4661cba6809..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(base_server, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp deleted file mode 100644 index b8b5b991536..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/server.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -ACE_RCSID(base_server, server, "$Id$") - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp b/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp deleted file mode 100644 index 9f3bb99ef7e..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#include "tpr.h" - -ACE_RCSID(base_server, tpr, "$Id$") - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/Makefile b/TAO/IIOP/tests/Cubit/Orbix/client/Makefile deleted file mode 100644 index 73f775bee2f..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/client.cpp b/TAO/IIOP/tests/Cubit/Orbix/client/client.cpp deleted file mode 100644 index 617f212d9a5..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/client.cpp +++ /dev/null @@ -1,236 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -ACE_RCSID(client, client, "$Id$") - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cb = Cubit::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp deleted file mode 100644 index 0913c5bb786..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(client, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile b/TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile deleted file mode 100644 index 63cc8a65e02..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitC.cpp client.cpp - -CLT_OBJS = cubitC.o client.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: client - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitC.o .shobj/cubitC.so: cubitC.cpp cubit.h -.obj/client.o .shobj/client.so: client.cpp $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i cubit.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp b/TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp deleted file mode 100644 index d39892c91fe..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/client.cpp +++ /dev/null @@ -1,239 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include "ace/OS.h" -#include "ace/Get_Opt.h" -#include "cubit.h" - -ACE_RCSID(factory_client, client, "$Id$") - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_OS::strcpy (SERVER_HOST, "localhost"); - ACE_Get_Opt opts (argc, argv, "dh:n:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - case 'h': - ACE_OS::strcpy (SERVER_HOST, opts.optarg); - continue; - case 'd': // debug flag - continue; - - case 'n': // loop count - LOOP_COUNT = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - continue; - - case 'x': - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-h SERVER_HOST]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - Cubit_Factory_var cf; - - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - TRY { - cf = Cubit_Factory::_bind ("", SERVER_HOST, IT_X); - } - CATCHANY { - cerr << "Binding failed: " << IT_X; - } - ENDTRY; - cb = cf->create_cubit ("My_Cubit"); - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - TRY { - ret_octet = cb->cube_octet (arg_octet); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - TRY { - ret_short = cb->cube_short (arg_short); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - ACE_OS::printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - TRY { - ret_long = cb->cube_long (arg_long); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - } - ENDTRY; - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - TRY { - ret_struct = cb->cube_struct (arg_struct); - } - CATCHANY { - cerr << "Call failed: " << IT_X; - error_count++; - } - ENDTRY; - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh deleted file mode 100644 index 72e2fb81395..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.hh +++ /dev/null @@ -1,1111 +0,0 @@ - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp deleted file mode 100644 index e265863e99a..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitC.cpp +++ /dev/null @@ -1,714 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -ACE_RCSID(factory_client, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp deleted file mode 100644 index 6ab08ef55ba..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubitS.cpp +++ /dev/null @@ -1,286 +0,0 @@ -// $Id$ - - - -#include "cubit.hh" - -ACE_RCSID(factory_client, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/orb.mk b/TAO/IIOP/tests/Cubit/Orbix/orb.mk deleted file mode 100644 index cf7b12d3b1b..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/orb.mk +++ /dev/null @@ -1,146 +0,0 @@ -# ------------------------------------------------------------ -# Orbix 2.2 implicit rules for SunOS/GNU Make -# ------------------------------------------------------------ -# -# If you cut'n'paste this into your /usr/include/make/default.mk -# file, beware! This is not officially supported by Iona -# Technologies, and you may want to be a bit of a Makefile hacker -# to make it integrate well with your site's setup. - -# The best thing to do would be put it in a standard place and -# anyone who wants the Orbix implicit rule set can include -# it with an "include /orbix.mk" line in their -# Makefile. A good place to put it might be /usr/include/make. - -# These rules define default C++, C++FLAGS and C++SUFFIX. -# C++ is the C++ compiler to use; C++FLAGS are command-line -# flags to the C++ compiler for use in compiling C++ source -# files into objects; C++SUFFIX is the filename suffix -# indicating C++ source. By default, it's set to "C" for AT&T C++, -# and "cc" for GNU g++. - -# Feel free to override these in your Makefiles *after* -# including this file. - -# IMPORTANT: If the -M switch is specified in IDLFLAGS, the IDL -# compiler appends to the user-specified file. The dependency for -# specified_file.o in the linking target should appear _after_ any use -# of the IDL compiler which takes the -M flag. Putting it _last_ -# is normally the best approach. - -# Note that these rule definitions use pattern matching, -# and therefore only work with SunOS make and GNU make. - -# They may not work with other vendor's versions of make. -# If they do not, you may wish to try using GNU make, which -# is free software produced by the Free Software Foundation. - -# If the version of make you wish to use does not support -# pattern matching, use the sample explicit rule set in -# the comments at the end of this file. - -# ------------------------------------------------------------ -# Essential: set these to the locations into which you -# have installed Orbix' components: - -ORBIX_BINDIR = /opt/Orbix_2.2MT/corba2/bin -ORBIX_LIBDIR = /opt/Orbix_2.2MT/corba2/lib -ORBIX_INCDIR = /opt/Orbix_2.2MT/corba2/include - -#------------------------------------------------------------- -# To compile the demos, you should change these values as -# appropriate for your particular system installation -#------------------------------------------------------------- - -X11BASE = /usr/openwin -X11INCDIR = $(X11BASE)/include -X11LIBDIR = $(X11BASE)/lib - -# C++ = CC -# C++FLAGS = -I$(ORBIX_INCDIR) -I. -mt -D_REENTRANT -# C++SUFFIX = cpp - -# ------------------------------------------------------------ -# ITCLT, IRCLT and ITSRV can be either statically or dynamically linked -# Use -Bdynamic or -Bstatic as appropriate. -# ------------------------------------------------------------ - -ITCLT = -Bstatic -lorbixmt -IRCLT = -Bstatic -lIRcltmt -ITSRV = -Bstatic -lorbixmt -ITIIOP = -Bstatic -liiopmt -ITDSI = -Bstatic -lDSImt -ITIFR = -Bstatic -lifrmt - -# ------------------------------------------------------------ -# SYSLIBS must be dynamically linked; otherwise you can expect to -# get linkage errors for symbols in the nsl library -# ------------------------------------------------------------ - -LDFLAGS += -L$(ORBIX_LIBDIR) -SYSLIBS = -Bdynamic -lnsl -lsocket - -IDL = $(ORBIX_BINDIR)/idl -IDLFLAGS = - -# ------------------------------------------------------------ -# The following section defines implicit rules for creating -# *.{C,S}.C files, rules for compiling those -# into objects, and even a rule for compiling C++ source into -# objects (in case one isn't already defined). - -# ------------------------------------------------------------ -# first, put the new suffixes at the *head* of the suffix list, -# overriding any existing .C compilation method. -.SUFFIXES: -.SUFFIXES: .$(C++SUFFIX) .idl $(SUFFIXES) - -# .SUFFIXES: .$(C++SUFFIX) .idl .hh $(SUFFIXES) -# ------------------------------------------------------------ -# *[CS].o must be compiled here, and depends -# mostly on the C++ files produced from the IDL file. - -%C.o: %C.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%S.o: %S.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -%.o: %.$(C++SUFFIX) - $(C++) -c $(C++FLAGS) $< - -# and here's how to compile C++ files from the IDL file. -# only ONE of these rules will be run at make-time, - -%S.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%C.$(C++SUFFIX): %.idl - $(IDL) $(IDLFLAGS) $< - -%.hh: %.idl - $(IDL) $(IDLFLAGS) $< - -# ------------------------------------------------------------ -# If the version of make you wish to use does not support -# pattern matching, here's a sample of an explicit rule set. - -# We assume the IDL file is called "foobar.idl", we wish -# to compile "foobarC.o", "foobarS.o", and -# "foobar.hh", and the C++ file suffix. -# ------------------------------------------------------------ - -# foobarC.o: foobar.hh foobarC.C -# $(C++) -c ($C++FLAGS) foobarC.C -# -# foobarS.o: foobar.hh foobarS.C -# $(C++) -c ($C++FLAGS) foobarS.C -# -# foobarC.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobarS.C: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl -# -# foobar.hh: foobar.idl -# $(IDL) -c ($IDLFLAGS) foobar.idl diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile b/TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile deleted file mode 100644 index 0e425af78b1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpool.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpool.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp deleted file mode 100644 index afd00fd5c23..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpool, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp deleted file mode 100644 index f4f78545bac..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubitS.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpool, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp deleted file mode 100644 index e1ed154b9f6..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(tpool, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp deleted file mode 100644 index fd486ba5d6f..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/server.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file -#include "tpool.h" - -ACE_RCSID(tpool, server, "$Id$") - -int -main (int argc, char** argv) -{ - - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // Register our thread-pool dispatcher - int n_threads = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_THREADS; - Thread_Pool tpool_dispatcher (n_threads); - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp deleted file mode 100644 index 008f777cb22..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.cpp +++ /dev/null @@ -1,46 +0,0 @@ -// $Id$ - -#include "tpool.h" - -ACE_RCSID(tpool, tpool, "$Id$") - -Thread_Pool::Thread_Pool (int n_threads) - : ACE_Task (ACE_Thread_Manager::instance ()) -{ - if (this->activate (THR_DETACHED | THR_NEW_LWP, n_threads) == -1) - ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); -} - -int -Thread_Pool::svc (void) -{ - cout << "Pool thread activated" << endl; - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return -1; -} - - -int -Thread_Pool::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - // Enqueue the request - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - this->msg_queue ()->enqueue (mb); - // Done - return -1; -} - - - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h deleted file mode 100644 index 337a7f54e65..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h +++ /dev/null @@ -1,17 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class Thread_Pool : public ACE_Task, public CORBA::ThreadFilter -{ -public: - Thread_Pool (int n_threads); - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); - virtual int svc (void); - -}; - - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile b/TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile deleted file mode 100644 index 650d6aaf259..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tpr.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tpr.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Record.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h deleted file mode 100644 index 1fd0a2d3c7d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h +++ /dev/null @@ -1,729 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include "ace/OS.h" -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp deleted file mode 100644 index 4bc7a548c54..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.cpp +++ /dev/null @@ -1,561 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpr, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h deleted file mode 100644 index 584efa67c8d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h +++ /dev/null @@ -1,345 +0,0 @@ -// $Id$ - -#ifndef _cubitC_h -#define _cubitC_h - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -#include "corba.h" - - - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr CubitRef; - -#ifndef _Cubit_var_ -#define _Cubit_var_ -class Cubit_var -{ - public: - Cubit_var(); - Cubit_var(Cubit_ptr); - Cubit_var(const Cubit_var&); - ~Cubit_var(); - Cubit_var& operator=(Cubit_ptr); - operator Cubit_ptr() const { return _ptr; } -#if defined(_HPCC_BUG) - operator Cubit *&() { return _ptr; } -#else - operator Cubit_ptr&() { return _ptr; } -#endif - Cubit_ptr operator->() const { return _ptr;} - friend NCistream& operator>>(NCistream&, Cubit_var&); - friend NCostream& operator<<(NCostream&, const Cubit_var&); - friend istream& operator>>(istream&, Cubit_var&); - friend ostream& operator<<(ostream&, const Cubit_var&); - private: - Cubit_ptr _ptr; - void operator=(const Cubit_var&) {} -}; -#endif -class Cubit: public virtual CORBA_Object -{ - private: - static const CORBA::TypeInfo _class_info; - Cubit(const Cubit&) {} - void operator=(const Cubit&){} - public: - static const CORBA::TypeInfo *_desc(); - virtual const CORBA::TypeInfo *_type_info() const; - virtual void *_safe_narrow(const CORBA::TypeInfo& ) const; - static CORBA::Object *_factory(); - protected: - Cubit(const char *obj_name = NULL) :CORBA_Object(obj_name, 1) {} - Cubit(NCistream& strm) :CORBA_Object(strm) {} - virtual ~Cubit() {} - public: - static Cubit_ptr _duplicate(Cubit_ptr obj) { - if (obj ) obj->_ref(); - return obj; - } - static Cubit_ptr _nil() { return (Cubit_ptr)NULL;} - static Cubit_ptr _narrow(CORBA::Object *obj); - static Cubit_ptr _clone(Cubit_ptr obj) { - CORBA::Object_var obj_var(__clone(obj)); - -#if defined(_HPCC_BUG) - return _narrow(obj_var.operator CORBA::Object_ptr()); -#else - return _narrow(obj_var); -#endif - } - static Cubit_ptr _bind(const char *object_name = NULL, - const char *host_name = NULL, - const CORBA::BindOptions* opt = NULL); - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - - virtual CORBA::Short cube_short(CORBA::Short s); - - virtual CORBA::Long cube_long(CORBA::Long l); - - struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - }; - friend NCostream& operator<<(NCostream&, const Many& ); - friend NCistream& operator>>(NCistream&, Many& ); - - friend ostream& operator<<(ostream&, const Many& ); - inline friend istream& operator>>(istream& _strm, Many& _obj) { - NCistream _istrm(_strm); - _istrm >> _obj; - return _strm; - } - - - typedef Many *Many_ptr; - class Many_var - { - public: - Many_var() { _ptr = (Many*)NULL;} - Many_var(Many *ptr) { - _ptr = ptr; - } - Many_var(const Many_var& var) { - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - } - ~Many_var() { - if (_ptr != (Many *)NULL) delete _ptr; - } - Many_var& operator=(Many *ptr) { - if (_ptr != (Many *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - Many_var& operator=(const Many_var& var) { - if (_ptr != (Many *)NULL) delete _ptr; - if (var._ptr) - _ptr = new Many(*var._ptr); - else - _ptr = (Many *)NULL; - return *this; - } - Many *operator->() { return _ptr; } - operator Many () const { return *_ptr; } - operator Many& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const Many_var& var) { - if (var._ptr == (Many *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - Many_var& var) { - if ( ! var._ptr) - var._ptr = new Many; - strm >> *var._ptr; - return strm; - } - private: - Many *_ptr; - }; - - - virtual Cubit::Many cube_struct(const Cubit::Many& values); - - enum discrim { - e_0th, - e_1st, - e_2nd, - e_3rd, - e_4th, - e_5th - }; - inline friend NCostream& operator<<(NCostream& _strm, discrim _enum_type) { - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend NCistream& operator>>(NCistream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - if (_temp >= 6) - throw CORBA::BAD_PARAM(); - _enum_type = discrim(_temp); - return _strm; - } - inline friend ostream& operator<<(ostream& _strm, discrim _enum_type) { - if( &_strm == &cout || &_strm == &cerr || &_strm == &clog) { - _strm << "discrim:"; - switch(_enum_type) { - case e_0th: - _strm << "e_0th" << endl; - break; - case e_1st: - _strm << "e_1st" << endl; - break; - case e_2nd: - _strm << "e_2nd" << endl; - break; - case e_3rd: - _strm << "e_3rd" << endl; - break; - case e_4th: - _strm << "e_4th" << endl; - break; - case e_5th: - _strm << "e_5th" << endl; - break; - } - } - else - _strm << (CORBA::ULong)_enum_type; - return _strm; - } - inline friend istream& operator>>(istream& _strm, discrim& _enum_type) { - CORBA::ULong _temp; - _strm >> _temp; - _enum_type = discrim(_temp); - return _strm; - } - - - class oneof - { - public: - private: - discrim _disc; - CORBA::Octet __o; - CORBA::Short __s; - CORBA::Long __l; - Cubit::Many __cm; - public: - oneof() : _disc(discrim(0)) {} - ~oneof() {} - oneof(const oneof& obj); - oneof& operator=(const oneof& obj); - - void _d(discrim val) { _disc = val; } - discrim _d() const { return _disc; } - - void o(CORBA::Octet val) { - __o = val; - _disc = Cubit::e_0th; - } - CORBA::Octet o() const { return __o; } - - void s(CORBA::Short val) { - __s = val; - _disc = Cubit::e_1st; - } - CORBA::Short s() const { return __s; } - - void l(CORBA::Long val) { - __l = val; - _disc = Cubit::e_2nd; - } - CORBA::Long l() const { return __l; } - - void cm(const Cubit::Many& val) { - __cm = val; - _disc = Cubit::e_3rd; - } - const Cubit::Many& cm() const { return __cm; } - Cubit::Many& cm() { return __cm; } - - friend NCostream& operator<<(NCostream&, const oneof& ); - friend NCistream& operator>>(NCistream&, oneof& ); - friend ostream& operator<<(ostream&, const oneof&); - inline friend istream& operator>>(istream& strm, oneof& obj) { - NCistream istrm(strm); - strm >> obj; - return strm; - } - }; - - typedef oneof *oneof_ptr; - class oneof_var - { - public: - oneof_var() { _ptr = (oneof*)NULL;} - oneof_var(oneof *ptr) { - _ptr = ptr; - } - oneof_var(const oneof_var& var) { - _ptr = new oneof(*var._ptr); - } - ~oneof_var() { - if (_ptr != (oneof *)NULL) delete _ptr; - } - oneof_var& operator=(oneof *ptr) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = ptr; - return *this; - } - oneof_var& operator=(const oneof_var& var) { - if (_ptr != (oneof *)NULL) delete _ptr; - _ptr = new oneof(*var._ptr); - return *this; - } - oneof *operator->() { return _ptr; } - operator oneof () const { return *_ptr; } - operator oneof& () { return *_ptr; } - inline friend NCostream& operator<<(NCostream& strm, - const oneof_var& var) { - if (var._ptr == (oneof *)NULL) { - throw CORBA::BAD_PARAM(); - } - else - strm << *var._ptr; - return strm; - } - inline friend NCistream& operator>>(NCistream& strm, - oneof_var& var) { - if ( ! var._ptr) - var._ptr = new oneof; - strm >> *var._ptr; - return strm; - } - private: - oneof *_ptr; - }; - - - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - - virtual void please_exit(); - - inline friend NCistream& operator>>(NCistream& strm, Cubit_ptr& obj) { - CORBA::Object_var _obj(obj); - _obj = CORBA::Object::_read(strm, Cubit::_desc()); - obj = Cubit::_narrow(_obj); - return strm; - } - inline friend ostream& operator<<(ostream& strm, const Cubit_ptr obj) { - strm << (CORBA::Object_ptr)obj; - return strm; - } - inline friend istream& operator>>(istream& strm, Cubit_ptr& obj) { - NCistream istrm(strm); - istrm >> obj; - return strm; - } -}; - - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp deleted file mode 100644 index 410e34b7de3..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// $Id$ - -#include "cubit.h" - -ACE_RCSID(tpr, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h deleted file mode 100644 index 3ca717e2b49..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -#ifndef _cubitS_h -#define _cubitS_h - -#include "cubitC.h" - -/************************************************************************/ -/* */ -/* This file is automatically generated by ORBeline IDL compiler */ -/* Do not modify this file. */ -/* */ -/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */ -/* */ -/* The generated code conforms to OMG's IDL C++ mapping as */ -/* specified in OMG Document Number: 94-9-14. */ -/* */ -/************************************************************************/ - -class _sk_Cubit : public Cubit -{ - protected: - _sk_Cubit(const char *object_name = (const char *)NULL); - _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data); - virtual ~_sk_Cubit() {} - public: - static const CORBA::TypeInfo _skel_info; - - // The following operations need to be implemented by the server. - virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0; - virtual CORBA::Short cube_short(CORBA::Short s) = 0; - virtual CORBA::Long cube_long(CORBA::Long l) = 0; - virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0; - virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0; - virtual void please_exit() = 0; - - // Skeleton Operations implemented automatically - - static void _cube_octet(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_short(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_long(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_struct(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _cube_union(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - - static void _please_exit(void *obj, - CORBA::MarshalStream &strm, - CORBA::Principal_ptr principal, - const char *oper, - void *priv_data); - -}; -template -class _tie_Cubit : public Cubit -{ - public: - _tie_Cubit(T& t, const char *obj_name=(char*)NULL) : - Cubit(obj_name), - _ref(t) { - _object_name(obj_name); - } - _tie_Cubit(T& t, const char *service_name, - const CORBA::ReferenceData& id) - :_ref(t) { - _service(service_name, id); - } - ~_tie_Cubit() {} - CORBA::Octet cube_octet(CORBA::Octet o) { - return _ref.cube_octet( - o); - } - CORBA::Short cube_short(CORBA::Short s) { - return _ref.cube_short( - s); - } - CORBA::Long cube_long(CORBA::Long l) { - return _ref.cube_long( - l); - } - Cubit::Many cube_struct(const Cubit::Many& values) { - return _ref.cube_struct( - values); - } - Cubit::oneof cube_union(const Cubit::oneof& values) { - return _ref.cube_union( - values); - } - void please_exit() { - _ref.please_exit(); - } - - private: - T& _ref; -}; - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp deleted file mode 100644 index d0fea470713..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(tpr, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException) { -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h deleted file mode 100644 index 033aa7f0cb1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit_impl.h +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp deleted file mode 100644 index a47b9aea225..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/server.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** -#define IT_EX_MACROS - -#include "cubit_impl.h" // server header file - -ACE_RCSID(tpr, server, "$Id$") - -int -main (int , char**) -{ - -#ifdef Cubit_USE_BOA - Cubit_var cb = new Cubit_Impl; - cout << "Using BOA approach" << endl; -#else - Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl); - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - IT_TRY { - CORBA::Orbix.impl_is_ready("Cubit", IT_X); - } - IT_CATCHANY { - cout << IT_X << endl; - } - IT_ENDTRY; - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp b/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp deleted file mode 100644 index 239cf322833..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#include "tpr.h" - -ACE_RCSID(tpr, tpr, "$Id$") - -void * -worker(void *vp) -{ - ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); - CORBA::Orbix.continueThreadDispatch (*(CORBA::Request *)vp); - return NULL; -} - - -int -tpr_filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment&) -{ -// thread_t tid; -// thr_create(NULL, 0, worker, (void *)&r, THR_DETACHED, &tid); - - ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); - thr_mgr->spawn (ACE_THR_FUNC (worker), - (void *) &r, - THR_DETACHED); - - return -1; -} - -tpr_filter tpr_dispatcher; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h deleted file mode 100644 index b5e8be94cf1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h +++ /dev/null @@ -1,12 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" - -// -// Create a thread filter to dispatch incoming calls -// -class tpr_filter : public CORBA::ThreadFilter { - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/Makefile b/TAO/IIOP/tests/Cubit/Orbix/tps/Makefile deleted file mode 100644 index 69701ba3b63..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/Makefile +++ /dev/null @@ -1,349 +0,0 @@ -#---------------------------------------------------------------------------- -# @(#)Makefile 1.1 10/18/96 -# -# Makefile for the ACE_MT_CORBA_Handler tests -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -SRC = cubitS.cpp cubit_impl.cpp server.cpp tps.cpp - -SVR_OBJS = cubitS.o cubit_impl.o server.o tps.o - -LDLIBS = - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Orbix related macros and target settings. -#---------------------------------------------------------------------------- - - -ORBIX_BINDIR = $(ORBIX_ROOT)/bin -ORBIX_LIBDIR = $(ORBIX_ROOT)/corba2/lib -ORBIX_INCDIR = $(ORBIX_ROOT)/corba2/include - -# Remove -DCubit_USE_BOA from below to use the TIE approach - -CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS -DCubit_USE_BOA -LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR) -L$(ACE)/ace - -IDLFLAGS = -s S.cpp -c C.cpp -B - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -all: server - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK) - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/cubitS.o .shobj/cubitS.so: cubitS.cpp cubit.h cubitC.cpp -.obj/cubit_impl.o .shobj/cubit_impl.so: cubit_impl.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(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/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(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/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(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/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/server.o .shobj/server.so: server.cpp cubit_impl.h cubit.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(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/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(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/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(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/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i -.obj/tps.o .shobj/tps.so: tps.cpp tps.h cubit.h cubit_impl.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-sunos5.5-sunc++-4.x.h \ - $(ACE_ROOT)/ace/streams.h \ - $(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/Log_Priority.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(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/Synch_T.i \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(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/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(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/Time_Value.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Proactor.h \ - $(ACE_ROOT)/ace/Asynch_IO.h \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Wheel.h \ - $(ACE_ROOT)/ace/Timer_Wheel_T.h \ - $(ACE_ROOT)/ace/ReactorEx.h \ - $(ACE_ROOT)/ace/ReactorEx.i \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/Task_T.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h deleted file mode 100644 index 3a2dd546608..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h +++ /dev/null @@ -1,1113 +0,0 @@ -// $Id$ - - -#ifndef cubit_hh -#define cubit_hh - -#include - -#include - - -#ifndef _Cubit_defined -#define _Cubit_defined -class Cubit_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch () {} - - Cubit_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit; - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - - -#ifndef CubitForwH -#define CubitForwH -CORBA::ObjectRef Cubit_getBase (void *); -void Cubit_release (Cubit *, CORBA::Environment &IT_env); -void Cubit_release (Cubit_ptr); -Cubit* Cubit_duplicate (Cubit_ptr, CORBA::Environment &IT_env); -Cubit* Cubit_duplicate (Cubit_ptr ); -Cubit_ptr Cubit_nil (CORBA::Environment &IT_env); -Cubit_ptr Cubit_nil (); -#endif -#define Cubit_IMPL "Cubit" - - -class Cubit; - -typedef Cubit CubitProxy; -#define Cubit_IR "Cubit$v1.1" -#define Cubit_IMPL "Cubit" - -#ifndef CubitPtr -#define CubitPtr - -typedef Cubit* Cubit_ptr; - -typedef Cubit* CubitRef; - -#endif - -class Cubit: public virtual CORBA::Object { -public: - Cubit (char *IT_OR); - Cubit (ObjectReference *IT_OR); - Cubit () : CORBA::Object (1) {} -protected: - Cubit_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_ptr _duplicate( - Cubit_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _bind (CORBA::Environment &IT_env); - static Cubit* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_ptr) CORBA::OBJECT_NIL;} - -#ifndef Cubit_Many_defined -#define Cubit_Many_defined - -struct Many { - CORBA::Octet o; - CORBA::Long l; - CORBA::Short s; - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - Many(const Many &); - Many(); - ~Many(); - Many& operator= (const Many&); -}; - -#ifndef Cubit_ManyVarH -#define Cubit_ManyVarH - -#ifndef Cubit_ManyvPtr -#define Cubit_ManyvPtr -typedef Many* Many_vPtr; -typedef const Many* Many_cvPtr; -#endif - -class Many_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Many_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - Many_var (const Many_var &IT_s) { - (void) copyHelper (IT_s); - } - - Many_var () { - _ptr = new Many; -; - } - - Many_var (Many *IT_p) { - _ptr = IT_p; - } - - Many_var &operator= (Many *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - Many_var &operator= (const Many_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new Many; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~Many_var () { - delete _ptr; - } - - Many* operator-> () { - return _ptr; - } - - operator Many_cvPtr () const { return _ptr;} - operator Many_vPtr& () { return _ptr;} - operator Many& () const { return * _ptr;} - - protected: - Many *_ptr; - private: - Many_var &operator= (const CORBA::_var &IT_s); - Many_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - -enum discrim {e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th, IT__ENUM_Cubit_discrim=CORBA_ULONG_MAX}; - -#ifndef Cubit_oneof_defined -#define Cubit_oneof_defined - -struct oneof { - private: - - discrim __d; - union { - CORBA::Octet _o_; - CORBA::Short _s_; - CORBA::Long _l_; - Many * _cm_; - }; - - public: - - void encodeOp (CORBA::Request &IT_r) const; - void decodeOp (CORBA::Request &IT_r); - void decodeInOutOp (CORBA::Request &IT_r); - - private: - - unsigned char isSet; - - public: - - discrim _d () const { return __d; } - - CORBA::Octet o () const { - return _o_; - } - - void o (CORBA::Octet IT_member) { - if (isSet && (__d != Cubit::e_0th)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_0th; - isSet = 1; - _o_ = IT_member; - } - - CORBA::Short s () const { - return _s_; - } - - void s (CORBA::Short IT_member) { - if (isSet && (__d != Cubit::e_1st)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_1st; - isSet = 1; - _s_ = IT_member; - } - - CORBA::Long l () const { - return _l_; - } - - void l (CORBA::Long IT_member) { - if (isSet && (__d != Cubit::e_2nd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_2nd; - isSet = 1; - _l_ = IT_member; - } - - Many& cm () { - return (*_cm_); - } - - const Many& cm () const { - return (*_cm_); - } - - void cm (const Many& IT_member) { - if (isSet && (__d != Cubit::e_3rd)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = Cubit::e_3rd; - - if (!isSet) { - _cm_ = new Many; - isSet = 1; - } - *(_cm_) = IT_member; - } - - - oneof(); - oneof(const oneof &); - ~oneof(); - oneof& operator= (const oneof&); -}; - -#ifndef Cubit_oneofVarH -#define Cubit_oneofVarH - -#ifndef Cubit_oneofvPtr -#define Cubit_oneofvPtr -typedef oneof* oneof_vPtr; -typedef const oneof* oneof_cvPtr; -#endif - -class oneof_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const oneof_var &IT_s) { - if (!IT_s._ptr) { - _ptr = IT_s._ptr; - } else - { - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - } - return 1; - } - - public: - - oneof_var (const oneof_var &IT_s) { - (void) copyHelper (IT_s); - } - - oneof_var () { - _ptr = NULL; - } - - oneof_var (oneof *IT_p) { - _ptr = IT_p; - } - - oneof_var &operator= (oneof *IT_p) { - if (_ptr != IT_p) { - delete _ptr; - } - _ptr = IT_p; - return (*this); - } - - oneof_var &operator= (const oneof_var &IT_s) { - if (_ptr != IT_s._ptr) { - delete _ptr; - } - _ptr = new oneof; - *(_ptr) = *(IT_s._ptr); - return (*this); - } - - ~oneof_var () { - delete _ptr; - } - - oneof* operator-> () { - return _ptr; - } - - operator oneof_cvPtr () const { return _ptr;} - operator oneof_vPtr& () { return _ptr;} - operator oneof& () const { return * _ptr;} - - protected: - oneof *_ptr; - private: - oneof_var &operator= (const CORBA::_var &IT_s); - oneof_var (const CORBA::_var &IT_s); -}; - -#endif - - -#endif - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef CubitVarH -#define CubitVarH - -#ifndef CubitvPtr -#define CubitvPtr -typedef Cubit* Cubit_vPtr; -typedef const Cubit* Cubit_cvPtr; -#endif - -class Cubit_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_var &IT_s) { - { - _ptr = Cubit_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_var (const Cubit_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_var () { - _ptr = Cubit_nil (); - } - - Cubit_var (Cubit *IT_p) { - _ptr = IT_p; - } - - Cubit_var &operator= (Cubit *IT_p) { - Cubit_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_var &operator= (const Cubit_var &IT_s) { - Cubit_release (_ptr); - _ptr = Cubit_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_var () { - Cubit_release (_ptr); - } - - Cubit* operator-> () { - return _ptr; - } - - operator Cubit_cvPtr () const { return _ptr;} - operator Cubit_vPtr& () { return _ptr;} - - protected: - Cubit *_ptr; - private: - Cubit_var &operator= (const CORBA::_var &IT_s); - Cubit_var (const CORBA::_var &IT_s); - Cubit_var &operator= (const CORBA::_mgr &IT_s); - Cubit_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_var (const CORBA::_mgr &IT_s); - Cubit_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef CubitMgrH -#define CubitMgrH - -class Cubit_mgr : public CORBA::_mgr -{ - public: - - Cubit_mgr () { - _ptr = Cubit_nil (); - _release = 1; - } - - Cubit_mgr (const Cubit_mgr &IT_s) { - _ptr = Cubit_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_mgr &operator= (Cubit *IT_p) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (const Cubit_mgr &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_mgr &operator= (Cubit_var &IT_s) { - if (_ptr && _release) - Cubit_release (_ptr); - _ptr = Cubit_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_mgr () { - if (_release) - Cubit_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit* () const { - return (Cubit*) _ptr; - } - - Cubit_ptr operator-> () const { - return _ptr; - } - - Cubit *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_mgr Cubit_mgr_IT_const; -#endif - -#ifndef CubitSeqElemH -#define CubitSeqElemH - -class Cubit_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_SeqElem (Cubit_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_SeqElem &operator= (Cubit_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_SeqElem &operator= (const Cubit_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_release (*(_ptr)); - *(_ptr) = Cubit_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); - } - - Cubit_ptr operator->() const { return *_ptr;} - - protected: - Cubit_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit(X) Cubit##X - -#define DEF_TIE_Cubit(X) \ - class Cubit##X : public virtual Cubit { \ - X* m_obj; \ - public: \ - \ - \ - Cubit##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit(), m_obj(objp) { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,m,l,Cubit_IR,m_obj); \ - } \ - Cubit##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit() { \ - m_pptr = new Cubit_dispatch \ - (( Cubit*)this,(CORBA::Object*)this,IT_m,Cubit_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit \ -virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_octet ( o,IT_env);\ -}\ - \ -virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_short ( s,IT_env);\ -}\ - \ -virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_long ( l,IT_env);\ -}\ - \ -virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_struct ( values,IT_env);\ -}\ - \ -virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->cube_union ( values,IT_env);\ -}\ - \ -virtual void please_exit (CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -m_obj->please_exit (IT_env);\ -}\ - - - - -class CubitProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - CubitProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern CubitProxyFactoryClass CubitProxyFactory; - -class CubitBOAImpl : public virtual Cubit { -public: - CubitBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_IR)) - m_pptr = new Cubit_dispatch ( (Cubit*)this, - (CORBA::Object*)this, m, l, Cubit_IR, this); -} - - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual Many cube_struct (const Many& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual oneof cube_union (const oneof& values, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; - virtual void please_exit (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#ifndef _Cubit_Factory_defined -#define _Cubit_Factory_defined -class Cubit_Factory_dispatch : public virtual CORBA::PPTR { -public: - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, - CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {} - - - Cubit_Factory_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch () {} - - Cubit_Factory_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o) - : PPTR (IT_OR,IT_p,IT_o) {} - - - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, - char *IT_i, CORBA::Object* IT_ob, void* IT_im) - : PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {} - - - virtual unsigned char dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void* IT_pp=NULL); - - -}; - -class Cubit_Factory; - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - - -#ifndef Cubit_FactoryForwH -#define Cubit_FactoryForwH -CORBA::ObjectRef Cubit_Factory_getBase (void *); -void Cubit_Factory_release (Cubit_Factory *, CORBA::Environment &IT_env); -void Cubit_Factory_release (Cubit_Factory_ptr); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr, CORBA::Environment &IT_env); -Cubit_Factory* Cubit_Factory_duplicate (Cubit_Factory_ptr ); -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &IT_env); -Cubit_Factory_ptr Cubit_Factory_nil (); -#endif -#define Cubit_Factory_IMPL "Cubit_Factory" - - -class Cubit_Factory; - -typedef Cubit_Factory Cubit_FactoryProxy; -#define Cubit_Factory_IR "Cubit_Factory" -#define Cubit_Factory_IMPL "Cubit_Factory" - -#ifndef Cubit_FactoryPtr -#define Cubit_FactoryPtr - -typedef Cubit_Factory* Cubit_Factory_ptr; - -typedef Cubit_Factory* Cubit_FactoryRef; - -#endif - -class Cubit_Factory: public virtual CORBA::Object { -public: - Cubit_Factory (char *IT_OR); - Cubit_Factory (ObjectReference *IT_OR); - Cubit_Factory () : CORBA::Object (1) {} -protected: - Cubit_Factory_ptr __duplicate( - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) { - CORBA::Object::__duplicate (IT_env); - return this; - } -public: - static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, - CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()); -public: - static Cubit_Factory* _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _bind (CORBA::Environment &IT_env); - static Cubit_Factory* _bind (const char* IT_markerServer=NULL, const char* host=NULL, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - static Cubit_Factory_ptr _nil (CORBA::Environment &IT_pEnv=CORBA::IT_chooseDefaultEnv ()) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - return (Cubit_Factory_ptr) CORBA::OBJECT_NIL;} - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException); -}; - -#ifndef Cubit_FactoryVarH -#define Cubit_FactoryVarH - -#ifndef Cubit_FactoryvPtr -#define Cubit_FactoryvPtr -typedef Cubit_Factory* Cubit_Factory_vPtr; -typedef const Cubit_Factory* Cubit_Factory_cvPtr; -#endif - -class Cubit_Factory_var : public CORBA::_var -{ - private: - - unsigned char copyHelper (const Cubit_Factory_var &IT_s) { - { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - } - return 1; - } - - public: - - Cubit_Factory_var (const Cubit_Factory_var &IT_s) { - (void) copyHelper (IT_s); - } - - Cubit_Factory_var () { - _ptr = Cubit_Factory_nil (); - } - - Cubit_Factory_var (Cubit_Factory *IT_p) { - _ptr = IT_p; - } - - Cubit_Factory_var &operator= (Cubit_Factory *IT_p) { - Cubit_Factory_release (_ptr); - _ptr = IT_p; - return (*this); - } - - Cubit_Factory_var &operator= (const Cubit_Factory_var &IT_s) { - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - return (*this); - } - - ~Cubit_Factory_var () { - Cubit_Factory_release (_ptr); - } - - Cubit_Factory* operator-> () { - return _ptr; - } - - operator Cubit_Factory_cvPtr () const { return _ptr;} - operator Cubit_Factory_vPtr& () { return _ptr;} - - protected: - Cubit_Factory *_ptr; - private: - Cubit_Factory_var &operator= (const CORBA::_var &IT_s); - Cubit_Factory_var (const CORBA::_var &IT_s); - Cubit_Factory_var &operator= (const CORBA::_mgr &IT_s); - Cubit_Factory_var &operator= (const CORBA::_SeqElem &IT_s); - Cubit_Factory_var (const CORBA::_mgr &IT_s); - Cubit_Factory_var (const CORBA::_SeqElem &IT_s); -}; - -#endif - - -#ifndef Cubit_FactoryMgrH -#define Cubit_FactoryMgrH - -class Cubit_Factory_mgr : public CORBA::_mgr -{ - public: - - Cubit_Factory_mgr () { - _ptr = Cubit_Factory_nil (); - _release = 1; - } - - Cubit_Factory_mgr (const Cubit_Factory_mgr &IT_s) { - _ptr = Cubit_Factory_duplicate (IT_s._ptr); - _release = 1; - } - - Cubit_Factory_mgr &operator= (Cubit_Factory *IT_p) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = IT_p; - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (const Cubit_Factory_mgr &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s._ptr); - _release = 1; - return (*this); - } - - Cubit_Factory_mgr &operator= (Cubit_Factory_var &IT_s) { - if (_ptr && _release) - Cubit_Factory_release (_ptr); - _ptr = Cubit_Factory_duplicate(IT_s); - _release = 1; - return (*this); - } - - ~Cubit_Factory_mgr () { - if (_release) - Cubit_Factory_release (_ptr); - } - - unsigned char release () { - return _release; - } - - void release (unsigned char rel) { - _release = rel; - } - - operator int () const { - return (((CORBA::Object_ptr) _ptr) ? 1 : 0); - } - - operator void* () const { - return _ptr; - } - - operator CORBA::Object * () const { - return (CORBA::Object *) _ptr; - } - - operator Cubit_Factory* () const { - return (Cubit_Factory*) _ptr; - } - - Cubit_Factory_ptr operator-> () const { - return _ptr; - } - - Cubit_Factory *_ptr; - - protected: - - unsigned char _release; -}; - -typedef Cubit_Factory_mgr Cubit_Factory_mgr_IT_const; -#endif - -#ifndef Cubit_FactorySeqElemH -#define Cubit_FactorySeqElemH - -class Cubit_Factory_SeqElem : public CORBA::_SeqElem -{ - public: - - Cubit_Factory_SeqElem (Cubit_Factory_ptr* IT_p, unsigned char rel) { - _ptr = IT_p; - _release = rel; - } - - Cubit_Factory_SeqElem &operator= (Cubit_Factory_ptr IT_p) { - if (_ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = IT_p; - } - return (*this); - } - - Cubit_Factory_SeqElem &operator= (const Cubit_Factory_SeqElem &IT_s) { - if (_ptr && IT_s._ptr) { - if (*(_ptr) && _release) - Cubit_Factory_release (*(_ptr)); - *(_ptr) = Cubit_Factory_duplicate(*(IT_s._ptr)); - } - return (*this); - } - - operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); - } - - Cubit_Factory_ptr operator->() const { return *_ptr;} - - protected: - Cubit_Factory_ptr *_ptr; - unsigned char _release; -}; - -#endif - - -#define TIE_Cubit_Factory(X) Cubit_Factory##X - -#define DEF_TIE_Cubit_Factory(X) \ - class Cubit_Factory##X : public virtual Cubit_Factory { \ - X* m_obj; \ - public: \ - \ - \ - Cubit_Factory##X (X *objp, const char* m="", CORBA::LoaderClass *l=0)\ - : Cubit_Factory(), m_obj(objp) { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,m,l,Cubit_Factory_IR,m_obj); \ - } \ - Cubit_Factory##X (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\ - : Cubit_Factory() { \ - m_pptr = new Cubit_Factory_dispatch \ - (( Cubit_Factory*)this,(CORBA::Object*)this,IT_m,Cubit_Factory_IR,IT_p,IT_q); \ - m_obj = (X*)(m_pptr->getImplObj ()); \ - } \ - \ - virtual ~Cubit_Factory##X () { \ - if (_okToDeleteImpl ()) delete m_obj; } \ - virtual void* _deref () { \ - return m_obj; } \ - \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - \ - }; \ - - -#define QUALS_Cubit_Factory \ -virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env) throw (CORBA::SystemException){\ -return m_obj->create_cubit ( name,IT_env);\ -}\ - - - - -class Cubit_FactoryProxyFactoryClass : public virtual CORBA::ObjectFactoryClass { -public: - Cubit_FactoryProxyFactoryClass (unsigned char IT_p=0) - : CORBA::ProxyFactory (Cubit_Factory_IR, IT_p) {} - - virtual void* New (char *IT_OR, CORBA::Environment&); - - virtual void* New (ObjectReference *IT_OR, CORBA::Environment&); - - virtual void* New2 (); - - virtual CORBA::Object* NewObject (char *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* NewObject (ObjectReference *IT_OR, CORBA::Environment&); - - virtual CORBA::Object* New2Object (); - - virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); - - virtual CORBA::PPTR* pptr (void *IT_p); - - virtual void baseInterfaces (_IDL_SEQUENCE_string&); - - -}; - -extern Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory; - -class Cubit_FactoryBOAImpl : public virtual Cubit_Factory { -public: - Cubit_FactoryBOAImpl (const char *m="", CORBA::LoaderClass *l=NULL) { - if (CORBA::PPTR::isOK (m_pptr, Cubit_Factory_IR)) - m_pptr = new Cubit_Factory_dispatch ( (Cubit_Factory*)this, - (CORBA::Object*)this, m, l, Cubit_Factory_IR, this); -} - - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException) =0; -}; - - -#endif - - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl deleted file mode 100644 index 41309e997ea..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.idl +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - - interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); - }; - - - interface Cubit_Factory { - Cubit create_cubit (in string name); - }; - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp deleted file mode 100644 index 5791756e6a4..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitC.cpp +++ /dev/null @@ -1,714 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -ACE_RCSID(tps, cubitC, "$Id$") - -Cubit::Cubit (char *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit::Cubit (ObjectReference *IT_OR) { - m_pptr = new Cubit_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef CubitForwC -#define CubitForwC -CORBA::ObjectRef Cubit_getBase(void *IT_p){ - return (Cubit*) IT_p;} - -void Cubit_release (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_release (Cubit_ptr IT_p) { - Cubit_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_ptr Cubit_nil (CORBA::Environment &) { - return Cubit:: _nil ();} - -Cubit_ptr Cubit_nil () { - return Cubit_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit::_duplicate(IT_p, IT_env)); } -Cubit_ptr Cubit_duplicate (Cubit_ptr IT_p) { - return Cubit_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_IMPL, Cubit_IR); -} - - - -Cubit* Cubit:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit* Cubit:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit* Cubit::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit:: _nil(); - } - - Cubit* IT_p = (Cubit*)CORBA::Object::_castDown (IT_obj, Cubit_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - - -#ifndef Cubit_Many_Ops -#define Cubit_Many_Ops - -void Cubit::Many:: encodeOp (CORBA::Request &IT_r) const { - - IT_r.insertOctet (o); - - IT_r << l; - - IT_r << s; -} - -void Cubit::Many:: decodeOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -void Cubit::Many:: decodeInOutOp (CORBA::Request &IT_r) { - - IT_r.extractOctet (o); - - IT_r >> l; - - IT_r >> s; -} - -Cubit::Many ::~Many () { -} - -Cubit::Many:: Many (const Cubit::Many &IT_s) - { - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; -} - -Cubit::Many:: Many () { -} - -Cubit::Many &Cubit::Many:: operator= (const Cubit::Many& IT_s) { - if (this == &IT_s) return *this; - o = IT_s.o; - l = IT_s.l; - s = IT_s.s; - return *this; -} - - -#endif - - -#ifndef Cubit_oneof_Ops -#define Cubit_oneof_Ops -void Cubit::oneof:: encodeOp (CORBA::Request &IT_r) const { - if (!isSet) return; - { - CORBA::ULong IT_0 = (CORBA::ULong) __d; - IT_r << IT_0; - } - switch (__d) { - case Cubit::e_0th: - IT_r.insertOctet (_o_); - break; - case Cubit::e_1st: - IT_r << _s_; - break; - case Cubit::e_2nd: - IT_r << _l_; - break; - case Cubit::e_3rd: - default: - (*_cm_).encodeOp (IT_r); - break; - } - -} - -void Cubit::oneof:: decodeOp (CORBA::Request &IT_r) { - isSet = 0; - { - CORBA::ULong IT_1; - IT_r >> IT_1; - __d = Cubit::discrim(IT_1); - } - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - -} -void Cubit::oneof:: decodeInOutOp (CORBA::Request &IT_r) { - Cubit::discrim IT_d; - { - CORBA::ULong IT_2; - IT_r >> IT_2; - IT_d = Cubit::discrim(IT_2); - } - if (IT_d == __d) - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeInOutOp (IT_r); - break; - } - - else { - this->oneof:: ~oneof(); - memset(this, 0, sizeof(*this)); - __d = IT_d; - switch (__d) { - case Cubit::e_0th: - if (!isSet) { - isSet = 1; - } - IT_r.extractOctet (_o_); - break; - case Cubit::e_1st: - if (!isSet) { - isSet = 1; - } - IT_r >> _s_; - break; - case Cubit::e_2nd: - if (!isSet) { - isSet = 1; - } - IT_r >> _l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - (*_cm_).decodeOp (IT_r); - break; - } - isSet = 1; - } - -} - -Cubit::oneof:: oneof() { - memset(this, 0, sizeof(*this)); - isSet = 0; -} - -Cubit::oneof ::~oneof() { - if (!isSet) return; - switch (__d) { - case Cubit::e_0th: break; - case Cubit::e_1st: break; - case Cubit::e_2nd: break; - case Cubit::e_3rd: - default: if (_cm_) delete _cm_; - break; - } - - isSet = 0; -} - -Cubit::oneof:: oneof (const Cubit::oneof &IT_s) { - isSet = 0; - memset(this, 0, sizeof(*this)); - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; -} - -Cubit::oneof& Cubit::oneof:: operator= (const Cubit::oneof & IT_s) { - if (this == &IT_s) return *this; - if (isSet && (__d != IT_s.__d)) - { - this-> oneof::~oneof(); - memset(this, 0, sizeof(*this)); - } - - __d = IT_s.__d; - switch (__d) { - case Cubit::e_0th: isSet = 1; - _o_ = IT_s._o_; - break; - case Cubit::e_1st: isSet = 1; - _s_ = IT_s._s_; - break; - case Cubit::e_2nd: isSet = 1; - _l_ = IT_s._l_; - break; - case Cubit::e_3rd: - default: - if (!isSet) { - _cm_ = new Cubit::Many; - isSet = 1; - } - *(_cm_) = *(IT_s._cm_); - break; - } - isSet = 1; - return *this; -} - - -#endif - -void* CubitProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -void* CubitProxyFactoryClass::New2 () { - return new class Cubit((char*)0);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit(IT_OR);} - -CORBA::Object* CubitProxyFactoryClass::New2Object () { - return new class Cubit((char*)0);} - -void* CubitProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* CubitProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit*)IT_p)->_pptr ();} - -void CubitProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -CubitProxyFactoryClass CubitProxyFactory(1); - -CORBA::Octet Cubit:: cube_octet (CORBA::Octet o, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_octet",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.insertOctet (o); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Octet IT_result; - IT_r.extractOctet (IT_result); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Short Cubit:: cube_short (CORBA::Short s, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_short",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << s; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Short IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -CORBA::Long Cubit:: cube_long (CORBA::Long l, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return 0; - } - CORBA::Request IT_r (this, "cube_long",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r << l; - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - CORBA::Long IT_result; - IT_r >> IT_result; - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return 0; -} - -Cubit::Many Cubit:: cube_struct (const Cubit::Many& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::Many IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_struct",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::Many IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::Many IT_l1; - return IT_l1; - } -} - -Cubit::oneof Cubit:: cube_union (const Cubit::oneof& values, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - { - Cubit::oneof IT_l0; - return IT_l0; - } - } - CORBA::Request IT_r (this, "cube_union",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - values.encodeOp (IT_r); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit::oneof IT_result; - IT_result.decodeOp (IT_r); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - { - Cubit::oneof IT_l1; - return IT_l1; - } -} - -void Cubit:: please_exit (CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return ; - } - CORBA::Request IT_r (this, "please_exit",IT_env,1,1); - - IT_r.invoke (CORBA::Flags(CORBA::INV_NO_RESPONSE), IT_env); - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } -} - - - - - -#ifndef Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit"); - return 0; -} - -#endif - -Cubit_Factory::Cubit_Factory (char *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} -Cubit_Factory::Cubit_Factory (ObjectReference *IT_OR) { - m_pptr = new Cubit_Factory_dispatch (IT_OR, this,(CORBA::Object*)this); -} - -#ifndef Cubit_FactoryForwC -#define Cubit_FactoryForwC -CORBA::ObjectRef Cubit_Factory_getBase(void *IT_p){ - return (Cubit_Factory*) IT_p;} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - CORBA::release(IT_p, IT_env);} - -void Cubit_Factory_release (Cubit_Factory_ptr IT_p) { - Cubit_Factory_release (IT_p, CORBA::IT_chooseDefaultEnv ()); } - -Cubit_Factory_ptr Cubit_Factory_nil (CORBA::Environment &) { - return Cubit_Factory:: _nil ();} - -Cubit_Factory_ptr Cubit_Factory_nil () { - return Cubit_Factory_nil (CORBA::IT_chooseDefaultEnv ());} - -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p, CORBA::Environment &IT_env) { - return (Cubit_Factory::_duplicate(IT_p, IT_env)); } -Cubit_Factory_ptr Cubit_Factory_duplicate (Cubit_Factory_ptr IT_p) { - return Cubit_Factory_duplicate (IT_p, CORBA::IT_chooseDefaultEnv ()); } -#endif - -Cubit_Factory_ptr Cubit_Factory::_duplicate(Cubit_Factory_ptr obj, CORBA::Environment& IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (!obj) { - return (obj); - } - Cubit_Factory_ptr IT_obj = obj->__duplicate (IT_env); - return IT_obj; -} - - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - const CORBA::Context &IT_c, - CORBA::Environment &IT_env) { - return (Cubit_Factory*)CORBA::Factory.New (IT_markerServer, IT_env, IT_c, host, - Cubit_Factory_IMPL, Cubit_Factory_IR); -} - - - -Cubit_Factory* Cubit_Factory:: _bind (CORBA::Environment &IT_env) { - return _bind (NULL,NULL,CORBA::Context(), IT_env); } - - -Cubit_Factory* Cubit_Factory:: _bind (const char* IT_markerServer, const char* host, - CORBA::Environment &IT_env) { - return _bind (IT_markerServer, host, CORBA::Context (), IT_env); } -Cubit_Factory* Cubit_Factory::_narrow (CORBA::Object* IT_obj, CORBA::Environment &IT_pEnv) { - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (CORBA::is_nil (IT_obj)) { - return Cubit_Factory:: _nil(); - } - - Cubit_Factory* IT_p = (Cubit_Factory*)CORBA::Object::_castDown (IT_obj, Cubit_Factory_IR, IT_env); - IT_p = IT_p ? IT_p->__duplicate(IT_env) : NULL; - if ((IT_env) &&(!strcmp(IT_env.exception()->id(), "CORBA::StExcep::BAD_PARAM")) && (((CORBA::BAD_PARAM*)IT_env.exception())-> minor() == NARROW_FAILED)) { - IT_env.exception_free(); - } - return IT_p; - } - -void* Cubit_FactoryProxyFactoryClass::New (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -void* Cubit_FactoryProxyFactoryClass::New2 () { - return new class Cubit_Factory((char*)0);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (char *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::NewObject (ObjectReference *IT_OR, CORBA::Environment&) { - return new class Cubit_Factory(IT_OR);} - -CORBA::Object* Cubit_FactoryProxyFactoryClass::New2Object () { - return new class Cubit_Factory((char*)0);} - -void* Cubit_FactoryProxyFactoryClass::IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env) { - void *IT_l; - if (!CORBA::_interfaceCmp (IT_s,Cubit_Factory_IR, IT_env)) - return IT_p; - else if (IT_l=CORBA::ObjectFactoryClass::IT_castUp((CORBA::Object*)((class Cubit_Factory*)IT_p),IT_s, IT_env)) - return IT_l; - else return NULL; - } - - -CORBA::PPTR* Cubit_FactoryProxyFactoryClass::pptr (void *IT_p) { - return ((class Cubit_Factory*)IT_p)->_pptr ();} - -void Cubit_FactoryProxyFactoryClass::baseInterfaces (_IDL_SEQUENCE_string& seq) { - add (seq, Cubit_Factory_IR); - CORBA::ObjectFactoryClass::baseInterfaces (seq); -} - -Cubit_FactoryProxyFactoryClass Cubit_FactoryProxyFactory(1); - -Cubit_ptr Cubit_Factory:: create_cubit (const char * name, CORBA::Environment &IT_pEnv) throw (CORBA::SystemException) { - - CORBA::EnvExcRaiser IT_raise; - CORBA::Environment &IT_env = IT_raise.registerEnv (&IT_pEnv); - if (IT_env || m_isNull) { - return new Cubit; - } - CORBA::Request IT_r (this, "create_cubit",IT_env,1,0); - if (!IT_r.isException (IT_env)) { - - IT_r.encodeStringOp (name); - } - - IT_r.invoke (CORBA::Flags(0),IT_env); - if (!IT_r.isException (IT_env)) { - Cubit_ptr IT_result; - IT_result = (Cubit*) IT_r.decodeObjRef (Cubit_IR); - IT_r.checkEnv (IT_env); - return IT_result; - } - if (IT_r.exceptionKind () == CORBA::SYSTEM_EXCEPTION) { - IT_r.checkEnv (IT_env); - } - return new Cubit; -} - - - - - -#ifndef Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char, void *) { - IT_r.makeRuntimeException1 ("Cubit_Factory"); - return 0; -} - -#endif - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp deleted file mode 100644 index 98e859ca575..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubitS.cpp +++ /dev/null @@ -1,286 +0,0 @@ -// $Id$ - - - -#include "cubit.h" - -ACE_RCSID(tps, cubitS, "$Id$") - - -#define Cubit_dispatch_impl - -unsigned char Cubit_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"cube_octet")) { - CORBA::Octet IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_octet~+o{o},>{o},N{}\ -")) - return 1; - CORBA::Octet o; - - IT_r.extractOctet (o); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_octet ( o, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -o\ -", IT_env)) return 1; - IT_r.insertOctet (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_short")) { - CORBA::Short IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_short~+s{s},>{s},N{}\ -")) - return 1; - CORBA::Short s; - - IT_r >> s; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_short ( s, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -s\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_long")) { - CORBA::Long IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_long~+l{l},>{l},N{}\ -")) - return 1; - CORBA::Long l; - - IT_r >> l; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_long ( l, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -l\ -", IT_env)) return 1; - IT_r << IT_result; - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_struct")) { - Cubit::Many IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~cube_struct~+values{R~Cubit::Many~o{o},l{l},s{s}},>{R~Cubit::Many~o{o},l{l},s{s}},N{}\ -")) - return 1; - Cubit::Many values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_struct ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -R~Cubit::Many~o{o},l{l},s{s}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"cube_union")) { - Cubit::oneof IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - IT_r.tcPreAssert ( -"\ -Ro~cube_union~+values{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},>{U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,\ -"); - if (!IT_r.tcAssert ("\ -e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}},N{}\ -")) - return 1; - Cubit::oneof values; - - values.decodeOp (IT_r); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit*)IT_pp)->cube_union ( values, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -U~Cubit::oneof~{E~Cubit::discrim~e_0th,e_1st,e_2nd,e_3rd,e_4th,e_5th}~Cubit::e_0th o{o};Cubit::e_1st s{s};Cubit::e_2nd l{l};Cubit::e_3rd,$ cm{R~Cubit::Many~o{o},l{l},s{s}}\ -", IT_env)) return 1; - IT_result.encodeOp (IT_r); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (!strcmp(IT_s,"please_exit")) { - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~please_exit~>{v},O{}\ -")) - return 1; - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - ((Cubit*)IT_pp)->please_exit (IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - IT_r.replyNoResults (CORBA::Flags(CORBA::INV_NO_RESPONSE),IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#define Cubit_Factory_dispatch_impl - -unsigned char Cubit_Factory_dispatch::dispatch (CORBA::Request &IT_r, - unsigned char IT_isTarget, void *IT_pp) { - if (!IT_pp) - IT_pp = m_obj; - const char *IT_s = IT_r.getOperation (); - if (!strcmp(IT_s,"create_cubit")) { - Cubit_ptr IT_result; - CORBA::Environment IT_env (IT_r); - CORBA::Filter* IT_f = CORBA::Orbix.getFilter (); - if (!IT_r.tcAssert ("\ -Ro~create_cubit~+name{0},>{O~Cubit},N{}\ -")) - return 1; - char * name; - - IT_r.decodeStringOp(name); - - if (IT_f && !IT_r.isException (IT_env)) - IT_f->inRequestPostM (IT_r, IT_env); - if (!IT_r.isException (IT_env)) { - try { - IT_result = ((Cubit_Factory*)IT_pp)->create_cubit ( name, IT_env); - - } catch (CORBA::SystemException &IT_exSys) { - IT_env.propagate (&IT_exSys); - } catch (CORBA::UserException &IT_exUsr) { - IT_env.propagate (&IT_exUsr); - } - } - CORBA::string_free (name); - - if (!IT_r.isException (IT_env)) { - if (!IT_r.convertToReply ("\ -O~Cubit\ -", IT_env)) return 1; - { - CORBA::Object* IT_l1 = (CORBA::Object*) IT_result; - IT_r << IT_l1; - } - if (IT_result) Cubit_release (IT_result); - } - - else IT_r.makeSystemException (IT_env); - return 1; - } - - if (IT_isTarget) - IT_r.makeRuntimeException2 (); - - return 0; -} - -#include "cubitC.cpp" - diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp deleted file mode 100644 index 94c1c4262d1..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.cpp +++ /dev/null @@ -1,85 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(tps, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l, CORBA::Environment &) throw (CORBA::SystemException) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values, CORBA::Environment &) throw (CORBA::SystemException) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit (CORBA::Environment &) throw (CORBA::SystemException) { -} - -Cubit_ptr Cubit_Factory_Impl:: create_cubit (const char * name, CORBA::Environment &) throw (CORBA::SystemException) { - cerr << "Creating Cubit for " << name << endl; - -#ifdef Cubit_USE_BOA - Cubit_Impl_Task *cubit = new Cubit_Impl_Task (); -#else - Cubit_Impl_Task *cubit = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl_Task); -#endif - Cubit::_duplicate ((Cubit *)cubit); - cubit->activate (1); - return (Cubit *) cubit; -} - -int -Cubit_Impl_Task::svc (void) -{ - while (1) - { - // Dequeue message - ACE_Message_Block *mb; - this->msg_queue ()->dequeue_head (mb); - CORBA::Request *vp = (CORBA::Request *) mb->base (); - mb->release (); - // Hand it off to Orbix - CORBA::Orbix.continueThreadDispatch (*vp); - } - return 0; -} - -void * -Cubit_Impl_Task::_deref (void) -{ - return this; -} diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h deleted file mode 100644 index 0fea9857af3..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubit.h" -#include "ace/Task.h" - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual CubitBOAImpl { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ -public: - virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); - -}; - -#ifdef Cubit_USE_BOA -class Cubit_Factory_Impl : public virtual Cubit_FactoryBOAImpl { -#else -class Cubit_Factory_Impl { -#endif - -public: - virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); -}; - -class Cubit_Impl_Task : public virtual Cubit_Impl, public virtual ACE_Task { -public: - // For ACE_Task - int svc (void); - // for narrowing - virtual void *_deref (); -}; - -#ifndef Cubit_USE_BOA -DEF_TIE_Cubit (Cubit_Impl) -DEF_TIE_Cubit_Factory (Cubit_Factory_Impl) -#endif /* Cubit_USE_BOA */ - -#endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp b/TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp deleted file mode 100644 index 9ab83e9bc8d..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#include "tps.h" - -ACE_RCSID(tps, tps, "$Id$") - -int -TPS_Filter::inRequestPreMarshal(CORBA::Request &r, CORBA::Environment& env) -{ - // Get target - CORBA::Object_ptr obj = r.target (); - Cubit * cb = Cubit::_narrow (obj, env); - - if (env) // Not for our object!! - return 1; // continue in the same thread - - // Enqueue the request - Cubit_Impl_Task *ct; - if (CORBA::is_nil (cb)) - return 1; - ct = (Cubit_Impl_Task *) DEREF(cb); - if (ct) { - ACE_Message_Block *mb = new ACE_Message_Block ( (char *) (&r)); - ct->msg_queue ()->enqueue (mb); - } - // Done - return -1; -} - -TPS_Filter tps_filter; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h b/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h deleted file mode 100644 index 362c9ed4e91..00000000000 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h +++ /dev/null @@ -1,13 +0,0 @@ -// $Id$ - -#include "cubit.h" -#include "cubit_impl.h" -#include "ace/Service_Config.h" -#include "ace/Thread_Manager.h" -#include "ace/Task.h" - -class TPS_Filter : public ACE_Task, public CORBA::ThreadFilter -{ -public: - virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); -}; diff --git a/TAO/IIOP/tests/Cubit/README b/TAO/IIOP/tests/Cubit/README deleted file mode 100644 index 5eaf42ec2e3..00000000000 --- a/TAO/IIOP/tests/Cubit/README +++ /dev/null @@ -1,7 +0,0 @@ - Cubit - -This is the example from the SunSoft's IIOP 1.4 distribution modified -to work with TAO. There is a Cubit example for Orbix and -VisiBroker. - -Benchmarking results are under results and tnf directories. diff --git a/TAO/IIOP/tests/Cubit/TAO/Makefile b/TAO/IIOP/tests/Cubit/TAO/Makefile deleted file mode 100644 index 04f34a6cc36..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/Makefile +++ /dev/null @@ -1,121 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the ACE-ified Sun Ref. implementation -# of IIOP ORB -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lcorba - -PROG_SRCS = svr.cpp clnt.cpp cubit.cpp \ - test1.cpp test1_clnt.cpp test1_svr.cpp \ - echo_clnt.cpp echo_svr.cpp - -LSRC = $(PROG_SRCS) - -CUBIT_SVR_OBJS = svr.o cubit_i.o cubitS.o -CUBIT_CLT_OBJS = clnt.o cubitC.o - -BASIC_SVR_OBJS = test1.o test1_svr.o -BASIC_CLT_OBJS = test1.o test1_clnt.o - -ECHO_SVR_OBJS = test1.o echo_svr.o -ECHO_CLT_OBJS = test1.o echo_clnt.o - -BIN = svr clnt test1_svr test1_clnt -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.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 - -# Local modifications to variables imported by includes above. -LDFLAGS += -L../../../proto/lib -CPPFLAGS += -I../../../proto/include -DUSE_ACE_EVENT_HANDLING -DDEBUG - -svr: $(addprefix $(VDIR),$(CUBIT_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -clnt: $(addprefix $(VDIR),$(CUBIT_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_svr: $(addprefix $(VDIR),$(BASIC_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -test1_clnt: $(addprefix $(VDIR),$(BASIC_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -######## -# Sanity check builds by running basic functionality tests. -# -# "sleep 5" in the server startup is usually enough to get the -# objref into the file so the client can read it. -# -check: $(TESTS) - @echo "testing with 'cube' calls, stub + DII, IOR strings" - @./svr -i30 -o non-internet > obj.1 & sleep 5 - @./clnt -n250 -O `cat obj.1` -x - @echo '' - @echo "testing request forwarding with 'cube' calls, stub + DII" - @./svr -f -i30 > obj.2 & sleep 5 - @./clnt -n250 -O `cat obj.2` -x - @echo '' - @echo "testing transmission of primitive data types" - @./test1_svr -i30 > obj.3 & sleep 5 - @./test1_clnt -n50 -O `cat obj.3` -x - @echo '' -# @echo "testing echo of primitive data values" -# @./echo_svr -i30 > obj.4 & sleep 5 -# @./echo_clnt -O `cat obj.4` -x -# @echo '' - @echo "testing with 'cube' calls, MT-ized (no forwarding)" - @./svr -t -i30 -o non-internet > obj.5 & sleep 5 - @./clnt -n250 -O `cat obj.5` -x - @echo '' - -ifdef LOCALRULES -######## -# CUBIT test -svr: svr.o cubit.o - $(LINK.cc) -o svr svr.o cubit.o $(LDLIBS) $(POSTLINK) -clnt: cubit.o clnt.o - $(LINK.cc) -o clnt clnt.o cubit.o $(LDLIBS) $(POSTLINK) - -######## -# BASIC DATATYPES test -test1_clnt: test1.o test1_clnt.o - $(LINK.cc) -o test1_clnt test1_clnt.o test1.o $(LDLIBS) $(POSTLINK) -test1_svr: test1.o test1_svr.o - $(LINK.cc) -o test1_svr test1_svr.o test1.o $(LDLIBS) $(POSTLINK) - -######## -# ECHO test ... "test1" where the operation semantics are violated; -# this aids some porting work, but is a less rigorous test -echo_clnt: test1.o echo_clnt.o - $(LINK.cc) -o echo_clnt echo_clnt.o test1.o $(LDLIBS) $(POSTLINK) -echo_svr: test1.o echo_svr.o - $(LINK.cc) -o echo_svr echo_svr.o test1.o $(LDLIBS) $(POSTLINK) -endif - -clean: - -rm -rf *.o $(BIN) obj.* core Templates.DB .make.state - -install: - -@echo "Nothing to install, these are tests!" - - - - - diff --git a/TAO/IIOP/tests/Cubit/TAO/clnt.cpp b/TAO/IIOP/tests/Cubit/TAO/clnt.cpp deleted file mode 100644 index 33a54d4059e..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/clnt.cpp +++ /dev/null @@ -1,512 +0,0 @@ -// $Id$ - -// @(#)clnt.cpp 1.2 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: Simple "cube" client, calling hand-crafted stubs. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include -//#include - -#if unix -# include -# include - -#elif defined (VXWORKS) -# include -# include - -#else // windows - -#endif // unix - -#include "cubitC.h" - -#include - -ACE_RCSID(TAO, clnt, "$Id$") - - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -inline int func (unsigned i) { return i - 117; } - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - - -// -// forward declarations -// -static void cube_union_stub(unsigned, unsigned&, unsigned&, - CORBA_Object_ptr, CORBA_Environment &); - -static void cube_union_dii(unsigned &, unsigned &, - CORBA_Object_ptr, CORBA_Environment &); - -// Global variables -const char* TAO_arg_ior = 0; -unsigned loop_count = 1; -int exit_later = 0; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dn:O:x"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (opts.optarg); - continue; - - case 'O': // stringified objref - { - TAO_arg_ior = ACE_OS::strdup(opts.optarg); - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - CORBA_Environment env; - - orb_ptr = CORBA_ORB_init(argc, argv, "internet", env); - if (env.exception() != 0) - { - print_exception(env.exception(), "ORB initialization"); - return 1; - } - - // - // Parse command line and verify parameters. - // - parse_args(argc, argv); - - if (TAO_arg_ior == 0) - ACE_ERROR_RETURN((LM_ERROR, "%s: must specify an object reference using -O \n", argv[0]), 1); - - objref = orb_ptr->string_to_object ((CORBA_String)TAO_arg_ior, env); - - ACE_OS::free((void*)TAO_arg_ior); - TAO_arg_ior = 0; - - if (env.exception () != 0) - { - print_exception (env.exception (), "string2object"); - return 1; - } - - if (CORBA_is_nil (objref) == 1) - ACE_ERROR_RETURN((LM_ERROR, "%s: must identify non-null target objref\n", argv [0]), 1); - - // Narrow the CORBA_Object reference to the stub object, checking - // the type along the way using _is_a - Cubit_ptr aCubit = Cubit::_narrow(objref); - if (aCubit == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to narrow object reference to a Cubit_ptr.\n"), 1); - - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - ACE_Time_Value before, after; - - before = ACE_OS::gettimeofday(); - - for (i = 0; i < loop_count; i++) - { - // - // Cube an octet. - // - CORBA_Octet arg_octet, ret_octet; - - call_count++; - ret_octet = aCubit->Cubit_cube_octet (arg_octet = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_octet"); - error_count++; - } - else - { - dmsg2 ("cube octet: %d --> %d\n", arg_octet, ret_octet); - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - ACE_OS::printf ("** cube_octet(%d) ERROR (--> %d)\n", - (CORBA_Octet) func (i), ret_octet); - error_count++; - } - } - - // - // Cube a short. - // - CORBA_Short arg_short, ret_short; - - call_count++; - ret_short = aCubit->Cubit_cube_short (arg_short = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_short"); - error_count++; - } - else - { - dmsg2 ("cube short: %d --> %d\n", arg_short, ret_short); - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) - { - ACE_OS::printf ("** cube_short(%d) ERROR (--> %d)\n", - (CORBA_Short) func (i), ret_short); - error_count++; - } - } - - // - // Cube a long. - // - CORBA_Long arg_long, ret_long; - - call_count++; - ret_long = aCubit->Cubit_cube_long (arg_long = func (i), env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_long"); - error_count++; - } - else - { - dmsg2 ("cube long: %d --> %d\n", arg_long, ret_long); - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - ACE_OS::printf ("** cube_long(%ld) ERROR (--> %ld)\n", - (CORBA_Long) func (i), ret_long); - error_count++; - } - } - - // - // Cube a "struct" ... - // - Cubit_Many arg_struct, *ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - ret_struct = aCubit->Cubit_cube_struct (arg_struct, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "from cube_struct"); - error_count++; - } - else - { - dmsg ("cube struct ..."); - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o; - - if (arg_struct.l != ret_struct->l - || arg_struct.s != ret_struct->s - || arg_struct.o != ret_struct->o) - { - ACE_OS::printf ("** cube_struct ERROR\n"); - error_count++; - } - delete ret_struct; - } - - } - - after = ACE_OS::gettimeofday(); - - if (call_count > 0) - { - if (error_count == 0) - { - ACE_Time_Value diff = after - before; - unsigned long us = diff.sec() * 1000 * 1000 + diff.usec(); - - us /= call_count; - - if (us > 0) - ACE_OS::printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - ACE_OS::printf ("%d calls, %d errors\n", call_count, error_count); - } - - // - // Simple test for DII: call "cube_struct". (It's not timed - // since the copious mallocation of DII would bias numbers against - // typical stub-based calls.) - // - do { - // - // Create the request ... - // - CORBA_Request_ptr req; - - req = objref->_request ((const CORBA_String) "cube_struct", env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request create"); - break; - } - - // - // ... initialise the argument list and result ... - // - Cubit_Many arg, *result; - - arg.o = 3; arg.l = 5; arg.s = -7; - - CORBA_Any tmp_arg (TC_Cubit_Many, &arg, 0); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request arg add"); - CORBA_release (req); - break; - } - - req->result ()->value () - ->replace (TC_Cubit_Many, 0, 1, env); - if (env.exception () != 0) { - print_exception (env.exception (), "DII request result type"); - CORBA_release (req); - break; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - print_exception (req->env ()->exception (), "DII invoke"); - CORBA_release (req); - break; - } - - result = (Cubit_Many *) req->result ()->value ()->value (); - - if (result->o != 27 || result->l != 125 || result->s != -343) - ACE_OS::fprintf (stderr, "DII cube_struct -- bad results\n"); - else - dmsg ("DII cube_struct ... success!!"); - - CORBA_release (req); - - } while (0); - - // - // Two more tests, using the "cube_union" function - // - cube_union_dii(call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - cube_union_stub(i, call_count, error_count, objref, env); - if (env.exception () != 0) - error_count++; - - if (exit_later) { - aCubit->Cubit_please_exit (env); - dexc (env, "server, please ACE_OS::exit"); - } - - CORBA_release (objref); - - return (error_count == 0) ? 0 : 1; -} - - -static void -cube_union_stub(unsigned i, - unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - Cubit_ptr aCubit = Cubit::_narrow(objref); - // - // Cube a "union" ... - // - Cubit_oneof u, *r; - - call_count++; - - u._disc = e_2nd; - u.l = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.l = u.l * u.l * u.l ; - - if (u.l != r->l) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } - - // - // Cube another "union" which uses the default arm ... - // - call_count++; - - u._disc = e_5th; - u.cm.l = func (i); - u.cm.s = func (i); - u.cm.o = func (i); - - u.cm.l = 7; - u.cm.s = 5; - u.cm.o = 3; - - r = aCubit->Cubit_cube_union (u, env); - if (env.exception () != 0) { - print_exception (env.exception (), "from cube_union"); - error_count++; - } else { - dmsg ("cube union ..."); - u.cm.l = u.cm.l * u.cm.l * u.cm.l; - u.cm.s = u.cm.s * u.cm.s * u.cm.s; - u.cm.o = u.cm.o * u.cm.o * u.cm.o; - - if (u.cm.l != r->cm.l - || u.cm.s != r->cm.s - || u.cm.o != r->cm.o) { - ACE_OS::printf ("** cube_union ERROR\n"); - error_count++; - } - - delete r; - } -} - - -static void -cube_union_dii (unsigned &call_count, - unsigned &error_count, - CORBA_Object_ptr objref, - CORBA_Environment &env) -{ - // - // Create the request ... - // - CORBA_Request_ptr req; - - call_count++; - - req = objref->_request ((const CORBA_String) "cube_union", env); - if (env.exception () != 0) { - error_count++; - - print_exception (env.exception (), "cube_union_dii request create"); - return; - } - - // - // ... initialise the argument list and result ... - // - Cubit_oneof u, *r; - - u._disc = e_3rd; - u.cm.l = 5; - u.cm.s = -7; - u.cm.o = 3; - - CORBA_Any tmp_arg (TC_Cubit_oneof, &u, 0); - - req->arguments ()->add_value (0, tmp_arg, CORBA_ARG_IN, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii request arg add"); - CORBA_release (req); - return; - } - - req->result ()->value ()->replace (TC_Cubit_oneof, 0, 1, env); - if (env.exception () != 0) { - error_count++; - print_exception (env.exception (), "cube_union_dii result type"); - CORBA_release (req); - return; - } - - // - // Make the invocation, verify the result - // - req->invoke (); - if (req->env ()->exception () != 0) { - error_count++; - print_exception (req->env ()->exception (),"cube_union_dii invoke"); - CORBA_release (req); - return; - } - - r = (Cubit_oneof *) req->result ()->value ()->value (); - - if (r->cm.o != 27 || r->cm.l != 125 || r->cm.s != -343) { - error_count++; - ACE_OS::fprintf (stderr, "cube_union_dii -- bad results\n"); - } - else - dmsg ("cube_union_dii ... success!!"); - - CORBA_release (req); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.cpp b/TAO/IIOP/tests/Cubit/TAO/cubit.cpp deleted file mode 100644 index 8ca2d0daf04..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.cpp +++ /dev/null @@ -1,579 +0,0 @@ -// $Id$ - -// @(#)cubit.cpp 1.2 95/09/29 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// -// NOTE: these "skeletons" are really the methods, using DSI. No real -// ORB would be implemented in this particular way. Several things would -// be more typical of real (static) skeletons: -// -// * Most of the "in" (and much of the "out") parameter data would -// be preallocated on the stack, not heap allocated. (Static -// preallocation doesnt' really work in a multithreaded system, -// and moreover can waste a lot of space.) -// -// * The ORB core wouldn't be told about parameters using heap -// allocated data structures (e.g. NVList). -// -// * Skeletons would need to some kind of "marshal the response NOW" -// API so that stack-allocated "out" values wouldn't become invalid -// up until they were safely marshaled. -// -// * They'd handle exceptions rather than just generating debugging -// messages when they happen. -// -// * Method code would be called by the skeletons, not written as -// part of the "skeleton" itself! -// -// A key part of turning this code into a complete ORB would be to ensure -// that skeletons were always efficient and correct. They might not need -// to be sharable between different implementations of the same OMG-IDL -// object interface, but many ORBs choose to be structured that way. -// - -#include "cubit.h" // for stubs ... -#include // ... and skeletons - -#include // ... and debugging - -ACE_RCSID(TAO, cubit, "$Id$") - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = { - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_octet_calldata = { - "cube_octet", 1, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -) -{ - CORBA_Octet retval = 0; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - data->Release (); - } - return retval; -} - -static void -_cube_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - CORBA_Octet* value = new CORBA_Octet; - - *value = *(CORBA_Octet *)nv->value ()->value (); - // dmsg1 ("cube octet, parameter '%d'", *value); - *value = (CORBA_Octet) ((*value) * (*value) * (*value)); - // dmsg1 ("cube octet, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Octet, value, 1); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = { - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = { - "cube_short", 1, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit_cube_short (Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_cube_short_calldata, - &retval, &s); - data->Release (); - } - return retval; -} - -static void -_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - CORBA_Short* value = new CORBA_Short; - - *value = *(CORBA_Short *)nv->value ()->value (); - // dmsg1 ("cube short, parameter '%d'", *value); - *value =(CORBA_Short) ((*value) * (*value) * (*value)); - // dmsg1 ("cube short, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Short, value, 1); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = { - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = { - "cube_long", 1, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit_cube_long (Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - data->Release (); - } - return retval; -} - - -static void -_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - CORBA_Long* value = new CORBA_Long; - - *value = *(CORBA_Long *)nv->value ()->value (); - // dmsg1 ("cube long, parameter '%d'", *value); - *value = (*value) * (*value) * (*value); - // dmsg1 ("cube long, result '%d'", *value); - - CORBA_Any* any = - new CORBA_Any (_tc_CORBA_Long, value, 1); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = { - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - 0); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = { - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = { - "cube_struct", 1, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many * -Cubit_cube_struct (Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - Cubit_Many *value; - Cubit_Many *retval = new Cubit_Many; - - value = (Cubit_Many *)nv->value ()->value (); - - retval->o = (CORBA_Octet) (value->o * value->o * value->o); - retval->s = (CORBA_Short) (value->s * value->s * value->s); - retval->l = value->l * value->l * value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = - new CORBA_Any (TC_Cubit_Many, retval, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = { - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - 0); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = { - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = { - "cube_union", 1, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof * -Cubit_cube_union (Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else - { - data->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - data->Release (); - } - return retval; -} - - -static void -_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - Cubit_oneof *v; - Cubit_oneof *r = new Cubit_oneof; - - v = (Cubit_oneof *)nv->value ()->value (); - r->_disc = v->_disc; - - switch (v->_disc) { - case e_0th: - r->o = (CORBA_Octet) (v->o * v->o * v->o); - break; - - case e_1st: - r->s = (CORBA_Short) (v->s * v->s * v->s); - break; - - case e_2nd: - r->l = v->l * v->l * v->l; - break; - - case e_3rd: - default: - r->cm.o = (CORBA_Octet) (v->cm.o * v->cm.o * v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s * v->cm.s * v->cm.s); - r->cm.l = v->cm.l * v->cm.l * v->cm.l; - break; - } - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = { - "please_exit", 0, - 0, 0, - 0, 0 -}; - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &Cubit_please_exit_calldata - ); - data->Release (); - } -} - -static void -_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); -} - - -const CORBA_Char *Cubit__id = (CORBA_Char *) - "IDL:Eng.SUN.COM/Cubit:1.1"; - - -// -// table of all operations, used by operation dispatch to get to the -// right skeleton ... could be sorted by the IDL compiler so bsearch -// is effective, perhaps with help from opname hashes and a small cache -// (e.g. like Obj-C?). for now, just lsearch. -// -const TAO_Skel_Entry Cubit_operations [] = { - { &Cubit_cube_octet_calldata, _cube_octet_skel }, - { &Cubit_cube_short_calldata, _cube_short_skel }, - { &Cubit_cube_long_calldata, _cube_long_skel }, - { &Cubit_cube_struct_calldata, _cube_struct_skel }, - { &Cubit_cube_union_calldata, _cube_union_skel }, - { &Cubit_please_exit_calldata, _please_exit_skel }, - { 0, 0 } // last entry -}; diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.h b/TAO/IIOP/tests/Cubit/TAO/cubit.h deleted file mode 100644 index 78d6b604052..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// @(#)cubit.hh 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Hand-crafted C language binding glue ... -// -// This doesn't use C++ since doing the obvious derivation -// (all parent interfaces are virtual public parents) makes -// object references have different "views". That is, a -// pointer to a Cubit (i.e. a Cubit_ptr) would not have -// the same binary value as a pointer to a CORBA_Object -// (i.e. a CORBA_Object_ptr, generic objref). That'd -// mean lots of narrowing/widening/RTTI infrastructure. -// - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include -#include - - -// -// C style binding -// - -typedef CORBA_Object Cubit; -typedef Cubit *Cubit_ptr, *CubitRef; - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many { - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5}; - -struct Cubit_oneof { - Cubit_discrim _disc; - - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -CORBA_Octet -Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env -); - -CORBA_Short -Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env -); - -CORBA_Long -Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env -); - -Cubit_Many * -Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env -); - -Cubit_oneof * -Cubit_cube_union ( - Cubit_ptr target, - Cubit_oneof &values, - CORBA_Environment &env -); - -void -Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env -); - -extern const CORBA_Char *Cubit__id; // type ID - -extern const TAO_Skel_Entry Cubit_operations []; - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.idl b/TAO/IIOP/tests/Cubit/TAO/cubit.idl deleted file mode 100644 index d4f1610e2a8..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. - -#pragma prefix "Eng.SUN.COM" -#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitC.cpp b/TAO/IIOP/tests/Cubit/TAO/cubitC.cpp deleted file mode 100644 index 026c8b62df1..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitC.cpp +++ /dev/null @@ -1,385 +0,0 @@ -// $Id$ - -// @(#)cubitC.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubitC.h" // for stubs ... - -ACE_RCSID(TAO, cubitC, "$Id$") - -Cubit_ptr Cubit::_duplicate(Cubit_ptr obj) -{ - if (obj) - obj->AddRef(); - - return obj; -} - -Cubit_ptr Cubit::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:Cubit:1.0", env)) - { - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - return Cubit::_nil(); - } - Cubit_ptr new_obj = new Cubit(istub); - return Cubit::_duplicate(new_obj); - } - return Cubit::_nil(); -} - -Cubit_ptr Cubit::_nil() -{ - return (Cubit_ptr)NULL; -} - -// -// CUBE OCTET -// - -static const TAO_Param_Data Cubit_cube_octet_params [] = -{ - { _tc_CORBA_Octet, PARAM_RETURN, 0 }, - { _tc_CORBA_Octet, PARAM_IN, 0 } -}; - - -static const TAO_Call_Data Cubit_cube_octet_calldata = -{ - "cube_octet", 1, - 2, &Cubit_cube_octet_params [0], - 0, 0 -}; - - -CORBA_Octet -Cubit::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - CORBA_Octet retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_octet_calldata, - &retval, &o); - istub->Release (); - - return retval; -} - - -// -// CUBE SHORT -// - -static const TAO_Param_Data Cubit_cube_short_params [] = -{ - { _tc_CORBA_Short, PARAM_RETURN, 0 }, - { _tc_CORBA_Short, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_short_calldata = -{ - "cube_short", 1, - 2, &Cubit_cube_short_params [0], - 0, 0 -}; - - -CORBA_Short -Cubit::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - CORBA_Short retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call(env, &Cubit_cube_short_calldata, - &retval, &s); - - istub->Release (); - - return retval; -} - -// -// CUBE LONG -// - -static const TAO_Param_Data Cubit_cube_long_params [] = -{ - { _tc_CORBA_Long, PARAM_RETURN, 0 }, - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_long_calldata = -{ - "cube_long", 1, - 2, &Cubit_cube_long_params [0], - 0, 0 -}; - - -CORBA_Long -Cubit::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - CORBA_Long retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_long_calldata, - &retval, &l); - istub->Release (); - - return retval; -} - - -// -// Encapsulated parameters for struct "Cubit_Many" typecode. -// None of these parameters is complicated, so this is just -// a linear sequence of element encodings -// -// NOTE: it's important that this be longword aligned!! -// -static const CORBA_Long _oc_Cubit_Many [] = -{ - 1, // byte order flag (TRICKY!) - - 1, 0, // empty string: repository/type ID - 1, 0, // empty string: struct name - - 3, // three struct elements - - // First structure element: name, typecode for Octet - 1, 0, // empty string: name "o" - tk_octet, - - // Second structure element: name, typecode for Long - 1, 0, // empty string: name "l" - tk_long, - - // Third structure element: name, typecode for Short - 1, 0, // empty string: name "s" - tk_short, -}; - -static CORBA_TypeCode _tc_Cubit_Many (tk_struct, - sizeof _oc_Cubit_Many, (unsigned char *) &_oc_Cubit_Many, - 0); -CORBA_TypeCode_ptr TC_Cubit_Many = &_tc_Cubit_Many; - - -// -// CUBE STRUCT -// - -static const TAO_Param_Data Cubit_cube_struct_params [] = -{ - { &_tc_Cubit_Many, PARAM_RETURN, sizeof (Cubit_Many) }, - { &_tc_Cubit_Many, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_struct_calldata = -{ - "cube_struct", 1, - 2, &Cubit_cube_struct_params [0], - 0, 0 -}; - -Cubit_Many* -Cubit::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - Cubit_Many *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_struct_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - -// -// CUBE UNION -// - -// -// NOTE: not all union typecodes can be encoded as an array -// of "long "values, but this one can. Ones with discriminants -// that are one or two bytes long can't easily be coded portably. -// -// The benefit of doing it as an array of "long" values is -// twofold: (a) easier to read; (b) on most systems it's then -// adequately aligned for the typecode interpreter to use, so -// no additional runtime copy needs to be made. -// -static const CORBA_Long _oc_Cubit_oneof [] = -{ - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "oneof" - - // - // discriminant typecode: - // - tk_enum, // tk_enum - 72, // encapsulation length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted enum name, "discrim" - 6, // 5 elements in the enum - - 1, 0, // omitted member name, "e_0th" - 1, 0, // omitted member name, "e_1st" - 1, 0, // omitted member name, "e_2nd" - 1, 0, // omitted member name, "e_3rd" - 1, 0, // omitted member name, "e_4th" - 1, 0, // omitted member name, "e_5th" - - 4, // default member index (zero based) - 5, // number of union members - - // the 1st union branch arm - e_0th, // member label value - 1, 0, // omitted member name, "o" - tk_octet, // member typecode - - // the 2nd union branch arm - e_1st, // member label value - 1, 0, // omitted member name, "s" - tk_short, // member typecode - - // the 3rd union branch arm - e_2nd, // member label value - 1, 0, // omitted member name, "l" - tk_long, // member typecode - - // the 4th union branch arm - e_3rd, // member label value - 1, 0, // omitted member name, "cm" - - // the 4th union member typecode - tk_struct, // tk_struct - 60, // encap length - - 1, // byte order flag (TRICKY) - 1, 0, // omitted repository/type ID - 1, 0, // omitted struct name, "Many" - 3, // three struct members - - // First structure element - 1, 0, // omitted member name, "o" - tk_octet, // member type, tk_octet - - // Second structure element - 1, 0, // omitted member name, "l" - tk_long, // member type, tk_long - - // Third structure element - 1, 0, // omitted member name, "s" - tk_short, // member type, tk_short - - // the 5th union branch arm - 4, // the 5th member label value - 1, 0, // omitted member name, "cm" - ~0, // indirected typecode (~0) - -84 // offset to struct "Many" typecode -}; - -static CORBA_TypeCode _tc_Cubit_oneof (tk_union, - (sizeof _oc_Cubit_oneof), (unsigned char *) &_oc_Cubit_oneof, - 0); -CORBA_TypeCode_ptr TC_Cubit_oneof = &_tc_Cubit_oneof; - -static const TAO_Param_Data Cubit_cube_union_params [] = -{ - { &_tc_Cubit_oneof, PARAM_RETURN, sizeof (Cubit_oneof) }, - { &_tc_Cubit_oneof, PARAM_IN, 0 } -}; - -static const TAO_Call_Data Cubit_cube_union_calldata = -{ - "cube_union", 1, - 2, &Cubit_cube_union_params [0], - 0, 0 -}; - -Cubit_oneof* -Cubit::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - Cubit_oneof *retval; - - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return 0; - } - - istub->do_call (env, &Cubit_cube_union_calldata, - &retval, &values); - istub->Release (); - - return retval; -} - - - -// -// PLEASE EXIT -// - -static const TAO_Call_Data Cubit_please_exit_calldata = -{ - "please_exit", 0, - 0, 0, - 0, 0 -}; - -void -Cubit::Cubit_please_exit (CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR) - { - env.exception(new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } - - istub->do_call (env, &Cubit_please_exit_calldata); - istub->Release (); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitC.h b/TAO/IIOP/tests/Cubit/TAO/cubitC.h deleted file mode 100644 index 98610b55116..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitC.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -// @(#)cubitC.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_HH -#define _CUBIT_HH - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -#include "corba/orb.h" -#include "corba/stub.h" - -#include - -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; - -struct Cubit_Many -{ - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; -}; - -enum Cubit_discrim - { e_0th = 0, e_1st = 1, e_2nd = 2, - e_3rd = 3, e_4th = 4, e_5th = 5 }; - -struct Cubit_oneof -{ - Cubit_discrim _disc; - - union - { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; - Cubit_Many cm; - }; -}; - -class Cubit; -typedef Cubit *Cubit_ptr; -typedef Cubit_ptr Cubit_ref; - -class Cubit : public virtual CORBA_Object -{ -public: - - static Cubit_ptr _duplicate(Cubit_ptr obj); - static Cubit_ptr _narrow(CORBA_Object_ptr obj); - static Cubit_ptr _nil(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); - -protected: - Cubit() { } - Cubit(STUB_Object *objref) - : CORBA_Object(objref) { } - virtual ~Cubit() { } - - -}; - -extern const CORBA_Char *Cubit__id; // type ID - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitS.cpp b/TAO/IIOP/tests/Cubit/TAO/cubitS.cpp deleted file mode 100644 index 11504dfe033..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitS.cpp +++ /dev/null @@ -1,236 +0,0 @@ -// $Id$ - -// @(#)cubitS.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written C-style "Cubit" stubs and "skeletons" -// - -#include "cubitS.h" -#include "cubitC.cpp" - -#include "connect.h" -#include "params.h" - -#include "corba/debug.h" // ... and debugging -#include "corba/optable.h" // TAO Dynamic Operation Table -#include "method_db.i" -#include "iiopobj.h" - -ACE_RCSID(TAO, cubitS, "$Id$") - -#if defined(CUBIT_USE_DYNAMIC_HASH) -TAO_Dynamic_Hash_OpTable tao_cubit_optable(7); // Dynamic Operation Table -#else -TAO_Linear_OpTable tao_cubit_optable(7); -#endif - -_skel_Cubit::_skel_Cubit(const char* obj_name) -{ - const char* mn = "_skel_Cubit::_skel_Cubit()"; - - // Initialize Method Database - initialize_method_db (&tao_cubit_optable); - - char *type_id = "IDL:Cubit:1.0"; - // CORBA_String type_id = "IDL:Cubit:1.0"; - IIOP_Object *data; - - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); - if (oa == 0) - { - // We just have to assume that oa will be good, or we have to - // throw an exception. For now we "assume", but we'll - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to locate a valid object adapter\n", mn)); - return; - } - - this->optable_ = &tao_cubit_optable; - data = new IIOP_Object(type_id); - - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - - ACE_OS::memcpy (data->profile.object_key.buffer, - obj_name, - data->profile.object_key.length+1); - - this->set_parent(data); - this->sub_ = this; - - if (oa->bind(data->profile.object_key, this) == -1) - { - ACE_ERROR((LM_ERROR, "(%P|%t) %s Unable to bind object to key '%s': %p\n", mn, data->profile.object_key.buffer)); - return; - } -} - -void -_skel_Cubit::_cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Octet); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_octet, add value"); - - req.params (nvlist, env); - dexc (env, "cube_octet, get params"); - - // Call Implementation - CORBA_Octet *value = new CORBA_Octet; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - - *value = the_cubit->Cubit_cube_octet(*(CORBA_Octet *)nv->value()->value(), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Octet, value, 1); - - req.result (any, env); - dexc (env, "cube_octet, result"); -} - -void -_skel_Cubit::_cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Short); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_short, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_short, get params"); - - // Call Implementation - CORBA_Short *value = new CORBA_Short; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_short(*(CORBA_Short *)nv->value ()->value (), env); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Short, value, 1); - - req.result (any, env); - dexc (env, "cube_short, result"); -} - -void -_skel_Cubit::_cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_long, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_long, get params"); - - // Call Implementation - CORBA_Long *value = new CORBA_Long; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - *value = the_cubit->Cubit_cube_long(*(CORBA_Long *)nv->value ()->value (), env); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Long, value, 1); - - req.result (any, env); - dexc (env, "cube_long, result"); -} - -void -_skel_Cubit::_cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_Many); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_struct, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_struct, get params"); - - // Call Implementation - Cubit_Many *value; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - value = the_cubit->Cubit_cube_struct(*(Cubit_Many*)nv->value()->value(), env); - - Cubit_Many *retval = new Cubit_Many; - retval->o = (CORBA_Octet)value->o; - retval->s = (CORBA_Short)value->s; - retval->l = value->l; - - // dmsg2 ("cube struct.o, %d -> %d", value->o, retval->o); - // dmsg2 ("cube struct.s, %d -> %d", value->s, retval->s); - // dmsg2 ("cube struct.l, %d -> %d", value->l, retval->l); - - CORBA_Any *any = new CORBA_Any (TC_Cubit_Many, retval, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (TC_Cubit_oneof); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - dexc (env, "cube_union_3rd, add_value"); - - req.params (nvlist, env); - dexc (env, "cube_union_3rd, get params"); - - // Call Implementation - Cubit_oneof *v; - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - v = the_cubit->Cubit_cube_union(*(Cubit_oneof *)nv->value ()->value (), env); - - Cubit_oneof *r = new Cubit_oneof; - r->_disc = v->_disc; - r->o = (CORBA_Octet) (v->o); - r->s = (CORBA_Short) (v->s); - r->l = v->l; - r->cm.o = (CORBA_Octet) (v->cm.o); - r->cm.s = (CORBA_Short) (v->cm.s); - r->cm.l = v->cm.l; - - CORBA_Any *any = new CORBA_Any (TC_Cubit_oneof, r, 1); - - req.result (any, env); - dexc (env, "cube_struct, result"); -} - -void -_skel_Cubit::_please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - Cubit *the_cubit = (Cubit*)obj->get_subclass(); - the_cubit->Cubit_please_exit(env); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitS.h b/TAO/IIOP/tests/Cubit/TAO/cubitS.h deleted file mode 100644 index a4b4b853901..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubitS.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -// @(#)cubitS.h 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _SKEL_CUBIT_HH -#define _SKEL_CUBIT_HH - -#include "cubitC.h" - -class _skel_Cubit; -typedef _skel_Cubit *_skel_Cubit_ptr; -typedef _skel_Cubit_ptr _skel_Cubit_ref; - -class _skel_Cubit : public Cubit -{ -public: - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) = 0; - static - void _cube_octet_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) = 0; - - static - void _cube_short_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) = 0; - - static - void _cube_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) = 0; - - static - void _cube_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) = 0; - - static - void _cube_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env) = 0; - - static - void _please_exit_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_Cubit(const char* obj_name = 0); - virtual ~_skel_Cubit() { } - -}; - -#endif // _SKEL_CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp b/TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp deleted file mode 100644 index 7f89b5ea3a4..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit_i.cpp +++ /dev/null @@ -1,95 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "cubit_i.h" - -#include // ... and skeletons -#include // ... and debugging - -#include "connect.h" -#include "params.h" - -ACE_RCSID(TAO, cubit_i, "$Id$") - -Cubit_i::Cubit_i(const char* obj_name) -: _skel_Cubit(obj_name) -{ -} - -Cubit_i::~Cubit_i() -{ -} - -CORBA_Octet -Cubit_i::Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env) -{ - - return (CORBA_Octet) (o * o * o); -} - -CORBA_Short -Cubit_i::Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env) -{ - return (CORBA_Short) (s * s * s); -} - - -CORBA_Long -Cubit_i::Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env) -{ - return (CORBA_Long) (l * l * l); -} - -Cubit_Many* -Cubit_i::Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env) -{ - values.o = values.o * values.o * values.o; - values.s = values.s * values.s * values.s; - values.l = values.l * values.l * values.l; - - return &values; -} - -Cubit_oneof* -Cubit_i::Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env) -{ - switch (values._disc) { - case e_0th: - values.o = (CORBA_Octet) (values.o * values.o * values.o); - break; - case e_1st: - values.s = (CORBA_Short) (values.s * values.s * values.s); - break; - case e_2nd: - values.l = values.l * values.l * values.l; - break; - case e_3rd: - default: - values.cm.o = (CORBA_Octet) (values.cm.o * values.cm.o * values.cm.o); - values.cm.s = (CORBA_Short) (values.cm.s * values.cm.s * values.cm.s); - values.cm.l = values.cm.l * values.cm.l * values.cm.l; - } - return &values; -} - -void Cubit_i::Cubit_please_exit (CORBA_Environment &env) -{ - TAO_OA_Parameters* params = TAO_OA_PARAMS::instance(); - - dmsg ("I've been asked to shut down..."); - params->oa()->please_shutdown(env); - dexc (env, "please_exit, please_shutdown"); -} diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit_i.h b/TAO/IIOP/tests/Cubit/TAO/cubit_i.h deleted file mode 100644 index 7ddf1947cd3..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/cubit_i.h +++ /dev/null @@ -1,56 +0,0 @@ -// $Id$ - -// @(#)cubit_i.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: hand-written Cubit Implementation -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation -***************************************************************************/ - -#ifndef _CUBIT_I_HH -#define _CUBIT_I_HH - -#include "cubitS.h" - -class Cubit_i; -typedef Cubit_i *Cubit_i_ptr; -typedef Cubit_i_ptr Cubit_i_ref; - -class Cubit_i : public _skel_Cubit -{ -public: - Cubit_i(const char* obj_name = 0); - ~Cubit_i(); - - virtual - CORBA_Octet Cubit_cube_octet (CORBA_Octet o, - CORBA_Environment &env); - - virtual - CORBA_Short Cubit_cube_short (CORBA_Short s, - CORBA_Environment &env); - - virtual - CORBA_Long Cubit_cube_long (CORBA_Long l, - CORBA_Environment &env); - - virtual - Cubit_Many* Cubit_cube_struct (Cubit_Many &values, - CORBA_Environment &env); - - virtual - Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, - CORBA_Environment &env); - - virtual - void Cubit_please_exit (CORBA_Environment &env); -}; - -#endif // _CUBIT_I_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/method_db.i b/TAO/IIOP/tests/Cubit/TAO/method_db.i deleted file mode 100644 index e23fdbb3a7c..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/method_db.i +++ /dev/null @@ -1,69 +0,0 @@ -// $Id$ - -// @(#)method_db.i 05/14/97 - -// This file provides a way of initializing the method database -// Written by: Brian Mendel - -#include "cubitS.h" - -static void -is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *) nv->value()->value(); - - if (ACE_OS::strcmp ((char*)value, "IDL:Cubit:1.0") == 0 - || ACE_OS::strcmp ((char *)value, _tc_CORBA_Object->id (env)) == 0) - retval = new CORBA_Boolean (1); - else - retval = new CORBA_Boolean (0); - - CORBA_Any *any = new CORBA_Any (_tc_CORBA_Boolean, retval, 1); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - - -struct method_db -{ - CORBA_String opname; - TAO_Skeleton skel_ptr; -}; - -static const method_db cubit_operations[] = { - { "_is_a", &is_a_skel }, - { "cube_octet", &_skel_Cubit::_cube_octet_skel }, - { "cube_short", &_skel_Cubit::_cube_short_skel }, - { "cube_long", &_skel_Cubit::_cube_long_skel }, - { "cube_struct", &_skel_Cubit::_cube_struct_skel }, - { "cube_union", &_skel_Cubit::_cube_union_skel }, - { "please_exit", &_skel_Cubit::_please_exit_skel }, - { 0, 0 } -}; - - -void initialize_method_db (TAO_Operation_Table *the_optable) -{ - for (int ndx = 0; ndx < 7; ndx++) - the_optable->bind(cubit_operations[ndx].opname, - cubit_operations[ndx].skel_ptr); - -} diff --git a/TAO/IIOP/tests/Cubit/TAO/svr.cpp b/TAO/IIOP/tests/Cubit/TAO/svr.cpp deleted file mode 100644 index 6f6f098b850..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/svr.cpp +++ /dev/null @@ -1,216 +0,0 @@ -// $Id$ - -// @(#)svr.cpp 05/14/97 -// Copyright 1994-1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "cubit.idl" interface. -// -// Starts up, builds an objref, prints its string in debug mode, -// listens for messages, responds to them. -// -// Modified version of Cubit Example written by Sun Microsystems Inc. -// Modified by: Brian Mendel - -#include "ace/Get_Opt.h" -#include "ace/Log_Msg.h" - -#include "corba/orb.h" -#include "corba/debug.h" -#include "connect.h" - -#include "cubit_i.h" - -ACE_RCSID(TAO, svr, "$Id$") - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -// Global Variables -CORBA_String key = (CORBA_String)"key0"; -int num_of_objs = 1; - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - ACE_Get_Opt opts (argc, argv, "dk:n:"); - int c; - - while ((c = opts ()) != -1) - switch (c) { - - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'k': // key (str) - key = (CORBA_String) opts.optarg; - continue; - - case 'n': // idle seconds b4 exit - num_of_objs = ACE_OS::atoi(opts.optarg); - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-k {object_key}]" - "\n", argv [0] - ); - return 1; - } - - return 0; // Indicates successful parsing of command line -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_Object_ptr obj = 0; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - char *orb_name = "internet"; - int idle = -1; - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // Initialize the Basic Object Adapter - oa_ptr = orb_ptr->BOA_init(argc, argv, "ROA"); - if (oa_ptr == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to initialize the BOA.\n"), 1); - - - // - // Parse remaining command line and verify parameters. - // - parse_args(argc, argv); - - // Create implementation object with user specified key - Cubit_i_ptr *my_cubit = new Cubit_i_ptr[num_of_objs]; - for (int ndx = 0; ndx < num_of_objs; ndx++) - { - CORBA_String obj_str = CORBA_string_alloc(ACE_OS::strlen ((char *)key)+2); - sprintf(obj_str, "%s%d", (char*)key, ndx); - my_cubit[ndx] = new Cubit_i(obj_str); - if (my_cubit[ndx] == 0) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object&d\n", ndx), 2); - - if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) obj_str; - obj_key.length = obj_key.maximum = ACE_OS::strlen (obj_str); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("Object Created at: '%ul'", obj); - dmsg1 ("listening as object '%s'", str); - - } - CORBA_string_free(obj_str); - } -// Cubit_i_ptr my_cubit = new Cubit_i(key); -// if (my_cubit1 == 0) -// ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to create implementation object\n"), 2); - -/* if (TAO_debug_level >= 1) - { - // Why are we getting the BOA_ptr from here when we've already - // got it above? - CORBA_OctetSeq obj_key; - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen ((char *)key); - - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. Then release the object. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - obj_key.buffer = (CORBA_Octet *)"key1"; - obj_key.length = obj_key.maximum = 4; - if (oa_ptr->find(obj_key, obj) == -1) - ACE_ERROR_RETURN((LM_ERROR, "(%P|%t) Unable to locate object with key '%s', %p\n", key), 3); - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - } -*/ - // Handle requests for this object until we're killed, or one of - // the methods asks us to exit. - // - int terminationStatus = 0; - - -#if !defined(USE_HOMEBREW_EVENT_LOOP) - ACE_Reactor::run_event_loop(); -#else - while (1) - { - int result = params->reactor()->handle_events (); - - if (result == -1) - { - terminationStatus = -1; - break; - } - } -#endif - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - oa_ptr->clean_shutdown (env); - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/TAO/test.mak b/TAO/IIOP/tests/Cubit/TAO/test.mak deleted file mode 100644 index 58b77c28283..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test.mak +++ /dev/null @@ -1,463 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -!IF "$(CFG)" == "" -CFG=server - Win32 Debug -!MESSAGE No configuration specified. Defaulting to server - Win32 Debug. -!ENDIF - -!IF "$(CFG)" != "client - Win32 Release" && "$(CFG)" != "client - Win32 Debug"\ - && "$(CFG)" != "server - Win32 Release" && "$(CFG)" != "server - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE on this makefile -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "test.mak" CFG="server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "server - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF -################################################################################ -# Begin Project -# PROP Target_Last_Scanned "server - Win32 Debug" -RSC=rc.exe -CPP=cl.exe - -!IF "$(CFG)" == "client - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "client\Release" -# PROP BASE Intermediate_Dir "client\Release" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(OUTDIR)\client.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -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 ..\lib\TAO.lib 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 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib 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 /incremental:no\ - /pdb:"$(OUTDIR)/client.pdb" /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client\Debug" -# PROP BASE Intermediate_Dir "client\Debug" -# PROP BASE Target_Dir "client" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "client" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\client.exe" - -CLEAN : - -@erase "$(INTDIR)\clnt.obj" - -@erase "$(INTDIR)\cubitC.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\client.exe" - -@erase "$(OUTDIR)\client.ilk" - -@erase "$(OUTDIR)\client.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/client.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/client.bsc" -BSC32_SBRS= \ - -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 -# ADD LINK32 aced.lib ..\lib\TAO.lib 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 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib 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 /incremental:yes\ - /pdb:"$(OUTDIR)/client.pdb" /debug /machine:I386 /out:"$(OUTDIR)/client.exe" -LINK32_OBJS= \ - "$(INTDIR)\clnt.obj" \ - "$(INTDIR)\cubitC.obj" - -"$(OUTDIR)\client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "server\Release" -# PROP BASE Intermediate_Dir "server\Release" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Release - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(OUTDIR)\server.exe" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\proto\include" /D "WIN32" /D "NDEBUG"\ - /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/" /c -CPP_OBJS=.\Release/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -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 ..\lib\TAO.lib 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 -LINK32_FLAGS=ace.lib ..\lib\TAO.lib 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 /incremental:no\ - /pdb:"$(OUTDIR)/server.pdb" /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "server\Debug" -# PROP BASE Intermediate_Dir "server\Debug" -# PROP BASE Target_Dir "server" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "server" -OUTDIR=. -INTDIR=.\Debug - -ALL : "$(OUTDIR)\server.exe" - -CLEAN : - -@erase "$(INTDIR)\cubit_i.obj" - -@erase "$(INTDIR)\cubitS.obj" - -@erase "$(INTDIR)\svr.obj" - -@erase "$(INTDIR)\vc40.idb" - -@erase "$(INTDIR)\vc40.pdb" - -@erase "$(OUTDIR)\server.exe" - -@erase "$(OUTDIR)\server.ilk" - -@erase "$(OUTDIR)\server.pdb" - -"$(INTDIR)" : - if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" - -# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\proto\include" /D "WIN32" /D\ - "_DEBUG" /D "_CONSOLE" /Fp"$(INTDIR)/server.pch" /YX /Fo"$(INTDIR)/"\ - /Fd"$(INTDIR)/" /c -CPP_OBJS=.\Debug/ -CPP_SBRS=.\. -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -BSC32_FLAGS=/nologo /o"$(OUTDIR)/server.bsc" -BSC32_SBRS= \ - -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 -# ADD LINK32 aced.lib ..\lib\TAO.lib 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 -LINK32_FLAGS=aced.lib ..\lib\TAO.lib 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 /incremental:yes\ - /pdb:"$(OUTDIR)/server.pdb" /debug /machine:I386 /out:"$(OUTDIR)/server.exe" -LINK32_OBJS= \ - "$(INTDIR)\cubit_i.obj" \ - "$(INTDIR)\cubitS.obj" \ - "$(INTDIR)\svr.obj" - -"$(OUTDIR)\server.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_OBJS)}.obj: - $(CPP) $(CPP_PROJ) $< - -.c{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cpp{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -.cxx{$(CPP_SBRS)}.sbr: - $(CPP) $(CPP_PROJ) $< - -################################################################################ -# Begin Target - -# Name "client - Win32 Release" -# Name "client - Win32 Debug" - -!IF "$(CFG)" == "client - Win32 Release" - -!ELSEIF "$(CFG)" == "client - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\clnt.cpp -DEP_CPP_CLNT_=\ - "..\..\..\..\..\ace\config-win32.h"\ - ".\cubitC.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_CLNT_=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\clnt.obj" : $(SOURCE) $(DEP_CPP_CLNT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubitC.cpp -DEP_CPP_CUBIT=\ - ".\cubitC.h"\ - -NODEP_CPP_CUBIT=\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\cubitC.obj" : $(SOURCE) $(DEP_CPP_CUBIT) "$(INTDIR)" - - -# End Source File -# End Target -################################################################################ -# Begin Target - -# Name "server - Win32 Release" -# Name "server - Win32 Debug" - -!IF "$(CFG)" == "server - Win32 Release" - -!ELSEIF "$(CFG)" == "server - Win32 Debug" - -!ENDIF - -################################################################################ -# Begin Source File - -SOURCE=.\cubitS.cpp -DEP_CPP_CUBITS=\ - ".\cubitC.cpp"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - ".\method_db.i"\ - -NODEP_CPP_CUBITS=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\optable.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\iiopobj.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubitS.obj" : $(SOURCE) $(DEP_CPP_CUBITS) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\cubit_i.cpp -DEP_CPP_CUBIT_=\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - -NODEP_CPP_CUBIT_=\ - ".\connect.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - ".\params.h"\ - - -"$(INTDIR)\cubit_i.obj" : $(SOURCE) $(DEP_CPP_CUBIT_) "$(INTDIR)" - - -# End Source File -################################################################################ -# Begin Source File - -SOURCE=.\svr.cpp -DEP_CPP_SVR_C=\ - "..\..\..\..\..\ace\config-win32.h"\ - ".\cubit_i.h"\ - ".\cubitC.h"\ - ".\cubitS.h"\ - {$(INCLUDE)}"\ace\ACE.h"\ - {$(INCLUDE)}"\ace\ACE.i"\ - {$(INCLUDE)}"\ace\Auto_Ptr.cpp"\ - {$(INCLUDE)}"\ace\Auto_Ptr.h"\ - {$(INCLUDE)}"\ace\Auto_Ptr.i"\ - {$(INCLUDE)}"\ace\config-win32-common.h"\ - {$(INCLUDE)}"\ace\config.h"\ - {$(INCLUDE)}"\ace\Get_Opt.h"\ - {$(INCLUDE)}"\ace\Get_Opt.i"\ - {$(INCLUDE)}"\ace\Log_Msg.h"\ - {$(INCLUDE)}"\ace\Log_Priority.h"\ - {$(INCLUDE)}"\ace\Log_Record.h"\ - {$(INCLUDE)}"\ace\Log_Record.i"\ - {$(INCLUDE)}"\ace\Object_Manager.h"\ - {$(INCLUDE)}"\ace\Object_Manager.i"\ - {$(INCLUDE)}"\ace\OS.h"\ - {$(INCLUDE)}"\ace\OS.i"\ - {$(INCLUDE)}"\ace\SString.h"\ - {$(INCLUDE)}"\ace\SString.i"\ - {$(INCLUDE)}"\ace\stdcpp.h"\ - {$(INCLUDE)}"\ace\Trace.h"\ - {$(INCLUDE)}"\ace\ws2tcpip.h"\ - -NODEP_CPP_SVR_C=\ - ".\connect.h"\ - ".\corba\debug.h"\ - ".\corba\orb.h"\ - ".\corba\stub.h"\ - - -"$(INTDIR)\svr.obj" : $(SOURCE) $(DEP_CPP_SVR_C) "$(INTDIR)" - - -# End Source File -# End Target -# End Project -################################################################################ diff --git a/TAO/IIOP/tests/Cubit/TAO/test.mdp b/TAO/IIOP/tests/Cubit/TAO/test.mdp deleted file mode 100644 index eccc5e94b69..00000000000 Binary files a/TAO/IIOP/tests/Cubit/TAO/test.mdp and /dev/null differ diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.cpp b/TAO/IIOP/tests/Cubit/TAO/test1.cpp deleted file mode 100644 index e33b64d3579..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1.cpp +++ /dev/null @@ -1,393 +0,0 @@ -// $Id$ - -// @(#)test1.cpp 1.4 95/09/28 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST stubs for "test1" -// - -#include - -#include "test1.h" - -ACE_RCSID(TAO, test1, "$Id$") - -// -// Define all the stubs ... it's a lot less error prone to do it with -// macros than by hand! -// -// NOTE: the "calldata" is exported for use by the skeletons. At some -// point skeletons will probably be fully abstracted; for now they aren't. -// -// Also, for some reason, name mangling is changed by the explicit -// declaration as "extern" -- if it's not done, linking fails. -// -#define DEFINE_TEST3(typename, truetype, truetypename) \ - static const TAO_Param_Data test1_ ## typename ## _paramdata [4] = { \ - { _tc_CORBA_ ## truetypename, PARAM_RETURN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_IN, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_OUT, 0 }, \ - { _tc_CORBA_ ## truetypename, PARAM_INOUT, 0 }, \ - }; \ - \ - extern const TAO_Call_Data test1_ ## typename ## _calldata; \ - \ - const TAO_Call_Data test1_ ## typename ## _calldata = { \ - "test_" #typename, 1, \ - 4, &test1_ ## typename ## _paramdata [0], \ - 0, 0, \ - }; \ - \ - CORBA_ ## truetype \ - test1_test_ ## typename (test1_ptr target, \ - CORBA_ ## truetype in_a1, \ - CORBA_ ## truetype &out_a2, \ - CORBA_ ## truetype &inout_a3, \ - CORBA_Environment &env) { \ - CORBA_ ## truetype _retval; \ - STUB_Object *_obj; \ - if (target->QueryInterface (IID_STUB_Object, (void **)&_obj) \ - != NOERROR) \ - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); \ - else { \ - _obj->do_call (env, &test1_ ## typename ## _calldata, \ - &_retval, &in_a1, &out_a2, &inout_a3); \ - _obj->Release (); \ - } \ - return _retval; \ - } - -// changed extern const calldata test1_ ## typename ## _calldata; -// to const calldata test1_ ## typename ## _calldata; \ - -// changed CORBA_ ## truetype _retval = 0; to changed CORBA_ ## truetype _retval; - -#define DEFINE_TEST(typename, truetype) \ - DEFINE_TEST3(typename, truetype, truetype) - - -// -// Generate a system exception, passing an operation ID that's -// not allowed by IIOP (much less this interface) and verifying -// that the server returns some kind of system exception. -// -static const TAO_Call_Data illegal_calldata = { - "+_illegal", 1, - 0, 0, - 0, 0 -}; - -void -test_illegal (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &illegal_calldata - ); - data->Release (); - } -} - - -extern const TAO_Call_Data test1_void_calldata; -const TAO_Call_Data test1_void_calldata = { - "test_void", 1, - 0, 0, - 0, 0 -}; - -void -test1_test_void (test1_ptr target, CORBA_Environment &env) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_void_calldata - ); - data->Release (); - } -} - -DEFINE_TEST (short, Short); -DEFINE_TEST (long, Long); -DEFINE_TEST (ushort, UShort); -DEFINE_TEST (ulong, ULong); - -#if defined(MIPS) -// -// NOTE: C/C++ compilers as a rule pass a "float" in the space that -// a "double" takes up. Conversions are evidently optional; portability -// forces the following "explicit temporary" hack to work on at least -// one MIPS platform, which converts the parameter to "double" and -// hence changes the binary representation. (Even if that is a compiler -// bug, it's probably required by now for binary compatibility!) -// -// A "-k ansi" compiler flag may be needed to get correct behaviour; -// passing the "in" parameters by reference apparently works too. At -// this time, none of these solutions is used by default. -// -// This stub-level hackery seems like it could be replaced inside of the -// stub interpreter, which could just manually convert "float" parameters -// (all of them) as special cases. But of course, that would slow the -// interpreter down on _every_ call, not just the ones that require it -// (such as this one). Tradeoffs! -// -static const TAO_Param_Data test1_float_paramdata [4] = { - { _tc_CORBA_Float , PARAM_RETURN , 0 }, - { _tc_CORBA_Float , PARAM_IN , 0 }, - { _tc_CORBA_Float , PARAM_OUT , 0 }, - { _tc_CORBA_Float , PARAM_INOUT , 0 } -}; - -extern const TAO_Call_Data test1_float_calldata; - -const TAO_Call_Data test1_float_calldata = { - "test_float", 1, - 4 , &test1_float_paramdata [0], - 0 , 0 -}; - -CORBA_Float -test1_test_float ( - test1_ptr target, - CORBA_Float in_a1, - CORBA_Float &out_a2, - CORBA_Float &inout_a3, - CORBA_Environment &env -) -{ - CORBA_Float _retval; - - // These three temporaries required due to MIPS compiler bug - CORBA_Float _in_a1 = in_a1; - CORBA_Float _out_a2 = out_a2; - CORBA_Float _inout_a3 = inout_a3; - - target -> data -> do_call (env, - &test1_float_calldata, - &_retval, - &_in_a1, - &_out_a2, - &_inout_a3); - return _retval; -} - -#else -DEFINE_TEST (float, Float); -#endif // MIPS - - -DEFINE_TEST (double, Double); -DEFINE_TEST (boolean, Boolean); -DEFINE_TEST (char, Char); -DEFINE_TEST (octet, Octet); - -/* -CORBA_Any * -test1_test_any (test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env) -{ - // XXX implement this stub! ... annoying that C++ mapping - // calls for so much special casing -} -*/ - - -DEFINE_TEST3 (TypeCode, TypeCode_ptr, TypeCode); -DEFINE_TEST3 (Principal, Principal_ptr, Principal); -DEFINE_TEST3 (Object, Object_ptr, Object); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (string, Char *, String); - -DEFINE_TEST (longlong, LongLong); -DEFINE_TEST (ulonglong, ULongLong); -DEFINE_TEST (wchar, WChar); - -// NOTE: C++ mapping has "in" strings as "const", which doesn't -// show up in this macro ... -DEFINE_TEST3 (wstring, WChar *, WString); - -#if !defined(NONNATIVE_LONGDOUBLE) -DEFINE_TEST (longdouble, LongDouble); -#endif - -#undef DEFINE_TEST - - -// -// Utility macros used to construct octet codes that are aligned -// on longword boundaries, and with a known byte order. This -// happens to use big endian encoding since it was convenient. -// (Longword alignment is a happy accident of the specification -// of OMG-IDL ... it could have been much worse!) -// -// It'd be much simpler to lay out such data in assembler! -// - -#if defined (WORDS_BIGENDIAN) -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((a) & 0xff) << 24) | (((b) & 0xff) << 16) \ - | (((c) & 0xff) << 8) | ((d) & 0xff)) -# define BIG_ENDIAN_LONG(x) (x) - -#else // LITTLE_ENDIAN -# define MAKE_BIG_LONG(a,b,c,d) \ - ((((d) & 0xff) << 24) | (((c) & 0xff) << 16) \ - | (((b) & 0xff) << 8) | ((a) & 0xff)) -# define BYTE_FROM(n,integer) (((integer)>>(8*(n)))&0xff) -# define BIG_ENDIAN_LONG(integer) \ - MAKE_BIG_LONG (BYTE_FROM(3,integer), BYTE_FROM(2,integer),\ - BYTE_FROM(1,integer), BYTE_FROM(0,integer)) -#endif - - - -// -// "x1" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x1 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '1'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (1), // only one struct member - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x1 (tk_except, sizeof oc_x1, - (unsigned char *)&oc_x1, 0); -CORBA_TypeCode_ptr _tc_test1_x1 = &tc_x1; - - - -// -// "x2" exception typecode ... must be longword aligned -// -static CORBA_Long oc_x2 [] = { - 0, // big endian flag + padding - BIG_ENDIAN_LONG (29), // length of ID string + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('E', 'n', 'g', '.'), - MAKE_BIG_LONG ('S', 'U', 'N', '.'), - MAKE_BIG_LONG ('C', 'O', 'M', '/'), - MAKE_BIG_LONG ('t', 'e', 's', 't'), - MAKE_BIG_LONG ('1', '/', 'x', '2'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - BIG_ENDIAN_LONG (1), // (empty) namelen + NUL - 0, - BIG_ENDIAN_LONG (2), // two struct members - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_objref), - BIG_ENDIAN_LONG (29), // type ID + NUL - MAKE_BIG_LONG ('I', 'D', 'L', ':'), // bytes of ID string - MAKE_BIG_LONG ('o', 'm', 'g', '.'), - MAKE_BIG_LONG ('o', 'r', 'g', '/'), - MAKE_BIG_LONG ('C', 'O', 'R', 'B'), - MAKE_BIG_LONG ('A', '/', 'O', 'b'), - MAKE_BIG_LONG ('j', 'e', 'c', 't'), - MAKE_BIG_LONG (':', '1', '.', '0'), - 0, - - BIG_ENDIAN_LONG (1), // (empty) member name + NUL - 0, - BIG_ENDIAN_LONG (tk_long) -}; -static CORBA_TypeCode tc_x2 (tk_except, sizeof oc_x2, - (unsigned char *)&oc_x2, 0); -CORBA_TypeCode_ptr _tc_test1_x2 = &tc_x2; - - -// -// parameter, exception, and call descriptions for "test_throw" -// -static const TAO_Param_Data test1_test_throw_paramdata [1] = { - { _tc_CORBA_Long, PARAM_IN, 0 } -}; - -static CORBA_TypeCode_ptr test1_test_throw_excepts [2] = { - &tc_x1, &tc_x2 -}; - -extern const TAO_Call_Data test1_test_throw_calldata; - -const TAO_Call_Data test1_test_throw_calldata = { - "test_throw", 1, - 1, &test1_test_throw_paramdata [0], - 2, &test1_test_throw_excepts [0] -}; - -// -// "test_throw" stub -// -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_test_throw_calldata, - &case_num); - data->Release (); - } -} - -// -// PLEASE EXIT -// - -static const TAO_Call_Data test1_please_exit_calldata = { - "please_exit", 0, - 0, 0, - 0, 0 -}; - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -) -{ - STUB_Object *data; - - if (target->QueryInterface (IID_STUB_Object, (void **)&data) - != NOERROR) - env.exception (new CORBA_INV_OBJREF (COMPLETED_NO)); - else { - data->do_call (env, &test1_please_exit_calldata - ); - data->Release (); - } -} - diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.h b/TAO/IIOP/tests/Cubit/TAO/test1.h deleted file mode 100644 index 63e409d36c3..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -// @(#)test1.hh 1.2 95/09/12 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST interface for "test1" -// - -#ifndef _TEST1_HH -#define _TEST1_HH - -#include -#include - - -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ - -typedef CORBA_UShort test1_ushort; -typedef CORBA_ULong test1_ulong; - -typedef CORBA_LongLong test1_longlong; -typedef CORBA_ULongLong test1_ulonglong; -typedef CORBA_LongDouble test1_longdouble; - -typedef CORBA_Object test1; -typedef test1 *test1_ptr; - -#define DECL_TEST(typename, truetype) \ - truetype \ - test1_test_ ## typename ( \ - test1_ptr target, \ - truetype in_a1, \ - truetype &out_a2, \ - truetype &inout_a3, \ - CORBA_Environment &env \ - ) - -void test_illegal (test1_ptr target, CORBA_Environment &env); -void test1_test_void (test1_ptr target, CORBA_Environment &env); - -DECL_TEST (short, CORBA_Short); -DECL_TEST (long, CORBA_Long); -DECL_TEST (ushort, CORBA_UShort); -DECL_TEST (ulong, CORBA_ULong); -DECL_TEST (float, CORBA_Float); -DECL_TEST (double, CORBA_Double); -DECL_TEST (boolean, CORBA_Boolean); -DECL_TEST (char, CORBA_Char); -DECL_TEST (octet, CORBA_Octet); - -CORBA_Any * -test1_test_any ( - test1_ptr target, - const CORBA_Any &in_a1, - CORBA_Any *&out_a2, - CORBA_Any &inout_a3, - CORBA_Environment &env -); - -DECL_TEST (TypeCode, CORBA_TypeCode_ptr); -DECL_TEST (Principal, CORBA_Principal_ptr); -DECL_TEST (Object, CORBA_Object_ptr); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (string, CORBA_String); - -DECL_TEST (longlong, CORBA_LongLong); -DECL_TEST (ulonglong, CORBA_ULongLong); -DECL_TEST (wchar, CORBA_WChar); - -// NOTE: CORBA C++ mapping says the "in" string is const -DECL_TEST (wstring, CORBA_WString); - -DECL_TEST (longdouble, CORBA_LongDouble); - -#undef DECL_TEST - -extern CORBA_TypeCode_ptr _tc_test1_x1; - -class test1_x1 : public CORBA_UserException { - public: - CORBA_Long case_num; - - test1_x1 (CORBA_Long n) - : CORBA_UserException (_tc_test1_x1), case_num (n) - { } -}; - -extern CORBA_TypeCode_ptr _tc_test1_x2; - -class test1_x2 : public CORBA_UserException { - public: - CORBA_Object_ptr obj; - CORBA_Long case_num; - - test1_x2 (CORBA_Object_ptr obj1, - CORBA_Long n) - : CORBA_UserException (_tc_test1_x2), - obj (obj1), case_num (n) { } - - ~test1_x2 () - { CORBA_release (obj); } -}; - -void -test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) -); - -void -test1_please_exit ( - test1_ptr target, - CORBA_Environment &env -); - -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ - -#endif // _TEST1_HH - diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.idl b/TAO/IIOP/tests/Cubit/TAO/test1.idl deleted file mode 100644 index d47ab676ef5..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1.idl +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -// @(#)test1.idl 1.1 95/09/11 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -// TEST basic marshaling tests for all IDL primitive types, modes -// -// This test omits constructed types (struct, union, enum, sequence, and -// array types), and only tests very simple user defined exceptions. -// -// Values returned are well defined functions of the input values: -// -// * For numeric types (octet, short, long, longlong, float, double, -// longdouble, and unsigned variants) the value is cubed. -// * For Boolean, it's the negation. -// * For Any, TypeCode, Principal, Object, char and wchar, -// string and wstring, it's the input value. -// -// The "return" and "out" parameter is the function of the "in" parameter; -// the "inout" parameter is the function of its original value. -// -// The "echo" test has all output values be the input values, with no -// changes to the bit patterns originally transmitted. While easier to -// use to identify some kinds of problem, it is not as complete a test. -// - -#define DECL_TEST(type) \ - type test_ ## type ( in type a1, out type a2, inout type a3) - -#pragma prefix "Eng.SUN.COM" // only for Sun-defined interfaces - -interface test1 { - void test_void (); - - typedef unsigned short ushort; - typedef unsigned long ulong; - - typedef long long longlong; - typedef unsigned long long ulonglong; - typedef long double longdouble; - - DECL_TEST (short); - DECL_TEST (long); - DECL_TEST (ushort); - DECL_TEST (ulong); - DECL_TEST (float); - DECL_TEST (double); - DECL_TEST (boolean); - DECL_TEST (char); - DECL_TEST (octet); - DECL_TEST (any); - DECL_TEST (TypeCode); - DECL_TEST (Principal); - DECL_TEST (Object); // CORBA::Object - DECL_TEST (string); // unbounded string - - DECL_TEST (longlong); - DECL_TEST (ulonglong); - DECL_TEST (wchar); - DECL_TEST (wstring); // unbounded wstring - DECL_TEST (longdouble); - - // - // All cases, "case_num" in the exception is the same as the 'in' param - // * negative or zero, throws x1 - // * positive even cases, throws x2 with obj = null objref - // * positive odd cases, throws x2 with obj = target objref - // - exception x1 { long case_num; }; - exception x2 { Object obj; long case_num; }; - - void test_throw (in long case_num) raises (x1, x2); - - // - // Aid for test cleanup in case server's not told to quit after - // being idle for some time period - // - oneway void please_exit (); -}; - diff --git a/TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp b/TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp deleted file mode 100644 index 20f7ac6010f..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1_clnt.cpp +++ /dev/null @@ -1,682 +0,0 @@ -// $Id$ - -// @(#)test1_clnt.cpp 1.5 95/09/24 -// Copyright 1995 by Sun Microsystems, Inc. -// All Rights Reserved -// -// TEST client driver for "test1" -// - -#ifdef USE_IOSTREAM -#include -#endif - -#include -#include -#include - -#if unix -# include - -#else // windows - -#endif // unix - -#include "test1.h" -#include - - -ACE_RCSID(TAO, test1_clnt, "$Id$") - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -// All tests are specified so that the return value and "out" (second) -// parameters are easily tested functions of the "in" (first) -// parameter, and the "inout" (third) parameter is the same function -// the its initial value. Caller is expected to specify two different -// "in" values. This helps make the marshaled bits vary, and turn up -// a class of potential problems that'd be hidden if parameter order -// had no effect on the test. -// -// PERFORM_TEST calls a test for a given type, reporting in cases -// where the ORB or operation failed. The COMPARE symbol can be -// redefined to achieve different functions -- e.g. cubing numbers, -// identity, negation, etc. It should return true iff the correct -// result was returned. -// -// BAD_COMPARE_VALUES is to produce diagnostics when a test fails, -// showing the actual and expected values of returned parameters. -// This helps diagnose specific porting problems. -// -// The RELEASE symbol may be defined to free memory, eliminating -// client side memory leaks in the test. -// -#define RELEASE(X) // NOP by default -#define PERFORM_TEST(name,type,value1,value2) \ - { \ - CORBA_ ## type v1, v2, v3; \ - \ - v1 = (CORBA_ ## type)(value1); \ - v2 = 0; \ - v3 = (CORBA_ ## type)(value2); \ - \ - test_count++; \ - v1 = test1_test_ ## name (target, v1, v2, v3, env); \ - if (env.exception () != 0) { \ - print_exception (env.exception (), "perform test_" #name); \ - error_count++; \ - } else if (!COMPARE (CORBA_ ## type, v1, value1) \ - || !COMPARE (CORBA_ ## type, v2, value1) \ - || !COMPARE (CORBA_ ## type, v3, value2) ) { \ - ACE_OS::fprintf (stderr, "bad comparison, test_" #name "\n"); \ - BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - error_count++; \ - } \ - RELEASE (v1); RELEASE (v2); RELEASE (v3); \ - } - -// -// This messing about is because the ostream op << cannot always -// be used with all kinds of data ... e.g. LongDouble, TypeCode. -// -#ifdef USE_IOSTREAM -# define DO_IO(x) x -#else -# define DO_IO(x) -#endif -#define BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) \ - DO_IO( cerr << " v1=" << v1; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v2=" << v2; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value1) << "\n"; \ - cerr << " v3=" << v3; \ - cerr << " expecting " << EXPVAL(CORBA_ ## type, value2) << "\n"); -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) - -// test utility -- should be able to just use is_equivalent() directly -// but this implementation uses null pointers for nil, so this must -// check for nulls first. (May be noncompliant with C++ mapping!) - -static CORBA_Boolean -compare_objrefs (CORBA_Object_ptr v1, - CORBA_Object_ptr v2) -{ - CORBA_Boolean temp; - CORBA_Environment env; - - if (v1 == v2) - return 1; - - if (CORBA_is_nil (v1)) - return CORBA_is_nil (v2); - - temp = v1->_is_equivalent (v2, env); - - if (env.exception () != 0) - { - print_exception (env.exception (), "compare objref"); - return 0; - } - return temp; -} - - -// -// Helper routine to help sure math (especially for floating point) -// gets done correctly. -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - -static int skip_longdouble = 0; - -// This just performs the tests ... - -void -do_tests (test1_ptr target, - unsigned loop_count, - unsigned &test_count, - unsigned &error_count) -{ - int count; - - for (count = 0; count < loop_count; count++) - { - CORBA_Environment env; - CORBA_Environment env2; // XXX - - // - // test_void - // - test_count++; - test1_test_void (target, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "perform test_void"); - error_count++; - } - - // - // Numeric tests ... try some variety in computation, no real - // rationale in the choice of initial parameter values except - // not to use the same values all the time. - // -#define EXPVAL(type,original_value) ((type) cube((type)(original_value))) -#define COMPARE(type,retval,original_value) \ - ((retval) == EXPVAL(type, original_value)) - - PERFORM_TEST (octet, Octet, count + 29, count - 22); - - PERFORM_TEST (short, Short, count - 23, count + 19); - PERFORM_TEST (ushort, UShort, count + 23, count - 19); - - PERFORM_TEST (long, Long, count - 17, count + 20); - PERFORM_TEST (ulong, ULong, count + 17, count - 20); - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - PERFORM_TEST (longlong, LongLong, count - 177, count + 3); - PERFORM_TEST (ulonglong, ULongLong, count + 177, count - 3); -#endif // !NONNATIVE_LONGLONG - -#if !defined (i386) - // - // XXX not sure what's wrong with the COMPARE macro with respect to - // floating point on x86, since fprintf shows the values basically - // look correct ... but these float/double tests fail. - // - PERFORM_TEST (float, Float, count - 0.29, count + 3.14159); - PERFORM_TEST (double, Double, count * 1.77, count * 2.71); -#endif // !defined (i386) - - -#ifndef NONNATIVE_LONGDOUBLE -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - // - // don't try this between two platforms that don't provide - // arithmetic support for LongDouble values ... - // - if (!skip_longdouble) - PERFORM_TEST (longdouble, LongDouble, - count - 2.33, count * 3.14159); - -# undef BAD_COMPARE_VALUES -# define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) \ - BAD_COMPARE_VALUE_OUT(type,v1,v2,v3,value1,value2) -#endif // !NONNATIVE_LONGDOUBLE - -#undef COMPARE -#undef EXPVAL - - - // - // Boolean -- negation - // -#define EXPVAL(type,original_value) (!(type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (boolean, Boolean, - (count & 0x01) != 0, (count & 0x01) == 0); -#undef COMPARE -#undef EXPVAL - - // - // Char, WChar -- identity - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (((type)(retval)) == EXPVAL(type,original_value)) - - PERFORM_TEST (char, Char, count + 26, count - 5); - PERFORM_TEST (wchar, WChar, count, count + 25); -#undef COMPARE -#undef EXPVAL - - // - // Object_ptr -- identity (special comparision) - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original_value) \ - (compare_objrefs (retval, original_value) == 1) -#undef RELEASE -#define RELEASE(obj) \ - { CORBA_release (obj); } - - PERFORM_TEST (Object, Object_ptr, target, CORBA_Object::_nil ()); -#undef COMPARE -#undef EXPVAL - - // - // TypeCode_ptr -- identity (special comparision), and verifies - // that most of the built-in typecode constants exist. - // - // XXX should try this on all standard and system exceptions! - // - // XXX this currently tests only marshaling/unmarshaling of - // "no parameter" TypeCodes ... complex ones (objref, struct, - // union, enum, sequence, array, alias, exception) are _NOT_ - // currently attempted. - // - // XXX for the simple typecodes (string, wstring), the single - // "bound" parameter isn't exercised/verified as it should be. - // -#define EXPVAL(type,original_value) ((type)(original_value)) -#define COMPARE(type,retval,original) \ - (((retval) == (original)) || \ - ((retval)->_kind == (original)->_kind)) - -#undef RELEASE -#define RELEASE(tc) \ - { CORBA_release (tc); } - -#undef BAD_COMPARE_VALUES -#define BAD_COMPARE_VALUES(type,v1,v2,v3,value1,value2) // NOP - - { - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Null, _tc_CORBA_Void); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Short, _tc_CORBA_UShort); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Long, _tc_CORBA_ULong); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongLong, _tc_CORBA_ULongLong); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Float, _tc_CORBA_Double); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Boolean, _tc_CORBA_Octet); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Any, _tc_CORBA_TypeCode); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Principal); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_Char, _tc_CORBA_String); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_WChar, _tc_CORBA_WString); - - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_LongDouble, _tc_CORBA_Octet); - - // - // Try all of the standard exception typecodes. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_UNKNOWN, _tc_CORBA_BAD_PARAM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_MEMORY, _tc_CORBA_IMP_LIMIT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_COMM_FAILURE, _tc_CORBA_INV_OBJREF); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJECT_NOT_EXIST, _tc_CORBA_NO_PERMISSION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTERNAL, _tc_CORBA_MARSHAL); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INITIALIZE, _tc_CORBA_NO_IMPLEMENT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BAD_TYPECODE, _tc_CORBA_BAD_OPERATION); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_NO_RESOURCES, _tc_CORBA_NO_RESPONSE); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_PERSIST_STORE, _tc_CORBA_BAD_INV_ORDER); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_TRANSIENT, _tc_CORBA_FREE_MEM); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INV_IDENT, _tc_CORBA_INV_FLAG); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_INTF_REPOS, _tc_CORBA_BAD_CONTEXT); - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_OBJ_ADAPTER, _tc_CORBA_DATA_CONVERSION); - - // - // All the built-in "user defined" system exceptions. - // - PERFORM_TEST (TypeCode, TypeCode_ptr, - _tc_CORBA_BadKind, _tc_CORBA_Bounds); - } -#undef COMPARE -#undef RELEASE - - // - // string (unbounded)-- identity (special comparision) - // -#define COMPARE(type,retval,original_value) \ - (strcmp ((char *)(retval), (char*)(original_value)) == 0) -#undef RELEASE -#define RELEASE(obj) CORBA_string_free(obj) - static const CORBA_Char str1 [] = "small"; - static const CORBA_Char str2 [] = - "relatively long string, constructed" - " with the aid of C++ implicit string" - " catenation, which simplifies much stuff"; - PERFORM_TEST (string, String, str1, str2); -#undef COMPARE -#undef RELEASE - - - // XXX any, principal, wstring ... output _is_ input - - - // - // Three test cases involve throwing user-defined exceptions. - // - { - CORBA_Exception *xp; - - // - // Case one: with parameter <= zero, must throw - // an "x1" exception whose "case_num" is that parameter - // - test_count++; - - test1_test_throw (target, -5, env); - if (env.exception () != 0) { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x1->id (env2)) != 0) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } - else - { - test1_x1 *xp2 = (test1_x1 *) xp; - - if (xp2->case_num != -5) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - // else, right exception was thrown - } - } - else - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 1, " - "no exception thrown !!\n"); - } - - - // - // Case two: with positive odd parameter, must throw - // an "x2" exception whose obj is null, and whose case_num - // is that parameter - // - test_count++; - - test1_test_throw (target, 101, env); - if (env.exception () != 0) - { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } - else - { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 101) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - if (!CORBA_is_nil (xp2->obj)) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "non-null objref thrown\n"); - } - - // else, right exception was thrown - } - } - else - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 2, " - "no exception thrown !!\n"); - } - - -#if 0 - // 18-sept-95: commented this out. Work remains to be done in - // this area: (a) ServerRequest::target operation unimplemented, - // so for the servers of current interest this test is no help; - // (b) probable pointer leak in exceptions holding data. - - // - // Case three: with positive even parameter, must throw - // an "x2" exception whose obj is the target, and whose - // case_num is that parameter - // - test_count++; - - test1_test_throw (target, 42, env); - if (env.exception () != 0) - { - xp = env.exception (); - - if (strcmp ((char *)xp->id (), - (char *) _tc_test1_x2->id (env2)) != 0) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong exception thrown (id = '%s')\n", - xp->id ()); - } - else - { - test1_x2 *xp2 = (test1_x2 *) xp; - - if (xp2->case_num != 42) { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "wrong value (case_num = '%ld')\n", - xp2->case_num); - } - - CORBA_Boolean status; - - status = target->_is_equivalent (xp2->obj, env); - - if (env.exception () != 0) - { - error_count++; - print_exception (env.exception (), - "test_throw/3 call to is_equivalent"); - } - else if (status != 1) - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "non-equivalent objref thrown\n"); - } - - // else, right exception was thrown - } - } - else - { - error_count++; - ACE_OS::fprintf (stderr, "test_throw case 3, " - "no exception thrown !!\n"); - } - - env.clear (); -#endif // 0 - - } - - // - // test_illegal -- generate a BAD_OPERATION system exception - // from the remote process - // - test_count++; - test_illegal (target, env); - if (env.exception () == 0 - || ACE_OS::strcmp ((char *) env.exception()->id(), - (char *) _tc_CORBA_BAD_OPERATION->id (env2)) != 0) - { - ACE_OS::fprintf (stderr, "couldn't generate BAD_OPERATION exception\n"); - error_count++; - } - } -} - -int -main (int argc, char *argv[]) -{ - CORBA_ORB_ptr orb_ptr; - CORBA_Environment env; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - unsigned loop_count = 1; - unsigned tests = 0, errors = 0; - int exit_later = 0; - - orb_ptr = CORBA_ORB_init (argc, argv, "internet", env); - - if (env.exception () != 0) - { - dexc (env, "ORB initialisation"); - return 1; - } - - // - // Parse and verify parameters. - // - ACE_Get_Opt get_opt (argc, argv, "dln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) - { - case 'd': // debug flag - TAO_debug_level++; - continue; - - case 'l': // skip "long double" test - skip_longdouble++; - continue; - - case 'n': // loop count - loop_count = (unsigned) ACE_OS::atoi (get_opt.optarg); - continue; - - case 'O': // stringified objref - { - objref = orb_ptr->string_to_object ( - (CORBA_String)get_opt.optarg, env); - if (env.exception () != 0) - { - dexc (env, "string2object"); - return 1; - } - } - continue; - - case 'x': - exit_later++; - continue; - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-l]" - " [-n loopcount]" - " [-O objref]" - " [-x]" - "\n", argv [0] - ); - return 1; - } - - if (CORBA_is_nil (objref) == 1) { - ACE_OS::fprintf (stderr, "%s: must identify non-null target objref\n", - argv [0]); - return 1; - } - - - do_tests (objref, loop_count, tests, errors); - - char *progname = ACE_OS::strrchr (argv [0], '/'); - - if (progname != 0) - progname += 1; - else - progname = argv [0]; - - ACE_OS::fprintf (stderr, "%s: %d loops, %d tests (%d errors)\n", - progname, loop_count, tests, errors); - - if (exit_later) - { - test1_please_exit (objref, env); - if (env.exception () != 0) - print_exception (env.exception (), "test1_please_exit"); - } - - CORBA_release (objref); - - return errors != 0; -} - -#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) -template CORBA_Octet cube(CORBA_Octet); -template CORBA_Short cube(CORBA_Short); -template CORBA_UShort cube(CORBA_UShort); -template CORBA_Long cube(CORBA_Long); -template CORBA_ULong cube(CORBA_ULong); -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -template CORBA_LongLong cube(CORBA_LongLong); -template CORBA_ULongLong cube(CORBA_ULongLong); -#endif // !NONNATIVE_LONGLONG -template CORBA_Float cube(CORBA_Float); -template CORBA_Double cube(CORBA_Double); -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -template CORBA_LongDouble cube(CORBA_LongDouble); -#endif // !NONNATIVE_LONGDOUBLE -#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ diff --git a/TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp b/TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp deleted file mode 100644 index 7632847d16b..00000000000 --- a/TAO/IIOP/tests/Cubit/TAO/test1_svr.cpp +++ /dev/null @@ -1,694 +0,0 @@ -// $Id$ - -// @(#)test1_svr.cpp 1.7 95/09/25 -// Copyright 1995 by Sun Microsystems Inc. -// All Rights Reserved -// -// TEST: simple IIOP server for "test1.idl" interface. -// -// Starts up, builds an objref, prints its string, listens for -// messages, responds to them. -// - -#include -#include -#include - -#if unix -# include // for getopt on some systems - -#else // windows - -#endif - -#include "test1.h" -#include -#include - -#include - - -ACE_RCSID(TAO, test1_svr, "$Id$") - -#if !defined (_WIN32) -extern char *optarg; // missing on some platforms -#endif - -// -// Skeleton code ... just a macro for a bunch of DSI-based method -// code, in lieu of having an IDL compmiler generate static skeletons. -// Static skeletons would be more efficient; most mallocation could go -// away. -// -// Use by: defining OPERATION macro, call DEFINE_SKEL3 as needed, then -// undef OPERATION. -// -// NOTE: "v1_copy" below is needed to work around a bug with the -// HP9000 G++ 2.6.3 compiler, with "LongLong". -// -// XXX this could probably be a template ... or could even be merged -// directly into the Dynamic Implementation Routine below. -// -// XXX we must currently use IN_COPY_VALUE since the memory consumed -// by the parameters must be deallocated by the ORB. When we get an -// updated version of DSI which provides "send it now" semantics, -// these should preallocate the values and not use IN_COPY_VALUE. A -// net decrease in malloc overhead can be had that way. (NVList -// should also get a public constructor, and a way to provide the -// buffer.) -// -#define DEFINE_SKEL3(name,truetype,truetypename) \ - static void \ - _test1_test_ ## name ( \ - CORBA_ServerRequest &req, \ - CORBA_Object_ptr obj, \ - CORBA_Environment &env \ - ) \ - { \ - CORBA_NVList_ptr nvlist; \ - CORBA_ ## truetype scratch = 0; \ - CORBA_Any temp_value (_tc_CORBA_ ## truetypename, \ - &scratch, 0); \ - \ - req.orb ()->create_list (3, nvlist); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_IN, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_OUT, env); \ - (void) nvlist->add_value (0, temp_value, \ - CORBA_IN_COPY_VALUE|CORBA_ARG_INOUT, env); \ - \ - req.params (nvlist, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, req.params"); \ - return; \ - } \ - \ - CORBA_ ## truetype *v1, *v2, *retval; \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (0)->value ()->value (); \ - v2 = new CORBA_ ## truetype; \ - *v2 = (CORBA_ ## truetype) OPERATION (*v1); \ - retval = new CORBA_ ## truetype; \ - *retval = (CORBA_ ## truetype) OPERATION (*v1); \ - \ - CORBA_Any_ptr any_val; \ - \ - any_val = nvlist->item (1)->value (); \ - any_val->replace (any_val->type (), v2, 1, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, val2 replace"); \ - return; \ - } \ - \ - v1 = (CORBA_ ## truetype *) nvlist->item (2)->value ()->value (); \ - CORBA_ ## truetype v1copy = *v1; \ - *v1 = (CORBA_ ## truetype) OPERATION (v1copy); \ - \ - any_val = new CORBA_Any (_tc_CORBA_ ## truetypename, \ - retval, 1); \ - req.result (any_val, env); \ - if (env.exception () != 0) { \ - dexc (env, "test1_test_" # name "skeleton, result"); \ - return; \ - } \ - } \ - extern TAO_Call_Data test1_ ## name ## _calldata; - - -extern const TAO_Call_Data test1_void_calldata; - -static void -_test1_test_void (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - - req.orb ()->create_list (0, nvlist); - req.params (nvlist, env); - - if (env.exception () != 0) - dexc (env, "test_throw, get params"); -} - - -// -// Dynamic Skeleton methods for numeric types ... these all just -// cube their parameters in various permutations -// -template -Type cube (Type arg) -{ - Type temp = arg; - - temp = temp * arg; - temp = temp * arg; - return temp; -} - -#define OPERATION(n) cube(n) - -DEFINE_SKEL3 (octet, Octet, Octet) - -DEFINE_SKEL3 (short, Short, Short) -DEFINE_SKEL3 (ushort, UShort, UShort) - -DEFINE_SKEL3 (long, Long, Long) -DEFINE_SKEL3 (ulong, ULong, ULong) - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -DEFINE_SKEL3 (longlong, LongLong, LongLong) -DEFINE_SKEL3 (ulonglong, ULongLong, ULongLong) -#endif // !NONNATIVE_LONGLONG - -DEFINE_SKEL3 (float, Float, Float) -DEFINE_SKEL3 (double, Double, Double) - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -DEFINE_SKEL3 (longdouble, LongDouble, LongDouble) -#endif // !NONNATIVE_LONGDOUBLE - -#undef OPERATION - -// -// Dynamic Skeleton methods for Boolean type ... just negates its -// parameters -// -#define OPERATION(x) (!(x)) -DEFINE_SKEL3 (boolean, Boolean, Boolean) -#undef OPERATION - -// -// For character types, output is same as input, no magic needed. -// -#define OPERATION(x) (x) -DEFINE_SKEL3 (char, Char, Char) -DEFINE_SKEL3 (wchar, WChar, WChar) -#undef OPERATION - -// -// For objref, typecode, output is same as input but duplication -// is needed -// -#define OPERATION(x) ((x) ? (x)->AddRef() : 0, x) -DEFINE_SKEL3 (Object, Object_ptr, Object) -DEFINE_SKEL3 (TypeCode, TypeCode_ptr, TypeCode) -#undef OPERATION - -// -// For string, output is copy of input -// -#define OPERATION(x) (CORBA_string_copy(x)) -DEFINE_SKEL3 (string, String, String) -#undef OPERATION - -// -// For wstring, output is copy of input -// -#define OPERATION(x) (CORBA_wstring_copy(x)) -DEFINE_SKEL3 (wstring, WString, WString) -#undef OPERATION - -// -// XXX IMPLEMENT THE REST OF THE DATA TYPES -// -// any, principal -- out is in -// - - -// -// All cases, "case_num" in the exception is the same as the 'in' param -// * negative or zero, throws x1 -// * positive even cases, throws x2 with obj = null objref -// * positive odd cases, throws x2 with obj = target objref -// -// exception x1 { long case_num; }; -// exception x2 { Object obj; long case_num; }; -// -// void test_throw (in long case_num) raises (x1, x2); -// - -extern const TAO_Call_Data test1_test_throw_calldata; - -static void -_test1_test_throw (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_Long); - CORBA_Long value; - - req.orb ()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) - { - dexc (env, "test_throw, get params"); - return; - } - - value = *(CORBA_Long *)nv->value ()->value (); - if (env.exception () != 0) - { - dexc (env, "test_throw, param value"); - return; - } - - CORBA_Any_ptr any; - - if (value <= 0) - { - test1_x1 *x; - - x = new test1_x1 (value); - any = new CORBA_Any (_tc_test1_x1, x, 1); - - } - else if (value & 0x01) - { - test1_x2 *x; - - x = new test1_x2 (CORBA_Object::_nil (), value); - any = new CORBA_Any (_tc_test1_x2, x, 1); - - } - else - { -#if 0 - test1_x2 *x; - - x = new test1_x2 (req.oa()->target (), value); - any = new CORBA_Any (_tc_test1_x2, x, 1); -#else - // - // XXX right now, we don't have a target() operation on the - // BOA ... needs to be added. Verify the client side memory - // leak of pointers embedded in user exceptions is fixed, too. - // - env.exception (new CORBA_IMP_LIMIT (COMPLETED_NO)); - return; -#endif - } - - req.exception (USER_EXCEPTION, any, env); -} - - -// -// This table is used to associate operation names with the Dynamic -// Skeleton method ... someday it could return static skeletons. -// -#define DECL_SKEL(name) \ - { & test1_ ## name ## _calldata, _test1_test_ ## name } - -static const TAO_Skel_Entry test1_operations [] = { - DECL_SKEL (void), - - DECL_SKEL (octet), - DECL_SKEL (char), - - DECL_SKEL (wchar), - - DECL_SKEL (short), - DECL_SKEL (ushort), - DECL_SKEL (long), - DECL_SKEL (ulong), - -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... - DECL_SKEL (longlong), - DECL_SKEL (ulonglong), -#endif - - DECL_SKEL (float), - DECL_SKEL (double), - -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... - DECL_SKEL (longdouble), -#endif // !NONNATIVE_LONGDOUBLE - - DECL_SKEL (boolean), - - DECL_SKEL (Object), - DECL_SKEL (TypeCode), - - DECL_SKEL (string), - DECL_SKEL (wstring), - - { & test1_test_throw_calldata, _test1_test_throw }, - - { 0, 0 } -}; - - -// -// Dispatch to method code ... -// -// Knows how to interpret "context" to get target objref, and where to -// get second level skeletons for that target. Both of those operations -// will generally be abstracted (into library and stub code) so the main -// body of this routine would be invisible to most applications. -// -// However, there are applications that need to do this stuff themselves -// (like bridging between environments, e.g. different ORBs, languages, or -// other object systems). Everything needed to work without using an IDL -// compiler is a public, supported API. -// -static void -level1_skeleton (CORBA_OctetSeq &key, - CORBA_ServerRequest &req, - void *context, - CORBA_Environment &env) -{ - // - // Verify that the target object and "this" object have the - // same key. Normally, this would be used to figure out - // which object was the target, and hence which operations - // vector to dispatch the request. - // - CORBA_OctetSeq *obj_key; - - obj_key = (CORBA_OctetSeq *) context; - if (obj_key->length != key.length - || ACE_OS::memcmp (obj_key->buffer, key.buffer, - obj_key->length) != 0) - { - env.exception (new CORBA_OBJECT_NOT_EXIST (COMPLETED_NO)); -#ifdef DEBUG - if (TAO_debug_level) - dmsg_opaque ("request to nonexistent object, key = ", - key.buffer, key.length); -#endif - return; - } - - // - // Find a "level 2 skeleton" for this operation, then - // call it with the right per-object state. - // - const TAO_Skel_Entry *entry; - CORBA_String opname; - - opname = req.op_name (); - for (entry = &test1_operations [0]; entry->op_descriptor; entry++) - { - if (strcmp ((char *)opname, entry->op_descriptor->opname) == 0) - { - // We pass a bogus object because this version of the cubit example is - // so tightly coupled that it doesn't use it. Future modifications will, - // hopefully! - CORBA_Object_ptr bogus_object = 0; - entry->impl_skeleton (req, bogus_object, env); - return; - } - } - - // - // XXX True top-level skeleton code would also have to understand - // the built-in operations: - // - // * _is_a (for narrowing tests) ... can be derived by searching an - // appropriately structured graph of level2 skeletons. - // - // * _non_existent ... if the level1 skeleton consults a module - // which understands object lifespans, this should be simple. - // - // * _get_interface ... could either (a) fail; (b) return the ref - // from some IFR; or most interestingly (c) return a ref to some - // code in this process that can answer all IFR queries from the - // skeleton data structures. - // - // * _get_implementation ... return some administrative hook to - // the object implementation: - // - // No other legal operations start with a character that's not an - // ASCII alphanumeric, for what it's worth. - // - // The skeleton might want to use data in the object key to find - // the objref's type; if it's integrated with object creation, and - // an per-process implementation repository, this should be easy. - // - - // - // bypass level 2 skeletons for this one ... - // - if (strcmp ((char *) opname, "please_exit") == 0) - { - dmsg ("I've been asked to shut down..."); - req.oa ()->please_shutdown (env); - dexc (env, "please_exit, please_shutdown"); - return; - } - - // - // No match. Operation not implemented; say so. - // - dmsg1 ("unknown operation, %s", opname); - env.exception (new CORBA_BAD_OPERATION (COMPLETED_NO)); -} - - -// -// Create and print the objref, listen for calls on it until done. -// -extern void -print_exception (const CORBA_Exception *, const char *, FILE *f=stdout); - -int -OA_listen (CORBA_ORB_ptr orb_ptr, - CORBA_BOA_ptr oa_ptr, - CORBA_String key, - int idle) -{ - // - // Create the object we'll be implementing. - // - CORBA_OctetSeq obj_key; - CORBA_Object_ptr obj; - CORBA_Environment env; - - obj_key.buffer = (CORBA_Octet *) key; - obj_key.length = obj_key.maximum = ACE_OS::strlen (key); - - obj = oa_ptr->create (obj_key, (CORBA_String) "", env); - if (env.exception () != 0) - { - print_exception (env.exception (), "BOA::create"); - return 1; - } - - // - // Stringify the objref we'll be implementing, and - // print it to stdout. Someone will take that string - // and give it to some client. - // - CORBA_String str; - - str = orb_ptr->object_to_string (obj, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "object2string"); - return 1; - } - ACE_OS::puts ((char *)str); - ACE_OS::fflush (stdout); - dmsg1 ("listening as object '%s'", str); - - // - // Clean up -- "key" is sufficient to dispatch all requests. - // - CORBA_release (obj); - CORBA_string_free (str); - env.clear (); - - // - // Handle requests for this object until we're killed, or one of - // the methods makes us exit. - // - // NOTE: apart from registering the top level skeleton, the rest - // of this loop is exactly what BOA::run() does. It's here to - // show there's no magic. - // -#if 0 - oa_ptr->register_dir (level1_skeleton, &obj_key, env); -#else - oa_ptr->register_dir (oa_ptr->dispatch, &obj_key, env); -#endif - if (env.exception () != 0) - { - print_exception (env.exception (), "register_dir"); - return 1; - } - - for (;;) { - if (idle == -1) - oa_ptr->get_request (0, 0, env); - else - { - timeval tv; - - tv.tv_sec = idle; - tv.tv_usec = 0; - oa_ptr->get_request (0, &tv, env); - } - - CORBA_Exception_ptr xp; - - if ((xp = env.exception ()) != 0) - { - CORBA_Environment env2; // XXX - char *id; - - id = env.exception ()->id (); - - // - // We get BAD_INV_ORDER if we call get_request() after - // shutdown was initiated. Simpler to rely on that - // than to arrange any handshaking in this simple app. - // - if (strcmp (id, _tc_CORBA_BAD_INV_ORDER->id (env2)) == 0) - { - break; - - // - // Other exceptions are errors. - // - } - else - { - print_exception (env.exception (), "BOA::get_request"); - return 1; - } - } - env.clear (); - } - - // - // Shut down the OA -- recycles all underlying resources (e.g. file - // descriptors, etc). - // - // XXX shutdown is not quite the same as release, unless we want mem - // leaks to cause some rude failure modes. BOA just hasn't been - // updated yet to have any handshake about this though. - // - oa_ptr->Release (); - return 0; -} - - -// -// Standard command line parsing utilities used. -// -int -main (int argc, char *argv[]) -{ - CORBA_Environment env; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - CORBA_String key = (CORBA_String) "elvis"; - char *oa_name = 0; - char *orb_name = "internet"; - int idle = -1; - - // - // Parse the command line, get options - // - ACE_Get_Opt get_opt (argc, argv, "di:ln:O:x"); - int c; - - while ((c = get_opt ()) != -1) - switch (c) - { - case 'd': // more debug noise - TAO_debug_level++; - continue; - - case 'i': // idle seconds b4 exit - idle = ACE_OS::atoi (get_opt.optarg); - continue; - - case 'k': // key (str) - key = (CORBA_String) get_opt.optarg; - continue; - - case 'o': // orb name - orb_name = get_opt.optarg; - continue; - - case 'p': // portnum - oa_name = get_opt.optarg; - continue; - - // XXX set debug filters ... - - // - // XXX ignore OMG-specified options ... hope nobody ever tries - // to use that "-ORB* param" and "-OA* param" syntax, it flies - // in the face of standard command parsing algorithms which - // require single-character option specifiers. - // - - - case '?': - default: - ACE_OS::fprintf (stderr, "usage: %s" - " [-d]" - " [-i idle_seconds]" - " [-k object_key=elvis]" - " [-o orbname=internet]" - " [-p oa_name]" - "\n", argv [0] - ); - return 1; - } - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init"); - return 1; - } - - // - // The BOA may or may not actually be named ... - // - oa_ptr = CORBA_BOA::get_named_boa (orb_ptr, oa_name, env); - if (env.exception () != 0) - { - print_exception (env.exception (), "OA init"); - return 1; - } - - return OA_listen (orb_ptr, oa_ptr, key, idle); -} - -#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) -template CORBA_Octet cube(CORBA_Octet); -template CORBA_Short cube(CORBA_Short); -template CORBA_UShort cube(CORBA_UShort); -template CORBA_Long cube(CORBA_Long); -template CORBA_ULong cube(CORBA_ULong); -#if !defined (NONNATIVE_LONGLONG) - // don't try this on platforms that don't support - // math on longlongs ... -template CORBA_LongLong cube(CORBA_LongLong); -template CORBA_ULongLong cube(CORBA_ULongLong); -#endif // !NONNATIVE_LONGLONG -template CORBA_Float cube(CORBA_Float); -template CORBA_Double cube(CORBA_Double); -#if !defined (NONNATIVE_LONGDOUBLE) - // don't try this on platforms that don't support - // math on long doubles ... -template CORBA_LongDouble cube(CORBA_LongDouble); -#endif // !NONNATIVE_LONGDOUBLE -#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile deleted file mode 100644 index 9fdad280ffc..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = server - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -server: cubitS.o cubitC.o server.o Profile_Timer.o cubit_impl.o - $(CC) -o server cubitS.o cubitC.o cubit_impl.o server.o Profile_Timer.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp deleted file mode 100644 index 42dce7eb80a..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -ACE_RCSID(base_server, Profile_Timer, "$Id$") - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp deleted file mode 100644 index 123406d993c..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#include "cubit_impl.h" - -ACE_RCSID(base_server, cubit_impl, "$Id$") - -CORBA::Octet Cubit_Impl:: cube_octet (CORBA::Octet o) { - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short Cubit_Impl:: cube_short (CORBA::Short s) { - return (CORBA::Short) (s * s * s); -} - -CORBA::Long Cubit_Impl:: cube_long (CORBA::Long l) { - return (CORBA::Long) (l * l * l); -} - -Cubit::Many Cubit_Impl:: cube_struct (const Cubit::Many& values) { - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - return out_values; -} - -Cubit::oneof Cubit_Impl:: cube_union (const Cubit::oneof& values) { - Cubit::oneof out_values; - switch (values._d ()) { - case Cubit::e_0th: - out_values.o (values.o () * values.o () * values.o ()); - break; - case Cubit::e_1st: - out_values.s (values.s () * values.s () * values.s ()); - break; - case Cubit::e_2nd: - out_values.l (values.l () * values.l () * values.l ()); - break; - case Cubit::e_3rd: - default: - out_values.cm ().o = values.cm ().o * values.cm ().o * values.cm ().o ; - out_values.cm ().s = values.cm ().s * values.cm ().s * values.cm ().s ; - out_values.cm ().l = values.cm ().l * values.cm ().l * values.cm ().l ; - break; - } - return out_values; -} - -void Cubit_Impl:: please_exit () - {} diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h deleted file mode 100644 index f1f5e3fa3ea..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/cubit_impl.h +++ /dev/null @@ -1,35 +0,0 @@ -// $Id$ - - -#ifndef cubit_ih -#define cubit_ih - -#include "cubitS.h" - - -#ifdef Cubit_USE_BOA -class Cubit_Impl : public virtual _sk_Cubit { -#else -class Cubit_Impl { -#endif /* Cubit_USE_BOA */ - -public: - -#ifdef Cubit_USE_BOA - Cubit_Impl (const char *obj_name = NULL) : - _sk_Cubit(obj_name) - {} -#else - Cubit_Impl (const char *obj_name = NULL) - {} -#endif /* Cubit_USE_BOA */ - - virtual CORBA::Octet cube_octet(CORBA::Octet o); - virtual CORBA::Short cube_short(CORBA::Short s); - virtual CORBA::Long cube_long(CORBA::Long l); - virtual Cubit::Many cube_struct(const Cubit::Many& values); - virtual Cubit::oneof cube_union(const Cubit::oneof& values); - virtual void please_exit(); -}; - -#endif diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp deleted file mode 100644 index ad0070d731a..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/server.cpp +++ /dev/null @@ -1,54 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : tpr_server.cpp -// DESCRIPTION: -// -// Server mainline -// -//**************************************************************************** - -#include "cubit_impl.h" // server header file - -ACE_RCSID(base_server, server, "$Id$") - -int -main (int argc, char** argv) -{ - - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); - CORBA::BOA_var boa = orb->BOA_init(argc, argv); - -#ifdef Cubit_USE_BOA - Cubit_Impl cb("Cubit"); - cout << "Using BOA approach" << endl; -#else - Cubit_Impl tied("Cubit"); - _tie_Cubit cb(tied, "Cubit"); - - cout << "Using TIE approach" << endl; -#endif /* Cubit_USE_BOA */ - - // - // Go get some work to do.... - // - try { - - boa->obj_is_ready(&cb); - - boa->impl_is_ready(); - - } catch (const CORBA::Exception &excep) { - cerr << "Server error: " << excep << endl; - return -1; - } catch (...) { - cerr << "Unknown exception" << endl; - return -1; - } - - cout << "Cubit server is exiting." << endl; - - - return 0; -} diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile b/TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile deleted file mode 100644 index d9c26fe56f0..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -include stdmk - -EXE = client - -all: $(EXE) - -clean: - -rm -f core *.o cubitC.* cubitS.* $(EXE) - -rm -rf Templates.DB - -cubitS.cpp: cubit.idl - $(ORBCC) cubit.idl - -cubitC.cpp: cubit.idl - $(ORBCC) cubit.idl - -client: cubitC.o Profile_Timer.o client.o - $(CC) -o client cubitC.o Profile_Timer.o client.o \ - $(LIBPATH) $(LIBORB) $(STDCC_LIBS) diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp deleted file mode 100644 index 2d1f74b2e69..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// $Id$ - -#include "Profile_Timer.h" - -ACE_RCSID(client, Profile_Timer, "$Id$") - -/* Initialize interval timer. */ - -Profile_Timer::Profile_Timer (void) -{ - char buf[20]; - ::sprintf(buf, "/proc/%d", ::getpid ()); - - ::memset (&this->end_usage_, 0, sizeof this->end_usage_); - ::memset (&this->begin_usage_, 0, sizeof this->begin_usage_); - ::memset (&this->last_usage_, 0, sizeof this->last_usage_); - if ((this->proc_fd_ = ::open (buf, O_RDONLY, 0)) == -1) - ::perror (buf); -} - -/* Terminate the interval timer. */ -Profile_Timer::~Profile_Timer (void) -{ - if (::close (this->proc_fd_) == -1) - ::perror ("Profile_Timer::~Profile_Timer"); -} - -/* Return the resource utilization. */ - -void -Profile_Timer::get_rusage (prusage_t &rusage) -{ - rusage = this->end_usage_; -} - -/* Compute the amount of resource utilization since the start time. */ - -void -Profile_Timer::elapsed_rusage (prusage_t &rusage) -{ - rusage.pr_lwpid = this->end_usage_.pr_lwpid - this->last_usage_.pr_lwpid; - rusage.pr_count = this->end_usage_.pr_count - this->last_usage_.pr_count; - rusage.pr_minf = this->end_usage_.pr_minf - this->last_usage_.pr_minf; - rusage.pr_majf = this->end_usage_.pr_majf - this->last_usage_.pr_majf; - rusage.pr_inblk = this->end_usage_.pr_inblk - this->last_usage_.pr_inblk; - rusage.pr_oublk = this->end_usage_.pr_oublk - this->last_usage_.pr_oublk; - rusage.pr_msnd = this->end_usage_.pr_msnd - this->last_usage_.pr_msnd; - rusage.pr_mrcv = this->end_usage_.pr_mrcv - this->last_usage_.pr_mrcv; - rusage.pr_sigs = this->end_usage_.pr_sigs - this->last_usage_.pr_sigs; - this->subtract (rusage.pr_wtime, this->end_usage_.pr_wtime, this->last_usage_.pr_wtime); - this->subtract (rusage.pr_ltime, this->end_usage_.pr_ltime, this->last_usage_.pr_ltime); - this->subtract (rusage.pr_slptime, this->end_usage_.pr_slptime, this->last_usage_.pr_slptime); - rusage.pr_vctx = this->end_usage_.pr_vctx - this->last_usage_.pr_vctx; - rusage.pr_ictx = this->end_usage_.pr_ictx - this->last_usage_.pr_ictx; - rusage.pr_sysc = this->end_usage_.pr_sysc - this->last_usage_.pr_sysc; - rusage.pr_ioch = this->end_usage_.pr_ioch - this->last_usage_.pr_ioch; -} - -/* Compute the elapsed time. */ - -void -Profile_Timer::compute_times (Elapsed_Time &et, prusage_t &end, prusage_t &begin) -{ - timespec_t td; - - this->subtract (td, end.pr_tstamp, begin.pr_tstamp); - et.real_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_utime, begin.pr_utime); - et.user_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); - this->subtract (td, end.pr_stime, begin.pr_stime); - et.system_time = td.tv_sec + ((double) td.tv_nsec) / (1000 * 1000 * 1000); -} - -/* Compute the amount of time that has elapsed between start and stop. */ - -int -Profile_Timer::elapsed_time (Elapsed_Time &et) -{ - this->compute_times (et, this->end_usage_, this->begin_usage_); - return 0; -} - -/* Determine the difference between T1 and T2. */ - -void -Profile_Timer::subtract (timespec_t &tdiff, timespec_t &t1, timespec_t &t0) -{ - tdiff.tv_sec = t1.tv_sec - t0.tv_sec; - tdiff.tv_nsec = t1.tv_nsec - t0.tv_nsec; - - /* Normalize the time. */ - - while (tdiff.tv_nsec < 0) - { - tdiff.tv_sec--; - tdiff.tv_nsec += (1000 * 1000 * 1000); - } -} - -#if defined (DEBUG) -#include -extern "C" int gettimeofday (timeval *tp); - -const int DEFAULT_ITERATIONS = 1000000; - -int -main (int argc, char *argv[]) -{ - Profile_Timer timer; - int iterations = argc > 1 ? atoi (argv[1]) : DEFAULT_ITERATIONS; - timeval tv; - - timer.start (); - - for (int i = 0; i < iterations; i++) - gettimeofday (&tv); - - timer.stop (); - - Profile_Timer::Elapsed_Time et; - - timer.elapsed_time (et); - - printf ("iterations = %d\n", iterations); - printf ("real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time); - - printf ("time per call = %f usecs\n", (et.real_time / double (iterations)) * 1000000); - return 0; -} -#endif /* DEBUG */ diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h b/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h deleted file mode 100644 index 4198fba9a10..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -/* An interval timer class using C++. */ - -#if !defined (ACE_PROFILE_TIMER_H) -#define ACE_PROFILE_TIMER_H - -#include -#include -#include -#include -#include -#include - -class Profile_Timer -{ -public: - struct Elapsed_Time - { - double real_time; - double user_time; - double system_time; - }; - - Profile_Timer (void); - ~Profile_Timer (void); - int start (void); - int stop (void); - int elapsed_time (Elapsed_Time &et); - void elapsed_rusage (prusage_t &rusage); - void get_rusage (prusage_t &rusage); - -private: - void subtract (timespec_t &tdiff, timespec_t &t0, timespec_t &t1); - void compute_times (Elapsed_Time &et, prusage_t &, prusage_t &); - - prusage_t begin_usage_; - prusage_t end_usage_; - prusage_t last_usage_; - int proc_fd_; -}; - -/* Start timing */ - -inline int -Profile_Timer::start (void) -{ - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); -} - -/* Stop timing */ - -inline int -Profile_Timer::stop (void) -{ - this->last_usage_ = this->end_usage_; - return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); -} - -#endif /* ACE_PROFILE_TIMER_H */ - diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp b/TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp deleted file mode 100644 index 57eecf3abe3..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/client.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -//************************************************************************** -// -// NAME : client.C -// DESCRIPTION: -// -// Client for the Cubit example -// -//**************************************************************************** - -#include -#include -#include -#include -#include -#include "cubitC.h" -#include "Profile_Timer.h" - -ACE_RCSID(client, client, "$Id$") - -int LOOP_COUNT; -char SERVER_HOST [1024]; - -inline int func (unsigned i) { return i - 117; } -void run_tests (Cubit_var, int); - -// = TITLE -// Parses the command line arguments and returns an error status -// -// = DESCRIPTION -// This method parses the command line arguments -int parse_args(int argc, char *argv[]) -{ - if (argc != 3) { - cerr << "Format: client " << endl; - return -1; - } - - strcpy(SERVER_HOST, argv[1]); - - LOOP_COUNT = atoi(argv[2]); - - return 0; // Indicates successful parsing of command line -} - - -// -// Mainline -// -int -main (int argc, char *argv[]) -{ - if (parse_args (argc, argv) != 0) - return -1; - - Cubit_var cb; - // cout << "attempting to contact server at host " << SERVER_HOST << '\n' ; - - // - // Initialise client's binding to an - // arbitrary cubit server (at some host) - // - try { - cb = Cubit::_bind ("Cubit", SERVER_HOST); - - } catch (const CORBA::Exception & sysEx) { - cerr << "Binding failed: " << endl; - cerr << sysEx; - } catch (...) { - cerr << "Unexpected exception" << endl; - } - - run_tests (cb, LOOP_COUNT); - return 0; -} - - -void -run_tests (Cubit_var cb, int loop_count) -{ - // - // Make the calls in a loop. - // - unsigned i; - unsigned call_count, error_count; - - call_count = 0; - error_count = 0; - - Profile_Timer pt; - - pt.start(); - // - // Cube an octet. - // - - for (i = 0; i < loop_count; i++) - { - - call_count++; - - CORBA::Octet arg_octet = func (i), ret_octet; - - try { - ret_octet = cb->cube_octet (arg_octet); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_octet = arg_octet * arg_octet * arg_octet; - if (arg_octet != ret_octet) { - printf ("** cube_octet(%d) (--> %d)\n", arg_octet , ret_octet); - error_count++; - } - - - // - // Cube a short. - // - call_count++; - - CORBA::Short arg_short = func (i), ret_short; - - try { - ret_short = cb->cube_short (arg_short); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_short = arg_short * arg_short * arg_short; - if (arg_short != ret_short) { - printf ("** cube_short(%d) (--> %d)\n", arg_short , ret_short); - error_count++; - } - - // - // Cube a long. - // - - call_count++; - - CORBA::Long arg_long = func (i), ret_long; - - try { - ret_long = cb->cube_long (arg_long); - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - arg_long = arg_long * arg_long * arg_long; - if (arg_long != ret_long) { - printf ("** cube_long(%d) (--> %d)\n", arg_long , ret_long); - error_count++; - } - - - // - // Cube a "struct" ... - // - Cubit::Many arg_struct, ret_struct; - - call_count++; - - arg_struct.l = func (i); - arg_struct.s = func (i); - arg_struct.o = func (i); - - try { - ret_struct = cb->cube_struct (arg_struct); - - } catch (const CORBA::Exception &sysEx) { - cerr << "Call failed: " << endl; - cerr << sysEx; - error_count++; - } catch (...) { - cerr << "Unexpected exception" << endl; - error_count++; - } - - - arg_struct.l = arg_struct.l * arg_struct.l * arg_struct.l ; - arg_struct.s = arg_struct.s * arg_struct.s * arg_struct.s ; - arg_struct.o = arg_struct.o * arg_struct.o * arg_struct.o ; - - if (arg_struct.l != ret_struct.l - || arg_struct.s != ret_struct.s - || arg_struct.o != ret_struct.o ) - { - cerr << "** cube_struct ERROR\n"; - error_count++; - } - } - - pt.stop(); - - Elapsed_Time et; - pt.elapsed_time(et); - - if (call_count > 0) - { - if (error_count == 0) - { - unsigned long us = et.real_time * 1000 * 1000; - - us /= call_count; - - if (us > 0) - printf ("cube average call ACE_OS::time\t= %ld.%.03ldms, \t" - "%ld calls/second\n", - us / 1000, us % 1000, - 1000000L / us); - } - - printf ("%d calls, %d errors\n", call_count, error_count); - } -} diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl b/TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl deleted file mode 100644 index 7eedbe786ab..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/cubit.idl +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// @(#)cubit.idl 1.1 95/09/10 -// Copyright 1994-1995 by Sun Microsystems, Inc. -// -//#pragma prefix "Eng.SUN.COM" -//#pragma version Cubit 1.1 - -interface Cubit { - octet cube_octet (in octet o); - short cube_short (in short s); - long cube_long (in long l); - - struct Many { - octet o; // + 3 bytes padding (normally) ... - long l; - short s; // + 2 bytes padding (normally) ... - }; - - Many cube_struct (in Many values); - - enum discrim {e_0th, e_1st, e_2nd, e_3rd, e_4th, e_5th}; - - union oneof - switch (discrim) { - // this is an easy union to interpret; no padding - // is needed between discriminant and value. - case e_0th: - octet o; - case e_1st: - short s; - case e_2nd: - long l; - case e_3rd: - default: - Many cm; - }; - - oneof cube_union (in oneof values); - - oneway void please_exit (); -}; diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk b/TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk deleted file mode 100644 index df4125a38d8..00000000000 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/stdmk +++ /dev/null @@ -1,36 +0,0 @@ -CC = CC -DEBUG = - -ORBELINEDIR = /project/waltz/Orbeline2.0 - -ORBCC = $(ORBELINEDIR)/bin/orbeline -v C -m S -c cpp -h h - -CCINCLUDES = -I. -I$(ORBELINEDIR)/include -I$(STL_DIR) -I$(ACE_DIR) - -CCFLAGS = -g $(CCINCLUDES) $(DEBUG) -DCubit_USE_BOA - -LIBPATH = -L$(ORBELINEDIR)/lib -L$(ACE_DIR)/ace - -STDCC_LIBS = -lsocket -lnsl -ldl -mt - -LIBORB = -lorb - -LIBACE = -lACE - -.SUFFIXES: .C .o .h .hh .cc .cpp - -.C.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.cc.o: - $(CC) $(CCFLAGS) -c -o $@ $< -.cpp.o: - $(CC) $(CCFLAGS) -c -o $@ $< - -.C.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - -.cc.cpp: - $(CC) -E $(CCFLAGS) $< > $@ - - diff --git a/TAO/IIOP/tests/Cubit/results/Orbix b/TAO/IIOP/tests/Cubit/results/Orbix deleted file mode 100644 index c3abce78d3f..00000000000 --- a/TAO/IIOP/tests/Cubit/results/Orbix +++ /dev/null @@ -1,133 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.876 533 - 2 2.202 454 - 3 2.740 364 - -MT-Orbix Thread-Per-Request 1 1.886 530 - 2 3.1 322 - 3 5.0 200 - -MT-Orbix Thread-Pool (25) 1 1.875 533 - 2 3.1 322 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 2.002 499 - 2 3.306 302 - 3 5.15 194 - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 1.818 550 - 2 1.968 508 - 3 2.803 356 - - -MT-Orbix Thread-Per-Request 1 1.846 541 - 2 3.1 322 - 3 4.98 200 - -MT-Orbix Thread-Pool (25) 1 1.913 522 - 2 3.18 314 - 3 5.1 196 - -MT-Orbix Thread-Per-Session 1 1.959 510 - 2 3.29 303 - 3 5.15 194 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 7.918 126 - 2 14.300 70 - 3 21.000 47 - - -MT-Orbix Thread-Per-Request 1 8.302 120 - 2 10.128 98 - 3 13.722 72 - -MT-Orbix Thread-Pool (25) 1 8.442 118 - 2 15.764 63 - 3 22.595 44 - -MT-Orbix Thread-Per-Session 1 8.956 111 - 2 9.581 104 - 3 16.702 59 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -MT-Orbix without filters 1 6.667 149 - 2 12.165 82 - 3 18.634 54 - - -MT-Orbix Thread-Per-Request 1 6.812 146 - 2 6.937 144 - 3 7.706 128 - -MT-Orbix Thread-Pool (25) 1 6.813 146 - 2 6.954 144 - 3 7.776 128 - -MT-Orbix Thread-Per-Session 1 6.85 145 - 2 7.253 137 - 3 7.645 130 - - TNF client-side profile for MT-Orbix without filters for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_wait 6.23 4250.242 1824 2.330 106.171 1.205 0.091 -mutex_lock 0.23 159.830 56662 0.003 1.215 0.002 0.000 -mutex_unlock 0.22 146.756 56663 0.003 0.326 0.002 0.000 -cond_signal 0.09 61.030 1825 0.033 0.475 0.009 0.000 -rw_rdlock 0.01 7.179 1826 0.004 0.014 0.003 0.000 -rw_unlock 0.01 6.548 1827 0.004 0.014 0.003 0.000 -rw_wrlock 0.00 0.004 1 0.004 0.004 0.004 0.000 - - TNF server-side profile for MT-Orbix without filters for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -cond_timedwait 1.25 923.527 797 1.159 20.219 0.324 0.028 -mutex_lock 0.21 153.839 56435 0.003 4.342 0.002 0.000 -mutex_unlock 0.20 149.208 56433 0.003 3.559 0.002 0.000 -cond_signal 0.03 21.506 809 0.027 1.826 0.003 0.002 -rw_unlock 0.02 16.058 3224 0.005 2.915 0.003 0.001 -rw_rdlock 0.02 11.924 3221 0.004 0.087 0.003 0.000 -rw_wrlock 0.00 0.010 2 0.005 0.005 0.004 0.000 - - TNF server-side profile for MT-Orbix with thread-per-request for 20000 calls - - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.55 797.890 57618 0.014 4.624 0.002 0.000 -cond_timedwait 0.52 748.560 478 1.566 3.918 0.222 0.019 -mutex_unlock 0.36 514.627 57616 0.009 3.975 0.002 0.000 -cond_signal 0.02 24.216 1151 0.021 1.161 0.002 0.001 -rw_rdlock 0.01 13.120 2301 0.006 1.180 0.003 0.001 -rw_unlock 0.01 10.575 2307 0.005 0.316 0.003 0.000 -thr_sigsetmask 0.00 1.949 30 0.065 1.064 0.013 0.035 -rw_wrlock 0.00 0.033 6 0.006 0.008 0.004 0.001 - - - diff --git a/TAO/IIOP/tests/Cubit/results/TAO b/TAO/IIOP/tests/Cubit/results/TAO deleted file mode 100644 index de4a7bf23ae..00000000000 --- a/TAO/IIOP/tests/Cubit/results/TAO +++ /dev/null @@ -1,92 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.172 853 - 2 1.342 745 - 3 1.902 525 - -TAO threaded version 1 1.174 851 - 2 1.219 820 - 3 1.600 625 - - -Cubit results over ATM with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.161 861 - 2 1.302 768 - 3 1.732 577 - -TAO threaded version 1 1.170 854 - 2 1.3 769 - 3 1.600 625 - - -Cubit results over ATM after optimizations with 20,000 calls ------------------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 1.127 887 - 2 1.238 807 - 3 1.501 666 - -TAO threaded version 1 1.057 946 - 2 1.225 816 - 3 1.471 679 - -Prime_Factor results over ATM with 20,000 calls -------------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 7.407 135 - 2 13.7 73 - 3 19.7 51 - -TAO threaded version 1 7.389 135 - 2 8.080 124 - 3 10.726 93 - -IO-bound results over ATM with 20,000 calls --------------------------------------------- - - Clients Latency (ms) Calls/Sec - -TAO reactive 1 6.404 156 - 2 11.909 83 - 3 17.324 57 - -TAO threaded version 1 6.378 156 - 2 6.449 155 - 3 6.500 153 - - - - - Sample client-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -rw_rdlock 0.40 146.579 20006 0.007 1.200 0.005 0.000 -rw_unlock 0.25 91.386 20009 0.005 0.058 0.004 0.000 -mutex_lock 0.06 21.087 5265 0.004 0.178 0.002 0.000 -mutex_unlock 0.04 14.372 5271 0.003 0.075 0.002 0.000 -rw_wrlock 0.00 0.045 3 0.015 0.034 0.005 0.008 - - - Sample server-side profile for TAO for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 1.12 154.491 54507 0.003 0.140 0.002 0.000 -mutex_unlock 1.06 145.638 54508 0.003 0.310 0.002 0.000 -rw_rdlock 0.27 37.265 6813 0.005 0.037 0.004 0.000 -rw_unlock 0.20 27.792 6813 0.004 0.045 0.004 0.000 - diff --git a/TAO/IIOP/tests/Cubit/results/Visibroker b/TAO/IIOP/tests/Cubit/results/Visibroker deleted file mode 100644 index 8d6bb2457c7..00000000000 --- a/TAO/IIOP/tests/Cubit/results/Visibroker +++ /dev/null @@ -1,79 +0,0 @@ -Cubit results over Ethernet with 20,000 calls ---------------------------------------------- - - Clients Latency (ms) Calls/Sec - - -Visibroker reactive 1 1.167 856 - 2 1.39 718 - 3 1.664 600 - -Visibroker thr-per-connection 1 1.077 928 - 2 1.228 814 - 3 1.789 558 - - - -Cubit results over ATM with 20,000 calls ----------------------------------------- - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 1.195 836 - 2 1.241 805 - 3 1.56 641 - -Visibroker thr-per-connection 1 1.060 943 - 2 1.327 753 - 3 2.108 474 - - -Prime_Factor results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 7.43 134 - 2 13.652 73 - 3 17.738 56 - -Visibroker thr-per-connection 1 7.371 135 - 2 8.561 116 - 3 11.376 87 - -IO-intensive results over ATM with 20,000 calls ------------------------------------------------ - - Clients Latency (ms) Calls/Sec - -Visibroker reactive 1 6.424 155 - 2 11.895 84 - 3 17.468 57 - -Visibroker thr-per-connection 1 6.41 156 - 2 6.496 154 - 3 6.524 153 - - - - - TNF client-side profile for Visibroker for 20000 calls - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_unlock 1.31 188.930 61797 0.003 1.027 0.002 0.000 -mutex_lock 1.21 175.465 61790 0.003 0.330 0.002 0.000 - - - TNF server-side profile for Visibroker for 20000 calls - - Profile - -Function name % self+desc. mean max min std. - time ms calls ms/call ms/call ms/call err -________________________________________________________________________________ -mutex_lock 0.18 165.141 60432 0.003 0.501 0.002 0.000 -mutex_unlock 0.16 153.891 60432 0.003 0.373 0.002 0.000 - - diff --git a/TAO/IIOP/tests/Cubit/results/orbs.xls b/TAO/IIOP/tests/Cubit/results/orbs.xls deleted file mode 100644 index 149078dd383..00000000000 Binary files a/TAO/IIOP/tests/Cubit/results/orbs.xls and /dev/null differ diff --git a/TAO/IIOP/tests/Thruput_test/Makefile b/TAO/IIOP/tests/Thruput_test/Makefile deleted file mode 100644 index f6b0e338f8b..00000000000 --- a/TAO/IIOP/tests/Thruput_test/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the TAO_TTCP benchmark -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -LDLIBS = -lcorba - -PROG_SRCS = client.cpp ttcpC.cpp ttcpS.cpp ttcp_i.cpp server.cpp utils.cpp - -LSRC = $(PROG_SRCS) - -TTCP_CLIENT_OBJS = client.o ttcpC.o utils.o - -TTCP_SERVER_OBJS = server.o ttcpC.o ttcpS.o ttcp_i.o utils.o - -BIN = client server - -BUILD = $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local modifications to variables imported by includes above. -#---------------------------------------------------------------------------- - -LDFLAGS += -L../../proto/lib -CPPFLAGS += -I../../proto/include -DUSE_ACE_EVENT_HANDLING -DDEBUG #-DONEWAY - -server: $(addprefix $(VDIR),$(TTCP_SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(TTCP_CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - - - diff --git a/TAO/IIOP/tests/Thruput_test/README b/TAO/IIOP/tests/Thruput_test/README deleted file mode 100644 index 628ef0c50a4..00000000000 --- a/TAO/IIOP/tests/Thruput_test/README +++ /dev/null @@ -1,50 +0,0 @@ - TAO_TTCP Benchmark README file - -This directory contains a modified version of the TTCP benchmark that -uses the TAO ORB. TAO_TTCP is used to measure the throughput of TAO -for sending different data types. This code tests sequences of short, -long, octet, char, double, and richly-typed data such as a struct. -This benchmark uses an interpretive form of marshaling the data by -using the dynamic invocation interfaces provided by the TAO ORB. - -Organization ------------- - -client.cpp Client main program -server.cpp Server main program -ttcpC.cpp Client side stubs -ttcpS.cpp Server side skeletons -ttcpC.h Header file for stubs -ttcpS.h Header file for the skeletons -ttcp_i.cpp Implementaion of the interface -ttcp_i.h Header for the implementation -utils.cpp Utilities to calculate throughput -ttcp_decls.h Common declarations - -Results -------- -Throughput results are stored under the results directory. If testing -for REMOTE transfers, use the ./results/REMOTE directory. - -Running the tests ------------------ -Three scripts are provided - -(1) run_server : runs the server. Be sure to change the host name -(2) run_client : runs tests for various data types -(3) run_test : called by run_client - -Compiling ---------- - -Type make - -To provide for 2way tests (no data is sent in the reverse -direction. Sender blocks for a minimal ACK), comment out the -DONEWAY -flag from the CPPFLAGS - -TO-DO ------ - - --Aniruddha Gokhale \ No newline at end of file diff --git a/TAO/IIOP/tests/Thruput_test/client.cpp b/TAO/IIOP/tests/Thruput_test/client.cpp deleted file mode 100644 index 217454109ca..00000000000 --- a/TAO/IIOP/tests/Thruput_test/client.cpp +++ /dev/null @@ -1,340 +0,0 @@ -// $Id$ - -#include "ttcp_decl.h" -#include "debug.h" - -#include -#include - -ACE_RCSID(Thruput_test, client, "$Id$") - -void print_exception (const CORBA_Exception *x, - const char *info, - FILE *stream - ); - -char Usage[] = "\ -Usage: client [-options] [ORBeline options] host \n\ -Common options:\n\ --l ## length of bufs read from or written to network (default 8192)\n\ --A align the start of buffers to this modulus (default 16384)\n\ --o start buffers at this offset from the modulus (default 0)\n\ --v verbose: print more statistics\n\ --d set SO_DEBUG socket option\n\ --b ## set socket buffer size (if supported)\n\ --f X format for rate: k,K = kilo{bit,byte}; m,M = mega; g,G = giga\n\ --n ## number of source bufs written to network (default 2048)\n\ --x Use new lines after each entry in output file\n\ --h ## Remote host to send data to\n\ --D don't buffer TCP writes (sets TCP_NODELAY socket option)\n\ --L ## Output file name for the data type used\n\ --S \n\ --q Send Sequence: Enumeration for various data types:\n\ -s = short, l = long, d = double, c = char\n\ -o = octet, S = struct, C = composite\n\ -"; - -#if !defined (__cplusplus) -typedef void (*SIG_TYP)(); -#endif - -#ifdef SVR4 -void -sigpipe (int foo) -#else - void -sigpipe () -#endif -{ -} - -int fromlen; -int domain = PF_INET; /* Default is to use Internet domain sockets. */ -char *domainname; /* Rendezvous address for UNIX domain sockets. */ -int fd; /* fd of network socket */ -int buflen = 8 * 1024; /* length of buffer */ -char *buf; /* ptr to dynamic buffer */ -int nbuf = 2 * 1024; /* number of buffers to send in sinkmode */ - -int bufoffset = 0; /* align buffer to this */ -int bufalign = 16 * 1024; /* modulo this */ - -int udp = 0; /* 0 = tcp, !0 = udp */ -int options = 0; /* socket options */ -int one = 1; /* for 4.3 BSD style setsockopt() */ -short port = 5001; /* TCP port number */ -char *host; /* ptr to name of host */ -int trans =1; /* 0=receive, !0=transmit mode */ -int sinkmode = 1; /* 0=normal I/O, !0=sink/source mode */ -int verbose = 0; /* 0=print basic info, 1=print cpu rate, proc -* resource usage. */ -int nodelay = 0; /* set TCP_NODELAY socket option */ -int b_flag = 0; /* use mread() */ -int sockbufsize = 0; /* socket buffer size to use */ -int new_line=0; /* This is a special flag */ -int write_to_file=1; /* indecates writing to file (default)*/ -char fmt = 'K'; /* output format:k=kilobits,K=kilobytes, -* m = megabits, M = megabytes, -* g = gigabits, G = gigabytes */ -int touchdata = 0; /* access data after reading */ - -struct hostent *addr; -char *title = 0; - -char stats[128]; -unsigned long srcDataSize; /* Total amount of source data */ -unsigned long nbytes; /* bytes on net */ -unsigned long numCalls; /* # of I/O system calls */ -double cput, realt; /* user, real time (seconds) */ -unsigned long dt; - -/* declare struct variables for various message types */ -ttcp_sequence::ShortSeq *sseq; -ttcp_sequence::LongSeq *lseq; -ttcp_sequence::OctetSeq *oseq; -ttcp_sequence::DoubleSeq *dseq; -ttcp_sequence::CharSeq *cseq; -ttcp_sequence::StructSeq *Sseq; - -static const char ior_prefix [] = "IOR:"; -static const char iiop_prefix [] = "iiop:"; - -int -main (int argc, char *argv[]) -{ - - unsigned long addr_tmp; - unsigned short done = 0; - int c; - - CORBA_ORB_ptr orb_ptr; - CORBA_Environment env; - CORBA_Object_ptr objref = CORBA_Object::_nil(); - ttcp_sequence_ptr ttcp_seq; - unsigned loop_count = 1; - int exit_later = 0; - CORBA_String str; - fstream iorfile; - - if (argc < 2) - goto usage; - - TAO_debug_level = 0; - while (!done && ((c = getopt (argc, argv, "d:vDb:h:f:l:n:A:o:L:xS:q:")) != -1)) - { - switch (c) - { - case 'h': - host = optarg; - break; - case 'x': - new_line = 1; - break; - case 'L': - title = optarg; - break; - case 'd': - TAO_debug_level = atoi(optarg); - if (TAO_debug_level > 10) - TAO_debug_level = 10; - break; - case 'D': -#ifdef TCP_NODELAY - nodelay = 1; -#else - fprintf (stderr, - "ttcp: -D option ignored: TCP_NODELAY socket option not supported\n"); -#endif - break; - case 'n': - nbuf = atoi (optarg); - break; - case 'l': - buflen = atoi (optarg); - break; - case 'v': - verbose = 1; - break; - case 'A': - bufalign = atoi (optarg); - break; - case 'o': - bufoffset = atoi (optarg); - break; - case 'b': -#if defined(SO_SNDBUF) || defined(SO_RCVBUF) - sockbufsize = atoi (optarg); -#else - fprintf (stderr, - "ttcp: -b option ignored: SO_SNDBUF/SO_RCVBUF socket options not supported\n"); -#endif - break; - case 'f': - fmt = *optarg; - break; - case 'S': /* total source data to send. */ - /* modify nbuf accordingly */ - srcDataSize = atoi(optarg); - break; - case 'q': /* Send sequence of desired data type */ - switch(*optarg){ - case 's': - dt = SEND_SHORT; - break; - case 'l': - dt = SEND_LONG; - break; - case 'd': - dt = SEND_DOUBLE; - break; - case 'c': - dt = SEND_CHAR; - break; - case 'o': - dt = SEND_OCTET; - break; - case 'S': - dt = SEND_STRUCT; - break; - case 'C': - dt = SEND_COMPOSITE; - break; - } - break; - case '?': - done = 1; - break; - default: - goto usage; - } - } - - // - // Transmitter - // - orb_ptr = CORBA_ORB_init(argc, argv, "internet", env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB initialization", stdout); - return 1; - } - - str = CORBA_string_alloc(500); - - // read the IOR from the file ior.txt - iorfile.open("ior.txt", ios::in); - iorfile >> ((char *)str); - iorfile.close(); - - cout << "Read IOR string as: " << ((char *)str) << endl; - - objref = orb_ptr->string_to_object(str, env); - if (env.exception() != 0){ - print_exception(env.exception(), "string2object", stdout); - return 1; - } - CORBA_string_free(str); - - - if (!CORBA_is_nil(objref)){ - ttcp_seq = ttcp_sequence::_narrow(objref); - - if (!CORBA_is_nil(ttcp_seq)){ - - /* modify nbuf according to Total data size */ - nbuf = srcDataSize/buflen; - fprintf(stderr, "data size = %d, buflen = %d, nbuf = %d\n",srcDataSize, buflen, nbuf); - - // - // Prepare the Message to be sent - // - - errno = 0; - if ((buf = (char *) malloc (buflen + bufalign)) == (char *) NULL) - err ("malloc"); - if (bufalign != 0) - buf += (bufalign - ((int) buf % bufalign) + bufoffset) % bufalign; - - - cout << "Sizeof PerfStruct = " << sizeof(PerfStruct) << endl; - // fill the appropriate buffers - FillPattern (buf, buflen, dt); - // - // Start the timers on the client and server sides - // - - prep_timer (); - ttcp_seq->start_timer (env); - if (env.exception () != 0) { - print_exception (env.exception (), "start_timer operation", stdout); - return 1; - } -#if defined (USE_QUANTIFY) - /* start recording quantify data from here */ - quantify_clear_data(); - quantify_start_recording_data(); -#endif - while (nbuf--) - { - switch(dt){ - case SEND_SHORT: - ttcp_seq->sendShortSeq(*sseq, env); - nbytes += sseq->length()*sizeof(CORBA_Short); - break; - case SEND_LONG: - ttcp_seq->sendLongSeq(*lseq, env); - nbytes += lseq->length()*sizeof(CORBA_Long); - break; - case SEND_OCTET: - ttcp_seq->sendOctetSeq(*oseq, env); - nbytes += oseq->length()*sizeof(CORBA_Octet); - break; - case SEND_DOUBLE: - ttcp_seq->sendDoubleSeq(*dseq, env); - nbytes += dseq->length()*sizeof(CORBA_Double); - break; - case SEND_CHAR: - ttcp_seq->sendCharSeq(*cseq, env); - nbytes += cseq->length()*sizeof(CORBA_Char); - break; - case SEND_STRUCT: - ttcp_seq->sendStructSeq(*Sseq, env); - nbytes += Sseq->length()*sizeof(PerfStruct); - break; - } - numCalls++; - if (env.exception () != 0) { - print_exception (env.exception (), "send operation", stdout); - return 1; - } - } -#if defined(USE_QUANTIFY) - quantify_stop_recording_data(); -#endif - // - // Stop the timer - // - ttcp_seq->stop_timer(env); - if (env.exception () != 0) { - print_exception (env.exception (), "stop_timer operation", stdout); - return 1; - } - (void) read_timer (stats, sizeof (stats)); - - // print results - PrintStats(); - - } - } - - CORBA_release(ttcp_seq); - return(0); -usage: - fprintf (stderr, Usage); - return 1; -} - - - - - - diff --git a/TAO/IIOP/tests/Thruput_test/run b/TAO/IIOP/tests/Thruput_test/run deleted file mode 100755 index b746a09536d..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run +++ /dev/null @@ -1 +0,0 @@ -client -S 67108864 -f m -D -l $1 -L temp -q $2 -b 65536 -d $3 diff --git a/TAO/IIOP/tests/Thruput_test/run_client b/TAO/IIOP/tests/Thruput_test/run_client deleted file mode 100755 index 41f9fd5bc51..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run_client +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/csh -f -# All ATM tests: 64k socket Queue Size -# -# shorts -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 s -sleep 5 -# longs -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 l -sleep 5 -# octets -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 o -sleep 5 -# doubles -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 d -sleep 5 -# chars -#run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 c -#sleep 5 -# structures -run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 S -sleep 5 -# Composite Structs -#run_test 67108864 128 mambo-atm.wustl.edu ./results/REMOTE/$1/sun-iiop.atm.64 C -#sleep 5 -# diff --git a/TAO/IIOP/tests/Thruput_test/run_server b/TAO/IIOP/tests/Thruput_test/run_server deleted file mode 100755 index 9ce44a510b1..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run_server +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/csh -# -# Usage: server -# -u : use IOR -# -f m : output results in Mbps -# -b ** not implemented ** -# -OAhost ************* must provide this for this version -# -OAthread : use threaded version as opposed to reactive -# -server -u -f m -b 65536 -OAhost mambo-cip #-OAthread diff --git a/TAO/IIOP/tests/Thruput_test/run_test b/TAO/IIOP/tests/Thruput_test/run_test deleted file mode 100755 index e36938f42b6..00000000000 --- a/TAO/IIOP/tests/Thruput_test/run_test +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/csh -f -if ($#argv < 3) then - echo "Usage: sclt " - exit 1 -endif -# -@ msize=1024 -@ limit= ($argv[2] * 1024) -#echo $limit -#echo $msize -echo "Iteration#" 1 ": client -S" $1 "-D -f m -s -t -l" $msize "-h" $3 "-x -L" $4 "-q" $5 -b 65536 -client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536 -set flag=0 -while ($msize <= $limit) - if ($flag == 0) goto label - echo "Iteration#" 1 ": client -S" $1 "-D -f m -l" $msize "-h" $3 "-x -L" $4 "-q" $5 -b 65536 - client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536 - label: - set flag=1 - sleep 5 - foreach i (2) - echo "Iteration#" $i ": client -S" $1 "-D -f m -s -t -l" $msize "-h" $3 "-x -L " $4 "-q" $5 -b 65536 - client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536 - end - echo "---------------------------" - @ msize = ($msize * 2) - sleep 5 -end - -echo " " -echo "Done at:" -date diff --git a/TAO/IIOP/tests/Thruput_test/server.cpp b/TAO/IIOP/tests/Thruput_test/server.cpp deleted file mode 100644 index 40a79dfd161..00000000000 --- a/TAO/IIOP/tests/Thruput_test/server.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -#include "ttcp_i.h" - -#include -#include - -ACE_RCSID(Thruput_test, server, "$Id$") - -void print_exception (const CORBA_Exception *x, - const char *info, - FILE *stream - ); - -char Usage[] = "\ -Usage: server [options] \n\ -Common options:\n\ --l ## length of bufs read from or written to network (default 8192)\n\ --A align the start of buffers to this modulus (default 16384)\n\ --O start buffers at this offset from the modulus (default 0)\n\ --v verbose: print more statistics\n\ --d set SO_DEBUG socket option\n\ --b ## set socket buffer size (if supported)\n\ --f X format for rate: k,K = kilo{bit,byte}; m,M = mega; g,G = giga\n\ --L ## Output file name for the data type used\n\ -Options specific to -r:\n\ --B for -s, only output full blocks as specified by -l (for TAR)\n\ --T \"touch\": access each byte as it's read\n\ -"; - -#if !defined (__cplusplus) -typedef void (*SIG_TYP)(); -#endif - -#ifdef SVR4 -void -sigpipe (int foo) -#else - void -sigpipe () -#endif -{ -} - -int fromlen; -int domain = PF_INET; /* Default is to use Internet domain sockets. */ -char *domainname; /* Rendezvous address for UNIX domain sockets. */ -int fd; /* fd of network socket */ -int buflen = 8 * 1024; /* length of buffer */ -char *buf; /* ptr to dynamic buffer */ -int nbuf = 2 * 1024; /* number of buffers to send in sinkmode */ - -int bufoffset = 0; /* align buffer to this */ -int bufalign = 16 * 1024; /* modulo this */ - -int udp = 0; /* 0 = tcp, !0 = udp */ -int options = 0; /* socket options */ -int one = 1; /* for 4.3 BSD style setsockopt() */ -short port = 5001; /* TCP port number */ -char *host; /* ptr to name of host */ -int trans; /* 0=receive, !0=transmit mode */ -int sinkmode = 0; /* 0=normal I/O, !0=sink/source mode */ -int verbose = 0; /* 0=print basic info, 1=print cpu rate, proc - * resource usage. */ -int nodelay = 0; /* set TCP_NODELAY socket option */ -int b_flag = 0; /* use mread() */ -int sockbufsize = 0; /* socket buffer size to use */ -int new_line=0; /* This is a special flag */ -int write_to_file=1; /* indecates writing to file (default)*/ -char fmt = 'K'; /* output format:k=kilobits,K=kilobytes, - * m = megabits, M = megabytes, - * g = gigabits, G = gigabytes */ -int touchdata = 0; /* access data after reading */ - -struct hostent *addr; -char *title = 0; - -char stats[128]; -unsigned long srcDataSize; /* Total amount of source data */ -unsigned long nbytes; /* bytes on net */ -unsigned long numCalls; /* # of I/O system calls */ -double cput, realt; /* user, real time (seconds) */ -unsigned long dt; - -/* declare struct variables for various message types */ -ttcp_sequence::ShortSeq *sseq; -ttcp_sequence::LongSeq *lseq; -ttcp_sequence::OctetSeq *oseq; -ttcp_sequence::DoubleSeq *dseq; -ttcp_sequence::CharSeq *cseq; -ttcp_sequence::StructSeq *Sseq; - -unsigned short isDone = 0; -ttcp_sequence_i *my_ttcp; - -// -// forwarding support -// -static CORBA_Object_ptr fwd_ref; - -int -main (int argc, char *const *argv) -{ - - unsigned long addr_tmp; - int c; - unsigned short done = 0; - CORBA_Environment env; - CORBA_ORB_ptr orb_ptr; - CORBA_BOA_ptr oa_ptr; - CORBA_Boolean do_fork = 0; - CORBA_Boolean do_threads = 0; - CORBA_String key = (CORBA_String) "key0"; - char *oa_name = "ROA"; - char *orb_name = "internet"; - int idle = -1; - int use_ior = 0; - fstream iorfile; - CORBA_String str; - - - if (argc < 2) - goto usage; - - orb_ptr = CORBA_ORB_init (argc, argv, orb_name, env); - if (env.exception () != 0) { - print_exception (env.exception (), "ORB init", stdout); - return 1; - } - - oa_ptr = orb_ptr->BOA_init(argc, argv, oa_name); - if (env.exception () != 0) { - print_exception (env.exception (), "OA init", stdout); - return 1; - } - - TAO_debug_level = 0; - // Now process the options other than Orbix specific options - while (!done && ((c = getopt (argc, argv, "ui:d:vb:f:l:L:")) != -1)) - { - switch (c) - { - case 'u': - use_ior = 1; - orb_name = ""; - break; - case 'L': - title = optarg; - break; - case 'd': - TAO_debug_level = atoi(optarg); - if (TAO_debug_level > 10) - TAO_debug_level = 10; - break; - case 'l': - buflen = atoi (optarg); - break; - case 'i': - idle = atoi (optarg); - break; - case 'v': - verbose = 1; - break; - case 'b': -#if defined(SO_SNDBUF) || defined(SO_RCVBUF) - sockbufsize = atoi (optarg); -#else - fprintf (stderr, - "ttcp: -b option ignored: SO_SNDBUF/SO_RCVBUF socket options not supported\n"); -#endif - break; - case 'f': - fmt = *optarg; - break; - case 'O': - case '?': - done = 1; - break; - default: - goto usage; - } - } - - // - // Receiver - // - - iorfile.open("ior.txt", ios::out); - my_ttcp = new ttcp_sequence_i("TTCP_IIOP_test"); - str = orb_ptr->object_to_string(my_ttcp, env); - if (env.exception() != 0) - { - print_exception (env.exception(), "object_to_string", stdout); - return 1; - } - iorfile << ((char *)str) << endl; - -#if defined (USE_QUANTIFY) - quantify_clear_data(); - quantify_start_recording_data(); -#endif - - ACE_Reactor::run_event_loop(); - -#if 0 - while (1) - { - int result = params->reactor()->handle_events (); - - if (result == -1) - { - terminationStatus = -1; - break; - } - } -#endif - return 0; -usage: - fprintf (stderr, Usage); - return(1); -} - - - - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcp.idl b/TAO/IIOP/tests/Thruput_test/ttcp.idl deleted file mode 100644 index ff13a4b664b..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp.idl +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -struct PerfStruct{ - short s; - char c; - long l; - octet o; - double d; - octet pad[8]; // to make it 32 bytes -}; - -// Richly typed data -interface ttcp_sequence -{ - typedef sequence ShortSeq; - typedef sequence LongSeq; - typedef sequence DoubleSeq; - typedef sequence CharSeq; - typedef sequence OctetSeq; - typedef sequence StructSeq; - - - // Routines to send sequences of various data types - oneway void sendShortSeq (in ShortSeq ttcp_seq); - oneway void sendLongSeq (in LongSeq ttcp_seq); - oneway void sendDoubleSeq (in DoubleSeq ttcp_seq); - oneway void sendCharSeq (in CharSeq ttcp_seq); - oneway void sendOctetSeq (in OctetSeq ttcp_seq); - oneway void sendStructSeq (in StructSeq ttcp_seq); - - oneway void start_timer (); - oneway void stop_timer (); -}; diff --git a/TAO/IIOP/tests/Thruput_test/ttcpC.cpp b/TAO/IIOP/tests/Thruput_test/ttcpC.cpp deleted file mode 100644 index 1f7652467a0..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpC.cpp +++ /dev/null @@ -1,1009 +0,0 @@ -// $Id$ - -#include -#include "ttcpC.h" - -ACE_RCSID(Thruput_test, ttcpC, "$Id$") - -// constructor -ttcp_sequence::ttcp_sequence(STUB_Object *refdata) - : CORBA_Object(refdata) -{ -} - -// static duplicate method -ttcp_sequence_ptr ttcp_sequence::_duplicate(ttcp_sequence_ptr obj) -{ - void *dupl; - - if (obj) - { - obj->AddRef(); - } - return obj; -} - -// static _narrow method -ttcp_sequence_ptr ttcp_sequence::_narrow(CORBA_Object_ptr obj) -{ - CORBA_Environment env; - if (obj->_is_a("IDL:ttcp_sequence:1.0", env)){ - STUB_Object *istub; - if (obj->QueryInterface(IID_STUB_Object, (void **)&istub) != NOERROR){ - return ttcp_sequence::_nil(); - } - ttcp_sequence_ptr new_obj = new ttcp_sequence(istub); - return ttcp_sequence::_duplicate(new_obj); - } - return ttcp_sequence::_nil(); -} - -ttcp_sequence_ptr ttcp_sequence::_nil() -{ - return (ttcp_sequence_ptr)NULL; -} - -ttcp_sequence::ShortSeq::ShortSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(0) -{ -} - -ttcp_sequence::ShortSeq::ShortSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Short[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::ShortSeq::ShortSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Short *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::ShortSeq::~ShortSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void ttcp_sequence::ShortSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Short *temp = new CORBA_Short[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Short))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Short)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::ShortSeq::length() const -{ - return this->_length; -} - -CORBA_Short& ttcp_sequence::ShortSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Short& ttcp_sequence::ShortSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -// LongSeq -ttcp_sequence::LongSeq::LongSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(0) -{ -} - -ttcp_sequence::LongSeq::LongSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Long[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::LongSeq::LongSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Long *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::LongSeq::~LongSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void ttcp_sequence::LongSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Long *temp = new CORBA_Long[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Long))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Long)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::LongSeq::length() const -{ - return this->_length; -} - -CORBA_Long& ttcp_sequence::LongSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Long& ttcp_sequence::LongSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -// DoubleSeq -ttcp_sequence::DoubleSeq::DoubleSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(0) -{ -} - -ttcp_sequence::DoubleSeq::DoubleSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Double[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::DoubleSeq::DoubleSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Double *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::DoubleSeq::~DoubleSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void ttcp_sequence::DoubleSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Double *temp = new CORBA_Double[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Double))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Double)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::DoubleSeq::length() const -{ - return this->_length; -} - -CORBA_Double& ttcp_sequence::DoubleSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Double& ttcp_sequence::DoubleSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -// Char seq -ttcp_sequence::CharSeq::CharSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(0) -{ -} - -ttcp_sequence::CharSeq::CharSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Char[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::CharSeq::CharSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Char *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::CharSeq::~CharSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void ttcp_sequence::CharSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Char *temp = new CORBA_Char[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Char))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Char)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::CharSeq::length() const -{ - return this->_length; -} - -CORBA_Char& ttcp_sequence::CharSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Char& ttcp_sequence::CharSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -//Octet Seq -ttcp_sequence::OctetSeq::OctetSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(0) -{ -} - -ttcp_sequence::OctetSeq::OctetSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new CORBA_Octet[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::OctetSeq::OctetSeq(CORBA_ULong max, CORBA_ULong length, - CORBA_Octet *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::OctetSeq::~OctetSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void ttcp_sequence::OctetSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - CORBA_Octet *temp = new CORBA_Octet[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(CORBA_Octet))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(CORBA_Octet)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::OctetSeq::length() const -{ - return this->_length; -} - -CORBA_Octet& ttcp_sequence::OctetSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const CORBA_Octet& ttcp_sequence::OctetSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - - -//struct seq -ttcp_sequence::StructSeq::StructSeq() - : _maximum(0), - _length(0), - _buffer(0), - _release(0) -{ -} - -ttcp_sequence::StructSeq::StructSeq(CORBA_ULong max) - : _maximum(max), - _length(0), - _release(0) -{ - if (this->_maximum > 0){ - this->_buffer = new PerfStruct[this->_maximum]; - } else { - this->_buffer = 0; - } -} - -ttcp_sequence::StructSeq::StructSeq(CORBA_ULong max, CORBA_ULong length, - PerfStruct *value, CORBA_Boolean release) - : _maximum(max), - _length(length), - _buffer(value), - _release(release) -{ -} - -ttcp_sequence::StructSeq::~StructSeq() -{ - this->_maximum = this->_length = 0; - if (this->_release != 0) - delete this->_buffer; -} - -void ttcp_sequence::StructSeq::length(CORBA_ULong newlen) -{ - if (newlen > this->_maximum) { - PerfStruct *temp = new PerfStruct[newlen]; - ::memcpy(temp, this->_buffer, (size_t(this->_length) * sizeof(PerfStruct))); - if (this->_release) - delete this->_buffer; - else - this->_release = 1; - - this->_maximum = newlen; - this->_buffer = temp; - } - if (newlen > this->_length) - memset(&this->_buffer[this->_length], 0, size_t(newlen - this->_length) * - sizeof(PerfStruct)); - this->_length = newlen; -} - -CORBA_ULong ttcp_sequence::StructSeq::length() const -{ - return this->_length; -} - -PerfStruct& ttcp_sequence::StructSeq::operator[](CORBA_ULong index) -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - -const PerfStruct& ttcp_sequence::StructSeq::operator[](CORBA_ULong index) const -{ - if (index >= this->_length) - exit(1); - return this->_buffer[index]; -} - - -/***************** TypeCodes **************/ - -// encapsulated parameters for struct PerfStruct typecode -static const CORBA_Long _oc_PerfStruct [] = { - // strings are encoded as length followed by the string. A length of 1 stands - // for the NULL character - MY_BYTE_SEX, // byte order - 1, 0, // empty string, repoID - 1, 0, // empty string, struct name - 6, // 6 struct elements - - // short - 1, 0, // empty string - tk_short, - - // char - 1, 0, - tk_char, - - // long - 1, 0, - tk_long, - - // octet - 1, 0, - tk_octet, - - // double - 1, 0, - tk_double, - - // padding - 1, 0, - tk_array, - 12, // encapsulation length - MY_BYTE_SEX, - tk_octet, - 8 -}; - - -static CORBA_TypeCode _tc__tc_PerfStruct(tk_struct, - sizeof _oc_PerfStruct, - (unsigned char *) &_oc_PerfStruct, - 0); -CORBA_TypeCode_ptr _tc_PerfStruct = &_tc__tc_PerfStruct; - -// Typecodes for all the sequences - -// StructSeq -static const CORBA_Long _oc_ttcp_sequence_StructSeq [] = { - MY_BYTE_SEX, // byte order - tk_struct, // sequence of struct - 112, // encapsulaton length - MY_BYTE_SEX, // byte order - 1, 0, // empty string, repoID - 1, 0, // empty string, struct name - 6, // 6 struct elements - - // short - 1, 0, // empty string - tk_short, - - // char - 1, 0, - tk_char, - - // long - 1, 0, - tk_long, - - // octet - 1, 0, - tk_octet, - - // double - 1, 0, - tk_double, - - // padding - 1, 0, - tk_array, // array - 12, //encapsulation length - MY_BYTE_SEX, - tk_octet, - 8, - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_StructSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_StructSeq, - (unsigned char *) - &_oc_ttcp_sequence_StructSeq, - 0); -CORBA_TypeCode_ptr ttcp_sequence::_tc_StructSeq = &_tc__tc_ttcp_sequence_StructSeq; - -// ShortSeq -static const CORBA_Long _oc_ttcp_sequence_ShortSeq [] = { - MY_BYTE_SEX, // byte order - tk_short, // sequence of short - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_ShortSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_ShortSeq, - (unsigned char *) - &_oc_ttcp_sequence_ShortSeq, - 0); -CORBA_TypeCode_ptr ttcp_sequence::_tc_ShortSeq = &_tc__tc_ttcp_sequence_ShortSeq; - -// LongSeq -static const CORBA_Long _oc_ttcp_sequence_LongSeq [] = { - MY_BYTE_SEX, // byte order - tk_long, // sequence of long - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_LongSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_LongSeq, - (unsigned char *) - &_oc_ttcp_sequence_LongSeq, - 0); -CORBA_TypeCode_ptr ttcp_sequence::_tc_LongSeq = &_tc__tc_ttcp_sequence_LongSeq; - -// DoubleSeq -static const CORBA_Long _oc_ttcp_sequence_DoubleSeq [] = { - MY_BYTE_SEX, // byte order - tk_double, // sequence of doubles - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_DoubleSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_DoubleSeq, - (unsigned char *) - &_oc_ttcp_sequence_DoubleSeq, - 0); -CORBA_TypeCode_ptr ttcp_sequence::_tc_DoubleSeq = &_tc__tc_ttcp_sequence_DoubleSeq; - -// CharSeq -static const CORBA_Long _oc_ttcp_sequence_CharSeq [] = { - MY_BYTE_SEX, // byte order - tk_char, // sequence of chars - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_CharSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_CharSeq, - (unsigned char *) - &_oc_ttcp_sequence_CharSeq, - 0); -CORBA_TypeCode_ptr ttcp_sequence::_tc_CharSeq = &_tc__tc_ttcp_sequence_CharSeq; - -//OctetSeq -static const CORBA_Long _oc_ttcp_sequence_OctetSeq [] = { - MY_BYTE_SEX, // byte order - tk_octet, // sequence of octets - 0, // a length of 0 => unbounded sequence -}; -static CORBA_TypeCode _tc__tc_ttcp_sequence_OctetSeq(tk_sequence, - sizeof - _oc_ttcp_sequence_OctetSeq, - (unsigned char *) - &_oc_ttcp_sequence_OctetSeq, - 0); -CORBA_TypeCode_ptr ttcp_sequence::_tc_OctetSeq = &_tc__tc_ttcp_sequence_OctetSeq; - - - -/***************** All the methods ********************/ - -//sendShortSeq -static const TAO_Param_Data ttcp_sequence_sendShortSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_ShortSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendShortSeq_TAO_Call_Data = { - "sendShortSeq", // opname -#ifndef ONEWAY - 1, // twoway - 2, // param count -#else - 0, // oneway - 1, -#endif - &ttcp_sequence_sendShortSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendShortSeq(const ttcp_sequence::ShortSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendShortSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendShortSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendLongSeq -static const TAO_Param_Data ttcp_sequence_sendLongSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_LongSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendLongSeq_TAO_Call_Data = { - "sendLongSeq", // opname -#ifndef ONEWAY - 1, // twoway - 2, // param count -#else - 0, // oneway - 1, -#endif - &ttcp_sequence_sendLongSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendLongSeq(const ttcp_sequence::LongSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendLongSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendLongSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendDoubleSeq -static const TAO_Param_Data ttcp_sequence_sendDoubleSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_DoubleSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendDoubleSeq_TAO_Call_Data = { - "sendDoubleSeq", // opname -#ifndef ONEWAY - 1, // twoway - 2, // param count -#else - 0, // oneway - 1, -#endif - &ttcp_sequence_sendDoubleSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendDoubleSeq(const ttcp_sequence::DoubleSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendDoubleSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendDoubleSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendCharSeq -static const TAO_Param_Data ttcp_sequence_sendCharSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_CharSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendCharSeq_TAO_Call_Data = { - "sendCharSeq", // opname -#ifndef ONEWAY - 1, // twoway - 2, // param count -#else - 0, // oneway - 1, -#endif - &ttcp_sequence_sendCharSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendCharSeq(const ttcp_sequence::CharSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendCharSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendCharSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendOctetSeq -static const TAO_Param_Data ttcp_sequence_sendOctetSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_OctetSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendOctetSeq_TAO_Call_Data = { - "sendOctetSeq", // opname -#ifndef ONEWAY - 1, // twoway - 2, // param count -#else - 0, // oneway - 1, -#endif - &ttcp_sequence_sendOctetSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendOctetSeq(const ttcp_sequence::OctetSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendOctetSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendOctetSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -//sendStructSeq -static const TAO_Param_Data ttcp_sequence_sendStructSeq_params [] = { -#ifndef ONEWAY - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - }, -#endif - { ttcp_sequence::_tc_StructSeq, - PARAM_IN, - 0 - } -}; - -static const TAO_Call_Data ttcp_sequence_sendStructSeq_TAO_Call_Data = { - "sendStructSeq", // opname -#ifndef ONEWAY - 1, // twoway - 2, // param count -#else - 0, // oneway - 1, -#endif - &ttcp_sequence_sendStructSeq_params [0], - 0, 0 -}; - -// stub -void ttcp_sequence::sendStructSeq(const ttcp_sequence::StructSeq &ttcp_seq, - CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_sendStructSeq_TAO_Call_Data, 0, &ttcp_seq); -#else - istub->do_call(env, &ttcp_sequence_sendStructSeq_TAO_Call_Data, &ttcp_seq); -#endif -} - -// start timer -#ifndef ONEWAY -static const TAO_Param_Data ttcp_sequence_start_timer_params [] = { - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - } -}; -#endif - -static const TAO_Call_Data ttcp_sequence_start_timer_TAO_Call_Data = { - "start_timer", -#ifndef ONEWAY - 1, // twoway - 1, - &ttcp_sequence_start_timer_params [0], -#else - 0, // oneway - 0, - 0, -#endif - 0, 0 -}; - -//stub -void ttcp_sequence::start_timer(CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_start_timer_TAO_Call_Data); -#else - istub->do_call(env, &ttcp_sequence_start_timer_TAO_Call_Data); -#endif -} - -// stop timer -#ifndef ONEWAY -static const TAO_Param_Data ttcp_sequence_stop_timer_params [] = { - { _tc_CORBA_Void, - PARAM_RETURN, - 0 - } -}; -#endif - -static const TAO_Call_Data ttcp_sequence_stop_timer_TAO_Call_Data = { - "stop_timer", -#ifndef ONEWAY - 1, - 1, - &ttcp_sequence_stop_timer_params[0], -#else - 0, // oneway - 0, - 0, -#endif - 0, 0 -}; - -//stub -void ttcp_sequence::stop_timer(CORBA_Environment &env) -{ - STUB_Object *istub; - if (this->QueryInterface (IID_STUB_Object, (void **) &istub) != NOERROR){ - env.exception (new CORBA_DATA_CONVERSION (COMPLETED_NO)); - return; - } -#ifndef ONEWAY - // twoway - istub->do_call(env, &ttcp_sequence_stop_timer_TAO_Call_Data); -#else - istub->do_call(env, &ttcp_sequence_stop_timer_TAO_Call_Data); -#endif -} diff --git a/TAO/IIOP/tests/Thruput_test/ttcpC.h b/TAO/IIOP/tests/Thruput_test/ttcpC.h deleted file mode 100644 index b23be499c73..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpC.h +++ /dev/null @@ -1,229 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef TTCP_SEQUENCE_C_H -#define TTCP_SEQUENCE_C_H - -#include -#include - -#include "corba/orb.h" -#include "corba/stub.h" -#include "debug.h" - -// mapping for PerfStruct -struct PerfStruct{ - CORBA_Short s; - CORBA_Char c; - CORBA_Long l; - CORBA_Octet o; - CORBA_Double d; - CORBA_Octet pad[8]; - - - typedef CORBA_Octet pad_slice; - typedef pad_slice *pad_slice_ptr; - - static inline pad_slice *pad_alloc() { - return new CORBA_Octet[8]; - } - - static inline void pad_free(pad_slice *data) { - if (data) delete[] data; - } - -}; -extern CORBA_TypeCode_ptr _tc_PerfStruct; - -class ttcp_sequence; -typedef ttcp_sequence *ttcp_sequence_ptr; -typedef ttcp_sequence_ptr ttcp_sequenceRef; - -class ttcp_sequence: public virtual CORBA_Object -{ -public: - static ttcp_sequence_ptr _duplicate(ttcp_sequence_ptr obj); - static ttcp_sequence_ptr _narrow(CORBA_Object_ptr obj); - static ttcp_sequence_ptr _nil(); - - - class ShortSeq - { - public: - ShortSeq(); - ShortSeq(CORBA_ULong max); - ShortSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Short *value, - CORBA_Boolean release = 0 - ); - // ShortSeq(const ShortSeq&); - ~ShortSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Short &operator[](CORBA_ULong index); - const CORBA_Short &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Short *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_ShortSeq; - - class LongSeq - { - public: - LongSeq(); - LongSeq(CORBA_ULong max); - LongSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Long *value, - CORBA_Boolean release = 0 - ); - // LongSeq(const LongSeq&); - ~LongSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Long &operator[](CORBA_ULong index); - const CORBA_Long &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Long *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_LongSeq; - - class DoubleSeq - { - public: - DoubleSeq(); - DoubleSeq(CORBA_ULong max); - DoubleSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Double *value, - CORBA_Boolean release = 0 - ); - // DoubleSeq(const DoubleSeq&); - ~DoubleSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Double &operator[](CORBA_ULong index); - const CORBA_Double &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Double *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_DoubleSeq; - - class CharSeq - { - public: - CharSeq(); - CharSeq(CORBA_ULong max); - CharSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Char *value, - CORBA_Boolean release = 0 - ); - // CharSeq(const CharSeq&); - ~CharSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Char &operator[](CORBA_ULong index); - const CORBA_Char &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Char *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_CharSeq; - - class OctetSeq - { - public: - OctetSeq(); - OctetSeq(CORBA_ULong max); - OctetSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Octet *value, - CORBA_Boolean release = 0 - ); - // OctetSeq(const OctetSeq&); - ~OctetSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - CORBA_Octet &operator[](CORBA_ULong index); - const CORBA_Octet &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - CORBA_Octet *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_OctetSeq; - - class StructSeq - { - public: - StructSeq(); - StructSeq(CORBA_ULong max); - StructSeq(CORBA_ULong max, - CORBA_ULong length, - PerfStruct *value, - CORBA_Boolean release = 0 - ); - // StructSeq(const StructSeq&); - ~StructSeq(); - CORBA_ULong maximum() const; - void length(CORBA_ULong); - CORBA_ULong length() const; - PerfStruct &operator[](CORBA_ULong index); - const PerfStruct &operator[](CORBA_ULong index) const; - private: - CORBA_ULong _maximum; - CORBA_ULong _length; - PerfStruct *_buffer; - CORBA_Boolean _release; - }; - static CORBA_TypeCode_ptr _tc_StructSeq; - - - // now the methods - virtual void sendShortSeq(const ShortSeq& ttcp_seq, CORBA_Environment &); - virtual void sendLongSeq(const LongSeq& ttcp_seq, CORBA_Environment &); - virtual void sendDoubleSeq(const DoubleSeq& ttcp_seq, CORBA_Environment &); - virtual void sendOctetSeq(const OctetSeq& ttcp_seq, CORBA_Environment &); - virtual void sendCharSeq(const CharSeq& ttcp_seq, CORBA_Environment &); - virtual void sendStructSeq(const StructSeq& ttcp_seq, CORBA_Environment &); - - virtual void start_timer(CORBA_Environment &); - virtual void stop_timer(CORBA_Environment &); - -protected: - ttcp_sequence() {} - ttcp_sequence(STUB_Object *refdata); - virtual ~ttcp_sequence() {} - -private: - ttcp_sequence(const ttcp_sequence &) {} - void operator=(const ttcp_sequence &) {} -}; - -#endif - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcpS.cpp b/TAO/IIOP/tests/Thruput_test/ttcpS.cpp deleted file mode 100644 index c7e05a61b35..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpS.cpp +++ /dev/null @@ -1,325 +0,0 @@ -// $Id$ - -#include -#include "ttcpS.h" -#include "corba/orb.h" -#include "params.h" -#include "iiopobj.h" -#include "corba/optable.h" // for registering our methods -#include "corba/corbacom.h" - -ACE_RCSID(Thruput_test, ttcpS, "$Id$") - -TAO_Dynamic_Hash_OpTable tao_ttcp_sequence_optable(9); // 8 + 1 operations on our - // interface -// operation database -struct method_db -{ - CORBA_String opname; - TAO_Skeleton skel_ptr; -}; - -static const method_db ttcp_sequence_operations[] = { - {"_is_a", &_skel_ttcp_sequence::_ttcp_sequence_is_a_skel}, - { "sendShortSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendShortSeq_skel}, - { "sendLongSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendLongSeq_skel}, - { "sendDoubleSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendDoubleSeq_skel}, - { "sendOctetSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendOctetSeq_skel}, - { "sendCharSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendCharSeq_skel}, - { "sendStructSeq", &_skel_ttcp_sequence::_ttcp_sequence_sendStructSeq_skel}, - { "start_timer", &_skel_ttcp_sequence::_ttcp_sequence_start_timer_skel}, - { "stop_timer", &_skel_ttcp_sequence::_ttcp_sequence_stop_timer_skel}, - { 0, 0 } -}; - -// constructor -_skel_ttcp_sequence::_skel_ttcp_sequence(const char *obj_name) -{ - CORBA_String_var type_id = "IDL:ttcp_sequence:1.0"; // repository ID - IIOP_Object *data; // IIOP object - CORBA_BOA_ptr oa = TAO_OA_PARAMS::instance()->oa(); // underlying BOA - this->optable_ = &tao_ttcp_sequence_optable; // operation database - CORBA_Long i; - - // insert operation names into the operation table - for (i=0; i < 9; i++) - { - this->optable_->bind(ttcp_sequence_operations[i].opname, - ttcp_sequence_operations[i].skel_ptr); - } - - // setup an IIOP object - data = new IIOP_Object(type_id); - data->profile.iiop_version.major = IIOP::MY_MAJOR; - data->profile.iiop_version.minor = IIOP::MY_MINOR; - data->profile.host = ACE_OS::strdup(oa->get_addr().get_host_name()); - data->profile.port = oa->get_addr().get_port_number(); - data->profile.object_key.length = ACE_OS::strlen(obj_name); - data->profile.object_key.maximum = data->profile.object_key.length; - data->profile.object_key.buffer = new CORBA_Octet [(size_t)data->profile.object_key.length+1]; - ACE_OS::memcpy(data->profile.object_key.buffer, obj_name, - data->profile.object_key.length); // set the object key - this->set_parent(data); // store the IIOP obj reference with ourselves - this->sub_ = this; // set the most derived class to be ourselves - if (oa) oa->bind(data->profile.object_key, this);// register ourselves -} - -// skeleton sendShortSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendShortSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_ShortSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::ShortSeq *value = (ttcp_sequence::ShortSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendShortSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton sendLongSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendLongSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_LongSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::LongSeq *value = (ttcp_sequence::LongSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendLongSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton sendDoubleSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendDoubleSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_DoubleSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::DoubleSeq *value = (ttcp_sequence::DoubleSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendDoubleSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton sendOctetSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendOctetSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_OctetSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::OctetSeq *value = (ttcp_sequence::OctetSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendOctetSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton sendCharSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendCharSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_CharSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::CharSeq *value = (ttcp_sequence::CharSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendCharSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton sendStructSeq -void _skel_ttcp_sequence::_ttcp_sequence_sendStructSeq_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value(ttcp_sequence::_tc_StructSeq); - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value(0, temp_value, CORBA_ARG_IN, env); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - ttcp_sequence::StructSeq *value = (ttcp_sequence::StructSeq *)nv->value()->value(); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->sendStructSeq(*value, env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton start_timer -void _skel_ttcp_sequence::_ttcp_sequence_start_timer_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->start_timer(env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -// skeleton stop_timer -void _skel_ttcp_sequence::_ttcp_sequence_stop_timer_skel(CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env) -{ - CORBA_NVList_ptr nvlist; - ttcp_sequence_ptr impl; - - // now create a request and populate it with the typecodes - req.orb()->create_list (0, nvlist); - - // retrieve params - call the interpreter to interpret the parameters for us. - req.params(nvlist, env); - - // now invoke the implementation - impl = (ttcp_sequence_ptr)(obj->get_subclass()); - // now the magic of dynamic binding - impl->stop_timer(env); - - // result - NO result - CORBA_Any *any = new CORBA_Any(_tc_CORBA_Void, 0, 1); - req.result(any, env); -} - -void _skel_ttcp_sequence::_ttcp_sequence_is_a_skel ( - CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env - ) -{ - CORBA_NVList_ptr nvlist; - CORBA_NamedValue_ptr nv; - CORBA_Any temp_value (_tc_CORBA_String); - char *type_id = "IDL:ttcp_sequence:1.0"; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA_ARG_IN, env); - - req.params (nvlist, env); - if (env.exception () != 0) { - dexc (env, "is_a_skel, get params"); - return; - } - - CORBA_Boolean *retval; - CORBA_String value = *(CORBA_String *)nv->value ()->value (); - - cout << "object id = " << ((char *)value) << endl; - if (strcmp ((char *)value, (char *)type_id) == 0 - || strcmp ((char *)value, _tc_CORBA_Object->id(env)) == 0) - retval = new CORBA_Boolean (1); - else - retval = new CORBA_Boolean (0); - - CORBA_Any *any = - new CORBA_Any (_tc_CORBA_Boolean, retval, 1); - - req.result (any, env); - dexc (env, "_is_a, result"); -} - diff --git a/TAO/IIOP/tests/Thruput_test/ttcpS.h b/TAO/IIOP/tests/Thruput_test/ttcpS.h deleted file mode 100644 index 14ff95379e3..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcpS.h +++ /dev/null @@ -1,70 +0,0 @@ -// $Id$ - -/************************************************************************** -This file has been hand-crafted to work with the ORB API of TAO -***************************************************************************/ - -#ifndef TTCP_SEQUENCE_S_H -#define TTCP_SEQUENCE_S_H - -#include -#include - -#include "ttcpC.h" - - -class _skel_ttcp_sequence; -typedef _skel_ttcp_sequence *_skel_ttcp_sequence_ptr; -typedef _skel_ttcp_sequence *_skel_ttcp_sequence_ref; - -class _skel_ttcp_sequence: public ttcp_sequence -{ -public: - // pure virtual functions implemented by the implementation class - virtual void sendShortSeq(const ShortSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendLongSeq(const LongSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendDoubleSeq(const DoubleSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendOctetSeq(const OctetSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendCharSeq(const CharSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void sendStructSeq(const StructSeq& ttcp_seq, CORBA_Environment &) = 0; - virtual void start_timer(CORBA_Environment &) = 0; - virtual void stop_timer(CORBA_Environment &) = 0; - - // skeletons that do the upcall - static void _ttcp_sequence_is_a_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendShortSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendLongSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendDoubleSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendOctetSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendCharSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_sendStructSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_start_timer_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); - static void _ttcp_sequence_stop_timer_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); -protected: - _skel_ttcp_sequence(const char *obj_name = 0); - virtual ~_skel_ttcp_sequence() {} -}; - -#endif - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_decl.h b/TAO/IIOP/tests/Thruput_test/ttcp_decl.h deleted file mode 100644 index 769e4bd2915..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp_decl.h +++ /dev/null @@ -1,153 +0,0 @@ -// $Id$ - - -/* - * T T C P Header File - * - */ - -/* This file includes all the declarations and prototypes */ - -#ifndef _TTCP_DECL_H_ -#define _TTCP_DECL_H_ - -#include "ttcpC.h" - -/* #define BSD43 */ -/* #define BSD42 */ -/* #define BSD41a */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include /* struct itimerval */ -#include -#include -#include -#include -#include - -/* File to be included if Quantify is to be used */ -#if defined (USE_QUANTIFY) -#include -#endif - - -#if defined(SYSV) -#define bcopy(b1,b2,n) memcpy(b2,b1,n) -#define bzero(b1,n) memset(b1,0,n) -#include -#include -#endif - -#if defined(SUNOS54) -struct rusage - { - struct timeval ru_utime, ru_stime; - }; -#define RUSAGE_SELF 0 -#else -#include -#endif - -/* define the data types to be sent */ -#define SEND_SHORT ((unsigned long)(1)) -#define SEND_LONG ((unsigned long)(2)) -#define SEND_CHAR ((unsigned long)(3)) -#define SEND_OCTET ((unsigned long)(4)) -#define SEND_DOUBLE ((unsigned long)(5)) -#define SEND_STRUCT ((unsigned long)(6)) -#define SEND_COMPOSITE ((unsigned long)(7)) - -/************** -// Prototypes -***************/ -void err (char *s); -void mes (char *s); -char *outfmt (double b); -//static void getrusage (int ignored, register struct rusage *ru); -static void gettimeofday (struct timeval *tp, struct timezone *zp); -void prep_timer (void); -double read_timer (char *str, int len); -static void prusage (register struct rusage *r0, struct rusage *r1, struct timeval *e, struct timeval *b, char *outp); -static void tvadd (struct timeval *tsum, struct timeval *t0, struct timeval *t1); -static void tvsub (struct timeval *tdiff, struct timeval *t1, struct timeval *t0); -static void psecs (long l, register char *cp); -void delay (int us); -int mread (int fd, register char *bufp, unsigned n); -int Nread (int fd, void *buf, int count); -int Nwrite (int fd, void *buf, int count); -void FillPattern(register char *cp, register int bufLen, unsigned long dt); -void PrintStats(); -int SetSocketBufferSize(int size, unsigned short isTrans); -int SetNoDelay(); -void ProcessArguments(int argc, char **argv, unsigned short isTrans); - -/* Global variables defined here as extern */ -extern int fromlen; -extern int domain; /* Default is to use Internet domain sockets. */ -extern char *domainname; /* Rendezvous address for UNIX domain sockets. */ -extern int fd; /* fd of network socket */ - -extern int buflen; /* length of buffer */ -extern char *buf; /* ptr to dynamic buffer */ -extern int nbuf; /* number of buffers to send in sinkmode */ - -extern int bufoffset; /* align buffer to this */ -extern int bufalign; /* modulo this */ - -extern int udp; /* 0 = tcp, !0 = udp */ -extern int options; /* socket options */ -extern int one; /* for 4.3 BSD style setsockopt() */ -extern short port; /* TCP port number */ -extern char *host; /* ptr to name of host */ -extern int trans; /* 0=receive, !0=transmit mode */ -extern int sinkmode; /* 0=normal I/O, !0=sink/source mode */ -extern int verbose; /* 0=print basic info, 1=print cpu rate, proc - * resource usage. */ -extern int nodelay; /* set TCP_NODELAY socket option */ -extern int b_flag; /* use mread() */ -extern int sockbufsize; /* socket buffer size to use */ -extern int new_line; /* This is a special flag */ -extern int write_to_file; /* indecates writing to file (default)*/ -extern char fmt; /* output format:k=kilobits,K=kilobytes, - * m = megabits, M = megabytes, - * g = gigabits, G = gigabytes */ -extern int touchdata; /* access data after reading */ - -extern struct hostent *addr; -extern int errno; -extern int optind; -extern char *optarg; -extern char *title; - -extern char stats[128]; -extern unsigned long srcDataSize; /* Total amount of source data */ -extern unsigned long nbytes; /* bytes on net */ -extern unsigned long numCalls; /* # of I/O system calls */ -extern double cput, realt; /* user, real time (seconds) */ -extern unsigned long dt; - -extern unsigned short isDone; - -/* declare struct variables for various message types */ -extern ttcp_sequence::ShortSeq *sseq; -extern ttcp_sequence::LongSeq *lseq; -extern ttcp_sequence::OctetSeq *oseq; -extern ttcp_sequence::DoubleSeq *dseq; -extern ttcp_sequence::CharSeq *cseq; -extern ttcp_sequence::StructSeq *Sseq; - -#endif diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_i.cpp b/TAO/IIOP/tests/Thruput_test/ttcp_i.cpp deleted file mode 100644 index f9fd1ffc095..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp_i.cpp +++ /dev/null @@ -1,92 +0,0 @@ -// $Id$ - -#include "ttcp_i.h" -#include - -ACE_RCSID(Thruput_test, ttcp_i, "$Id$") - -/* the ttcp_i class implementation */ -ttcp_sequence_i::ttcp_sequence_i(const char *obj_name) - :_skel_ttcp_sequence(obj_name) -{ - this->nbytes_ = 0; - numCalls = 0; -} - - -void -ttcp_sequence_i::start_timer (CORBA_Environment &IT_env) -{ - this->nbytes_ = 0; - ::prep_timer (); -} - -void -ttcp_sequence_i::stop_timer (CORBA_Environment &IT_env) -{ - (void) ::read_timer (stats, sizeof (stats)); - ::nbytes = this->nbytes_; - ::PrintStats(); - // reset - this->nbytes_ = 0; - numCalls = 0; -#if defined (USE_QUANTIFY) - quantify_stop_recording_data(); - ACE_Reactor::end_event_loop(); - cerr << "*********** just before exiting " << endl; -#endif -} - -void -ttcp_sequence_i::sendShortSeq(const ttcp_sequence::ShortSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Short); -} - -void -ttcp_sequence_i::sendLongSeq(const ttcp_sequence::LongSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Long) ; -} - -void -ttcp_sequence_i::sendOctetSeq(const ttcp_sequence::OctetSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Octet) ; -} - -void -ttcp_sequence_i::sendDoubleSeq(const ttcp_sequence::DoubleSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Double) ; -} - -void -ttcp_sequence_i::sendCharSeq(const ttcp_sequence::CharSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(CORBA_Char) ; -} - -void -ttcp_sequence_i::sendStructSeq(const ttcp_sequence::StructSeq& ttcp_seq, CORBA_Environment &IT_env) -{ - numCalls++; - this->nbytes_ += ttcp_seq.length()*sizeof(PerfStruct) ; -#ifdef DEBUG - // cout << "Bytes received so far = " << this->nbytes_ << endl; -#endif -} - - - - - - - - - diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_i.h b/TAO/IIOP/tests/Thruput_test/ttcp_i.h deleted file mode 100644 index 71d2266e334..00000000000 --- a/TAO/IIOP/tests/Thruput_test/ttcp_i.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ttcp_i.h -// -// This header file provides facility to use it either as a BOA approach or as -// a TIE approach. -// -#if !defined (TTCP_I_H) -#define TTCP_I_H - -#include "ttcp_decl.h" -#include "ttcpS.h" - -/* define the data types to be sent */ -#define SEND_SHORT ((unsigned long)(1)) -#define SEND_LONG ((unsigned long)(2)) -#define SEND_CHAR ((unsigned long)(3)) -#define SEND_OCTET ((unsigned long)(4)) -#define SEND_DOUBLE ((unsigned long)(5)) -#define SEND_STRUCT ((unsigned long)(6)) - - -class ttcp_sequence_i: public _skel_ttcp_sequence -{ -public: - ttcp_sequence_i(const char *obj_name = 0); - - virtual void sendShortSeq (const ttcp_sequence::ShortSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendLongSeq (const ttcp_sequence::LongSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendDoubleSeq (const ttcp_sequence::DoubleSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendCharSeq (const ttcp_sequence::CharSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendStructSeq (const ttcp_sequence::StructSeq& ttcp_seq, - CORBA_Environment &IT_env); - virtual void sendOctetSeq (const ttcp_sequence::OctetSeq& ttcp_seq, - CORBA_Environment &IT_env); - - /* Routines to calculate the time required to transfer */ - virtual void start_timer (CORBA_Environment &IT_env); - virtual void stop_timer (CORBA_Environment &IT_env); - -private: - unsigned long nbytes_; -}; - -#endif // defined (TTCP_I_H) - diff --git a/TAO/IIOP/tests/Thruput_test/utils.cpp b/TAO/IIOP/tests/Thruput_test/utils.cpp deleted file mode 100644 index 1622f37a166..00000000000 --- a/TAO/IIOP/tests/Thruput_test/utils.cpp +++ /dev/null @@ -1,563 +0,0 @@ -// $Id$ - -#include "ttcp_decl.h" - -ACE_RCSID(Thruput_test, utils, "$Id$") - -int SetSocketBufferSize(int size, unsigned short isTrans) -{ - // go thru open file descriptors and check if its is a socket and - // if so, set its socket size to "size" - struct rlimit rlm; - memset(&rlm, 0, sizeof(struct rlimit)); - (void) getrlimit(RLIMIT_NOFILE, &rlm); - cout << "Total file descriptors = " << rlm.rlim_max << endl; - for (int i=3; i < rlm.rlim_max; i++){ - if (isTrans) - (void) setsockopt(i, SOL_SOCKET, SO_SNDBUF, - (char *) &size, sizeof(size)); - else - (void) setsockopt(i, SOL_SOCKET, SO_RCVBUF, - (char *) &size, sizeof(size)); - } - return 1; -} - -void -err (char *s) -{ - fprintf (stderr, "ttcp%s: ", trans ? "-t" : "-r"); - perror (s); - fprintf (stderr, "errno=%d\n", errno); - exit (1); -} - -void -mes (char *s) -{ - fprintf (stderr, "ttcp%s: %s\n", trans ? "-t" : "-r", s); -} - -char * -outfmt (double b) -{ - static char obuf[50]; - switch (fmt) - { - case 'G': - sprintf (obuf, "%.2f GB", b / 1024.0 / 1024.0 / 1024.0); - break; - default: - case 'K': - sprintf (obuf, "%.2f KB", b / 1024.0); - break; - case 'M': - sprintf (obuf, "%.2f MB", b / 1024.0 / 1024.0); - break; - case 'g': - sprintf (obuf, "%.2f Gbit", b * 8.0 / 1024.0 / 1024.0 / 1024.0); - break; - case 'k': - sprintf (obuf, "%.2f Kbit", b * 8.0 / 1024.0); - break; - case 'm': - sprintf (obuf, "%.2f Mbit", b * 8.0 / 1024.0 / 1024.0); - break; - } - return obuf; -} - -static struct itimerval itime0; /* Time at which timing started */ -static struct rusage ru0; /* Resource utilization at the start */ - -#if defined(SYSV) -/*ARGSUSED */ -static void -getrusage (int ignored, register struct rusage *ru) -{ - struct tms buf; - - times (&buf); - - /* Assumption: HZ <= 2147 (LONG_MAX/1000000) */ - ru->ru_stime.tv_sec = buf.tms_stime / HZ; - ru->ru_stime.tv_usec = ((buf.tms_stime % HZ) * 1000000) / HZ; - ru->ru_utime.tv_sec = buf.tms_utime / HZ; - ru->ru_utime.tv_usec = ((buf.tms_utime % HZ) * 1000000) / HZ; -} - -/*ARGSUSED */ -static void -gettimeofday (struct timeval *tp, struct timezone *zp) -{ - tp->tv_sec = time (0); - tp->tv_usec = 0; -} -#endif /* SYSV */ -/* - * P R E P _ T I M E R - */ -void -prep_timer () -{ - itime0.it_interval.tv_sec = 0; - itime0.it_interval.tv_usec = 0; - itime0.it_value.tv_sec = LONG_MAX / 22; /* greatest possible value , itimer() count backwards */ - itime0.it_value.tv_usec = 0; - - - getrusage (RUSAGE_SELF, &ru0); - - /* Init REAL Timer */ - if (setitimer (ITIMER_REAL, &itime0, NULL)) - { - perror ("Setting 'itimer' REAL failed"); - return; - } - -} - -/* - * R E A D _ T I M E R - * - */ -double -read_timer (char *str, int len) -{ - struct itimerval itimedol; - struct rusage ru1; - struct timeval td; - struct timeval tend, tstart; - char line[132]; - - getrusage (RUSAGE_SELF, &ru1); - - if (getitimer (ITIMER_REAL, &itimedol)) - { - perror ("Getting 'itimer' REAL failed"); - return (0.0); - } - - prusage (&ru0, &ru1, &itime0.it_value, &itimedol.it_value, line); - (void) strncpy (str, line, len); - - /* Get real time */ - tvsub (&td, &itime0.it_value, &itimedol.it_value); - realt = td.tv_sec + ((double) td.tv_usec) / 1000000; - - /* Get CPU time (user+sys) */ - tvadd (&tend, &ru1.ru_utime, &ru1.ru_stime); - tvadd (&tstart, &ru0.ru_utime, &ru0.ru_stime); - tvsub (&td, &tend, &tstart); - cput = td.tv_sec + ((double) td.tv_usec) / 1000000; - if (cput < 0.00001) - cput = 0.00001; - return (cput); -} - -static void -prusage (register struct rusage *r0, struct rusage *r1, - struct timeval *e, struct timeval *b, char *outp) -{ - struct timeval tdiff; - register time_t t; - register char *cp; - register int i; - int ms; - - t = (r1->ru_utime.tv_sec - r0->ru_utime.tv_sec) * 100 + - (r1->ru_utime.tv_usec - r0->ru_utime.tv_usec) / 10000 + - (r1->ru_stime.tv_sec - r0->ru_stime.tv_sec) * 100 + - (r1->ru_stime.tv_usec - r0->ru_stime.tv_usec) / 10000; - ms = (e->tv_sec - b->tv_sec) * 100 + (e->tv_usec - b->tv_usec) / 10000; - -#define END(x) {while(*x) x++;} -#if defined(SYSV) - cp = "%Uuser %Ssys %Ereal %P"; -#else -#if defined(sgi) /* IRIX 3.3 will show 0 for %M,%F,%R,%C */ - cp = "%Uuser %Ssys %Ereal %P %Mmaxrss %F+%Rpf %Ccsw"; -#else - cp = "%Uuser %Ssys %Ereal %P %Xi+%Dd %Mmaxrss %F+%Rpf %Ccsw"; -#endif -#endif - for (; *cp; cp++) - { - if (*cp != '%') - *outp++ = *cp; - else if (cp[1]) - switch (*++cp) - { - - case 'U': - tvsub (&tdiff, &r1->ru_utime, &r0->ru_utime); - sprintf (outp, "%d.%01d", tdiff.tv_sec, tdiff.tv_usec / 100000); - END (outp); - break; - - case 'S': - tvsub (&tdiff, &r1->ru_stime, &r0->ru_stime); - sprintf (outp, "%d.%01d", tdiff.tv_sec, tdiff.tv_usec / 100000); - END (outp); - break; - - case 'E': - psecs (ms / 100, outp); - END (outp); - break; - - case 'P': - sprintf (outp, "%d%%", (int) (t * 100 / ((ms ? ms : 1)))); - END (outp); - break; - -#if !defined(SYSV) - case 'W': - i = r1->ru_nswap - r0->ru_nswap; - sprintf (outp, "%d", i); - END (outp); - break; - - case 'X': - sprintf (outp, "%d", t == 0 ? 0 : (r1->ru_ixrss - r0->ru_ixrss) / t); - END (outp); - break; - - case 'D': - sprintf (outp, "%d", t == 0 ? 0 : - (r1->ru_idrss + r1->ru_isrss - (r0->ru_idrss + r0->ru_isrss)) / t); - END (outp); - break; - - case 'K': - sprintf (outp, "%d", t == 0 ? 0 : - ((r1->ru_ixrss + r1->ru_isrss + r1->ru_idrss) - - (r0->ru_ixrss + r0->ru_idrss + r0->ru_isrss)) / t); - END (outp); - break; - - case 'M': - sprintf (outp, "%d", r1->ru_maxrss / 2); - END (outp); - break; - - case 'F': - sprintf (outp, "%d", r1->ru_majflt - r0->ru_majflt); - END (outp); - break; - - case 'R': - sprintf (outp, "%d", r1->ru_minflt - r0->ru_minflt); - END (outp); - break; - - case 'I': - sprintf (outp, "%d", r1->ru_inblock - r0->ru_inblock); - END (outp); - break; - - case 'O': - sprintf (outp, "%d", r1->ru_oublock - r0->ru_oublock); - END (outp); - break; - case 'C': - sprintf (outp, "%d+%d", r1->ru_nvcsw - r0->ru_nvcsw, - r1->ru_nivcsw - r0->ru_nivcsw); - END (outp); - break; -#endif /* !SYSV */ - } - } - *outp = '\0'; -} - -static void -tvadd (struct timeval *tsum, struct timeval *t0, struct timeval *t1) -{ - - tsum->tv_sec = t0->tv_sec + t1->tv_sec; - tsum->tv_usec = t0->tv_usec + t1->tv_usec; - if (tsum->tv_usec > 1000000) - tsum->tv_sec++, tsum->tv_usec -= 1000000; -} - -static void -tvsub (struct timeval *tdiff, struct timeval *t1, struct timeval *t0) -{ - - tdiff->tv_sec = t1->tv_sec - t0->tv_sec; - tdiff->tv_usec = t1->tv_usec - t0->tv_usec; - if (tdiff->tv_usec < 0) - tdiff->tv_sec--, tdiff->tv_usec += 1000000; -} - -static void -psecs (long l, register char *cp) -{ - register int i; - - i = l / 3600; - if (i) - { - sprintf (cp, "%d:", i); - END (cp); - i = l % 3600; - sprintf (cp, "%d%d", (i / 60) / 10, (i / 60) % 10); - END (cp); - } - else - { - i = l; - sprintf (cp, "%d", i / 60); - END (cp); - } - i %= 60; - *cp++ = ':'; - sprintf (cp, "%d%d", i / 10, i % 10); -} - -/* - * N R E A D - */ -int -Nread (int fd, void *buf, int count) -{ - struct sockaddr_in from; - int len = sizeof (from); - register int cnt; - if (udp) - { - cnt = recvfrom (fd, (char *) buf, count, 0, (struct sockaddr *) &from, &len); - numCalls++; - } - else - { - if (b_flag) - cnt = mread (fd, (char *) buf, count); /* fill buf */ - else - { - cnt = read (fd, buf, count); - numCalls++; - } - if (touchdata && cnt > 0) - { - register int c = cnt, sum; - register char *b = (char *) buf; - while (c--) - sum += *b++; - } - } - return (cnt); -} - - -/* - * N W R I T E - */ -int -Nwrite (int fd, void *buf, int count) -{ - return 0; -} - -void -delay (int us) -{ - struct timeval tv; - - tv.tv_sec = 0; - tv.tv_usec = us; - (void) select (1, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, &tv); -} - -/* - * M R E A D - * - * This function performs the function of a read(II) but will - * call read(II) multiple times in order to get the requested - * number of characters. This can be necessary because - * network connections don't deliver data with the same - * grouping as it is written with. Written by Robert S. Miles, BRL. - */ -int -mread (int fd, register char *bufp, unsigned n) -{ - register unsigned count = 0; - register int nread; - - do - { - nread = read (fd, bufp, n - count); - numCalls++; - if (nread < 0) - { - perror ("ttcp_mread"); - return (-1); - } - if (nread == 0) - return ((int) count); - count += (unsigned) nread; - bufp += nread; - } - while (count < n); - - return ((int) count); -} - -void -FillPattern (register char *cp, register int bufLen, unsigned long dt) -{ - unsigned long - num, i; - - switch(dt){ - case SEND_SHORT: - { - register short *SeqPtr = (short *)cp; - num = bufLen/sizeof(short); - for (i=0; i < num; i++) - SeqPtr[i] = (short)lrand48(); - sseq = new ttcp_sequence::ShortSeq(num,num, SeqPtr); - } - break; - case SEND_LONG: - { - register long *SeqPtr = (long *)cp; - num = bufLen/sizeof(long); - for (i=0; i < num; i++) - SeqPtr[i] = lrand48(); - lseq = new ttcp_sequence::LongSeq(num, num, SeqPtr); - } - break; - case SEND_DOUBLE: - { - register double *SeqPtr = (double *)cp; - num = bufLen/sizeof(double); - for (i=0; i < num; i++) - SeqPtr[i] = drand48(); - dseq = new ttcp_sequence::DoubleSeq(num, num, SeqPtr); - } - break; - case SEND_CHAR: - { - register CORBA_Char *SeqPtr = (CORBA_Char *)cp; - register char c = 0; - num = bufLen/sizeof(char); - for(i=0; i < num; i++){ - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i] = (c++ & 0x7f); - } - cseq = new ttcp_sequence::CharSeq(num, num, SeqPtr); - } - break; - case SEND_STRUCT: - { - register PerfStruct *SeqPtr = (PerfStruct *)cp; - register char c = 0; - num = bufLen/sizeof(PerfStruct); - for (i=0; i < num; i++){ - SeqPtr[i].s = (short)lrand48(); - SeqPtr[i].l = lrand48(); - SeqPtr[i].d = drand48(); - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i].c = (c++ & 0x7f); - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i].o = (unsigned char)(c++ & 0x7f); - } - Sseq = new ttcp_sequence::StructSeq(num, num, SeqPtr); - - } - break; - case SEND_OCTET: - default: - { - register CORBA_Octet *SeqPtr = (CORBA_Octet *)cp; - register char c = 0; - num = bufLen/sizeof(CORBA_Octet); - for(i=0; i < num; i++){ - while (!isprint(c & 0x7f)) - c++; - SeqPtr[i] = (c++ & 0x7f); - } - oseq = new ttcp_sequence::OctetSeq(num, num, SeqPtr); - } - break; - } -} -void PrintStats() -{ - if (cput <= 0.0) - cput = 0.001; - if (realt <= 0.0) - realt = 0.001; - -//#if defined (LM_RESULTS) - if (trans && (title != 0)) - { - double tmp; - FILE *outFile; - char filename[BUFSIZ]; - - strcpy(filename, title); - switch(dt){ - case SEND_SHORT: - strcat(filename, ".shortSeq.results"); - break; - case SEND_LONG: - strcat(filename, ".longSeq.results"); - break; - case SEND_DOUBLE: - strcat(filename, ".doubleSeq.results"); - break; - case SEND_CHAR: - strcat(filename, ".charSeq.results"); - break; - case SEND_STRUCT: - strcat(filename, ".structSeq.results"); - break; - case SEND_COMPOSITE: - strcat(filename, ".compositeSeq.results"); - break; - case SEND_OCTET: - default: - strcat(filename, ".octetSeq.results"); - break; - } - outFile = fopen (filename, "a+"); - if (new_line) - fprintf (outFile, "\n -l %ldk \t", buflen / 1024); - tmp = ((double) nbytes) / realt; - fprintf (outFile, "%.2f ", tmp * 8.0 / 1024.0 / 1024.0); - fclose (outFile); - } -//#endif - - fprintf (stdout, - "ttcp%s: %ld bytes in %.2f real seconds = %s/sec +++\n", - trans ? "-t" : "-r", - nbytes, realt, outfmt (((double) nbytes) / realt)); - if (verbose) - { - fprintf (stdout, - "ttcp%s: %ld bytes in %.2f CPU seconds = %s/cpu sec\n", - trans ? "-t" : "-r", - nbytes, cput, outfmt (((double) nbytes) / cput)); - } - fprintf (stdout, - "ttcp%s: %d Server Method calls, msec/call = %.2f, calls/sec = %.2f\n", - trans ? "-t" : "-r", - numCalls, - 1024.0 * realt / ((double) numCalls), - ((double) numCalls) / realt); - fprintf (stdout, "ttcp%s: %s\n", trans ? "-t" : "-r", stats); - if (verbose) - { - fprintf (stdout, - "ttcp%s: buffer address %#x\n", - trans ? "-t" : "-r", - buf); - } -} diff --git a/TAO/LICENSE.sun b/TAO/LICENSE.sun deleted file mode 100644 index 8bb53b36807..00000000000 --- a/TAO/LICENSE.sun +++ /dev/null @@ -1,64 +0,0 @@ -This notice applies to all files in this software distribution that -were originally derived from SunSoft IIOP code (these files contain -Sun Microsystems copyright notices). - -COPYRIGHT AND LICENSING ------------------------ - -Copyright 1995 Sun Microsystems, Inc. -Printed in the United States of America. -All Rights Reserved. - -This software product (LICENSED PRODUCT), implementing the Object Management -Group's "Internet Inter-ORB Protocol", is protected by copyright and is -distributed under the following license restricting its use. Portions of -LICENSED PRODUCT may be protected by one or more U.S. or foreign patents, or -pending applications. - -LICENSED PRODUCT is made available for your use provided that you include -this license and copyright notice on all media and documentation and the -software program in which this product is incorporated in whole or part. - -You may copy, modify, distribute, or sublicense the LICENCED PRODUCT without -charge as part of a product or software program developed by you, so long as -you preserve the functionality of interoperating with the Object Management -Group's "Internet Inter-ORB Protocol" version one. However, any uses other -than the foregoing uses shall require the express written consent of Sun -Microsystems, Inc. - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of the LICENSED PRODUCT as permitted herein. - -This license is effective until terminated by Sun for failure to comply with -this license. Upon termination, you shall destroy or return all code and -documentation for the LICENSED PRODUCT. - -LICENSED PRODUCT IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING -THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR -PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF DEALING, USAGE OR -TRADE PRACTICE. - -LICENSED PRODUCT IS PROVIDED WITH NO SUPPORT AND WITHOUT ANY OBLIGATION ON -THE PART OF SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES TO ASSIST IN ITS -USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -LICENSED PRODUCT OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to restrictions -as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and -Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19. - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems and the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - diff --git a/TAO/Makefile b/TAO/Makefile deleted file mode 100644 index 168004364d2..00000000000 --- a/TAO/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the TAO -#---------------------------------------------------------------------------- - -#### The "release" targets can be used to create the ACE+TAO kit. By -#### default, it creates a new beta release. To create a new minor or -#### major release, add "REL=minor" or "REL=major", respectively, to -#### the make invocation. -#### -#### To see what make release would do without actually doing it, add -#### "CHECK=-n" to the invocation. - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -INFO = README \ - VERSION - -DIRS = tao \ - TAO_IDL \ - orbsvcs \ - examples \ - performance-tests \ - tests \ - utils - -CLONE = Makefile \ - tao \ - TAO_IDL \ - orbsvcs \ - examples \ - performance-tests \ - tests \ - utils - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - -# For the following to work you need to compile the -# $(ACE_ROOT)/bin/clone.cpp file and install it in your ~/bin -# directory (or some place similar). - -.PHONY: clone -clone: - @for dir in $(CLONE) ;\ - do \ - (clone -s $(ACE_ROOT)/$$dir $$dir) \ - done - -CONTROLLED_FILES = ChangeLog \ - TAO-INSTALL.html \ - TAO-inheritance.pdf.gz \ - TAO-inheritance.ps.gz \ - BUG-REPORT-FORM \ - COPYING \ - COPYING.sun \ - release.chk \ - rules.tao.GNU \ - taoconfig.mk \ - docs \ - LICENSE.sun \ - Makefile \ - README \ - README.sun \ - tao \ - TAO_IDL \ - orbsvcs \ - examples \ - performance-tests \ - tests \ - utils \ - VERSION - -RELEASE_FILES = $(addprefix TAO/,$(CONTROLLED_FILES)) \ - TAO/INSTALL \ - TAO/orbsvcs/README - -.PHONY: INSTALL -INSTALL: TAO-INSTALL.html - @lynx -dump $^ > $@; chmod a+r $@ - -orbsvcs/README: docs/orbsvcs.html - @lynx -dump $^ > $@; chmod a+r $@ - -.PHONY: release - -REL = beta -CHECK = - -#### The call to make_release below doesn't actually create the kit. -#### If creating a release in /project/adaptive/ACE_wrappers/TAO, it -#### just updates the VERSION and ChangeLog files, and tags the release. -#### Then, make releasetao is invoked to actually create the kit. -release: INSTALL - @$(ACE_ROOT)/bin/make_release $(CHECK) -k tao -t $(REL) \ - -c "$(CONTROLLED_FILES)" -r "$(RELEASE_FILES)" && \ - cd .. && $(MAKE) releasetao diff --git a/TAO/README b/TAO/README deleted file mode 100644 index 437af7710dc..00000000000 --- a/TAO/README +++ /dev/null @@ -1,70 +0,0 @@ -Welcome to the latest release of The ACE ORB (TAO). TAO is a freely -available, open-source implementation of a CORBA 2.x-compliant ORB -that supports real-time extensions. Please see -www.cs.wustl.edu/~schmidt/TAO.html for more information on TAO. - -Detailed information on this version of TAO is available in the -$TAO_ROOT/docs subdirectory in HTML format. - -The current release of TAO contains the following components: - - * An ORB Core based on ACE C++ components. This ORB Core provides - 3 concurrency models: (1) Reactive, (2) Thread-per-Connection, - and (3) Thread-per-Rate (which is optimized for certain types - of deterministic real-time systems). - - * A highly optimized version of the SunSoft IIOP protocol engine. - - * An implementation of the Portable Object Adapter (POA) - specification. - - * An IDL compiler, based on the SunSoft IDL compiler. This IDL - compiler can generate compiled or interpreted stubs/skeletons - that use TAO's optimized IIOP protocol engine. In addition, - TAO's IDL compiler generates stubs/skeletons that support both - native C++ exceptions and the original CORBA::Environment - approach. - - * A Real-time Scheduling Service that determines the priority at - which Client requests are dispatched by the ORB. - - * A Real-time Event Service that dispatches CORBA events in - real-time. - - * Implementations of the CORBA Naming Service, Trading - Service, Concurrency Service, Audio/Video Streaming Service, - Property Service, and a Logging Service. - - * Many tests illustrating how to use TAO and measuring - TAO's performance. - -We've gotten TAO to interoperate with other ORBs (e.g., Orbix, -VisiBroker, miniCOOL, and CORBAplus), so we're confident that its -implementation of IIOP is robust. We're currently working on the -following features for TAO: - - * A highly extensible, highly optimized set of request - demultiplexing strategies that provide constant time lookup of - servants based on object keys and operation names contained in - CORBA requests. - -We plan to release these features throughout the fall of 1998. You -can keep track of our progress online at URL - -www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO/docs/releasenotes/ - -A quick build note for users who have used ACE with other ORBs: -linking TAO with a version of ACE that must also be linked against -another ORB vendor's library, e.g., liborbix.so, will produce -undefined and most likely unpredictable and erroneous results. - -We welcome suggestions for improvement, bug fixes, portability -enhancements, etc. and will strive to integrate correct bug fixes -quickly! The current release has been tested extensively, but if you -find any bugs, please report them to the ACE mailing list -ace-users@cs.wustl.edu using the $TAO_ROOT/BUG-REPORT-FORM. - -Thanks, - - Douglas C. Schmidt - schmidt@cs.wustl.edu diff --git a/TAO/README.sun b/TAO/README.sun deleted file mode 100644 index 5fbfaeacbdc..00000000000 --- a/TAO/README.sun +++ /dev/null @@ -1,256 +0,0 @@ -======================================== - -This file contains the original README that came with the SunSoft IIOP -release. This information in this file is historical in nature and -the much of the specific information probably is inaccurate with -respect to the current state of TAO. Please see the ./README file -that comes with TAO for up-to-date information. - -Specifically, some of the files referred to below have been renamed in -TAO. - -======================================== - -@(#)README 1.2 97/02/03 - -Inter-ORB Engine -================ - -02-Feb, 1997 -Version 1.4 - - -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- - - As of today, this is the most current version of the "IIOP Engine". - It's doubtful that a later one will be released by Sun Microsystems. - - This still supports only IIOP v1.0 (no fragmentation or security - extensions) and contains a few bugs (GIOP service context typecode - is wrong). This version was completed before the COM/CORBA - "Part A" RFP cycle, as well as the "Secure IOP" work. - - It's different from other versions in that it has (a) the benefit - of much performance work, including support for multithreading, - (b) the source code is reorganized to display more of the internal - structure, and (c) it incorporates a simple COM glue layer (which - is not the same as the one later standardized by the OMG). There - is surely more; for example, experimental XDR marshaling support. - - Documentation hasn't particularly been updated. It'll need more work - to run "out of the box" since it doesn't use autoconf just now. - - Please drop me a line (brownell@ix.netcom.com) if you're using this. - - - Dave - - -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- - - -INTRODUCTION ------------- -Welcome to the Inter-ORB Engine! This is the source code version of -SunSoft's portable implementation of the CORBA 2.0 mandatory "IIOP" -interoperability protocol for networked ORBs. - -This is a preliminary version. This software is made available AS IS and -WITH NO GUARANTEES. Please make sure you read and understand the copyright -and license notice under which this software is distributed. This notice -may be found in the "LICENSE" file that is part of this distribution, and -also in the corba/orb.hh header file used by every source file. Note that -both commercial and noncommercial usage is allowed. - -The rest of this document includes these sections: - - - ENGINE OVERVIEW - - TARGET AUDIENCE - - HOW TO OBTAIN THIS SOFTWARE - - CONTACT POINT AND WORKING ALIAS - - ABOUT THIS IIOP SOFTWARE DISTRIBUTION - - WHAT ARE: IOP, IIOP, GIOP, ESIOP, AND DCE-CIOP? - -For instructions on how to build and test this software, see the file -named "BUILDING" in the "docs" directory. [Note, this is renamed to -TAO-Install.html for TAO]. - -ENGINE OVERVIEW ---------------- -The Inter-ORB Engine implementation is composed of four parts. Each of -these is found in a top level directory with the name used here: - - * "runtime" ... this defines the public binary interface to the engine, as - used by application (and test) programs. It has three main parts: - - - A CDR (Common Data Representation) marshaling engine, which encodes - simple OMG-IDL data types directly and uses a TypeCode interpreter - to marshal complex ones; - - - The TypeCode interpreter is used to manipulate all legal OMG-IDL - data types using just standard OMG-IDL TypeCodes; - - - The runtime framework itself includes a partial ORB implementation. - Its programming interfaces are specified in CORBA and it provides - the OMG-IDL C++ mapping of those abstractions in most cases; - - * "bridge" ... this is an IIOP-specific module which talks to the runtime - and to TCP-based sockets to send, receive, and dispatch IIOP messages. - - * "test" ... code for a few basic functional tests is included. - - * "docs" ... text files, such as this one, describe the way the - implementation works. This is oriented toward people who are - maintaining, porting, or otherwise enhancing this code. - -The package is not a full ORB. It doesn't support the full set of CORBA -APIs, an IDL compiler, an Interface Repository, a standard object adapter, -and more. You could use this software to help build an ORB, but you -would need to enhance it. - -If you have an interest in using an IDL compiler to generate TypeCodes, -stubs, and/or skeletons, you may be interested in the portable front end -for an OMG-IDL compiler which is available through the OMG FTP server. -Further information may be found in this file: - - ftp.omg.org:/pub/OMG_IDL/ANNOUNCEMENT - - -TARGET AUDIENCE ---------------- -Who should use this release? - -- Organizations which are providing their own implementations of the IIOP - should use this software to perform protocol testing, helping to ensure - that they can in fact interoperate with each other. - -- Bridge builders, including ORB implementors who have their own ORB - protocols, can use this software to bootstrap bridge construction work. - This includes bridge builders working to bridge COM and CORBA. - -- ORB implementors can use this to acquire a TypeCode interpreter. (ORBs - compliant with CORBA 2.0 CORE need one to support the dynamic runtime - typing APIs, such as Any, DII, and DSI.) - -- ORB implementors without their own protocols can use this software to add - networked object capabilities to their systems, using the Internet IOP. - -- Implementors of systems which are intended to talk with ORBs may wish to - use this software when bridging to ORBs from non-CORBA systems. A few - examples: (a) specialized applications that don't need a full ORB as - infrastructure; (b) "legacy" code which needs either to use an ORB or to - be used by one; (c) users or providers other object systems, such as - programming environments, which want ORB connectivity. - -- And of course, this is the core of a portable ORB, and may be used as - one by providing the rest of the CORBA 2.0 programming interfaces and - development tools such as one or more IDL compilers. - - -HOW TO OBTAIN THIS SOFTWARE ---------------------------- -There are several distribution sites for this software, and it may also be -restributed through other ones. Not all sites will necessarily have the -most recent version. - -OMG MAIL SERVER -- You can use a mail server program to retrieve this -software. Send email with a body line 'help' to iiop-bridging@omg.org, and -the mail server will respond with a copy of this README file. Send email -with a body line "iiop" and it will return a SHAR file of this software. - -OMG FTP SERVER -- You may also use anonymous FTP to the "ftp.omg.org" server. -To do this the classic (pre-Web) Internet way, use FTP to sign on with the -username "ftp" and your Internet email address as your password. Then change -directory to "/pub/interop" and retrieve: - - - "iiop.sh.Z" ... compressed SHAR format, for UNIX systems - - "iiop.tar.Z" ... compressed TAR format, also for UNIX systems - - "iiop.zip" ... ZIP format, for MS-Windows systems - -In Web-speak, those files are named by these URLs: - - ftp://ftp.omg.org/pub/interop/iiop.sh.Z ... compressed SHAR format - ftp://ftp.omg.org/pub/interop/iiop.tar.Z ... compressed TAR format - ftp://ftp.omg.org/pub/interop/iiop.zip ... PC ZIP format - -Copies of this software may be made available from archives other than -omg.org. New versions made available by Sun will be placed on omg.org and a -message will be sent to the comp.object newsgroup announcing availability. - - -CONTACT POINT AND WORKING ALIAS -------------------------------- -Please let us know who you are if you decide to use this software, and how -you use it. Please send e-mail to: - - omg-iiop-bridge@sun.com - -This address can also be used to report problems, bugs (or better yet, fixes!), -suggestions and send general comments. It is not a general mailing list for -discussion about IIOP implementations. - -There is at least one general access alias intended for discussion about -IIOP implementations. You can subscribe by sending email with a subject -line of "subscribe" to: - - iiop-impl-request@jsoft.com - - -ABOUT THIS IIOP SOFTWARE DISTRIBUTION -------------------------------------- -On some platforms POSIX threads (P1003.1c; draft 10 became the standard) -will be available to users of this distribution. There are still legal -client side message sequences which will not be emitted by this distribution -(namely, requests being sent on a connection while a response is pending), -though by definition the server side must (and will!) accept them when they -are produced by other implementations of the IIOP. - -Also, note that although this is written in C++, ANSI C++ exceptions are not -required. This derives from a goal to have this software be highly portable. -(Few C++ compilers fully comply with the C++ exception specifications.) - -Developers should not be surprised to find implementation or specification -problems at this point in time. When they do, they are encouraged to -communicate such problems through the contact point (for problems with this -implementation of IIOP; see above) or the OMG interoperability revision -task force (for specification problems; see the REFERENCES file) so that -they can be resolved. If you need complete and final ORB software, you -should use a commercially available ORB product. - -There are areas where the software is known to be incomplete; for example, -it does not provide Interface Repository APIs. It is expected that bridge -and ORB implementors will add the missing pieces as appropriate for their -environments. In some cases these may be added in future distributions -of this software. - -See the "DIFFERENCES" file for information about where this software differs -from current OMG specifications. As a rule, these differences are to -establish compatibility with CORBA 2.0 specifications which are being -prepared but which are not (as of this writing) available. In some cases, -they address recently recognized problems that are yet to be resolved. - -For a brief description of the implementation, including goals, notes, and -an overview of the source file organization, see the "IMPLEMENTATION" file. - -For a brief overview of the functional tests, see the "TESTS" file. - - -WHAT ARE: IOP, IIOP, GIOP, ESIOP, AND DCE-CIOP? ------------------------------------------------- -Inter-ORB Protocols (IOPs) support communication between or within ORBs. - -The "Internet IOP" (IIOP) is the protocol adopted by OMG that is required -to be supported by CORBA 2.0 compliant Networked ORBs, either as a native -protocol or through half bridges. It is a mapping of the "General IOP" -(GIOP) onto the Internet's TCP transport layer. Mappings onto other -transport layers may be defined in the future. - -ORBs are free to support optional Environment Specific IOPs (ESIOPs) as -their preferred ORB protocols. The "DCE-Common IOP" (DCE-CIOP) is the the -first such protocol that has been publicly specified. It uses a subset of -DCE-RPC facilities, and reuses parts of the GIOP. ORB implementors building -on top of DCE are likely to comply with DCE-CIOP, and bridge to the IIOP -for communication with ORBs not using the DCE-CIOP. - -Of course, other ESIOPs exist and will continue to exist, both in ORBs built -on top of other distributed computing environments such as ONC+ and ones -independent of such environments. Due to the prevalence of such ESIOPs, -most ORBs are expected to interoperate through bridging to the IIOP. - diff --git a/TAO/TAO-INSTALL.html b/TAO/TAO-INSTALL.html deleted file mode 100644 index b1e18f98dfb..00000000000 --- a/TAO/TAO-INSTALL.html +++ /dev/null @@ -1,289 +0,0 @@ - - -Building and Installing TAO - - - -
-

Building and Installing TAO

- - If you can -help port TAO to other platforms we'd appreciate it.

- -TAO can be obtained electronically -via the WWW and ftp. ACE is bundled -with the TAO release. You'll always need the most recent version of -ACE because TAO tracks changes to ACE very closely.

- -WARNING: -For users who have used ACE with other ORBs, linking TAO with a -version of ACE that is also linked against another ORB vendor's -library, e.g., liborbix.so, will produce undefined and most -likely unpredictable and erroneous results.

- - -


-

On UNIX platforms

- -
    -
  1. Set ACE_ROOT environment variable as outlined in - the ACE - installation notes.

    - -

  2. Build and install ACE under $ACE_ROOT.

    - -

      -
    • Change directory to $ACE_ROOT/ace and execute - make.

      -

    - -
  3. Set TAO_ROOT environment variable to - $ACE_ROOT/TAO.

    - -

  4. Build and install the TAO release under $TAO_ROOT.

    - -

      -
    • Change directory to $TAO_ROOT/tao and - execute make.

    • -
    - -
  5. Change directory to $TAO_ROOT/tests and - execute make.

    - -

  6. Follow instructions on executing the various examples under - $TAO_ROOT/tests.

    - -

- -

A Note On Make

- -Since TAO is built atop ACE, TAO re-uses ACE's Makefile structure as -well. Thus, just like ACE requires GNU Make, so too does TAO. More -exactly, versions of make which are known to not -work include those from Solaris 4.x and 5.x, HP-UX, the latest BSD, -etc.

- -GNU Make can be obtained from various places in source form.

- - -


-

For Cross-Compiled Targets, such as VxWorks and LynxOS

- -If you are building TAO for a VxWorks target, please see the detailed -instructions for building and installing ACE and TAO in $ACE_ROOT/ACE-INSTALL.html.

- -Cross-compiling TAO is not much different than building it for -self-host. The one major difference is that TAO's IDL compiler must -be built and run on the host; it's not necessary to run it on the -target. It's easiest to set this up by using a symlink (Unix) or copy -of tao_idl (NT). By way of example, here is how I setup -my Unix (SunOS5, using g++) workspace to support cross-compilation -(for VxWorks). It assumes that the ACE+TAO distribution has been -unpacked, with TAO below ACE_wrappers. It uses the -ACE_wrappers/bin/create_ace_build script to create a shadow build -tree:

-

    -
  1. cd ACE_wrappers -
  2. bin/create_ace_build SunOS5_g++ -
  3. bin/create_ace_build vxworks -
  4. cd build/vxworks/TAO -
  5. /bin/rm -r TAO_IDL -
  6. ln -s ../../SunOS5_g++/TAO/TAO_IDL -

- -To build, first on the host, then on the target:

-

    -
  1. cd build/SunOS5_g++ -
  2. export ACE_ROOT=`pwd`; - export LD_LIBRARY_PATH=`pwd`/ace:$LD_LIBRARY_PATH -
  3. (cd ace; make && cd ../tests; make && cd ../TAO; make) > - make.log 2>&1 -
  4. cd ../vxworks -
  5. export ACE_ROOT=`pwd` -
  6. (cd ace; make && cd ../tests; make && cd ../TAO; make) > - make.log 2>&1 -

- -For NT host, please see the detailed instructions for building and -installing ACE and TAO in ../ACE-INSTALL.html.

- -Please note that dynamic loading of libraries is not supported by TAO -for any cross-compiled target. Therefore, dynamic service -configuration of the TAO ORB is not supported.

- -NOTE: TAO_IDL currently needs gperf to be built on the host. It's in -the ACE_wrappers/apps/gperf/src/ directory. Then, a -symlink or copy must be added to the bin/ directory for -the target. This restriction should be removed in the near future.

- - -


-

On Windows NT

- -

TAO_IDL on NT will look for the Microsoft Visual C++ -compiler as "C:\Program Files\DevStudio\VC\bin\CL.EXE". If this -compiler is located elsewhere (or if using a different compiler) -add a variable CPP_LOCATION to your environment and set it to the compiler -you want to use. This variable will override the default. -

- -Remember to set -up ACE before building TAO. - -

Visual C++ 5.0

- -

It works best if TAO is placed in ACE_wrappers so TAO ends up in -ACE_wrappers\TAO because the Visual C++ 5 Project files -are set up to work in this configuration. If you move it, then make -sure you change the project files to look for the include and library -files in the correct place.

- -
    -
  1. Make sure ACE is built (For Visual C++ 5.0, use ace.dsw or - ace-vc50.dsw, whichever is in your copy of ACE).

    - -

  2. Make sure ACE_wrappers\bin is listed in the Executable - Directories in Tools|Options. This is needed if using the TAO_IDL - compiler under MSVC.

    - -

  3. Load the workspace tao\TAO.dsw and build the TAO - library.

    - -

  4. To build the Cubit test, load the workspace - tests\Cubit\TAO\IDL_Cubit\IDL_Cubit.dsw and build both - client and server.

    -

- -

TAOACE.dsw

- -

TAOACE.dsw is a Visual C++ 5 workspace that loads the projects -ACE, TAO, TAO_IDL (the compiler), orbsvcs, gperf and the Naming Service. -The dependencies are set up to correctly between the projects so for -example, ACE will be built automatically when TAO is built. An easy -way to compile everything is to just compile the debug or release -version of the Naming Service.

- -

Visual C++ 4.x

- -
    -
  1. In Tools|Options, go to the Directories page and make sure that - include files paths includes ACE_wrappers\ and the root directory of - TAO (which can be ACE_wrappers\TAO if installed there). - The library files paths should include ACE_wrappers\ace.

    - -

  2. Load the project file tao\TAO.mdp and build the TAO - library.

    - -

  3. To build the Cubit test, load the project file - tests\Cubit\TAO\test.mdp and build both client and - server.

    -

- -

Changing Include Paths

- -

If you prefer #include <corba.h> over #include -<tao/corba.h> then you will need to change your Project Settings -to also contain the TAO/tao directory. You'll find this in the -C/C++ settings under Input.

- -

Creating Static Libraries (*.lib)

- -

TAO, orbsvcs, TAO_IDL, and the Simple Test all have extra project files -for static library builds. TAOACE_static.dsw contains all these projects, -and is set up much like TAOACE.dsw. To use the static -libraries in a project, make sure to the following settings are used in -the Project Settings.

- -
    -
  • C/C++ | General: Add the Preprocessor Definitions - TAO_HAS_DLL=0, ACE_HAS_DLL=0 and - __ACE_INLINE__=0 -
  • C/C++ | Code Generation: Change Run-time - library to Debug Multithreaded (or - Multithreaded for Release) -
  • Link: Link with the static libs, such as - TAOs.lib or TAOsd.lib -
- -
-

How to add IDL files into your Visual C++ projects

-Point of contact: Nanbor Wang. - -

Each IDL file generates .h, .i and .cpp files. Here is an example of -adding an IDL file named foobar.idl into a VC project. -

    -
  1. Create/open the workspace. Create server project and client project if - you haven't had them ready. Add the IDL file <foobar.idl> and other - non-IDL generated files into both client and server projects.
  2. - -
  3. Added foobarC.h, foobarC.i, foobarC.cpp, foobarS.h, foobarS.i, and - foobarS.cpp into both server and client projects.
  4. - -
  5. Now open the project setting window (Project -> Setting... or just - press Alt-F7.) Select the IDL files in both client and server projects. - Choose to set the setting for "All Configuration." Make sure the - "Always use custom build step" is checked and "Exclude from build" is - unchecked.
  6. - -
  7. Click on the "Custom Build" tab. Add this entry as the build command - for IDL files:

    - -
    tao_idl $(InputName).idl
    - Notice that your absolute path to TAO_IDL may vary.
  8. - -
  9. Now add the following entries as "Output file(s)."

    - -
    -      $(InputName)S.h
    -      $(InputName)C.h
    -      $(InputName)C.i
    -      $(InputName)C.cpp
    -      $(InputName)S.i
    -      $(InputName)S.cpp
    -      $(InputName)S_T.h
    -      $(InputName)S_T.i
    -      $(InputName)S_T.cpp
    -      
    - Add only one entry in each line.
  10. - -
  11. You might also want to add the TAO_IDL compiler in as a dependency here - if you update TAO often. That way, if the compiler is changed, the - IDL files are recompiled automatically in the next build.
  12. - -
  13. We are all set. Click OK.
  14. - -
  15. Add foobarC.cpp and foobarS.cpp to both the client and server - project.
  16. -
- -

Notice that these procedures only setup the IDL compiler to perform -correctly.

- -

P.S. If anyone knows how to set a default setting in VC so we don't -need to perform these procedures every time a new project gets set up, -please let us know. Thanks. - - -

-


-

Perl Scripts

- -

Several of TAO's tests and examples contain perl scripts that automate the -execution of these tests. The scripts are found as "run_test.pl" in the -directory of the test.

- -

The versions of perl that we use are 5.005_02 on NT and 5.003 on Solaris. -The scripts may work on earlier versions of perl, but we cannot say for sure -that they do.

- -
-

-Back to the TAO home page. - - - - diff --git a/TAO/TAO-inheritance.pdf.gz b/TAO/TAO-inheritance.pdf.gz deleted file mode 100644 index b6116629def..00000000000 Binary files a/TAO/TAO-inheritance.pdf.gz and /dev/null differ diff --git a/TAO/TAO-inheritance.ps.gz b/TAO/TAO-inheritance.ps.gz deleted file mode 100644 index 2a381a8e223..00000000000 Binary files a/TAO/TAO-inheritance.ps.gz and /dev/null differ diff --git a/TAO/TAOACE.dsw b/TAO/TAOACE.dsw deleted file mode 100644 index 7884ff2f764..00000000000 --- a/TAO/TAOACE.dsw +++ /dev/null @@ -1,131 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "ACE dynamic library"=..\ace\ace_dll.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Naming_Service"=.\orbsvcs\Naming_Service\Naming_Service.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name orbsvcs - End Project Dependency -}}} - -############################################################################### - -Project: "TAO"=.\tao\TAO.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency -}}} - -############################################################################### - -Project: "TAO_IDL Compiler"=.\TAO_IDL\tao_idl.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency - Begin Project Dependency - Project_Dep_Name gperf - End Project Dependency -}}} - -############################################################################### - -Project: "gperf"=..\apps\gperf\src\gperf.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency - Begin Project Dependency - Project_Dep_Name gperf_lib - End Project Dependency -}}} - -############################################################################### - -Project: "gperf_lib"=..\apps\gperf\src\gperf_lib.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE dynamic library - End Project Dependency -}}} - -############################################################################### - -Project: "orbsvcs"=.\orbsvcs\orbsvcs\orbsvcs.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name TAO - End Project Dependency - Begin Project Dependency - Project_Dep_Name tao_idl - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO_IDL Compiler - End Project Dependency -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/TAOACE_Static.dsw b/TAO/TAOACE_Static.dsw deleted file mode 100644 index 8791005d676..00000000000 --- a/TAO/TAOACE_Static.dsw +++ /dev/null @@ -1,122 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "ACE static library"=..\ace\ace_lib.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "ORB Services Static"=.\orbsvcs\orbsvcs\orbsvcs_static.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE static library - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO Static - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO_IDL Compiler Static - End Project Dependency -}}} - -############################################################################### - -Project: "Simple Client Static"=.\tests\Simple\client_static.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE static library - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO Static - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO_IDL Compiler Static - End Project Dependency -}}} - -############################################################################### - -Project: "Simple Server Static"=.\tests\Simple\server_static.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE static library - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO Static - End Project Dependency - Begin Project Dependency - Project_Dep_Name TAO_IDL Compiler Static - End Project Dependency -}}} - -############################################################################### - -Project: "TAO Static"=.\tao\TAO_Static.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE static library - End Project Dependency -}}} - -############################################################################### - -Project: "TAO_IDL Compiler Static"=.\TAO_IDL\tao_idl_static.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name ACE static library - End Project Dependency -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/TAO_IDL/ANNOUNCEMENT b/TAO/TAO_IDL/ANNOUNCEMENT deleted file mode 100644 index 870db6f6006..00000000000 --- a/TAO/TAO_IDL/ANNOUNCEMENT +++ /dev/null @@ -1,131 +0,0 @@ -WHAT: - -SunSoft, Inc., Mountain View, California, has placed the source code to -Project DOE's Interface Definition Language (IDL) compiler front end -(CFE) on OMG's file server, making the implementation publicly -available. This release is identified by the version number 1.3. - -Project DOE is SunSoft's corporate-wide development effort to integrate -distributed object technology into the Solaris O/S. OMG (Object Management -Group) is the industry wide body formed to create specifications for -distributed object technology. It currently has more than 370 members. OMG -IDL is part of OMG's CORBA 1.1 specification and provides a standardized -way for defining object interfaces. OMG IDL forms the basis for distributed -object interactionin Project DOE. - -The SunSoft OMG IDL CFE provides a complete framework for building -CORBA 1.1-compliant preprocessors for OMG IDL. By using this standard -implementation, developers of OMG IDL compilers will save many months -of work and enhance the portability and interoperability of OMG -IDL-interfaced objects. - -The SunSoft OMG IDL CFE allows convenient and fast integration of new back -ends to the compiler. The release consists of a front end which converts -OMG IDL to an intermediate format, a compiler framework driver, an example -implementation of a compiler back end, and a set of protocols for -interaction between the front and back ends. The SunSoft OMG IDL CFE -parser uses components generated by yacc and lex. - -The SunSoft OMG IDL CFE is designed to allow easy extension of OMG IDL -without impacting existing back-end implementations. As the CORBA -specification evolves, any new updates to the IDE CFE will be placed -by SunSoft on the OMG server. - -This release provides a directory with many examples of OMG IDL -specifications to allow users to become familiar with the process of -writing OMG IDL code. - -For more information send email to idl-cfe@sun.com. - -HOW: - -The SunSoft OMG IDL CFE is available at no charge through anonymous FTP -in source form on the OMG file server, omg.org. Please retrieve the -file OMG_IDL_CFE_1.3.tar.Z from the directory pub/OMG_IDL_CFE_1.3. Please -let us know who you are if you retrieve the compiler front end using this -method, by sending email to idl-cfe@sun.com. - -You can also retrieve the software by using the OMG mail server program. -Send email with the subject 'help' to omg_idl@omg.org, and the mail server -will respond with instructions on how to retrieve the software. - -WHEN: - -The SunSoft OMG IDL CFE is available now. - -CONTACT: - -Please let us know who you are if you decide to use this software, and how -you use it. Please send email to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -We ask that if you make extensions or modifications to this source release, -please make these extensions available to others using the OMG IDL compiler -front end, by sending the modified sources to the above email address. This -will help us evaluate your extensions for inclusion in a future version. It -also ensures your investment in these extensions when new versions of the -CFE are released. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/CHANGES b/TAO/TAO_IDL/CHANGES deleted file mode 100644 index ae6fca7bcea..00000000000 --- a/TAO/TAO_IDL/CHANGES +++ /dev/null @@ -1,122 +0,0 @@ -CHANGES WHICH AFFECT BE WRITERS --=============================- - -INTRODUCTION - -This file describes changes that affect BE writers. It contains IMPORTANT -INFORMATION for BE writers who wish to migrate a BE written to operate with -release 1.2 to operate with release 1.3. It is likely that not following -these instructions will result in a compilable but malfunctioning compiler. - -AST INHERITANCE CHANGES - -The AST has been reorganized so that AST_Union and AST_Exception now -inherit from AST_Structure. This means that constructors of BE classes -which inherit from AST_Union or AST_Exception now need to explicitly call -an initializer for AST_Structure in their init section. - -We repeat below the information given in the file WRITING_A_BE, in the -section entitled "WRITING A BE". - -AST_EXCEPTION - -The signature for constructors of classes inheriting from AST_Exception -should now be: - - BE_Exception::BE_Exception(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_except, n, p), - AST_Structure(AST_Decl::NT_except, n, p), - UTL_Scope(AST_Decl::NT_except) - -AST_UNION - -The signature for constructors of classes inheriting from AST_Union should -now be: - - BE_Union::BE_Union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Union(dt, n, p), - AST_Structure(AST_Decl::NT_union, n, p), - AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) - -IDL_BOOL TYPE - -To increase portability and reduce dependency of the sources on POSIX -compliance in targets of ports, IDL now provides its own boolean type which -is named idl_bool. It provides two truth values, I_TRUE and I_FALSE. - -UTL_SCOPEDNAME TYPE - -The UTL_ScopedName type is now a list of Identifier nodes; in previous -releases it used to be a list of String nodes. If your BE constructs scoped -names this change will prevent recompilation until you modify your -constructor calls to invoke constructors for Identifier instead of for -String. The signature of the constructor is: - - Identifier::Identifier(char *, long x=1, long y=0, long z=I_FALSE) - -The additional arguments which can be defaulted to the values indicated are -included for future use. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/INSTALL.sun b/TAO/TAO_IDL/INSTALL.sun deleted file mode 100644 index 5010206496b..00000000000 --- a/TAO/TAO_IDL/INSTALL.sun +++ /dev/null @@ -1,241 +0,0 @@ -======================================== - -This file contains the original INSTALL file that came with the -SunSoft IDL compiler release. This information in this file is -historical in nature and the much of the specific information probably -is inaccurate with respect to the current state of TAO IDL. Please -see the ../TAO-INSTALL.html documentation that comes with TAO for -up-to-date information on the installation process. - -Specifically, some of the files referred to below have been renamed in -TAO IDL. - -INTERFACE DEFINITION LANGUAGE INSTALLATION GUIDE --==============================================- - -INTRODUCTION - -This file describes the installation process for OMG_IDL_CFE version 1.3. -This file explains how to: - -- install the source code -- modify the sources to customize them for different configurations -- modify the sources to implement your own back end - -TESTED CONFIGURATIONS - -This release has been tested and is believed to operate correctly on: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -This is the first release of OMG IDL CFE which is preconfigured to compile -correctly for Solaris 2.x and with SunPro SparcWorks compilers. - -CUSTOMIZATION - -The release contains a file idl_make_vars in the current directory, which -is included in each Makefile. This file defines all the customizable -variables for the CFE. - -OSV should be set to a string denoting the operating system upon which you -wish to build the CFE. The CFE as shipped is preconfigured to compile -correctly on Solaris 2.x (OSV=SOLARIS2), and has also been tested on SunOS -4.1.x (OSV=SUNOS4). It contains code donated by HP which enables it to be -compiled on Apollo Domain systems (OSV=apollo) and HPUX systems (OSV=hpux), -but these two configurations have not been tested. - -C++ and CCC should be set to identify the C++ compiler you will use to -compile this release. Their values should be identical. Both are set to -address differences between various make programs - some predefine CCC, -others use C++ to denote the C++ compiler. The possible values are CC -(which uses the Sparcworks compilers on SunOS 4.1 and Solaris 2.3) and g++, -which uses the installed version of GNU C++. - -CCFLAGS should be set to a list of flags to pass to the C++ compiler. As -shipped, this list is -g. NOTE: We have not extensively tested the release -with optimization turned on. - -CPP_FLAGS should be set to a list of flags to pass to the C++ preprocessor. -Use this variable to enable or disable specific customizations you make to -the BE or CFE sources. - -YFLAGS should be set to a list of flags to pass to the Yacc program. As -shipped, the list is -d -t, which causes Yacc to generate y.tab.h and -y.tab.c files. - -LEXFLAGS should be set to a list of flags to pass to the Lex program. As -shipped, the list -t. - -RANLIB should be set to the location of the ranlib program on your system. -As shipped this is ranlib. If your system has no ranlib you can set this -variable to ':' or /bin/true. As shipped the variable is preset to -/bin/true since Solaris 2.x does not use ranlib. - -AR should be set to the location of the ar program on your system. As -shipped this is ar. If your system has a different mechanism for creating -libraries, you should modify the value of this variable accordingly. - -ARFLAGS should be set to the flags to be passed to the ar program. As -shipped this is 'crv'. - -INSTALLATION - -a. Disk space requirements - -This distribution requires approximately 350 KBytes when compressed. When -uncompressed, untarred and compiled, approximately 10 MBytes of disk space -are consumed on a Sun 4. - -b. Getting the software - -Use anonymous FTP to omg.org and supply your e-mail address as password. -Change directories to pub/OMG_IDL_CFE_1.3, set bin and get the compressed -tar file OMG_IDL_CFE_1.3.tar.Z. - -The distribution may, in the future, be made available from other archives -on the Internet. However, omg.org will always have the most up-to-date -version of this software. - -After transferring this file, uncompress it and untar it in a directory of -your choice. - -c. Compiling it - -If you are using a Sparcstation running Solaris 2.x and have the SunPro -Sparcworks compilers installed, you may directly install the software. If -your hardware or operating system configurations are different, read and -follow the instructions in the previous section first. - -At the root directory of the release, issue - - % make - -or - - % make all - -This will compile the provided sources and the sources found in the be -directory. Executing this make target causes 'make all' to be invoked in -each subdirectory, resulting in building the libraries for each component -and finally a link step producing an executable IDL compiler. - -In order to make only the compiler front end components, without compiling -the sources found in the be directory and without building an executable, -issue - - % make libs - -This will build the libraries in the ast, fe, util, driver and narrow -directories. To build only the be, issue - - % make be - -To build all libraries without creating an executable, issue - - % make all_libs - -To remove all files created by the build process, issue - - % make clean - -This will not remove any files created by Yacc and Lex, because you may be -using the ones provided in the distribution (see below). - -d. Yacc and Lex - -Some installations may not have a C++ aware Yacc and Lex processor. For -these installations, we have included the output of yacc and lex in the -release. If you need to use these files to build the release because you -don't have access to a C++ capable Yacc or Lex, go to the "fe" directory, -issue the command: - - % touch lex.yy.cc y.tab.cc y.tab.hh - -This will ensure that the processed files appear to be newer than the -source files they were produced from and will cause "make" to skip their -production. - -NOTE: The files provided in the distribution have been produced on Solaris -2.3 and may contain OS-specific #include directives. If you intend to use -these files, you may have to edit them to make them work in your -environment. The provided files are known to compile cleanly without -modification with both SunPro Sparcworks compilers and GNU C++ on both -SunOS 4.1 and Solaris 2.3. We have not tested the grammar and lexer input -files with bison or flex. - -IMPLEMENTING A BACK END - -To implement your own back end, you can start with the provided sources in -the be directory and modify them. The Makefile understands the 'make all' -target and will generate libbe.a in the demo_be directory. As set up, the -variable CPP_FLAGS allows you to place include files either in the current -directory or in the include directory. Alternatively, you can place your -include files in a new directory and modify CPP_FLAGS to cause the C++ -preprocessor to search this new directory for referenced include files, by -adding a new -I directive. - -Additional detail on the structure and function of back ends, and on the -protocol which a back end must implement, are found in the document -entitled WRITING_A_BE. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/Makefile b/TAO/TAO_IDL/Makefile deleted file mode 100644 index 3ddd1734d30..00000000000 --- a/TAO/TAO_IDL/Makefile +++ /dev/null @@ -1,8567 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Top-level Makefile for the TAO IDL compiler -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -BIN = tao_idl -LDLIBS = -lACE -BUILD = $(BIN) - -VPATH=.:driver:fe:ast:util:narrow:be - -FILES = tao_idl \ - driver/drv_init \ - driver/drv_private \ - driver/drv_args \ - driver/drv_fork \ - driver/drv_link \ - driver/drv_preproc \ - fe/fe_declarator \ - fe/fe_lookup \ - fe/fe_private \ - fe/fe_init \ - fe/fe_extern \ - fe/fe_interface_header \ - fe/y.tab \ - fe/lex.yy \ - ast/ast_array \ - ast/ast_argument \ - ast/ast_attribute \ - ast/ast_check \ - ast/ast_concrete_type \ - ast/ast_constant \ - ast/ast_decl \ - ast/ast_enum \ - ast/ast_enum_val \ - ast/ast_exception \ - ast/ast_expression \ - ast/ast_field \ - ast/ast_interface \ - ast/ast_interface_fwd \ - ast/ast_module \ - ast/ast_native \ - ast/ast_operation \ - ast/ast_predefined_type \ - ast/ast_root \ - ast/ast_sequence \ - ast/ast_string \ - ast/ast_structure \ - ast/ast_type \ - ast/ast_typedef \ - ast/ast_union \ - ast/ast_union_branch \ - ast/ast_union_label \ - ast/ast_generator \ - ast/ast_redef \ - ast/ast_recursive \ - util/utl_scope \ - util/utl_stack \ - util/utl_string \ - util/utl_decllist \ - util/utl_labellist \ - util/utl_namelist \ - util/utl_exceptlist \ - util/utl_strlist \ - util/utl_list \ - util/utl_exprlist \ - util/utl_error \ - util/utl_indenter \ - util/utl_identifier \ - util/utl_idlist \ - util/utl_global \ - narrow/narrow \ - be/be_array \ - be/be_argument \ - be/be_attribute \ - be/be_constant \ - be/be_enum \ - be/be_enum_val \ - be/be_exception \ - be/be_expression \ - be/be_field \ - be/be_interface \ - be/be_interface_fwd \ - be/be_module \ - be/be_native \ - be/be_operation \ - be/be_predefined_type \ - be/be_root \ - be/be_sequence \ - be/be_string \ - be/be_structure \ - be/be_type \ - be/be_typedef \ - be/be_union \ - be/be_union_branch \ - be/be_union_label \ - be/be_generator \ - be/be_init \ - be/be_produce \ - be/be_args \ - be/be_helper \ - be/be_codegen \ - be/be_factory \ - be/be_sunsoft \ - be/be_decl \ - be/be_scope \ - be/be_visitor \ - be/be_visitor_argument \ - be/be_visitor_array \ - be/be_visitor_attribute \ - be/be_visitor_constant \ - be/be_visitor_context \ - be/be_visitor_decl \ - be/be_visitor_enum \ - be/be_visitor_exception \ - be/be_visitor_field \ - be/be_visitor_interface \ - be/be_visitor_interface_fwd \ - be/be_visitor_module \ - be/be_visitor_operation \ - be/be_visitor_root \ - be/be_visitor_scope \ - be/be_visitor_sequence \ - be/be_visitor_structure \ - be/be_visitor_typecode \ - be/be_visitor_typedef \ - be/be_visitor_union \ - be/be_visitor_union_branch \ - be/be_interpretive - -SRC = $(addsuffix .cpp,$(FILES)) -#VOBJS = $(LSRC:%.cpp=$(VDIR)%.$(OBJEXT)) -#$(BIN): $(VOBJS) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU - -ifeq ($(CROSS-COMPILE),) - include $(ACE_ROOT)/include/makeinclude/macros.GNU - include $(ACE_ROOT)/include/makeinclude/rules.common.GNU - include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU - include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU - include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU - include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -endif # ! CROSS-COMPILE - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -ifneq ($(CROSS-COMPILE),) - all default_embedded: - @echo The IDL compiler won\'t run or build on CROSS-COMPILE platforms. - - clean realclean: - @echo Nothing to clean in TAO_IDL on CROSS-COMPILE platforms. -else # ! CROSS-COMPILE - IDL_CFE_VERSION = \"1.3.0\" - - ifeq ($(findstring g++,$(CXX)),g++) - CCFLAGS += -Wno-switch -Wno-unused - else - ifeq ($(findstring cxx,$(CXX)),cxx) - # 111: statement is unreachable - # 177: variable was declared but not referenced - # 550: variable set but never used - ifeq ($(CXX_VER),POST_5X) - WARNING_FLAGS += -msg_disable 111,177,550 - endif # POST_5X - endif # cxx - endif # g++ - - CPPFLAGS += -Iinclude -Ibe_include -Ife -DCPP_LOCATION=\"$(CXX)\" \ - -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) - - clean: - rm -f tao_idl - - realclean: - rm -f tao_idl TAGS -endif # ! CROSS-COMPILE - -fe/fe_lookup.cpp: fe/keywords.dat - rm -f fe/fe_lookup.cpp - echo "// $Id$" > fe/fe_lookup.cpp - echo "#include \"idl.h\"" >> fe/fe_lookup.cpp - echo "#include \"idl_extern.h\"" >> fe/fe_lookup.cpp - echo "#include \"fe_private.h\"" >> fe/fe_lookup.cpp - $(ACE_ROOT)/bin/gperf -M -J -c -C -D -E -T -f 0 -a -o -t -p -K keyword_ \ - -L C++ -Z TAO_IDL_CPP_Keyword_Table -N lookup fe/keywords.dat \ - >> fe/fe_lookup.cpp - -fe/lex.yy.cpp: fe/idl.ll - @echo "WARNING: Potentially outdated fe/lex.yy.cpp" - @echo " either touch(1) the file or explicitly" - @echo " generate it using:" - @echo " make lex.yy.cpp.target" - -.PHONY: lex.yy.cpp.target - -lex.yy.cpp.target: - $(LEX) -t fe/idl.ll | \ - sed -e "s/yy/tao_yy/g" \ - -e "s/YY/TAO_YY/g" \ - -e "s@#include @#include \"ace/OS.h\"@" \ - -e "/#include fe/lex.yy.cpp - -fe/y.tab.cpp: fe/idl.yy - @echo "WARNING: Potentially outdated fe/y.tab.cpp" - @echo " either touch(1) the file or explicitly" - @echo " generate it using:" - @echo " make y.tab" - -.PHONY: y.tab - -y.tab: fe/idl.yy - $(YACC) -d fe/idl.yy - sed -e "s/char \*getenv/char *ace_foo/g" \ - -e "s/= getenv/= ACE_OS::getenv/g" \ - -e "s/yynewerror://g" \ - -e "s/yy/tao_yy/g" \ - -e "s/YY/TAO_YY/g" \ - -e "s/y\.tab\.c/y.tab.cpp/g" < y.tab.c > /tmp/$(USER).Y - sed -e "s/yy/tao_yy/g" \ - -e "s/YY/TAO_YY/g" < y.tab.h > /tmp/$(USER).YH - cp /tmp/$(USER).Y fe/y.tab.cpp - cp /tmp/$(USER).YH fe/y.tab.h - $(RM) -f /tmp/$(USER).Y /tmp/$(USER).YH y.tab.c y.tab.h - (cd fe ; patch is_done()) && i < nds; l->next(), i++) - result[i] = l->item(); - delete l; - return result; -} - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Array node to the ostream o - */ -void -AST_Array::dump(ostream &o) -{ - unsigned long i; - - pd_base_type->dump(o); - o << " "; - local_name()->dump(o); - for (i = 0; i < pd_n_dims; i++) { - o << "["; - pd_dims[i]->dump(o); - o << "]"; - } -} - -/* - * Data accessors - */ -unsigned long -AST_Array::n_dims() -{ - return pd_n_dims; -} - -AST_Expression ** -AST_Array::dims() -{ - return pd_dims; -} - -AST_Type * -AST_Array::base_type() -{ - return pd_base_type; -} - -void -AST_Array::set_base_type(AST_Type *nbt) -{ - pd_base_type = nbt; -} - -void -AST_Array::set_dims(AST_Expression **ds, unsigned long nds) -{ - pd_dims = ds; - pd_n_dims = nds; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Array, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_Array) diff --git a/TAO/TAO_IDL/ast/ast_attribute.cpp b/TAO/TAO_IDL/ast/ast_attribute.cpp deleted file mode 100644 index f2e14754d45..00000000000 --- a/TAO/TAO_IDL/ast/ast_attribute.cpp +++ /dev/null @@ -1,136 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_attribute.cc - Implementation of class AST_Attribute.cc - * - * AST_Attribute nodes denote IDL attribute declarations. - * AST_Attribute nodes are AST_Fields with a readonly indication. - * Hence they have a name (an UTL_ScopedName), a type (a subtype - * of AST_Type) and a boolean indicating whether the attribute is - * readonly. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_attribute, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Attribute::AST_Attribute() - : pd_readonly(I_TRUE) -{ -} - -AST_Attribute::AST_Attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Field(AST_Decl::NT_attr, ft, n, p), - AST_Decl(AST_Decl::NT_attr, n, p), - pd_readonly(ro) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Attribute to the ostream o - */ -void -AST_Attribute::dump(ostream &o) -{ - o << (pd_readonly == I_TRUE ? "readonly" : "") << " attribute "; - AST_Field::dump(o); -} - -/* - * Data accessors - */ - -idl_bool -AST_Attribute::readonly() -{ - return pd_readonly; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Attribute, AST_Field) -IMPL_NARROW_FROM_DECL(AST_Attribute) diff --git a/TAO/TAO_IDL/ast/ast_check.cpp b/TAO/TAO_IDL/ast/ast_check.cpp deleted file mode 100644 index c7039402e41..00000000000 --- a/TAO/TAO_IDL/ast/ast_check.cpp +++ /dev/null @@ -1,142 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_check.cc - Check AST nodes representing fwd declared interfaces - * after parse of AST is completed. - * - * The check ensures that for every forward declared interface we also - * saw a full definition of that interface. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_check, "$Id$") - -/* - * Static storage for remembering nodes - */ -static AST_InterfaceFwd **ast_fwds = NULL; -static long ast_n_fwds_used = 0; -static long ast_n_fwds_alloc = 0; - -#undef INCREMENT -#define INCREMENT 64 - -/* - * Store a node representing a forward declared interface - */ -void -AST_record_fwd_interface(AST_InterfaceFwd *n) -{ - AST_InterfaceFwd **o_ast_fwds; - long o_ast_n_fwds_alloc; - long i; - - /* - * Make sure there's space to store one more - */ - if (ast_n_fwds_used == ast_n_fwds_alloc) { - if (ast_n_fwds_alloc == 0) { - ast_n_fwds_alloc = INCREMENT; - ast_fwds = new AST_InterfaceFwd *[ast_n_fwds_alloc]; - } else { - o_ast_fwds = ast_fwds; - o_ast_n_fwds_alloc = ast_n_fwds_alloc; - - ast_n_fwds_alloc += INCREMENT; - ast_fwds = new AST_InterfaceFwd *[ast_n_fwds_alloc]; - - for (i = 0; i < o_ast_n_fwds_alloc; i++) - ast_fwds[i] = o_ast_fwds[i]; - - delete o_ast_fwds; - } - } - /* - * Insert new node - */ - ast_fwds[ast_n_fwds_used++] = n; -} - -/* - * Check that all forward declared interfaces were also defined - */ -void -AST_check_fwd_interface() -{ - long i; - AST_InterfaceFwd *d; - AST_Interface *itf; - - for (i = 0; i < ast_n_fwds_used; i++) { - d = ast_fwds[i]; - itf = d->full_definition(); - if (!(itf->is_defined())) - idl_global->err()->fwd_decl_not_defined(itf); - } -} diff --git a/TAO/TAO_IDL/ast/ast_concrete_type.cpp b/TAO/TAO_IDL/ast/ast_concrete_type.cpp deleted file mode 100644 index 886a33af0eb..00000000000 --- a/TAO/TAO_IDL/ast/ast_concrete_type.cpp +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_concrete_type.cc - Implementation of class AST_ConcreteType - * - * AST_ConcreteType nodes denote all non-interface types of IDL. - * They are AST_Type nodes. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_concrete_type, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_ConcreteType::AST_ConcreteType() -{ -} - -AST_ConcreteType::AST_ConcreteType(AST_Decl::NodeType nt, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_ConcreteType, AST_Type) -IMPL_NARROW_FROM_DECL(AST_ConcreteType) diff --git a/TAO/TAO_IDL/ast/ast_constant.cpp b/TAO/TAO_IDL/ast/ast_constant.cpp deleted file mode 100644 index ba9f32570f4..00000000000 --- a/TAO/TAO_IDL/ast/ast_constant.cpp +++ /dev/null @@ -1,214 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_constant.cc - Implementation of class AST_Constant - * - * AST_Constant nodes denote IDL constant declarations. - * AST_Constants have a value (an AST_Expression) and a value type - * (a value from the enum AST_Expression::ExprType). - * AST_Constant has two constructors, one for use in creating constants - * and the other for use in creating enumerators (see the class - * AST_EnumVal) - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_constant, "$Id$") - -/* - * Static functions - */ - -/* - * Convert a value from the enum AST_Expression::ExprType to a char * - */ -static char * -exprtype_to_string(AST_Expression::ExprType et) -{ - switch (et) { - case AST_Expression::EV_short: - return "short"; - case AST_Expression::EV_ushort: - return "unsigned short"; - case AST_Expression::EV_long: - return "long"; - case AST_Expression::EV_ulong: - return "unsigned long"; - case AST_Expression::EV_float: - return "float"; - case AST_Expression::EV_double: - return "double"; - case AST_Expression::EV_char: - return "char"; - case AST_Expression::EV_octet: - return "octet"; - case AST_Expression::EV_bool: - return "boolean"; - case AST_Expression::EV_string: - return "string"; - case AST_Expression::EV_any: - return "any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_wstring: - case AST_Expression::EV_wchar: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longlong: - return NULL; - } - return NULL; -} - -/* - * Constructor(s) and destructor - */ - -/* - * Default constructor - */ -AST_Constant::AST_Constant() - : pd_constant_value(NULL), pd_et(AST_Expression::EV_none) -{ -} - -/* - * Used in constructing AST_EnumVal nodes - */ -AST_Constant::AST_Constant(AST_Expression::ExprType t, - AST_Decl::NodeType nt, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p), - pd_constant_value(idl_global->gen()->create_expr(v, t)), - pd_et(t) -{ -} - -/* - * Used when constructing AST_Constant nodes - */ -AST_Constant::AST_Constant(AST_Expression::ExprType t, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_const, n, p), - pd_constant_value(idl_global->gen()->create_expr(v, t)), - pd_et(t) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Constant node to the ostream o - */ -void -AST_Constant::dump(ostream &o) -{ - o << "const " << exprtype_to_string(pd_et) << " "; - local_name()->dump(o); - o << " = "; - pd_constant_value->dump(o); -} - -/* - * Data accessors - */ - -AST_Expression * -AST_Constant::constant_value() -{ - return pd_constant_value; -} - -AST_Expression::ExprType -AST_Constant::et() -{ - return pd_et; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Constant, AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Constant) diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp deleted file mode 100644 index ad9d6e1281b..00000000000 --- a/TAO/TAO_IDL/ast/ast_decl.cpp +++ /dev/null @@ -1,316 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_decl.cc - Implementation of class AST_Decl - * - * AST_Decl is the base class for all AST nodes except AST_Expression. - * AST_Decls have a node type (a value from the enum AST_Decl::NodeType) - * a name (a UTL_ScopedName) and a list of pragmas (a UTL_StrList). - * Additionally AST_Decl nodes record the scope of definition, the - * file name in which they were defined, the line on which they were - * defined in that file, and a boolean denoting whether this is the - * main file or an #include'd file. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_decl, "$Id$") - -/* - * Constructor(s) and destructor - */ - -AST_Decl::AST_Decl() - : pd_imported(I_FALSE), - pd_in_main_file(I_FALSE), - pd_defined_in(NULL), - pd_node_type(NT_module), - pd_line(-1), - pd_file_name(NULL), - pd_name(NULL), - pd_local_name(NULL), - pd_pragmas(NULL), - pd_added(I_FALSE) -{ -} - -AST_Decl::AST_Decl(NodeType nt, UTL_ScopedName *n, UTL_StrList *p) - : pd_imported(idl_global->imported()), - pd_in_main_file(idl_global->in_main_file()), - pd_defined_in(idl_global->scopes()->depth() > 0 - ? idl_global->scopes()->top() - : 0), - pd_node_type(nt), - pd_line(idl_global->lineno()), - pd_file_name(idl_global->filename()), - pd_local_name(n == NULL ? 0 : n->last_component()), - pd_pragmas(p), - pd_added(I_FALSE) -{ - compute_full_name (n); -} - -/* - * Private operations - */ - -/* - * Compute the full scoped name of an AST node - */ -void -AST_Decl::compute_full_name(UTL_ScopedName *n) -{ - UTL_ScopedName *cn = NULL; - AST_Decl *d = NULL; - - /* - * Initialize this name to NULL - */ - pd_name = NULL; - /* - * Global scope? - */ - if (defined_in() == NULL) { - pd_name = n; - return; - } - /* - * OK, not global. So copy name of containing scope, then - * smash last cdr of copy with new component - */ - d = ScopeAsDecl(defined_in()); - if (d != NULL) - cn = d->name(); - if (cn != NULL) - pd_name = (UTL_ScopedName *) cn->copy(); - if (pd_name == NULL) - pd_name = new UTL_ScopedName(local_name(), NULL); - else - pd_name->nconc(new UTL_ScopedName(local_name(), NULL)); -} - -/* - * Public operations - */ - -/* - * Return TRUE if one of my ancestor scopes is "s" - * and FALSE otherwise - */ -idl_bool -AST_Decl::has_ancestor(AST_Decl *s) -{ - if (this == s) - return I_TRUE; - if (pd_defined_in == NULL) - return I_FALSE; - return ScopeAsDecl(pd_defined_in)->has_ancestor(s); -} - -/* - * Dump this AST_Decl to the ostream o - */ -void -AST_Decl::dump(ostream &o) -{ - pd_local_name->dump(o); -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -idl_bool -AST_Decl::imported() -{ - return pd_imported; -} - -void -AST_Decl::set_imported(idl_bool is_it) -{ - pd_imported = is_it; -} - -idl_bool -AST_Decl::in_main_file() -{ - return pd_in_main_file; -} - -void -AST_Decl::set_in_main_file(idl_bool is_it) -{ - pd_in_main_file = is_it; -} - -idl_bool -AST_Decl::added() -{ - return pd_added; -} - -void -AST_Decl::set_added(idl_bool is_it) -{ - pd_added = is_it; -} - -UTL_Scope * -AST_Decl::defined_in() -{ - return pd_defined_in; -} - -void -AST_Decl::set_defined_in(UTL_Scope *s) -{ - pd_defined_in = s; -} - -AST_Decl::NodeType -AST_Decl::node_type() -{ - return pd_node_type; -} - -long -AST_Decl::line() -{ - return pd_line; -} - -void -AST_Decl::set_line(long l) -{ - pd_line = l; -} - -String * -AST_Decl::file_name() -{ - return pd_file_name; -} - -void -AST_Decl::set_file_name(String *s) -{ - pd_file_name = s; -} - -UTL_ScopedName * -AST_Decl::name() -{ - return pd_name; -} - -void -AST_Decl::set_name(UTL_ScopedName *n) -{ - pd_name = n; - if (n != NULL) - pd_local_name = n->last_component(); -} - -Identifier * -AST_Decl::local_name() -{ - return pd_local_name; -} - -void -AST_Decl::add_pragmas(UTL_StrList *p) -{ - if (p != NULL) { - if (pd_pragmas != NULL) - pd_pragmas->nconc(p); - else - pd_pragmas = p; - } -} - -UTL_StrList * -AST_Decl::pragmas() -{ - return pd_pragmas; -} - -/* - * Narrowing methods for AST_Decl - */ -IMPL_NARROW_METHODS0(AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Decl) - -/* -** Narrowing methods for COMMON_Base -*/ -IMPL_NARROW_METHODS0(COMMON_Base) diff --git a/TAO/TAO_IDL/ast/ast_enum.cpp b/TAO/TAO_IDL/ast/ast_enum.cpp deleted file mode 100644 index d64f16e8ba5..00000000000 --- a/TAO/TAO_IDL/ast/ast_enum.cpp +++ /dev/null @@ -1,257 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_enum.cc - Implementation of class AST_Enum - * - * AST_Enum nodes denote IDL enum declarations. - * AST_Enums are a subclass of AST_ConcreteType and UTL_Scope. - * They have a counter denoting the next value to be assigned to - * an enumerator, and a name (a UTL_ScopedName). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_enum, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Enum::AST_Enum() - : pd_enum_counter(0) -{ -} - -AST_Enum::AST_Enum(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_enum, n, p), - UTL_Scope(AST_Decl::NT_enum), - pd_enum_counter(0) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Look up an enumerator by the value of the supplied expression - */ -AST_EnumVal * -AST_Enum::lookup_by_value(const AST_Expression *v) -{ - UTL_ScopeActiveIterator *iter; - AST_EnumVal *item; - AST_Decl *i; - - iter = new UTL_ScopeActiveIterator(this, IK_decls); - - while (!iter->is_done()) { - i = iter->item(); - item = AST_EnumVal::narrow_from_decl(i); - if (item->constant_value() == v) { - delete iter; - return item; - } - iter->next(); - } - delete iter; - return NULL; -} - -/* - * Compute the value to be assigned to the next enumerator. Bump the - * counter - */ -unsigned long -AST_Enum::next_enum_val() -{ - unsigned long i = pd_enum_counter++; - - return i; -} - -/* - * Static helper functions - */ - -/* - * Modify scoped name of an enumval so that it is scoped inside the scope - * in which the enum is defined and not inside the enum itself - */ -static UTL_ScopedName * -munge_name_for_enumval(UTL_ScopedName *n, Identifier *last_component) -{ - long l = n->length(); - UTL_ScopedName *hold = n; - - /* - * last three components are: - * - scope in which enum is defined - * - scope for enum - * - name of enumval - * - * We want to stop cdr'ing down the list when the head of the - * list is at the name for the scope in which the enum is defined - */ - while (l > 3) { - l--; - n = (UTL_ScopedName *) n->tail(); - } - - n->set_tail(new UTL_IdList(last_component, NULL)); - - return hold; -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add an AST_EnumVal node to this scope - */ -AST_EnumVal *AST_Enum::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - AST_EnumVal *t1 = NULL; - - if (t != NULL) { - t1 = idl_global->gen()->create_enum_val - (t->constant_value()->coerce(AST_Expression::EV_ulong)->u.ulval, - t->name(), t->pragmas()); - t->set_name(munge_name_for_enumval(t->name(), t->local_name())); - t1->set_name(munge_name_for_enumval(t1->name(), t1->local_name())); - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - /* - * Add it to enclosing scope - */ - idl_global->scopes()->next_to_top()->fe_add_enum_val(t1); - - return t; -} - -/* - * Dump this AST_Enum to the ostream o - */ -void -AST_Enum::dump(ostream &o) -{ - UTL_ScopeActiveIterator *i = new UTL_ScopeActiveIterator(this, IK_decls); - AST_Decl *d; - - o << "enum "; - local_name()->dump(o); - o << " {\n"; - - while (!(i->is_done())) { - d = i->item(); - d->local_name()->dump(o); - i->next(); - if (!(i->is_done())) - o << ", "; - } - delete i; - - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Enum, AST_ConcreteType, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Enum) -IMPL_NARROW_FROM_SCOPE(AST_Enum) diff --git a/TAO/TAO_IDL/ast/ast_enum_val.cpp b/TAO/TAO_IDL/ast/ast_enum_val.cpp deleted file mode 100644 index 54397f8e52f..00000000000 --- a/TAO/TAO_IDL/ast/ast_enum_val.cpp +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_enum_val.cc - Implementation of class AST_EnumVal - * - * AST_EnumVals denote IDL enumerator declarations - * AST_EnumVals are a subclass of AST_Constant - * AST_EnumVals have no additional fields - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_enum_val, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_EnumVal::AST_EnumVal() -{ -} - -AST_EnumVal::AST_EnumVal(unsigned long v, UTL_ScopedName *n, UTL_StrList *p) - : AST_Constant(AST_Expression::EV_ulong, - AST_Decl::NT_enum_val, - new AST_Expression(v), n, p), - AST_Decl(AST_Decl::NT_enum_val, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_EnumVal to the ostream o - */ -void -AST_EnumVal::dump(ostream &o) -{ - AST_Constant::dump(o); -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_EnumVal, AST_Constant) -IMPL_NARROW_FROM_DECL(AST_EnumVal) diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp deleted file mode 100644 index 0a3e34ff1d0..00000000000 --- a/TAO/TAO_IDL/ast/ast_exception.cpp +++ /dev/null @@ -1,308 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_exception.cc - Implementation of class AST_Exception - * - * AST_Exceptions denote IDL exception declarations - * AST_Exceptions are a subclass of AST_Decl (they are not types!) - * and of UTL_Scope - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_exception, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Exception::AST_Exception() -{ -} - -AST_Exception::AST_Exception(UTL_ScopedName *n, UTL_StrList *p) - : AST_Structure(AST_Decl::NT_except, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_Field node to the current scope - */ -AST_Field *AST_Exception::fe_add_field(AST_Field *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Union (manifest type declaration) to the current scope - */ -AST_Union *AST_Exception::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Structure (manifest type declaration) to the current - * scope - */ -AST_Structure *AST_Exception::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error2(UTL_Error::EIDL_REDEF, t, this); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum (manifest type declaration) to the current scope - */ -AST_Enum *AST_Exception::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal (enumerator declaration) to the current scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Exception::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Exception node to the ostream o - */ -void -AST_Exception::dump(ostream &o) -{ - o << "exception "; - local_name()->dump(o); - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Exception, AST_Structure) -IMPL_NARROW_FROM_DECL(AST_Exception) -IMPL_NARROW_FROM_SCOPE(AST_Exception) diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp deleted file mode 100644 index 9af610749de..00000000000 --- a/TAO/TAO_IDL/ast/ast_expression.cpp +++ /dev/null @@ -1,1601 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* * ast_expression.cc - Implementation of class AST_Expression - * - * AST_Expression nodes denote IDL expressions used in the IDL input. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include -#include - -ACE_RCSID(ast, ast_expression, "$Id$") - -#undef MAXCHAR -#define MAXCHAR 128 - -// Helper function to fill out the details of where this expression -// is defined -void -AST_Expression::fill_definition_details() -{ - pd_defined_in = idl_global->scopes()->depth() > 0 - ? idl_global->scopes()->top() - : 0 ; - pd_line = idl_global->lineno(); - pd_file_name = idl_global->filename(); -} - -/* - * Constructor(s) and destructor - */ - -/* - * An AST_Expression denoting a symbolic name - */ -AST_Expression::AST_Expression(UTL_ScopedName *nm) - : pd_ec(EC_symbol), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(nm) -{ - fill_definition_details(); -} - -/* - * An AST_Expression denoting a type coercion from another AST_Expression - */ -AST_Expression::AST_Expression(AST_Expression *v, ExprType t) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = v->coerce(t); - if (pd_ev == NULL) - idl_global->err()->coercion_error(v, t); -} - -/* - * An AST_Expression denoting a binary expression combination from - * two other AST_Expressions - */ -AST_Expression::AST_Expression(ExprComb c, AST_Expression *ev1, - AST_Expression *ev2) - : pd_ec(c), - pd_ev(NULL), - pd_v1(ev1), - pd_v2(ev2), - pd_n(NULL) -{ - fill_definition_details(); -} - -/* - * An AST_Expression denoting a short integer - */ -AST_Expression::AST_Expression(short sv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_short; - pd_ev->u.sval = sv; -} - -/* - * An AST_Expression denoting an unsigned short integer - */ -AST_Expression::AST_Expression(unsigned short usv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_ushort; - pd_ev->u.usval = usv; -} - -/* - * An AST_Expression denoting a long integer - */ -AST_Expression::AST_Expression(long lv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_long; - pd_ev->u.lval = lv; -} - -/* - * An AST_Expression denoting a long integer being used as a boolean - */ -AST_Expression::AST_Expression(long lv, ExprType t) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = t; - pd_ev->u.lval = lv; -} - -/* - * An AST_Expression denoting an unsigned long integer - */ -AST_Expression::AST_Expression(unsigned long ulv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_ulong; - pd_ev->u.ulval = ulv; -} - -/* - * An AST_Expression denoting a 32-bit floating point number - */ -AST_Expression::AST_Expression(float fv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_float; - pd_ev->u.fval = fv; -} - -/* - * An AST_Expression denoting a 64-bit floating point number - */ -AST_Expression::AST_Expression(double dv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_double; - pd_ev->u.dval = dv; -} - -/* - * An AST_Expression denoting a character - */ -AST_Expression::AST_Expression(char cv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_char; - pd_ev->u.cval = cv; -} - -/* - * An AST_Expression denoting an octet (unsigned char) - */ -AST_Expression::AST_Expression(unsigned char ov) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_octet; - pd_ev->u.oval = ov; -} - -/* - * An AST_Expression denotign a string (char * encapsulated as a String) - */ -AST_Expression::AST_Expression(String *sv) - : pd_ec(EC_none), - pd_ev(NULL), - pd_v1(NULL), - pd_v2(NULL), - pd_n(NULL) -{ - fill_definition_details(); - - pd_ev = new AST_ExprValue; - pd_ev->et = EV_string; - pd_ev->u.strval = sv; -} - -/* - * Static operations - */ - -/* - * Perform the coercion from the given AST_ExprValue to the requested - * ExprType. Return an AST_ExprValue if successful, NULL if failed. - */ -static AST_Expression::AST_ExprValue * -coerce_value(AST_Expression::AST_ExprValue *ev, AST_Expression::ExprType t) -{ - if (ev == NULL) - return NULL; - - switch (t) { - case AST_Expression::EV_short: - switch (ev->et) { - case AST_Expression::EV_short: - return ev; - case AST_Expression::EV_ushort: - if (ev->u.usval > (unsigned short) SHRT_MAX) - return NULL; - ev->u.sval = (short) ev->u.usval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval > (long) SHRT_MAX || ev->u.lval < (long) -(SHRT_MAX)) - return NULL; - ev->u.sval = (short) ev->u.lval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) SHRT_MAX) - return NULL; - ev->u.sval = (short) ev->u.ulval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_bool: - ev->u.sval = (short) ev->u.bval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval > (float) SHRT_MAX || ev->u.fval < (float) -(SHRT_MAX)) - return NULL; - ev->u.sval = (short) ev->u.fval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > (double) SHRT_MAX || ev->u.dval < (double) -(SHRT_MAX)) - return NULL; - ev->u.sval = (short) ev->u.dval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_char: - ev->u.sval = (short) ev->u.cval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_octet: - ev->u.sval = (short) ev->u.oval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_string: - case AST_Expression::EV_wstring: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_ushort: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval < 0) - return NULL; - ev->u.usval = (unsigned short) ev->u.sval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_ushort: - return ev; - case AST_Expression::EV_long: - if (ev->u.lval > (long) (SHRT_MAX << 1) || ev->u.lval < 0) - return NULL; - ev->u.usval = (unsigned short) ev->u.lval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) (SHRT_MAX << 1)) - return NULL; - ev->u.usval = (unsigned short) ev->u.ulval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_bool: - ev->u.usval = (unsigned short) ev->u.bval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval < 0.0 || ev->u.fval > (float) (SHRT_MAX << 1)) - return NULL; - ev->u.usval = (unsigned short) ev->u.fval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval < 0.0 || ev->u.dval > (double) (SHRT_MAX << 1)) - return NULL; - ev->u.usval = (unsigned short) ev->u.dval; - ev->et = AST_Expression::EV_short; - return ev; - case AST_Expression::EV_char: - if ((signed char) ev->u.cval < 0) - return NULL; - ev->u.usval = (unsigned short) ev->u.cval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_octet: - ev->u.usval = (unsigned short) ev->u.oval; - ev->et = AST_Expression::EV_ushort; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_long: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.lval = (long) ev->u.sval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_ushort: - ev->u.lval = (long) ev->u.usval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_long: - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) LONG_MAX) - return NULL; - ev->u.lval = (long) ev->u.ulval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_bool: - ev->u.lval = (long) ev->u.bval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval > (float) LONG_MAX || ev->u.fval < (float) -(LONG_MAX)) - return NULL; - ev->u.lval = (long) ev->u.fval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > (double) LONG_MAX || ev->u.dval < (double) -(LONG_MAX)) - return NULL; - ev->u.lval = (long) ev->u.dval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_char: - ev->u.lval = (long) ev->u.cval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_octet: - ev->u.lval = (long) ev->u.oval; - ev->et = AST_Expression::EV_long; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_ulong: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval < 0) - return NULL; - ev->u.ulval = (unsigned long) ev->u.sval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_ushort: - ev->u.ulval = (unsigned long) ev->u.usval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval < 0) - return NULL; - ev->u.ulval = (unsigned long) ev->u.lval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_ulong: - return ev; - case AST_Expression::EV_bool: - ev->u.ulval = (unsigned long) ev->u.bval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval < 0.0 || ev->u.fval > (float) LONG_MAX) - return NULL; - ev->u.ulval = (unsigned long) ev->u.fval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval < 0.0 || ev->u.dval > (double) LONG_MAX) - return NULL; - ev->u.ulval = (unsigned long) ev->u.dval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_char: - if ((signed char) ev->u.cval < 0) - return NULL; - ev->u.ulval = (unsigned long) ev->u.cval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_octet: - ev->u.ulval = (unsigned long) ev->u.oval; - ev->et = AST_Expression::EV_ulong; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_bool: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.bval = (ev->u.sval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_ushort: - ev->u.bval = (ev->u.usval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_long: - ev->u.bval = (ev->u.lval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_ulong: - ev->u.bval = (ev->u.ulval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_bool: - return ev; - case AST_Expression::EV_float: - ev->u.bval = (ev->u.fval == 0.0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_double: - ev->u.bval = (ev->u.dval == 0.0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_char: - ev->u.bval = (ev->u.cval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_octet: - ev->u.bval = (ev->u.oval == 0) ? I_FALSE : I_TRUE; - ev->et = AST_Expression::EV_bool; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_float: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.fval = (float) ev->u.sval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_ushort: - ev->u.fval = (float) ev->u.usval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_long: - ev->u.fval = (float) ev->u.lval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_ulong: - ev->u.fval = (float) ev->u.ulval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_bool: - ev->u.fval = (float) ((ev->u.bval == I_TRUE) ? 1.0 : 0.0); - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_float: - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > FLT_MAX || ev->u.dval < -FLT_MAX) - return NULL; - ev->u.fval = (float) ev->u.dval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_char: - ev->u.fval = (float) ev->u.cval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_octet: - ev->u.fval = (float) ev->u.oval; - ev->et = AST_Expression::EV_float; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_double: - switch (ev->et) { - case AST_Expression::EV_short: - ev->u.dval = (double) ev->u.sval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_ushort: - ev->u.dval = (double) ev->u.usval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_long: - ev->u.dval = (double) ev->u.lval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_ulong: - ev->u.dval = (double) ev->u.ulval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_bool: - ev->u.dval = (ev->u.bval == I_TRUE) ? 1.0 : 0.0; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_float: - ev->u.dval = (double) ev->u.fval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_double: - return ev; - case AST_Expression::EV_char: - ev->u.dval = (double) ev->u.cval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_octet: - ev->u.dval = (double) ev->u.oval; - ev->et = AST_Expression::EV_double; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_char: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval > (short) MAXCHAR || ev->u.sval < (short) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.sval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_ushort: - if (ev->u.usval > (unsigned short) MAXCHAR) - return NULL; - ev->u.cval = (char) ev->u.usval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval > (long) MAXCHAR || ev->u.lval < (long) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.lval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) MAXCHAR) - return NULL; - ev->u.cval = (char) ev->u.ulval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_bool: - ev->u.cval = (char) ev->u.bval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval > (float) MAXCHAR || ev->u.fval < (float) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.fval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval > (double) MAXCHAR || ev->u.dval < (double) -(MAXCHAR)) - return NULL; - ev->u.cval = (char) ev->u.dval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_char: - return ev; - case AST_Expression::EV_octet: - if (ev->u.oval > (unsigned char) MAXCHAR) - return NULL; - ev->u.cval = (char) ev->u.oval; - ev->et = AST_Expression::EV_char; - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_octet: - switch (ev->et) { - case AST_Expression::EV_short: - if (ev->u.sval < 0 || ev->u.sval > (short) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.sval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_ushort: - if (ev->u.usval > (unsigned short) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.usval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_long: - if (ev->u.lval < 0 || ev->u.lval > (long) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.lval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_ulong: - if (ev->u.ulval > (unsigned long) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.ulval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_bool: - ev->u.oval = (ev->u.bval == I_FALSE) ? 1 : 0; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_float: - if (ev->u.fval < 0.0 || ev->u.fval > (float) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.fval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_double: - if (ev->u.dval < 0.0 || ev->u.dval > (double) (MAXCHAR << 1)) - return NULL; - ev->u.oval = (unsigned char) ev->u.dval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_char: - if ((signed char) ev->u.cval < 0) - return NULL; - ev->u.oval = (unsigned char) ev->u.cval; - ev->et = AST_Expression::EV_octet; - return ev; - case AST_Expression::EV_octet: - return ev; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_string: - case AST_Expression::EV_any: - case AST_Expression::EV_void: - case AST_Expression::EV_none: - return NULL; - } - case AST_Expression::EV_any: - switch (ev->et) { - case AST_Expression::EV_any: - return ev; - default: - return NULL; - } - case AST_Expression::EV_void: - switch (ev->et) { - case AST_Expression::EV_void: - return ev; - default: - return NULL; - } - case AST_Expression::EV_none: - return NULL; - case AST_Expression::EV_string: - switch (ev->et) { - case AST_Expression::EV_string: - return ev; - default: - return NULL; - } - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -/* - * Evaluate the expression wrt the evaluation kind requested. Supported - * evaluation kinds are - * - EK_const: The expression must evaluate to a constant - * - EK_positive_int: The expression must further evaluate to a - * positive integer - */ -static AST_Expression::AST_ExprValue * -eval_kind(AST_Expression::AST_ExprValue *ev, AST_Expression::EvalKind ek) -{ - if (ek == AST_Expression::EK_const) - return ev; - if (ek == AST_Expression::EK_positive_int) - return coerce_value(ev, AST_Expression::EV_ulong); - - return NULL; -} - -/* - * Private operations - */ - -/* - * Apply binary operators to an AST_Expression after evaluating - * its sub-expressions. - * Operations supported: - * - * '+', '-', '*', '/' - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_bin_op(AST_Expression::EvalKind ek) -{ - AST_ExprValue *retval = NULL; - - if (ek != EK_const && ek != EK_positive_int) - return NULL; - if (pd_v1 == NULL || pd_v2 == NULL) - return NULL; - pd_v1->set_ev(pd_v1->eval_internal(ek)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v1->set_ev(pd_v1->coerce(EV_double)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->eval_internal(ek)); - if (pd_v2->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->coerce(EV_double)); - if (pd_v2->ev() == NULL) - return NULL; - - retval = new AST_ExprValue; - retval->et = EV_double; - - switch (pd_ec) { - case EC_mod: - if (pd_v2->ev()->u.lval == 0) - return NULL; - retval->u.lval = pd_v1->ev()->u.lval % pd_v2->ev()->u.lval; - break; - case EC_add: - retval->u.dval = pd_v1->ev()->u.dval + pd_v2->ev()->u.dval; - break; - case EC_minus: - retval->u.dval = pd_v1->ev()->u.dval - pd_v2->ev()->u.dval; - break; - case EC_mul: - retval->u.dval = pd_v1->ev()->u.dval * pd_v2->ev()->u.dval; - break; - case EC_div: - if (pd_v2->ev()->u.dval == 0.0) - return NULL; - retval->u.dval = pd_v1->ev()->u.dval / pd_v2->ev()->u.dval; - break; - default: - return NULL; - } - return retval; -} - -/* - * Apply bitwise operations to an AST_Expression after evaluating - * its sub-expressions. - * Operations supported: - * - * '%', '|', '&', '^', '<<', '>>' - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_bit_op(AST_Expression::EvalKind ek) -{ - AST_Expression::AST_ExprValue *retval=NULL; - - if (ek != EK_const && ek != EK_positive_int) - return NULL; - if (pd_v1 == NULL || pd_v2 == NULL) - return NULL; - pd_v1->set_ev(pd_v1->eval_internal(ek)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v1->set_ev(pd_v1->coerce(EV_long)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->eval_internal(ek)); - if (pd_v2->ev() == NULL) - return NULL; - pd_v2->set_ev(pd_v2->coerce(EV_long)); - if (pd_v2->ev() == NULL) - return NULL; - - retval = new AST_ExprValue; - retval->et = EV_long; - - switch (pd_ec) { - case EC_or: - retval->u.lval = pd_v1->ev()->u.lval | pd_v2->ev()->u.lval; - break; - case EC_xor: - retval->u.lval = pd_v1->ev()->u.lval ^ pd_v2->ev()->u.lval; - break; - case EC_and: - retval->u.lval = pd_v1->ev()->u.lval & pd_v2->ev()->u.lval; - break; - case EC_left: - retval->u.lval = pd_v1->ev()->u.lval << pd_v2->ev()->u.lval; - break; - case EC_right: - retval->u.lval = pd_v1->ev()->u.lval >> pd_v2->ev()->u.lval; - break; - default: - return NULL; - } - return retval; -} - -/* - * Apply unary operators to an AST_Expression after evaluating its - * sub-expression. - * Operations supported: - * - * '-', '+', '~' - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_un_op(AST_Expression::EvalKind ek) -{ - AST_ExprValue *retval = NULL; - - if (pd_ev != NULL) - return pd_ev; - - if (ek != EK_const && ek != EK_positive_int) - return NULL; - if (pd_v1 == NULL) - return NULL; - pd_v1->set_ev(pd_v1->eval_internal(ek)); - if (pd_v1->ev() == NULL) - return NULL; - pd_v1->set_ev(pd_v1->coerce(EV_double)); - if (pd_v1->ev() == NULL) - return NULL; - - retval = new AST_ExprValue; - retval->et = EV_double; - - switch (pd_ec) { - case EC_u_plus: - retval->u.lval = pd_v1->ev()->u.lval; - break; - case EC_u_minus: - retval->u.lval = -(pd_v1->ev()->u.lval); - break; - case EC_bit_neg: - pd_v1->set_ev(pd_v1->coerce(EV_long)); - if (pd_v1->ev() == NULL) - return NULL; - retval->u.lval = ~pd_v1->ev()->u.lval; - break; - default: - return NULL; - } - return retval; -} - -/* - * Evaluate a symbolic AST_Expression by looking up the named - * symbol. - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_symbol(AST_Expression::EvalKind ek) -{ - UTL_Scope *s = 0; - AST_Decl *d = 0; - AST_Constant *c = 0; - - /* - * Is there a symbol stored? - */ - if (pd_n == NULL) { - idl_global->err()->eval_error(this); - return NULL; - } - /* - * Get current scope for lookup - */ - if (idl_global->scopes()->depth() > 0) - s = idl_global->scopes()->top_non_null(); - if (s == NULL) { - idl_global->err()->lookup_error(pd_n); - return NULL; - } - /* - * Do lookup - */ - d = s->lookup_by_name(pd_n, I_TRUE); - if (d == NULL) { - idl_global->err()->lookup_error(pd_n); - return NULL; - } - /* - * Is it a constant? - */ - if (d->node_type() != AST_Decl::NT_const && - d->node_type() != AST_Decl::NT_enum_val) { - idl_global->err()->constant_expected(pd_n, d); - return NULL; - } - /* - * OK, now evaluate the constant we just got, to produce its value - */ - c = AST_Constant::narrow_from_decl(d); - if (c == NULL) return NULL; - return c->constant_value()->eval_internal(ek); -} - -/* - * Coerce "this" to the ExprType required. Returns a copy of the - * original ExprValue with the coercion applied, if successful, or - * NULL if failed. - */ -AST_Expression::AST_ExprValue * -AST_Expression::coerce(AST_Expression::ExprType t) -{ - AST_ExprValue *copy; - - /* - * Is it already of the right type? - */ - if (pd_ev != NULL && pd_ev->et == t) - return pd_ev; - /* - * OK, must coerce - * - * First, evaluate it, then try to coerce result type - * If already evaluated, return the result - */ - pd_ev = eval_internal(EK_const); - if (pd_ev == NULL) - return NULL; - - /* - * Create a copy to contain coercion result - */ - copy = new AST_ExprValue; - - copy->et = pd_ev->et; - switch (pd_ev->et) { - case EV_longlong: - case EV_ulonglong: - case EV_longdouble: - case EV_wchar: - case EV_wstring: - case EV_void: - case EV_none: - case EV_any: - return NULL; - case EV_short: - copy->u.sval = pd_ev->u.sval; - break; - case EV_ushort: - copy->u.usval = pd_ev->u.usval; - break; - case EV_long: - copy->u.lval = pd_ev->u.lval; - break; - case EV_ulong: - copy->u.ulval = pd_ev->u.ulval; - break; - case EV_bool: - copy->u.bval = pd_ev->u.bval; - break; - case EV_float: - copy->u.fval = pd_ev->u.fval; - break; - case EV_double: - copy->u.dval = pd_ev->u.dval; - break; - case EV_char: - copy->u.cval = pd_ev->u.cval; - break; - case EV_octet: - copy->u.oval = pd_ev->u.oval; - break; - case EV_string: - copy->u.strval = pd_ev->u.strval; - break; - } - - return coerce_value(copy, t); -} - -/* - * Eval used internally - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval_internal(AST_Expression::EvalKind ek) -{ - /* - * Already evaluated? - */ - if (pd_ev != NULL) - return eval_kind(pd_ev, ek); - /* - * OK, must evaluate operator - */ - switch (pd_ec) { - case EC_add: - case EC_minus: - case EC_mul: - case EC_div: - case EC_mod: - pd_ev = eval_bin_op(ek); - return eval_kind(pd_ev, ek); - case EC_or: - case EC_xor: - case EC_and: - case EC_left: - case EC_right: - pd_ev = eval_bit_op(ek); - return eval_kind(pd_ev, ek); - case EC_u_plus: - case EC_u_minus: - case EC_bit_neg: - pd_ev = eval_un_op(ek); - return eval_kind(pd_ev, ek); - case EC_symbol: - pd_ev = eval_symbol(ek); - return eval_kind(pd_ev, ek); - case EC_none: - return NULL; - } - return NULL; -} - -/* - * Public operations - */ - -/* - * Evaluate an AST_Expression, producing an AST_ExprValue or NULL - */ -AST_Expression::AST_ExprValue * -AST_Expression::eval(AST_Expression::EvalKind ek) -{ - AST_Expression::AST_ExprValue *v = NULL; - - /* - * Call internal evaluator which does not coerce value to - * EvalKind-expected format - */ - v = eval_internal(ek); - /* - * Then coerce according to EvalKind-expected format - */ - return eval_kind(v, ek); -} - -/* - * Evaluate "this", assigning the value to the pd_ev field. - */ -void -AST_Expression::evaluate(EvalKind ek) -{ - pd_ev = eval_internal(ek); - pd_ev = eval_kind(pd_ev, ek); -} - -/* - * Expression equality comparison operator - */ -long -AST_Expression::operator==(AST_Expression *vc) -{ - if (pd_ec != vc->ec()) - return I_FALSE; - evaluate(EK_const); - vc->evaluate(EK_const); - if (pd_ev == NULL || vc->ev() == NULL) - return I_FALSE; - if (pd_ev->et != vc->ev()->et) - return I_FALSE; - switch (pd_ev->et) { - case EV_short: - return (pd_ev->u.sval == vc->ev()->u.sval) ? I_TRUE : I_FALSE; - case EV_ushort: - return (pd_ev->u.usval == vc->ev()->u.usval) ? I_TRUE : I_FALSE; - case EV_long: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_ulong: - return (pd_ev->u.ulval == vc->ev()->u.ulval) ? I_TRUE : I_FALSE; - case EV_float: - return (pd_ev->u.fval == vc->ev()->u.fval) ? I_TRUE : I_FALSE; - case EV_double: - return (pd_ev->u.dval == vc->ev()->u.dval) ? I_TRUE : I_FALSE; - case EV_char: - return (pd_ev->u.cval == vc->ev()->u.cval) ? I_TRUE : I_FALSE; - case EV_octet: - return (pd_ev->u.oval == vc->ev()->u.oval) ? I_TRUE : I_FALSE; - case EV_bool: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_string: - if (pd_ev->u.strval == NULL) { - if (vc->ev()->u.strval == NULL) - return I_TRUE; - else - return I_FALSE; - } else if (vc->ev()->u.strval == NULL) - return I_FALSE; - else - return (pd_ev->u.strval == vc->ev()->u.strval) ? I_TRUE : I_FALSE; - case EV_longlong: - case EV_ulonglong: - case EV_longdouble: - case EV_wchar: - case EV_wstring: - case EV_any: - case EV_void: - case EV_none: - return I_FALSE; - } - return I_FALSE; -} - -long -AST_Expression::compare(AST_Expression *vc) -{ - if (pd_ec != vc->ec()) - return I_FALSE; - evaluate(EK_const); - vc->evaluate(EK_const); - if (pd_ev == NULL || vc->ev() == NULL) - return I_FALSE; - if (pd_ev->et != vc->ev()->et) - return I_FALSE; - switch (pd_ev->et) { - case EV_short: - return (pd_ev->u.sval == vc->ev()->u.sval) ? I_TRUE : I_FALSE; - case EV_ushort: - return (pd_ev->u.usval == vc->ev()->u.usval) ? I_TRUE : I_FALSE; - case EV_long: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_ulong: - return (pd_ev->u.ulval == vc->ev()->u.ulval) ? I_TRUE : I_FALSE; - case EV_float: - return (pd_ev->u.fval == vc->ev()->u.fval) ? I_TRUE : I_FALSE; - case EV_double: - return (pd_ev->u.dval == vc->ev()->u.dval) ? I_TRUE : I_FALSE; - case EV_char: - return (pd_ev->u.cval == vc->ev()->u.cval) ? I_TRUE : I_FALSE; - case EV_octet: - return (pd_ev->u.oval == vc->ev()->u.oval) ? I_TRUE : I_FALSE; - case EV_bool: - return (pd_ev->u.lval == vc->ev()->u.lval) ? I_TRUE : I_FALSE; - case EV_string: - if (pd_ev->u.strval == NULL) { - if (vc->ev()->u.strval == NULL) - return I_TRUE; - else - return I_FALSE; - } else if (vc->ev()->u.strval == NULL) - return I_FALSE; - else - return (pd_ev->u.strval == vc->ev()->u.strval) ? I_TRUE : I_FALSE; - case EV_longlong: - case EV_ulonglong: - case EV_longdouble: - case EV_wchar: - case EV_wstring: - case EV_any: - case EV_void: - case EV_none: - return I_FALSE; - } - return I_FALSE; -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Helper functions for expression dumpers - */ - -/* - * Dump this binary AST_Expression node to the ostream o - */ -static void -dump_binary_expr(ostream &o, char *s, AST_Expression *n1, AST_Expression *n2) -{ - if (n1 != NULL) n1->dump(o); - o << " " << s << " "; - if (n2 != NULL) n2->dump(o); -} - -/* - * Dump this unary AST_Expression node to the ostream o - */ -static void -dump_unary_expr(ostream &o, char *s, AST_Expression *e) -{ - o << s; - e->dump(o); -} - -/* - * Dump the supplied AST_ExprValue to the ostream o - */ -static void -dump_expr_val(ostream &o, AST_Expression::AST_ExprValue *ev) -{ - switch (ev->et) { - case AST_Expression::EV_short: - o << ev->u.sval; - break; - case AST_Expression::EV_ushort: - o << ev->u.usval; - break; - case AST_Expression::EV_long: - o << ev->u.lval; - break; - case AST_Expression::EV_ulong: - o << ev->u.ulval; - break; - case AST_Expression::EV_float: - o << ev->u.fval; - break; - case AST_Expression::EV_double: - o << ev->u.dval; - break; - case AST_Expression::EV_char: - o << ev->u.cval; - break; - case AST_Expression::EV_octet: - o << ev->u.oval; - break; - case AST_Expression::EV_bool: - o << (ev->u.bval == I_TRUE) ? "TRUE" : "FALSE"; - break; - case AST_Expression::EV_string: - if (ev->u.strval != NULL) - ev->u.strval->dump(o); - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - case AST_Expression::EV_any: - case AST_Expression::EV_none: - case AST_Expression::EV_void: - break; - } -} - -/* - * Dump an AST_Expression node to the ostream o - */ -void -AST_Expression::dump(ostream &o) -{ - /* - * See if it was a constant or was evaluated already - */ - if (pd_ev != NULL) { - dump_expr_val(o, pd_ev); - return; - } - /* - * OK, must print out an expression - */ - switch (pd_ec) { - /* - * Binary expressions: - */ - case EC_add: - dump_binary_expr(o, "+", pd_v1, pd_v2); - break; - case EC_minus: - dump_binary_expr(o, "-", pd_v1, pd_v2); - break; - case EC_mul: - dump_binary_expr(o, "*", pd_v1, pd_v2); - break; - case EC_div: - dump_binary_expr(o, "/", pd_v1, pd_v2); - break; - case EC_mod: - dump_binary_expr(o, "%", pd_v1, pd_v2); - break; - case EC_or: - dump_binary_expr(o, "|", pd_v1, pd_v2); - break; - case EC_xor: - dump_binary_expr(o, "^", pd_v1, pd_v2); - break; - case EC_and: - dump_binary_expr(o, "&", pd_v1, pd_v2); - break; - case EC_left: - dump_binary_expr(o, "<<", pd_v1, pd_v2); - break; - case EC_right: - dump_binary_expr(o, ">>", pd_v1, pd_v2); - break; - /* - * Unary expressions: - */ - case EC_u_plus: - dump_unary_expr(o, "+", pd_v1); - break; - case EC_u_minus: - dump_unary_expr(o, "-", pd_v1); - break; - case EC_bit_neg: - dump_unary_expr(o, "~", pd_v1); - break; - /* - * Unevaluated symbol - */ - case EC_symbol: - pd_n->dump(o); - break; - case EC_none: - break; - default: - o << GTDEVEL("unsupported dump mode for expression with ec == ") - << (int) pd_ec ; - break; - } -} - -/* - * Data accessors - */ - -UTL_Scope * -AST_Expression::defined_in() -{ - return pd_defined_in; -} - -void -AST_Expression::set_defined_in(UTL_Scope *d) -{ - pd_defined_in = d; -} - -long -AST_Expression::line() -{ - return pd_line; -} - -void -AST_Expression::set_line(long l) -{ - pd_line = l; -} - -String * -AST_Expression::file_name() -{ - return pd_file_name; -} - -void -AST_Expression::set_file_name(String *f) -{ - pd_file_name = f; -} - -AST_Expression::ExprComb -AST_Expression::ec() -{ - return pd_ec; -} - -void -AST_Expression::set_ec(AST_Expression::ExprComb new_ec) -{ - pd_ec = new_ec; -} - -AST_Expression::AST_ExprValue * -AST_Expression::ev() -{ - return pd_ev; -} - -void -AST_Expression::set_ev(AST_Expression::AST_ExprValue *new_ev) -{ - pd_ev = new_ev; -} - -AST_Expression * -AST_Expression::v1() -{ - return pd_v1; -} - -void -AST_Expression::set_v1(AST_Expression *e) -{ - - pd_v1 = e; -} - -AST_Expression * -AST_Expression::v2() -{ - return pd_v2; -} - -void -AST_Expression::set_v2(AST_Expression *e) -{ - pd_v2 = e; -} - -UTL_ScopedName * -AST_Expression::n() -{ - return pd_n; -} - -void -AST_Expression::set_n(UTL_ScopedName *new_n) -{ - pd_n = new_n; -} diff --git a/TAO/TAO_IDL/ast/ast_field.cpp b/TAO/TAO_IDL/ast/ast_field.cpp deleted file mode 100644 index 1715d29680f..00000000000 --- a/TAO/TAO_IDL/ast/ast_field.cpp +++ /dev/null @@ -1,155 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_field.cc - Implementation of class AST_Field - * - * AST_Fields denote fields in IDL structure, union and exception - * declarations. AST_Field is also used as a superclass of AST_Argument - * and AST_UnionBranch. - * AST_Fields have a field type (a subclass of AST_Type) and a name - * (a UTL_ScopedName) - * - * AST_Field supplies two constructors, one to be used in constructing - * AST_Field nodes, the other to be used in constructing AST_Argument - * nodes and AST_UnionBranch nodes. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_field, "$Id$") - -/* - * Constructor(s) and destructor - */ - -/* - * Default constructor - */ -AST_Field::AST_Field() - : pd_field_type(NULL) -{ -} - -/* - * To be used when constructing an AST_Field node - */ -AST_Field::AST_Field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_field, n, p), - pd_field_type(ft) -{ -} - -/* - * To be used when constructing a node of a subclass of AST_Field - */ -AST_Field::AST_Field(AST_Decl::NodeType nt, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(nt, n, p), - pd_field_type(ft) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Field node to the ostream o - */ -void -AST_Field::dump(ostream &o) -{ - pd_field_type->local_name()->dump(o); - o << " "; - local_name()->dump(o); -} - -/* - * Data accessors - */ - -AST_Type * -AST_Field::field_type() -{ - return pd_field_type; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Field, AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Field) diff --git a/TAO/TAO_IDL/ast/ast_generator.cpp b/TAO/TAO_IDL/ast/ast_generator.cpp deleted file mode 100644 index b95c5151e00..00000000000 --- a/TAO/TAO_IDL/ast/ast_generator.cpp +++ /dev/null @@ -1,417 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_generator.cc - Implements the base AST node generator - * - * The generator protocol is explained in detail in the IDL CFE - * design document. - * The AST_Generator class provides operations to instantiate any - * of the AST nodes. It contains an operation for every constructor - * of every AST class. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "ace/inc_user_config.h" - -ACE_RCSID(ast, ast_generator, "$Id$") - -/* - * Constructors - */ - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Construct an AST_PredefinedType node (a predefined type) - */ -AST_PredefinedType * -AST_Generator::create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_PredefinedType(t, n, p); -} - -/* - * Construct an AST_Module node (a module) - */ -AST_Module * -AST_Generator::create_module(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Module(n, p); -} - -/* - * Construct an AST_Root node (a node representing the root of an AST) - */ -AST_Root * -AST_Generator::create_root(UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Root(n, p); -} - -/* - * Construct an AST_Interface node (an interface) - */ -AST_Interface * -AST_Generator::create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) -{ - return new AST_Interface(n, ih, nih, p); -} - -/* - * Construct an AST_InterfaceFwd node (a node representing the forward - * declaration of an interface) - */ -AST_InterfaceFwd * -AST_Generator::create_interface_fwd(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_InterfaceFwd(n, p); -} - -/* - * Construct an AST_Exception node (an exception) - */ -AST_Exception * -AST_Generator::create_exception(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Exception(n, p); -} - -/* - * Construct an AST_Structure node (a struct) - */ -AST_Structure * -AST_Generator::create_structure(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Structure(n, p); -} - -/* - * Construct an AST_Enum node (an enum) - */ -AST_Enum * -AST_Generator::create_enum(UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Enum(n, p); -} - -/* - * Construct an AST_Operation node (an operation on an interface) - */ -AST_Operation * -AST_Generator::create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Operation(rt, fl, n, p); -} - -/* - * Construct an AST_Field node (a field in a struct, union or exception) - */ -AST_Field * -AST_Generator::create_field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Field(ft, n, p); -} - -/* - * Construct an AST_Argument node (an argument to an operation) - */ -AST_Argument * -AST_Generator::create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Argument(d, ft, n, p); -} - -/* - * Construct an AST_Attribute node (an attribute) - */ -AST_Attribute * -AST_Generator::create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Attribute(ro, ft, n, p); -} - -/* - * Construct an AST_Union node (a union) - */ -AST_Union * -AST_Generator::create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Union(dt, n, p); -} - -/* - * Construct an AST_UnionBranch node (a branch in a union) - */ -AST_UnionBranch * -AST_Generator::create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_UnionBranch(lab, ft, n, p); -} - -/* - * Construct an AST_UnionLabel node (a label in a union) - */ -AST_UnionLabel * -AST_Generator::create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *v) -{ - return new AST_UnionLabel(ul, v); -} - -/* - * Construct an AST_Constant node (a constant) - */ -AST_Constant * -AST_Generator::create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Constant(et, ev, n, p); -} - -/* - * Construct an AST_Expression node denoting a symbolic name - */ -AST_Expression * -AST_Generator::create_expr(UTL_ScopedName *n) -{ - return new AST_Expression(n); -} - -/* - * Construct an AST_Expression denoting a coercion - */ -AST_Expression * -AST_Generator::create_expr(AST_Expression *v, AST_Expression::ExprType t) -{ - return new AST_Expression(v, t); -} - -/* - * Construct an AST_Expression node denoting a binary combinator - * of two other AST_Expression nodes - */ -AST_Expression * -AST_Generator::create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2) -{ - return new AST_Expression(c, v1, v2); -} - -/* - * Construct an AST_Expression node denoting a long integer - */ -AST_Expression * -AST_Generator::create_expr(long v) -{ - return new AST_Expression(v); -} - -/* - * Construct an AST_Expression node denoting a long integer being used - * as a boolean - */ -AST_Expression * -AST_Generator::create_expr(long v, AST_Expression::ExprType t) -{ - return new AST_Expression(v, t); -} - -/* - * Construct an AST_Expression node denoting an unsigned long integer - */ -AST_Expression * -AST_Generator::create_expr(unsigned long v) -{ - return new AST_Expression(v); -} - -/* - * Construct an AST_Expression node denoting a string (a char * - * encapsulated as String) - */ -AST_Expression * -AST_Generator::create_expr(String *s) -{ - return new AST_Expression(s); -} - -/* - * Construct an AST_Expression node denoting a character - */ -AST_Expression * -AST_Generator::create_expr(char c) -{ - return new AST_Expression(c); -} - -/* - * Construct an AST_Expression node denoting a 64-bit floating point number - */ -AST_Expression * -AST_Generator::create_expr(double d) -{ - return new AST_Expression(d); -} - -/* - * Construct an AST_EnumVal node (an enumerator) - */ -AST_EnumVal * -AST_Generator::create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_EnumVal(v, n, p); -} - -/* - * Construct an AST_Array node (an array type or field modifier) - */ -AST_Array * -AST_Generator::create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims) -{ - return new AST_Array(n, ndims, dims); -} - -/* - * Construct an AST_Sequence node (a sequence type definition) - */ -AST_Sequence * -AST_Generator::create_sequence(AST_Expression *ms, AST_Type *bt) -{ - return new AST_Sequence(ms, bt); -} - -/* - * Construct an AST_String node (a string type definition) - */ -AST_String * -AST_Generator::create_string(AST_Expression *ms) -{ - return new AST_String(ms); -} - -/* - * Construct an AST_String node denoting a wide string type definition - */ -AST_String * -AST_Generator::create_wstring(AST_Expression *ms) -{ - return new AST_String(ms, sizeof(ACE_OS::WChar)); -} - -/* - * Construct an AST_Typedef node (a typedef) - */ -AST_Typedef * -AST_Generator::create_typedef(AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) -{ - return new AST_Typedef(bt, n, p); -} - -/* - * Construct an AST_Native node - */ -AST_Native * -AST_Generator::create_native (UTL_ScopedName *n, - UTL_StrList *p) -{ - return new AST_Native (n, p); -} diff --git a/TAO/TAO_IDL/ast/ast_interface.cpp b/TAO/TAO_IDL/ast/ast_interface.cpp deleted file mode 100644 index 66268ee9796..00000000000 --- a/TAO/TAO_IDL/ast/ast_interface.cpp +++ /dev/null @@ -1,607 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_interface.cc - Implementation of class AST_Interface - * - * AST_Interfaces denote IDL interface definitions - * AST_Interfaces are subclasses of AST_Type and UTL_Scope - * AST_Interfaces have an array of inherited interfaces and - * a count of the number of inherited interfaces. This count - * represents the total number of unique (recursively) inherited - * interfaces. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_interface, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Interface::AST_Interface() - : pd_inherits(NULL), - pd_n_inherits(0) -{ -} - -AST_Interface::AST_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_interface, n, p), - UTL_Scope(AST_Decl::NT_interface), - pd_inherits(ih), - pd_n_inherits(nih) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add an AST_Constant node (a constant declaration) to this scope - */ -AST_Constant *AST_Interface::fe_add_constant(AST_Constant *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Exception node (an exception declaration) to this scope - */ -AST_Exception *AST_Interface::fe_add_exception(AST_Exception *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Attribute node (an attribute declaration) to this scope - */ -AST_Attribute *AST_Interface::fe_add_attribute(AST_Attribute *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Operation node (an operation declaration) to this scope - */ -AST_Operation *AST_Interface::fe_add_operation(AST_Operation *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Structure (a struct declaration) to this scope - */ -AST_Structure *AST_Interface::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Enum node (an enum declaration) to this scope - */ -AST_Enum *AST_Interface::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Union (a union declaration) to this scope - */ -AST_Union *AST_Interface::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_EnumVal node (an enumerator) to this scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Interface::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Typedef (a typedef) to the current scope - */ -AST_Typedef *AST_Interface::fe_add_typedef(AST_Typedef *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Native (a native declaration) to this scope - */ -AST_Native *AST_Interface::fe_add_native (AST_Native *t) -{ - AST_Decl *d; - - /* - * Can't add to interface which was not yet defined - */ - if (!is_defined()) { - idl_global->err()->error2(UTL_Error::EIDL_DECL_NOT_DEFINED, this, t); - return NULL; - } - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Interface node to the ostream o - */ -void -AST_Interface::dump(ostream &o) -{ - long i; - - o << "interface "; - local_name()->dump(o); - o << " "; - if (pd_n_inherits > 0) { - o << ": "; - for (i = 0; i < pd_n_inherits; i++) { - pd_inherits[i]->local_name()->dump(o); - if (i < pd_n_inherits - 1) - o << ", "; - } - } - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Data accessors - */ - -AST_Interface ** -AST_Interface::inherits() -{ - return pd_inherits; -} - -void -AST_Interface::set_inherits(AST_Interface **i) -{ - pd_inherits = i; -} - -long -AST_Interface::n_inherits() -{ - return pd_n_inherits; -} - -void -AST_Interface::set_n_inherits(long i) -{ - pd_n_inherits = i; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Interface, AST_Type, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Interface) -IMPL_NARROW_FROM_SCOPE(AST_Interface) diff --git a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp b/TAO/TAO_IDL/ast/ast_interface_fwd.cpp deleted file mode 100644 index 48d1bd4fe88..00000000000 --- a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp +++ /dev/null @@ -1,149 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_interface_fwd.cc - Implementation of class AST_InterfaceFwd - * - * AST_InterfaceFwd nodes denote forward declarations of IDL interfaces - * AST_InterfaceFwd nodes have a field containing the full declaration - * of the interface, which is initialized when that declaration is - * encountered. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_interface_fwd, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_InterfaceFwd::AST_InterfaceFwd() - : pd_full_definition(NULL) -{ -} - -AST_InterfaceFwd::AST_InterfaceFwd(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_interface_fwd, n, p) -{ - /* - * Create a dummy placeholder for the forward declared interface. This - * interface node is not yet defined (n_inherits < 0), so some operations - * will fail - */ - pd_full_definition = idl_global->gen()->create_interface(n, NULL, -1, p); - /* - * Record the node in a list to be checked after the entire AST has been - * parsed. All nodes in the list must have n_inherits >= 0, else this - * indicates that a full definition was not seen for this forward - * delcared interface - */ - AST_record_fwd_interface(this); -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_InterfaceFwd node to the ostream o - */ -void -AST_InterfaceFwd::dump(ostream &o) -{ - o << "interface "; - local_name()->dump(o); -} - -/* - * Data accessors - */ - -AST_Interface * -AST_InterfaceFwd::full_definition() -{ - return pd_full_definition; -} - -void -AST_InterfaceFwd::set_full_definition(AST_Interface *nfd) -{ - pd_full_definition = nfd; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1 (AST_InterfaceFwd, AST_Type) -IMPL_NARROW_FROM_DECL (AST_InterfaceFwd) diff --git a/TAO/TAO_IDL/ast/ast_module.cpp b/TAO/TAO_IDL/ast/ast_module.cpp deleted file mode 100644 index 907aa22d965..00000000000 --- a/TAO/TAO_IDL/ast/ast_module.cpp +++ /dev/null @@ -1,594 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_module.cc - Implementation of class AST_Module - * - * AST_Modules denote IDL module declarations - * AST_Modules are subclasses of AST_Decl (they are not a type!) and - * of UTL_Scope. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_module, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Module::AST_Module() -{ -} - -AST_Module::AST_Module(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_PredefinedType node (a predefined type declaration) to - * this scope - */ -AST_PredefinedType *AST_Module::fe_add_predefined_type(AST_PredefinedType *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Module node (a module declaration) to this scope - */ -AST_Module *AST_Module::fe_add_module(AST_Module *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Interface node (an interface declaration) to this scope - */ -AST_Interface *AST_Module::fe_add_interface(AST_Interface *t) -{ - AST_Decl *predef; - AST_Interface *fwd; - - /* - * Already defined? - */ - if ((predef = lookup_for_add(t, I_FALSE)) != NULL) { - /* - * Treat fwd declared interfaces specially - */ - if (predef->node_type() == AST_Decl::NT_interface) { - fwd = AST_Interface::narrow_from_decl(predef); - - if (fwd == NULL) - return NULL; - - if (!fwd->is_defined()) { /* Forward declared and not defined yet */ - if (fwd->defined_in() != this) { - idl_global->err() - ->error3(UTL_Error::EIDL_SCOPE_CONFLICT, fwd, t, this); - return NULL; - } - } - /* - * OK, not illegal redef of forward declaration. Now check whether - * it has been referenced already - */ - else if (referenced(predef)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, predef); - return NULL; - } - } else if (!can_be_redefined(predef)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, predef); - return NULL; - } else if (referenced(predef)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, predef); - return NULL; - } else if (t->has_ancestor(predef)) { - idl_global->err()->redefinition_in_scope(t, predef); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_InterfaceFwd node (a forward declaration of an IDL - * interface) to this scope - */ -AST_InterfaceFwd *AST_Module::fe_add_interface_fwd(AST_InterfaceFwd *i) -{ - AST_Decl *d; - AST_Interface *itf; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(i, I_FALSE)) != NULL) { - if (d->node_type() == AST_Decl::NT_interface && - d->defined_in() == this) { - itf = AST_Interface::narrow_from_decl(d); - if (itf == NULL) - return NULL; - - i->set_full_definition(itf); - return i; - } - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, i, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, i, this, d); - return NULL; - } - if (i->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(i, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(i); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(i, I_FALSE); - - return i; -} - -/* - * Add this AST_Constant node (a constant declaration) to this scope - */ -AST_Constant *AST_Module::fe_add_constant(AST_Constant *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Exception node (an exception declaration) to this scope - */ -AST_Exception *AST_Module::fe_add_exception(AST_Exception *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Union node (a union declaration) to this scope - */ -AST_Union *AST_Module::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Structure node (a struct declaration) to this scope - */ -AST_Structure *AST_Module::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum node (an enum declaration) to this scope - */ -AST_Enum *AST_Module::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal node (an enumerator declaration) to this scope - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Module::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Typedef node (a typedef) to this scope - */ -AST_Typedef *AST_Module::fe_add_typedef(AST_Typedef *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Native (a native declaration) to this scope - */ -AST_Native *AST_Module::fe_add_native (AST_Native *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Module node to the ostream o - */ -void -AST_Module::dump(ostream &o) -{ - o << "module "; - local_name()->dump(o); - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Module) -IMPL_NARROW_FROM_SCOPE(AST_Module) diff --git a/TAO/TAO_IDL/ast/ast_native.cpp b/TAO/TAO_IDL/ast/ast_native.cpp deleted file mode 100644 index d4ab8ef1075..00000000000 --- a/TAO/TAO_IDL/ast/ast_native.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// $Id$ - - -// AST_Native: New IDL type added by the POA spec - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_native, "$Id$") - -/* - * Constructor(s) - */ -AST_Native::AST_Native (void) -{ -} - -AST_Native::AST_Native(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl (AST_Decl::NT_native, n, p) -{ -} - -/* - * Dump this AST_Native node to the ostream o - */ -void -AST_Native::dump (ostream &o) -{ - AST_Decl::dump (o); -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_Native, AST_Type) -IMPL_NARROW_FROM_DECL(AST_Native) diff --git a/TAO/TAO_IDL/ast/ast_operation.cpp b/TAO/TAO_IDL/ast/ast_operation.cpp deleted file mode 100644 index 67e7ac8b749..00000000000 --- a/TAO/TAO_IDL/ast/ast_operation.cpp +++ /dev/null @@ -1,330 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_operation.cc - Implementation of class AST_Operation - * - * AST_Operation nodes denote IDL operation declarations - * AST_Operations are a subclass of AST_Decl (they are not a type!) - * and of UTL_Scope (the arguments are managed in a scope). - * AST_Operations have a return type (a subclass of AST_Type), - * a bitfield for denoting various properties of the operation (the - * values are ORed together from constants defined in the enum - * AST_Operation::FLags), a name (a UTL_ScopedName), a context - * (implemented as a list of Strings, a UTL_StrList), and a raises - * clause (implemented as an array of AST_Exceptions). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_operation, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Operation::AST_Operation() - : pd_return_type(NULL), - pd_flags(OP_noflags), - pd_context(NULL), - pd_exceptions(NULL) -{ -} - -AST_Operation::AST_Operation(AST_Type *rt, Flags fl, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_op, n, p), - UTL_Scope(AST_Decl::NT_op), - pd_return_type(rt), - pd_flags(fl), - pd_context(NULL), - pd_exceptions(NULL) -{ - AST_PredefinedType *pdt; - - /* - * Check that if the operation is oneway, the return type must be void - */ - if (rt != NULL && pd_flags == OP_oneway) { - if (rt->node_type() != AST_Decl::NT_pre_defined) - idl_global->err()->error1(UTL_Error::EIDL_NONVOID_ONEWAY, this); - else { - pdt = AST_PredefinedType::narrow_from_decl(rt); - if (pdt == NULL || pdt->pt() != AST_PredefinedType::PT_void) - idl_global->err()->error1(UTL_Error::EIDL_NONVOID_ONEWAY, this); - } - } -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this context (a UTL_StrList) to this scope - */ -UTL_StrList * -AST_Operation::fe_add_context(UTL_StrList *t) -{ - pd_context = t; - - return t; -} - -/* - * Add these exceptions (identified by name) to this scope. - * This looks up each name to resolve it to the name of a known - * exception, and then adds the referenced exception to the list - * of exceptions that this operation can raise. - * - * NOTE: No attempt is made to ensure that exceptions are mentioned - * only once.. - */ -UTL_NameList * -AST_Operation::fe_add_exceptions(UTL_NameList *t) -{ - UTL_NamelistActiveIterator *nl_i; - UTL_ScopedName *nl_n; - UTL_Scope *fs = idl_global->scopes()->top(); - AST_Exception *fe; - AST_Decl *d; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (fs); - - pd_exceptions = NULL; - nl_i = new UTL_NamelistActiveIterator(t); - while (!(nl_i->is_done())) { - nl_n = nl_i->item(); - d = lookup_by_name(nl_n, I_TRUE); - if (d == NULL || d->node_type() != AST_Decl::NT_except) { - idl_global->err()->lookup_error(nl_n); - delete nl_i; - return NULL; - } - fe = AST_Exception::narrow_from_decl(d); - if (fe == NULL) { - idl_global->err()->error1(UTL_Error::EIDL_ILLEGAL_RAISES, this); - return NULL; - } - if (pd_exceptions == NULL) - pd_exceptions = new UTL_ExceptList(fe, NULL); - else - pd_exceptions->nconc(new UTL_ExceptList(fe, NULL)); - nl_i->next(); - } - delete nl_i; - - return t; -} - -/* - * Add this AST_Argument node (an operation argument declaration) - * to this scope - */ -AST_Argument *AST_Operation::fe_add_argument(AST_Argument *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_by_name_local(t->local_name(), I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Cannot add OUT or INOUT argument to oneway operation - */ - if ((t->direction() == AST_Argument::dir_OUT || - t->direction() == AST_Argument::dir_INOUT) && - pd_flags == OP_oneway) { - idl_global->err()->error2(UTL_Error::EIDL_ONEWAY_CONFLICT, t, this); - return NULL; - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Operation node (an operation) to the ostream o - */ -void -AST_Operation::dump(ostream &o) -{ - UTL_ScopeActiveIterator *i; - UTL_StrlistActiveIterator *si; - UTL_ExceptlistActiveIterator *ei; - AST_Decl *d; - AST_Exception *e; - String *s; - - if (pd_flags == OP_oneway) - o << "oneway "; - else if (pd_flags == OP_idempotent) - o << "idempotent "; - - i = new UTL_ScopeActiveIterator(this, IK_decls); - pd_return_type->name()->dump(o); - o << " "; - local_name()->dump(o); - o << "("; - while (!(i->is_done())) { - d = i->item(); - d->dump(o); - i->next(); - if (!(i->is_done())) - o << ", "; - } - delete i; - o << ")"; - - if (pd_exceptions != NULL) { - o << " raises("; - ei = new UTL_ExceptlistActiveIterator(pd_exceptions); - while (!(ei->is_done())) { - e = ei->item(); - ei->next(); - e->local_name()->dump(o); - if (!(ei->is_done())) - o << ", "; - } - delete ei; - o << ")"; - } - if (pd_context != NULL) { - o << " context("; - si = new UTL_StrlistActiveIterator(pd_context); - while (!(si->is_done())) { - s = si->item(); - si->next(); - o << s->get_string(); - if (!(si->is_done())) - o << ", "; - } - delete si; - o << ")"; - } -} - -/* - * Data accessors - */ - -AST_Type * -AST_Operation::return_type() -{ - return pd_return_type; -} - -AST_Operation::Flags -AST_Operation::flags() -{ - return pd_flags; -} - -UTL_StrList * -AST_Operation::context() -{ - return pd_context; -} - -UTL_ExceptList * -AST_Operation::exceptions() -{ - return pd_exceptions; -} - -// Narrowing -IMPL_NARROW_METHODS2(AST_Operation, AST_Decl, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Operation) -IMPL_NARROW_FROM_SCOPE(AST_Operation) diff --git a/TAO/TAO_IDL/ast/ast_predefined_type.cpp b/TAO/TAO_IDL/ast/ast_predefined_type.cpp deleted file mode 100644 index 52ad257ec10..00000000000 --- a/TAO/TAO_IDL/ast/ast_predefined_type.cpp +++ /dev/null @@ -1,132 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_predefined_type.cc - Implementation of class AST_PredefinedType - * - * AST_PredefinedType nodes denote the various predefined types such - * as long, short, etc. that are available in IDL. Each AST_PredefinedType - * node has a field (the value of this field is from the enum - * AST_PredefinedType::PredefinedType) which denotes the specific predefined - * type that this node represents. There is only one node in the entire - * AST which represents each predefined type, such as long etc. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_predefined_type, "$Id$") - -/* - * Constructor(s) - */ -AST_PredefinedType::AST_PredefinedType() - : pd_pt(PT_long) -{ -} - -AST_PredefinedType::AST_PredefinedType(PredefinedType t, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_pre_defined, n, p), - pd_pt(t) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_PredefinedType node to the ostream o - */ -void -AST_PredefinedType::dump(ostream &o) -{ - AST_Decl::dump(o); -} - -/* - * Data accessors - */ - -AST_PredefinedType::PredefinedType -AST_PredefinedType::pt() -{ - return pd_pt; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_PredefinedType, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_PredefinedType) diff --git a/TAO/TAO_IDL/ast/ast_recursive.cpp b/TAO/TAO_IDL/ast/ast_recursive.cpp deleted file mode 100644 index 6c72be562fc..00000000000 --- a/TAO/TAO_IDL/ast/ast_recursive.cpp +++ /dev/null @@ -1,169 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_recursive.cc - Check whether a type is used recursively in a situation - * where this use would be illegal. - * - * EXPLANATION: The CORBAS says that the only legal use of recursive types is - * in a manifest sequence declared inside a struct or union whose base type is - * the struct or union - * - * ALGORITH FOR CHECK: - * Sequences push a NULL on the scope stack to mark where in the scope nesting - * they appear. - * - * - If the type is not a struct or union, return FALSE (legal use of type) - * - Otherwise check up the scope stack, looking for this base type. If we - * find a NULL return FALSE (legal use of type, since it is inside some - * sequence). If we find the type on the stack, return TRUE (illegal use - * since it was not bracketed by a sequence). If we don't find the base - * type nor a sequence, return FALSE (legal use, since we're not nested). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_recursive, "$Id$") - -/* - * FE_illegal_recursive_type() - Implement the algorithm described above - */ -idl_bool -AST_illegal_recursive_type(AST_Decl *t) -{ - UTL_ScopeStackActiveIterator *i = 0; - UTL_Scope *s = 0; - AST_Structure *st1 = 0, *st2 = 0; - AST_Union *un1 = 0, *un2 = 0; - idl_bool check_for_struct = I_FALSE, - check_for_union = I_FALSE; - - if (t == NULL) return I_FALSE; - - /* - * We only care about structs and unions - */ - if (t->node_type() != AST_Decl::NT_struct && - t->node_type() != AST_Decl::NT_union) - return I_FALSE; // NOT ILLEGAL - /* - * Narrow the type appropriately so comparison will work - */ - if (t->node_type() == AST_Decl::NT_struct) { - check_for_struct = I_TRUE; - st1 = AST_Structure::narrow_from_decl(t); - if (st1 == NULL) - return I_FALSE; // NOT ILLEGAL - } else if (t->node_type() == AST_Decl::NT_union) { - check_for_union = I_TRUE; - un1 = AST_Union::narrow_from_decl(t); - if (un1 == NULL) - return I_FALSE; // NOT ILLEGAL - } - /* - * OK, iterate up the stack - */ - i = new UTL_ScopeStackActiveIterator(idl_global->scopes()); - while (!(i->is_done())) { - s = i->item(); - /* - * If we hit a NULL we're done since it means that we're nested inside - * a sequence, where recursive types may be used - */ - if (s == NULL) { - delete i; - return I_FALSE; // NOT ILLEGAL - } - /* - * OK, must check this scope - */ - if (s->scope_node_type() == AST_Decl::NT_struct && check_for_struct) { - st2 = AST_Structure::narrow_from_scope(s); - if (st2 != NULL && st2 == st1) { - delete i; - return I_TRUE; // ILLEGAL RECURSIVE TYPE USE - } - } else if (s->scope_node_type() == AST_Decl::NT_union && - check_for_union) { - un2 = AST_Union::narrow_from_scope(s); - if (un2 != NULL && un2 == un1) { - delete i; - return I_TRUE; // ILLEGAL RECURSIVE TYPE USE - } - } - /* - * This one is fine, get next item - */ - i->next(); - } - /* - * No more scopes to check. This type was used legally - */ - delete i; - return I_FALSE; // NOT ILLEGAL -} - diff --git a/TAO/TAO_IDL/ast/ast_redef.cpp b/TAO/TAO_IDL/ast/ast_redef.cpp deleted file mode 100644 index 8decdd3ffb3..00000000000 --- a/TAO/TAO_IDL/ast/ast_redef.cpp +++ /dev/null @@ -1,110 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_redef.cc - Implement utility function to decide when redefinition - * is allowed - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_redef, "$Id$") - -/* - * Return TRUE if the node d represents an IDL construct whose name - * can be redefined. - */ -idl_bool -can_be_redefined(AST_Decl *d) -{ - switch (d->node_type()) { - case AST_Decl::NT_module: - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - case AST_Decl::NT_const: - case AST_Decl::NT_except: - case AST_Decl::NT_argument: - case AST_Decl::NT_enum_val: - case AST_Decl::NT_string: - case AST_Decl::NT_array: - case AST_Decl::NT_sequence: - case AST_Decl::NT_union: - case AST_Decl::NT_struct: - case AST_Decl::NT_enum: - case AST_Decl::NT_typedef: - return I_TRUE; - - case AST_Decl::NT_union_branch: - case AST_Decl::NT_field: - case AST_Decl::NT_attr: - case AST_Decl::NT_op: - case AST_Decl::NT_pre_defined: - default: - return I_FALSE; - } -} - diff --git a/TAO/TAO_IDL/ast/ast_root.cpp b/TAO/TAO_IDL/ast/ast_root.cpp deleted file mode 100644 index f97f30a028c..00000000000 --- a/TAO/TAO_IDL/ast/ast_root.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_root.cc - Implementation of class AST_Root - * - * AST_Root nodes represent the roots of ASTs. - * AST_Root is a subclass of AST_Module, and is defined to allow BEs - * to subclass it to associate their own information with an entire - * AST. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_root, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Root::AST_Root() -{ -} - -AST_Root::AST_Root(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Add protocol - */ - -/* - * Add this AST_Sequence to the locally defined types in this scope - */ -AST_Sequence * -AST_Root::fe_add_sequence(AST_Sequence *t) -{ - if (t == NULL) - return NULL; - t->set_name(new UTL_ScopedName(new Identifier("local type", 1, 0, I_FALSE), - NULL)); - add_to_local_types(t); - return t; -} - -/* - * Add this AST_String to the locally defined types in this scope - */ -AST_String * -AST_Root::fe_add_string(AST_String *t) -{ - if (t == NULL) - return NULL; - t->set_name(new UTL_ScopedName(new Identifier("local type", 1, 0, I_FALSE), - NULL)); - add_to_local_types(t); - - return t; -} - -/* - * Add this AST_Array to the locally defined types in this scope - */ -AST_Array * -AST_Root::fe_add_array(AST_Array *t) -{ - if (t == NULL) - return NULL; - t->set_name(new UTL_ScopedName(new Identifier("local type",1,0,I_FALSE), - NULL)); - add_to_local_types(t); - - return t; -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Root node to the ostream o - */ -void -AST_Root::dump(ostream &o) -{ - UTL_Scope::dump(o); -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS1(AST_Root, AST_Module) -IMPL_NARROW_FROM_DECL(AST_Root) -IMPL_NARROW_FROM_SCOPE(AST_Root) diff --git a/TAO/TAO_IDL/ast/ast_sequence.cpp b/TAO/TAO_IDL/ast/ast_sequence.cpp deleted file mode 100644 index ca23b86dc49..00000000000 --- a/TAO/TAO_IDL/ast/ast_sequence.cpp +++ /dev/null @@ -1,145 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_sequence.cc - Implementation of class AST_Sequence - * - * AST_Sequence nodes represent IDL sequence declarations. - * AST_Sequence is a subclass of AST_ConcreteType. - * AST_Sequence nodes have a maximum size (an AST_Expression which - * must evaluate to a positive integer) and a base type (a subclass - * of AST_Type). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_sequence, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Sequence::AST_Sequence() - : pd_max_size(0), - pd_base_type(NULL) -{ -} - -AST_Sequence::AST_Sequence(AST_Expression *ms, AST_Type *bt) - : AST_Decl(AST_Decl::NT_sequence, - new UTL_ScopedName( - new Identifier("sequence",1,0,I_FALSE), - NULL), - NULL), - pd_max_size(ms), - pd_base_type(bt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Sequence node to the ostream o - */ -void -AST_Sequence::dump(ostream &o) -{ - o << "sequence <"; - pd_base_type->dump(o); - o << ", "; - pd_max_size->dump(o); - o << ">"; -} - -/* - * Data accessors - */ - -AST_Expression * -AST_Sequence::max_size() -{ - return pd_max_size; -} - -AST_Type * -AST_Sequence::base_type() -{ - return pd_base_type; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_Sequence, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_Sequence) diff --git a/TAO/TAO_IDL/ast/ast_string.cpp b/TAO/TAO_IDL/ast/ast_string.cpp deleted file mode 100644 index 7540024e3cc..00000000000 --- a/TAO/TAO_IDL/ast/ast_string.cpp +++ /dev/null @@ -1,155 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_string.cc - Implementation of class AST_String - * - * AST_String nodes represent IDL string declarations. - * AST_String is a subclass of AST_ConcreteType. - * AST_String nodes have a maximum size (an AST_Expression which must - * evaluate to a positive integer). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_string, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_String::AST_String() - : pd_max_size(0), pd_width(1) -{ -} - -AST_String::AST_String(AST_Expression *ms) - : AST_Decl(AST_Decl::NT_string, - new UTL_ScopedName(new Identifier("string",1,0,I_FALSE), - NULL), - NULL), - pd_max_size(ms), - pd_width(sizeof(char)) -{ -} - -AST_String::AST_String(AST_Expression *ms, long wide) - : AST_Decl(AST_Decl::NT_string, - new UTL_ScopedName(wide == sizeof(char) - ? new Identifier("string",1,0,I_FALSE) - : new Identifier("wstring_t", - 1, - 0, - I_FALSE), - NULL), - NULL), - pd_max_size(ms), - pd_width(wide) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_String node to the ostream o - */ -void -AST_String::dump(ostream &o) -{ - o << "string <"; - pd_max_size->dump(o); - o << ">"; -} - -/* - * Data accessors - */ - -AST_Expression * -AST_String::max_size() -{ - return pd_max_size; -} - -long -AST_String::width() -{ - return pd_width; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_String, AST_ConcreteType) -IMPL_NARROW_FROM_DECL(AST_String) diff --git a/TAO/TAO_IDL/ast/ast_structure.cpp b/TAO/TAO_IDL/ast/ast_structure.cpp deleted file mode 100644 index fdf8e49ecfe..00000000000 --- a/TAO/TAO_IDL/ast/ast_structure.cpp +++ /dev/null @@ -1,313 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_structure.cc - Implementation of class AST_Structure - * - * AST_Structure nodes denote IDL struct declarations. - * AST_Structure is a subclass of AST_ConcreteType and of UTL_Scope (the - * structure's fields are managed in a scope). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_structure, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Structure::AST_Structure() -{ -} - -AST_Structure::AST_Structure(UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_struct, n, p), - UTL_Scope(AST_Decl::NT_struct) -{ -} - -AST_Structure::AST_Structure(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p), - UTL_Scope(nt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_Field node (a field declaration) to this scope - */ -AST_Field *AST_Structure::fe_add_field(AST_Field *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Structure node (a manifest struct type) to this scope - */ -AST_Structure *AST_Structure::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add an AST_Union node (a manifest union type) to this scope - */ -AST_Union *AST_Structure::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum node (a manifest enum declaration) to this scope - */ -AST_Enum *AST_Structure::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal node (an enumerator declaration) to this scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Structure::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Structure node to the ostream o - */ -void -AST_Structure::dump(ostream &o) -{ - o << "struct "; - AST_Decl::dump(o); - o << " {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -// Narrowing -IMPL_NARROW_METHODS2(AST_Structure, AST_ConcreteType, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Structure) -IMPL_NARROW_FROM_SCOPE(AST_Structure) diff --git a/TAO/TAO_IDL/ast/ast_type.cpp b/TAO/TAO_IDL/ast/ast_type.cpp deleted file mode 100644 index b692b0b4c25..00000000000 --- a/TAO/TAO_IDL/ast/ast_type.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_type.cc - Implementation of class AST_Type - * - * AST_Type is the base class for all AST classes which represent - * IDL type constructs. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_type, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Type::AST_Type() -{ -} - -AST_Type::AST_Type(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(nt, n, p) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - - -// Narrowing -IMPL_NARROW_METHODS1(AST_Type, AST_Decl) -IMPL_NARROW_FROM_DECL(AST_Type) diff --git a/TAO/TAO_IDL/ast/ast_typedef.cpp b/TAO/TAO_IDL/ast/ast_typedef.cpp deleted file mode 100644 index 0db573bfa2d..00000000000 --- a/TAO/TAO_IDL/ast/ast_typedef.cpp +++ /dev/null @@ -1,133 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_typedef.cc - Implementation of class AST_Typedef - * - * AST_Typedef nodes represent an IDL typedef statement. - * AST_Typedef is a subclass of AST_Decl (it is not a type, - * but instead is a type renaming). - * AST_Typedef nodes have a base type (a subclass of AST_Type) - * and a name (an UTL_ScopedName). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_typedef, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Typedef::AST_Typedef() - : pd_base_type(NULL) -{ -} - -AST_Typedef::AST_Typedef(AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_typedef, n, p), - pd_base_type(bt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_Typedef node to the ostream o - */ -void -AST_Typedef::dump(ostream &o) -{ - o << "typedef "; - pd_base_type->dump(o); - o << " "; - local_name()->dump(o); -} - -/* - * Data accessors - */ - -AST_Type * -AST_Typedef::base_type() -{ - return pd_base_type; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_Typedef, AST_Type) -IMPL_NARROW_FROM_DECL(AST_Typedef) diff --git a/TAO/TAO_IDL/ast/ast_union.cpp b/TAO/TAO_IDL/ast/ast_union.cpp deleted file mode 100644 index 7cb74273141..00000000000 --- a/TAO/TAO_IDL/ast/ast_union.cpp +++ /dev/null @@ -1,557 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_union.cc - Implementation of class AST_Union - * - * AST_Union nodes represent IDL union declarations. - * AST_Union is a subclass of AST_ConcreteType and of UTL_Scope (the - * union branches are managed in a scope). - * AST_Union nodes have a discriminator type (a subclass of AST_ConcreteType), - * a name (an UTL_ScopedName) and a field denoting the discriminator type if - * it is a primitive type (the value of this field is from the union - * AST_Expression::ExprType and serves as a cache). This field is used - * to compute coercions for labels based on the expected discriminator type. - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_union, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_Union::AST_Union() -{ -} - -AST_Union::AST_Union(AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) -{ - AST_PredefinedType *pdt; - - if (dt == NULL) { - pd_disc_type = NULL; - pd_udisc_type = AST_Expression::EV_none; - return; - } - /* - * If the discriminator type is a predefined type - * then install the equivalent coercion target type in - * the pd_udisc_type field. - */ - if (dt->node_type() == AST_Decl::NT_pre_defined) { - pdt = AST_PredefinedType::narrow_from_decl(dt); - if (pdt == NULL) { - pd_disc_type = NULL; - pd_udisc_type = AST_Expression::EV_none; - return; - } - pd_disc_type = dt; - switch (pdt->pt()) { - case AST_PredefinedType::PT_long: - pd_udisc_type = AST_Expression::EV_long; - break; - case AST_PredefinedType::PT_ulong: - pd_udisc_type = AST_Expression::EV_ulong; - break; - case AST_PredefinedType::PT_short: - pd_udisc_type = AST_Expression::EV_short; - break; - case AST_PredefinedType::PT_ushort: - pd_udisc_type = AST_Expression::EV_ushort; - break; - case AST_PredefinedType::PT_char: - pd_udisc_type = AST_Expression::EV_char; - break; - case AST_PredefinedType::PT_octet: - pd_udisc_type = AST_Expression::EV_octet; - break; - case AST_PredefinedType::PT_boolean: - pd_udisc_type = AST_Expression::EV_bool; - break; - default: - pd_udisc_type = AST_Expression::EV_none; - pd_disc_type = NULL; - break; - } - } else if (dt->node_type() == AST_Decl::NT_enum) { - pd_udisc_type = AST_Expression::EV_any; - pd_disc_type = dt; - } else { - pd_udisc_type = AST_Expression::EV_none; - pd_disc_type = NULL; - } - - if (pd_disc_type == NULL) - idl_global->err()->error2(UTL_Error::EIDL_DISC_TYPE, this, dt); -} - -/* - * Private operations - */ - -/* - * Look up the default branch in union - */ -AST_UnionBranch * -AST_Union::lookup_default() -{ - UTL_ScopeActiveIterator *i = new UTL_ScopeActiveIterator(this, IK_both); - AST_UnionBranch *b; - AST_Decl *d; - - while (!(i->is_done())) { - d = i->item(); - if (d->node_type() == AST_Decl::NT_union_branch) { - b = AST_UnionBranch::narrow_from_decl(d); - if (b == NULL) { - i->next(); - continue; - } - if (b->label() != NULL && - b->label()->label_kind() == AST_UnionLabel::UL_default) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, b); - delete i; - return b; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look up a branch by label - */ -AST_UnionBranch * -AST_Union::lookup_label(AST_UnionBranch *b) -{ - AST_UnionLabel *l = b->label(); - UTL_ScopeActiveIterator *i; - AST_Decl *d; - AST_UnionBranch *fb; - - if (l->label_val() == NULL) - return b; - l->label_val()->set_ev(l->label_val()->coerce(pd_udisc_type)); - if (l->label_val()->ev() == NULL) { - idl_global->err()->eval_error(l->label_val()); - return b; - } - - i = new UTL_ScopeActiveIterator(this, IK_decls); - - while (!(i->is_done())) { - d = i->item(); - if (d->node_type() == AST_Decl::NT_union_branch) { - fb = AST_UnionBranch::narrow_from_decl(d); - if (fb == NULL) { - i->next(); - continue; - } - if (fb->label() != NULL && - fb->label()->label_kind() == AST_UnionLabel::UL_label && - fb->label()->label_val()->compare(l->label_val())) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, b); - delete i; - return b; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look up a branch in an enum which is the discriminator type for this - * union, based on the label value which must be an enumerator in that - * enum. - */ -AST_UnionBranch * -AST_Union::lookup_enum(AST_UnionBranch *b) -{ - AST_UnionLabel *l = b->label(); - AST_Expression *v; - AST_Enum *e = AST_Enum::narrow_from_decl(pd_disc_type); - UTL_ScopeActiveIterator *i; - AST_Decl *d; - AST_UnionBranch *fb; - - if (e == NULL) return NULL; - if (l->label_val() == NULL) - return b; - v = l->label_val(); - /* - * Expecting a symbol label - */ - if (v->ec() != AST_Expression::EC_symbol) { - idl_global->err()->enum_val_expected(this, l); - return b; - } - /* - * See if the symbol defines a constant in the discriminator enum - */ - d = e->lookup_by_name(v->n(), I_TRUE); - if (d == NULL || d->defined_in() != e) { - idl_global->err()->enum_val_lookup_failure(this, e, v->n()); - return b; - } - /* - * OK, now see if this symbol is already used as the label of - * some other branch - */ - i = new UTL_ScopeActiveIterator(this, IK_decls); - while (!(i->is_done())) { - d = i->item(); - if (d->node_type() == AST_Decl::NT_union_branch) { - fb = AST_UnionBranch::narrow_from_decl(d); - if (fb == NULL) { - i->next(); - continue; - } - if (fb->label() != NULL && - fb->label()->label_kind() == AST_UnionLabel::UL_label && - fb->label()->label_val()->compare (l->label_val())) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, b); - delete i; - return b; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look up a branch by value. This is the top level branch label resolution - * entry point. It dispatches to the right lookup function depending on the - * union discriminator type. - */ -AST_UnionBranch * -AST_Union::lookup_branch(AST_UnionBranch *branch) -{ - AST_UnionLabel *l = NULL; - - if (branch != NULL) - l = branch->label(); - - if (l != NULL) { - if (l->label_kind() == AST_UnionLabel::UL_default) - return lookup_default(); - if (pd_udisc_type == AST_Expression::EV_any) - /* CONVENTION: indicates enum discr */ - return lookup_enum(branch); - return lookup_label(branch); - } - return NULL; -} - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Add this AST_UnionBranch node (a node representing one branch in a - * union declaration) to this scope - */ -AST_UnionBranch *AST_Union::fe_add_union_branch(AST_UnionBranch *t) -{ - AST_Decl *d; - - /* - * If this is a malformed branch, don't do anything with it - */ - if (t == NULL || t->label() == NULL) - return NULL; - /* - * If branch with that label already exists, complain - */ - if (lookup_branch(t) != NULL) { - idl_global->err()->error2(UTL_Error::EIDL_MULTIPLE_BRANCH, this, t); - return NULL; - } - /* - * If branch with same field name exists, complain - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Union (manifest union type) to this scope - */ -AST_Union *AST_Union::fe_add_union(AST_Union *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Structure node (manifest struct type) to this scope - */ -AST_Structure *AST_Union::fe_add_structure(AST_Structure *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_Enum node (manifest enum type) to this scope - */ -AST_Enum *AST_Union::fe_add_enum(AST_Enum *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to local types - */ - add_to_local_types(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Add this AST_EnumVal node (enumerator declaration) to this scope. - * This is done to conform to the C++ scoping rules which declare - * enumerators in the enclosing scope (in addition to declaring them - * in the enum itself) - */ -AST_EnumVal *AST_Union::fe_add_enum_val(AST_EnumVal *t) -{ - AST_Decl *d; - - /* - * Already defined and cannot be redefined? Or already used? - */ - if ((d = lookup_for_add(t, I_FALSE)) != NULL) { - if (!can_be_redefined(d)) { - idl_global->err()->error3(UTL_Error::EIDL_REDEF, t, this, d); - return NULL; - } - if (referenced(d)) { - idl_global->err()->error3(UTL_Error::EIDL_DEF_USE, t, this, d); - return NULL; - } - if (t->has_ancestor(d)) { - idl_global->err()->redefinition_in_scope(t, d); - return NULL; - } - } - /* - * Add it to scope - */ - add_to_scope(t); - /* - * Add it to set of locally referenced symbols - */ - add_to_referenced(t, I_FALSE); - - return t; -} - -/* - * Dump this AST_Union node to the ostream o - */ -void -AST_Union::dump(ostream &o) -{ - o << "union "; - local_name()->dump(o); - o << " switch ("; - pd_disc_type->local_name()->dump(o); - o << ") {\n"; - UTL_Scope::dump(o); - idl_global->indent()->skip_to(o); - o << "}"; -} - -/* - * Data accessors - */ - -AST_ConcreteType * -AST_Union::disc_type() -{ - return pd_disc_type; -} - -AST_Expression::ExprType -AST_Union::udisc_type() -{ - return pd_udisc_type; -} - -// Narrowing -IMPL_NARROW_METHODS2(AST_Union, AST_ConcreteType, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Union) -IMPL_NARROW_FROM_SCOPE(AST_Union) diff --git a/TAO/TAO_IDL/ast/ast_union_branch.cpp b/TAO/TAO_IDL/ast/ast_union_branch.cpp deleted file mode 100644 index b2518e3cb61..00000000000 --- a/TAO/TAO_IDL/ast/ast_union_branch.cpp +++ /dev/null @@ -1,133 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_union_branch.cc - Implementation of class AST_UnionBranch - * - * AST_UnionBranch nodes represent a single branch of an IDL union - * declaration. - * AST_UnionBranch is a subclass of AST_Field, adding a label (which - * is a subclass of AST_UnionLabel). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_union_branch, "$Id$") - -/* - * Constructor(s) and destructor - */ -AST_UnionBranch::AST_UnionBranch() - : pd_label(NULL) -{ -} - -AST_UnionBranch::AST_UnionBranch(AST_UnionLabel *fl, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Field(AST_Decl::NT_union_branch, ft, n, p), - AST_Decl(AST_Decl::NT_union_branch, n, p), - pd_label(fl) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Dump this AST_UnionBranch node to the ostream o - */ -void -AST_UnionBranch::dump(ostream &o) -{ - o << "case "; - pd_label->dump(o); - o << ": "; - AST_Field::dump(o); -} - -/* - * Data accessors - */ - -AST_UnionLabel * -AST_UnionBranch::label() -{ - return pd_label; -} - -// Narrowing -IMPL_NARROW_METHODS1(AST_UnionBranch, AST_Field) -IMPL_NARROW_FROM_DECL(AST_UnionBranch) diff --git a/TAO/TAO_IDL/ast/ast_union_label.cpp b/TAO/TAO_IDL/ast/ast_union_label.cpp deleted file mode 100644 index 6fc9928982f..00000000000 --- a/TAO/TAO_IDL/ast/ast_union_label.cpp +++ /dev/null @@ -1,137 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * ast_union_label.cc - Implementation of class AST_UnionLabel - * - * AST_UnionLabel denotes the label of a branch in an IDL union - * declaration. - * AST_UnionLabel nodes have a label kind (the values come from the - * enum AST_UnionLabel::LabelKind) and a label value (which is a - * subclass of AST_Expression). - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(ast, ast_union_label, "$Id$") - -/* - * Constructor(s) - */ -AST_UnionLabel::AST_UnionLabel() - : pd_label_kind(UL_default), - pd_label_val(NULL) -{ -} - -AST_UnionLabel::AST_UnionLabel(UnionLabel lk, AST_Expression *lv) - : pd_label_kind(lk), - pd_label_val(lv) -{ - if (lv != NULL) - lv->evaluate(AST_Expression::EK_const); -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -AST_UnionLabel::UnionLabel -AST_UnionLabel::label_kind() -{ - return pd_label_kind; -} - -AST_Expression * -AST_UnionLabel::label_val() -{ - return pd_label_val; -} - -/* - * Dump this AST_UnionLabel node to the ostream o - */ -void -AST_UnionLabel::dump(ostream &o) -{ - if (pd_label_kind == UL_default) - o << "default"; - else - pd_label_val->dump(o); -} diff --git a/TAO/TAO_IDL/be/be_args.cpp b/TAO/TAO_IDL/be/be_args.cpp deleted file mode 100644 index ae99845193c..00000000000 --- a/TAO/TAO_IDL/be/be_args.cpp +++ /dev/null @@ -1,109 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// be_args.cc - Collect command line arguments for the BE - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_args, "$Id$") - -/* - * Prepare an argument for a BE - * - * Since this is the dummy BE, it doesn't do anything with the passed string - */ -void -BE_prep_arg(char *s, idl_bool) -{ - const char arg_macro[]="export_macro="; - const char arg_include[]="export_include="; - - char* last = 0; - for (char* arg = ACE_OS::strtok_r (s, ",", &last); - arg != 0; - arg = ACE_OS::strtok_r (0, ",", &last)) - { - if (ACE_OS::strstr (arg, arg_macro) == arg) - { - char* val = arg + sizeof (arg_macro) - 1; - idl_global->export_macro (val); - } - else if (ACE_OS::strstr (arg, arg_include) == arg) - { - char* val = arg + sizeof (arg_include) - 1; - idl_global->export_include (val); - } - else - { - cerr << idl_global->prog_name () - << ": invalid or unknown argument <" - << arg - << "> to back end\n"; - } - } -} diff --git a/TAO/TAO_IDL/be/be_argument.cpp b/TAO/TAO_IDL/be/be_argument.cpp deleted file mode 100644 index f6ae7a8f713..00000000000 --- a/TAO/TAO_IDL/be/be_argument.cpp +++ /dev/null @@ -1,53 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_argument.cpp -// -// = DESCRIPTION -// Extension of class AST_Argument that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_argument, "$Id$") - -/* - * BE_Argument - */ - -be_argument::be_argument (void) -{ -} - -be_argument::be_argument (AST_Argument::Direction d, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Argument (d, ft, n, p), - AST_Field (AST_Decl::NT_argument, ft, n, p), - AST_Decl (AST_Decl::NT_argument, n, p) -{ -} - - -int -be_argument::accept (be_visitor *visitor) -{ - return visitor->visit_argument (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_argument, AST_Argument, be_decl) -IMPL_NARROW_FROM_DECL (be_argument) diff --git a/TAO/TAO_IDL/be/be_array.cpp b/TAO/TAO_IDL/be/be_array.cpp deleted file mode 100644 index 068493cac91..00000000000 --- a/TAO/TAO_IDL/be/be_array.cpp +++ /dev/null @@ -1,1114 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_array.cpp -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_array, "$Id$") - -/* - * BE_Array - */ -be_array::be_array (void) - : tao_name_ (0) -{ -} - -be_array::be_array (UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims) - : AST_Array (n, ndims, dims), - AST_Decl (AST_Decl::NT_array, n, NULL), - tao_name_ (0) -{ -} - -be_array::~be_array (void) -{ - if (this->tao_name_ == 0) - delete[] tao_name_; -} - -// create a name for ourselves -const char* -be_array::tao_name (void) -{ - if (this->tao_name_ != 0) - return this->tao_name_; - - be_type *bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "tao_name - " - "bad base type\n"), - 0); - } - - const char prefix[] = "_tc_tao_array_"; - - int l = (ACE_OS::strlen (bt->local_name ()->get_string ()) - + ACE_OS::strlen (this->local_name ()->get_string ()) + 1 - + sizeof (prefix) - + 5 * this->n_dims ()); - - ACE_NEW_RETURN (this->tao_name_, char[l], 0); - - ACE_OS::sprintf (this->tao_name_, "%s%s_%s", - prefix, this->local_name ()->get_string (), - bt->local_name ()->get_string()); - - for (unsigned int i = 0; i < this->n_dims (); ++i) - { - AST_Expression *expr = this->dims ()[i]; // retrieve the ith - - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "tao_name - " - "bad array dimension\n"), - 0); - } - - if (expr->ev ()->et != AST_Expression::EV_ulong) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "tao_name - " - "bad dimension value\n"), - 0); - } - - char buf[16]; - ACE_OS::sprintf (buf, "_%04.4x", ((int)expr->ev ()->u.ulval)); - ACE_OS::strcat (this->tao_name_, buf); - } - return this->tao_name_; -} - -int -be_array::create_name (void) -{ - char namebuf [NAMEBUFSIZE]; - unsigned long i; - UTL_ScopedName *n = NULL; - be_decl *scope; // scope in which we are defined - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); // reset the buffer - // retrieve the base type - // the name always starts this way - - be_type *bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "create_name - " - "bad base type\n"), - 0); - } - - ACE_OS::sprintf (namebuf, "_tao_array_%s", bt->local_name ()->get_string ()); - // now append dimensions - for (i = 0; i < this->n_dims (); i++) - { - AST_Expression *expr = this->dims ()[i]; // retrieve the ith - - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "create_name - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - ACE_OS::sprintf (namebuf, "%s_%d", namebuf, ((int)expr->ev ()->u.ulval)); - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "create_name - " - "bad dimension value\n"), - -1); - } - } - - // now see if we have a fully scoped name and if so, generate one - scope = be_scope::narrow_from_scope (this->defined_in ())->decl (); - if (scope) - { - // make a copy of the enclosing scope's name - n = (UTL_ScopedName *)scope->name ()->copy () ; - - // add our local name as the last component - n->nconc (new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, - 0, I_FALSE), - NULL)); - // set the fully scoped name - this->set_name (n); - } - else - { - // We better be not here because we must be inside some scope, - // atleast the ROOT scope. - return -1; - } - return 0; -} - -// Code generation - -int -be_array::gen_dimensions (TAO_OutStream *os, unsigned short slice) -{ - unsigned long i; // loop index - - // print our dimensions - for (i = (slice?1:0); i < this->n_dims (); i++) - { - AST_Expression *expr = this->dims ()[i]; // retrieve the ith - - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "gen_dimensions - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - *os << "[" << ((int)expr->ev ()->u.ulval) << "]"; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "gen_dimensions - " - "bad dimension value\n"), - -1); - } - } - return 0; -} - - -// generate the var defn -int -be_array::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr from pointer to slice - *ch << namebuf << " (" << this->local_name () << "_slice *);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer to slice - *ch << namebuf << " &operator= (" << this->local_name () << "_slice *);" << - nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - // nothing here - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - // overloaded [] operator - *ch << this->local_name () << "_slice &operator[] (CORBA::ULong index);" << - nl; - *ch << "const " << this->local_name () << - "_slice &operator[] (CORBA::ULong index) const;" << nl; - - // cast operators - *ch << "operator " << this->local_name () << "_slice * const &() const;" << - nl; - *ch << "operator " << this->local_name () << "_slice *&();" << nl; - - // in, inout, out and _retn - *ch << "// in, inout, out, _retn " << nl; - *ch << "const " << this->local_name () << "_slice *in (void) const;" << nl; - *ch << this->local_name () << "_slice *inout (void);" << nl; - *ch << this->local_name () << "_slice *&out (void);" << nl; - *ch << this->local_name () << "_slice *_retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << this->local_name () << "_slice *ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_slice *ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_array::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ ((" << this->name () << "_slice *)0)" << nl; - *ci << "{}\n\n"; - - // constr from a _slice * - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_slice *p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // copy constructor (deep copy) - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "_dup (p.ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << "_free (this->ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_slice *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// is what we own the same that is being assigned to us?" << - nl; - *ci << "if (this->ptr_ != p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// delete our stuff and assume ownership of p" << nl; - *ci << this->name () << "_free (this->ptr_);" << nl; - *ci << "this->ptr_ = p;\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// not assigning to ourselves" << nl; - *ci << this->name () << "_free (this->ptr_); // free old stuff" << nl; - *ci << "this->ptr_ = " << this->name () << - "_dup (p.ptr_);// deep copy\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operators () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_slice * const &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_slice *&() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two operator []s instead of -> - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << "_slice *" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice * &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << "_free (this->ptr_);" << be_nl; - *ci << "this->ptr_ = (" << this->name () << "_slice *)0;" << be_nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << "_slice *tmp = this->ptr_;" << be_nl; - *ci << "this->ptr_ = (" << this->name () << "_slice *)0;" << be_nl; - *ci << "return tmp;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_array::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer to slice - *ch << namebuf << " (" << this->local_name () << "_slice *&);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << this->local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (const " << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - // assignment from slice * - *ch << namebuf << " &operator= (" << this->local_name () << "_slice *);" << - nl; - // cast - *ch << "operator " << this->local_name () << "_slice *&();" << nl; - // ptr fn - *ch << this->local_name () << "_slice *&ptr (void);" << nl; - // operator [] instead of -> - *ch << this->local_name () << "_slice &operator[] (CORBA::ULong index);" << nl; - *ch << "const " << this->local_name () << "_slice &operator[] " << - "(CORBA::ULong index) const;" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_slice *&ptr_;" << nl; - *ch << "// assignment from T_var not allowed" << nl; - *ch << "void operator= (const " << this->local_name () << "_var &);\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_array::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the out implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a pointer to slice - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << "_slice *&p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << "_free (this->ptr_);" << nl; - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (ACE_const_cast (" - << fname << "&,p).ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = ACE_const_cast (" - << fname << "&,p).ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from _ptr - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_slice *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_slice *&() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *&" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator [] instead of -> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _var definition for ourself -int -be_array::gen_forany_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_forany", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr from pointer to slice - *ch << namebuf << " (" << this->local_name () << "_slice *, " << - "CORBA::Boolean nocopy=0);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer to slice - *ch << namebuf << " &operator= (" << this->local_name () << "_slice *);" << - nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - // nothing here - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - // overloaded [] operator - *ch << this->local_name () << "_slice &operator[] (CORBA::ULong index);" << - nl; - *ch << "const " << this->local_name () << - "_slice &operator[] (CORBA::ULong index) const;" << nl; - - // cast operators - *ch << "operator " << this->local_name () << "_slice * const &() const;" << - nl; - *ch << "operator " << this->local_name () << "_slice *&();" << nl; - - // in, inout, out and _retn - *ch << "// in, inout, out, _retn " << nl; - *ch << "const " << this->local_name () << "_slice *in (void) const;" << nl; - *ch << this->local_name () << "_slice *inout (void);" << nl; - *ch << this->local_name () << "_slice *&out (void);" << nl; - *ch << this->local_name () << "_slice *_retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << this->local_name () << "_slice *ptr (void) const;" << nl; - - // additional member function that returns the NOCOPY flag - *ch << "CORBA::Boolean nocopy (void) const;\n"; - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << "/* friend class CORBA_Any; */" << nl; - *ch << this->local_name () << "_slice *ptr_;" << nl; - *ch << "CORBA::Boolean nocopy_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -int -be_array::gen_forany_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_forany", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_forany", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ ((" << this->name () << "_slice *)0)," << nl; - *ci << " nocopy_ (0)" << nl; - *ci << "{}\n\n"; - - // constr from a _slice * - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_slice *p, " << - "CORBA::Boolean nocopy)" << nl; - *ci << " : ptr_ (p)," << nl; - *ci << " nocopy_ (nocopy)" << nl; - *ci << "{}\n\n"; - - // copy constructor (deep copy) - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "_dup (p.ptr_);" << nl; - *ci << "this->nocopy_ = p.nocopy_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{" << nl; - *ci << " // don't do anything" << nl; - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_slice *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// is what we own the same that is being assigned to us?" << - nl; - *ci << "if (this->ptr_ != p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// delete our stuff and assume ownership of p" << nl; - *ci << this->name () << "_free (this->ptr_);" << nl; - *ci << "this->ptr_ = p;\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _forany - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// not assigning to ourselves" << nl; - *ci << this->name () << "_free (this->ptr_); // free old stuff" << nl; - *ci << "this->ptr_ = " << this->name () << - "_dup (p.ptr_);// deep copy" << nl; - *ci << "this->nocopy_ = p.nocopy_;\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operators () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () - << "_slice * const &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_slice *&() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two operator []s instead of -> - ci->indent (); - *ci << "ACE_INLINE " << name () << "_slice const &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_slice &" << nl; - *ci << fname << "::operator[] (CORBA::ULong index)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_[index];\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << "_slice *" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice * &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_slice *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional nocopy member function - ci->indent (); - *ci << "ACE_INLINE CORBA::Boolean" << nl; - *ci << fname << "::nocopy (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->nocopy_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -int -be_array::gen_typecode (void) -{ - TAO_OutStream *os; // output stream - - os = tao_cg->client_stubs (); - os->indent (); // start from whatever indentation level we were at - - *os << "CORBA::tk_array, // typecode kind" << be_nl; - *os << this->tc_encap_len () << ", // encapsulation length" << be_idt << "\n"; - // now emit the encapsulation - if (this->gen_encapsulation () == -1) - { - } - // *os << (this->dims () [0]) << "," << be_nl; - return 0; -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description - -int -be_array::gen_encapsulation (void) -{ - TAO_OutStream *os; // output stream - be_type *bt; // base type - unsigned long i; - - os = tao_cg->client_stubs (); - os->indent (); // start from the current indentation level - - // retrieve the base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::gen_encapsulation - " - "bad base type\n"), - -1); - } - - for (i=0; i < (this->n_dims () - 1); i++) - { - unsigned long rem_encap_len; - - *os << "TAO_ENCAP_BYTE_ORDER, // byte order" << be_nl; - *os << "CORBA::tk_array, // typecode kind" << be_nl; - rem_encap_len - = (this->n_dims () - (i+1))*(4+4) - + (this->n_dims () - (i+2))*(4+4) - + bt->tc_size (); - *os << rem_encap_len << ", // encapsulation length" << be_idt_nl; - } - *os << "TAO_ENCAP_BYTE_ORDER, // byte order\n"; - if (bt->gen_typecode () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::gen_encapsulation - " - "base type tyepcode gen failed\n"), - -1); - } - os->indent (); - for (i = (this->n_dims ()-1); i > 0; i--) - { - *os << this->dims ()[i] << "," << be_uidt_nl; - } - *os << this->dims ()[0] << be_uidt << ",\n"; - return 0; -} - -// compute typecode size -long -be_array::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation - return 4 + 4 + this->tc_encap_len (); -} - -long -be_array::tc_encap_len (void) -{ - // Suppose "N" is the number of dimensions, then for a N dimensional array, - // we will have N encapsulations. The innermost encapsulation will hold the - // typecode of the real base type. - // Thus, we will have N byte order flags and dimensions, and N-1 tk_array - // enumerations, encapsulation lengths, and dimensions. - - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; // base type - - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, - "be_array::tc_encap_len - bad base type\n")); - return 0; - } - this->encap_len_ = - this->n_dims () * (4+4) // N byte order flags and dims - + (this->n_dims ()-1)* (4+4); // N-1 of Enum and encap lengths - // to this you add the typecode size of the underlying type - this->encap_len_ += bt->tc_size (); - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_array::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->base_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::compute_size_type - " - "bad base type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); - return 0; -} - -int -be_array::accept (be_visitor *visitor) -{ - return visitor->visit_array (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_array, AST_Array, be_type) -IMPL_NARROW_FROM_DECL (be_array) diff --git a/TAO/TAO_IDL/be/be_attribute.cpp b/TAO/TAO_IDL/be/be_attribute.cpp deleted file mode 100644 index 28c377c9797..00000000000 --- a/TAO/TAO_IDL/be/be_attribute.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_attribute.cpp -// -// = DESCRIPTION -// Extension of class AST_Attribute that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_attribute, "$Id$") - -/* - * BE_Attribute - */ -be_attribute::be_attribute (void) -{ -} - -be_attribute::be_attribute (idl_bool ro, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p) - : AST_Attribute (ro, ft, n, p), - AST_Field (AST_Decl::NT_attr, ft, n, p), - AST_Decl (AST_Decl::NT_attr, n, p) -{ -} - -int -be_attribute::accept (be_visitor *visitor) -{ - return visitor->visit_attribute (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_attribute, AST_Attribute, be_decl) -IMPL_NARROW_FROM_DECL (be_attribute) diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp deleted file mode 100644 index 39dfba111e6..00000000000 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ /dev/null @@ -1,730 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_codegen.cpp -// -// = DESCRIPTION -// Code generation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_codegen, "$Id$") - - TAO_CodeGen *tao_cg = TAO_CODEGEN::instance (); - -/* BE global Data */ -TAO_CodeGen::TAO_CodeGen (void) - : client_header_ (0), - client_stubs_ (0), - client_inline_ (0), - server_header_ (0), - server_template_header_ (0), - server_skeletons_ (0), - server_template_skeletons_ (0), - server_inline_ (0), - server_template_inline_ (0), - gperf_input_stream_ (0), - gperf_input_filename_ (0), - curr_os_ (0), - visitor_factory_ (0), - strategy_ (TAO_PERFECT_HASH) -{ -} - -// destructor -TAO_CodeGen::~TAO_CodeGen (void) -{ - delete this->client_header_; - delete this->server_header_; - delete this->server_template_header_; - delete this->client_stubs_; - delete this->server_skeletons_; - delete this->server_template_skeletons_; - delete this->client_inline_; - delete this->server_inline_; - delete this->server_template_inline_; - this->curr_os_ = 0; - delete this->visitor_factory_; -} - -// visitor factory method -be_visitor * -TAO_CodeGen::make_visitor (be_visitor_context *ctx) -{ - ACE_ASSERT (this->visitor_factory_ != 0); - return this->visitor_factory_->make_visitor (ctx); -} - -// change the string to all upcase -const char * -TAO_CodeGen::upcase (const char *str) -{ - static char upcase_str [NAMEBUFSIZE]; - - ACE_OS::memset (upcase_str, '\0', NAMEBUFSIZE); - // convert letters in str to upcase - for (unsigned int i=0; i < ACE_OS::strlen (str); i++) - { - if (isalpha (str [i])) - { - upcase_str[i] = toupper (str [i]); - } - else - { - // copy it as it is - upcase_str[i] = str[i]; - } - } - return upcase_str; -} - -// set the client header stream -int -TAO_CodeGen::start_client_header (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->client_header_ = factory->make_outstream (); - if (!this->client_header_) - { - return -1; - } - - if (this->client_header_->open (fname, TAO_OutStream::TAO_CLI_HDR) == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".h"); - if (suffix == 0) - return -1; // bad file name - else - { - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - { - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - } - - ACE_OS::strcat (macro_name, "_H_"); - - // generate the #ifndef ... #define statements - this->client_header_->print ("#if !defined (%s)\n", macro_name); - this->client_header_->print ("#define %s\n\n", macro_name); - - *this->client_header_ << "#include \"tao/corba.h\"\n"; - - if (idl_global->export_include () != 0) - { - *this->client_header_ << "#include \"" - << idl_global->export_include () - << "\"\n"; - } - - // We must include all the skeleton headers corresponding to - // IDL files included by the current IDL file. - // We will use the included IDL file names as they appeared - // in the original main IDL file, not the one which went - // thru CC preprocessor. - for (size_t j = 0; - j < idl_global->n_included_idl_files (); - j++) - { - char* idl_name = - idl_global->included_idl_files ()[j]; - - // Make a String out of it. - String idl_name_str = idl_name; - - // Get the clnt header from the IDL file name. - const char* client_hdr = - IDL_GlobalData::be_get_client_hdr (&idl_name_str); - - // Sanity check and then print. - if (client_hdr != 0) - { - this->client_header_->print ("#include \"%s\"\n", - client_hdr); - } - else - { - ACE_ERROR ((LM_WARNING, - "WARNING, invalid file '%s' included\n", - idl_name)); - } - } - *this->client_header_ << "\n"; - - // generate the TAO_EXPORT_MACRO macro - *this->client_header_ << "#if defined (TAO_EXPORT_MACRO)\n"; - *this->client_header_ << "#undef TAO_EXPORT_MACRO\n"; - *this->client_header_ << "#endif\n"; - *this->client_header_ << "#define TAO_EXPORT_MACRO " - << idl_global->export_macro () - << be_nl; - - *this->client_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - return 0; - } - } -} - -// get the client header stream -TAO_OutStream * -TAO_CodeGen::client_header (void) -{ - return this->client_header_; -} - -// set the client stub stream -int -TAO_CodeGen::start_client_stubs (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->client_stubs_ = factory->make_outstream (); - if (!this->client_stubs_) - { - return -1; - } - - if (this->client_stubs_->open (fname, TAO_OutStream::TAO_CLI_IMPL) == -1) - { - return -1; - } - - // generate the include statement for the client header. We just - // need to put only the base names. Path info is not required. - *this->client_stubs_ << "#include \"" << - idl_global->be_get_client_hdr_fname (1) << "\"\n\n"; - - *this->client_stubs_ << "#include \"" << - idl_global->be_get_server_hdr_fname (1) << "\"\n\n"; - - // generate the code that includes the inline file if not included in the - // header file - *this->client_stubs_ << "#if !defined (__ACE_INLINE__)\n"; - *this->client_stubs_ << "#include \"" << - idl_global->be_get_client_inline_fname (1) << "\"\n"; - *this->client_stubs_ << "#endif /* !defined INLINE */\n\n"; - return 0; -} - -// get the client stubs stream -TAO_OutStream * -TAO_CodeGen::client_stubs (void) -{ - return this->client_stubs_; -} - -// set the client inline stream -int -TAO_CodeGen::start_client_inline (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->client_inline_ = factory->make_outstream (); - if (!this->client_inline_) - { - return -1; - } - - return this->client_inline_->open (fname, TAO_OutStream::TAO_CLI_INL); -} - -// get the client inline stream -TAO_OutStream * -TAO_CodeGen::client_inline (void) -{ - return this->client_inline_; -} - -// set the server header stream. -int -TAO_CodeGen::start_server_header (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_header_ = factory->make_outstream (); - if (!this->server_header_) - { - return -1; - } - - if (this->server_header_->open (fname, TAO_OutStream::TAO_SVR_HDR) == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".h"); - if (suffix == 0) - return -1; // bad file name - else - { - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - - ACE_OS::strcat (macro_name, "_H_"); - - this->server_header_->print ("#if !defined (%s)\n", macro_name); - this->server_header_->print ("#define %s\n\n", macro_name); - - // We must include all the skeleton headers corresponding to - // IDL files included by the current IDL file. - for (size_t j = 0; - j < idl_global->n_included_idl_files (); - ++j) - { - char* idl_name = - idl_global->included_idl_files ()[j]; - - // String'ifying the name. - String idl_name_str (idl_name); - - const char* server_hdr = - IDL_GlobalData::be_get_server_hdr (&idl_name_str); - - this->server_header_->print ("#include \"%s\"\n", - server_hdr); - } - // the server header should include the client header - *this->server_header_ << "#include \"" << - idl_global->be_get_client_hdr_fname (1) << "\"\n\n"; - - *this->server_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - return 0; - } - } -} - -// get the server header stream -TAO_OutStream * -TAO_CodeGen::server_header (void) -{ - return this->server_header_; -} - -// set the server header stream -int -TAO_CodeGen::start_server_template_header (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_template_header_ = factory->make_outstream (); - if (!this->server_template_header_) - return -1; - - if (this->server_template_header_->open (fname, - TAO_OutStream::TAO_SVR_TMPL_HDR) - == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".h"); - if (suffix == 0) - return -1; // bad file name - else - { - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - - ACE_OS::strcat (macro_name, "_H_"); - - this->server_template_header_->print ("#if !defined (%s)\n", - macro_name); - this->server_template_header_->print ("#define %s\n\n", macro_name); - - *this->server_template_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - return 0; - } - } -} - -// get the server header stream -TAO_OutStream * -TAO_CodeGen::server_template_header (void) -{ - return this->server_template_header_; -} - -// set the server skeletons stream -int -TAO_CodeGen::start_server_skeletons (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_skeletons_ = factory->make_outstream (); - if (!this->server_skeletons_) - { - return -1; - } - - if (this->server_skeletons_->open (fname, TAO_OutStream::TAO_SVR_IMPL) == -1) - { - return -1; - } - - // generate the include statement for the server header - *this->server_skeletons_ << "#include \"" << - idl_global->be_get_server_hdr_fname (1) << "\"\n\n"; - - // generate the code that includes the inline file if not included in the - // header file - *this->server_skeletons_ << "#if !defined (__ACE_INLINE__)\n"; - *this->server_skeletons_ << "#include \"" << - idl_global->be_get_server_inline_fname (1) << "\"\n"; - *this->server_skeletons_ << "#endif /* !defined INLINE */\n\n"; - return 0; -} - -// Get the server skeletons stream. -TAO_OutStream * -TAO_CodeGen::server_skeletons (void) -{ - return this->server_skeletons_; -} - -// Start the server template skeleton stream. -int -TAO_CodeGen::start_server_template_skeletons (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_template_skeletons_ = factory->make_outstream (); - if (!this->server_template_skeletons_) - { - return -1; - } - - if (this->server_template_skeletons_->open (fname, - TAO_OutStream::TAO_SVR_TMPL_IMPL) - == -1) - return -1; - else - { - // now generate the #if !defined clause - static char macro_name [NAMEBUFSIZE]; - - ACE_OS::memset (macro_name, '\0', NAMEBUFSIZE); - const char *suffix = ACE_OS::strstr (fname, ".cpp"); - if (suffix == 0) - return -1; // bad file name - - ACE_OS::sprintf (macro_name, "_TAO_IDL_"); - // convert letters in fname to upcase - for (int i=0; i < (suffix - fname); i++) - if (isalpha (fname [i])) - macro_name[i+9] = toupper (fname [i]); - else if (isdigit (fname [i])) - macro_name[i+9] = fname[i]; - else - macro_name[i+9] = '_'; - - ACE_OS::strcat (macro_name, "_CPP_"); - - this->server_template_skeletons_->print ("#if !defined (%s)\n", - macro_name); - this->server_template_skeletons_->print ("#define %s\n\n", macro_name); - - *this->server_template_skeletons_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - - // generate the include statement for the server header - *this->server_template_skeletons_ << "#include \"" << - idl_global->be_get_server_template_hdr_fname (1) << "\"\n\n"; - - // generate the code that includes the inline file if not included in the - // header file - *this->server_template_skeletons_ << "#if !defined (__ACE_INLINE__)\n"; - *this->server_template_skeletons_ << "#include \"" << - idl_global->be_get_server_template_inline_fname (1) << "\"\n"; - *this->server_template_skeletons_ << "#endif /* !defined INLINE */\n\n"; - return 0; - - } -} - -// get the server template skeletons stream -TAO_OutStream * -TAO_CodeGen::server_template_skeletons (void) -{ - return this->server_template_skeletons_; -} - -// set the server inline stream -int -TAO_CodeGen::start_server_inline (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_inline_ = factory->make_outstream (); - if (!this->server_inline_) - { - return -1; - } - - return this->server_inline_->open (fname, TAO_OutStream::TAO_SVR_INL); -} - -// get the server inline stream -TAO_OutStream * -TAO_CodeGen::server_inline (void) -{ - return this->server_inline_; -} - -// set the server template inline stream -int -TAO_CodeGen::start_server_template_inline (const char *fname) -{ - // retrieve the singleton instance to the outstream factory - TAO_OutStream_Factory *factory = TAO_OUTSTREAM_FACTORY::instance (); - - // retrieve a specialized instance - this->server_template_inline_ = factory->make_outstream (); - if (!this->server_template_inline_) - { - return -1; - } - - return this->server_template_inline_->open (fname, TAO_OutStream::TAO_SVR_INL); -} - -// get the server template inline stream -TAO_OutStream * -TAO_CodeGen::server_template_inline (void) -{ - return this->server_template_inline_; -} - -// put the last #endif in the client and server headers -int -TAO_CodeGen::end_client_header (void) -{ - // generate the <<= and >>= operators here - - // insert the code to include the inline file - *this->client_header_ << "\n#if defined (__ACE_INLINE__)\n"; - *this->client_header_ << "#include \"" << - idl_global->be_get_client_inline_fname (1) << "\"\n"; - *this->client_header_ << "#endif /* defined INLINE */\n\n"; - - *this->client_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - - // code to put the last #endif - *this->client_header_ << "\n#endif /* if !defined */\n"; - return 0; -} - -int -TAO_CodeGen::end_server_header (void) -{ - // insert the template header - *this->server_header_ << "#include \"" << - idl_global->be_get_server_template_hdr_fname (1) << "\"\n"; - - // insert the code to include the inline file - *this->server_header_ << "\n#if defined (__ACE_INLINE__)\n"; - *this->server_header_ << "#include \"" << - idl_global->be_get_server_inline_fname (1) << "\"\n"; - *this->server_header_ << "#endif /* defined INLINE */\n\n"; - - *this->server_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - - // code to put the last #endif - *this->server_header_ << "\n#endif /* if !defined */\n"; - return 0; -} - -int -TAO_CodeGen::end_server_template_header (void) -{ - // insert the code to include the inline file - *this->server_template_header_ << "\n#if defined (__ACE_INLINE__)\n"; - *this->server_template_header_ << "#include \"" << - idl_global->be_get_server_template_inline_fname (1) << "\"\n"; - *this->server_template_header_ << "#endif /* defined INLINE */\n\n"; - - // insert the code to include the template source file - *this->server_template_header_ - << "\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n"; - *this->server_template_header_ << "#include \"" << - idl_global->be_get_server_template_skeleton_fname (1) << "\"\n"; - *this->server_template_header_ << "#endif /* defined REQUIRED SOURCE */\n\n"; - - // insert the code to include the template pragma - *this->server_template_header_ - << "\n#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)\n"; - *this->server_template_header_ << "#pragma implementation (\"" << - idl_global->be_get_server_template_skeleton_fname (1) << "\")\n"; - *this->server_template_header_ << "#endif /* defined REQUIRED PRAGMA */\n\n"; - - *this->server_template_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - - // code to put the last #endif - *this->server_template_header_ << "\n#endif /* if !defined */\n"; - return 0; -} - -int -TAO_CodeGen::end_server_template_skeletons (void) -{ - // code to put the last #endif - *this->server_template_skeletons_ << "\n#endif /* if !defined */\n"; - return 0; -} - -// We use the following helper functions to pass information. This class is the -// best place to pass such information rather than passing information through -// global variables spread everywhere. This class is a singleton and is -// effectively a global. - -void -TAO_CodeGen::gperf_input_stream (TAO_OutStream *os) -{ - delete this->gperf_input_stream_; - this->gperf_input_stream_ = os; -} - -TAO_OutStream * -TAO_CodeGen::gperf_input_stream (void) -{ - return this->gperf_input_stream_; -} - -void -TAO_CodeGen::gperf_input_filename (char *filename) -{ - delete[] this->gperf_input_filename_; - this->gperf_input_filename_ = ACE::strnew (filename); -} - -char * -TAO_CodeGen::gperf_input_filename (void) -{ - return this->gperf_input_filename_; -} - -void -TAO_CodeGen::outstream (TAO_OutStream *os) -{ - this->curr_os_ = os; -} - -TAO_OutStream * -TAO_CodeGen::outstream (void) -{ - return this->curr_os_; -} - -void -TAO_CodeGen::node (be_decl *n) -{ - this->node_ = n; -} - -be_decl * -TAO_CodeGen::node (void) -{ - return this->node_; -} - -void -TAO_CodeGen::visitor_factory (TAO_Visitor_Factory *f) -{ - this->visitor_factory_ = f; -} - -void -TAO_CodeGen::lookup_strategy (LOOKUP_STRATEGY s) -{ - this->strategy_ = s; -} - -TAO_CodeGen::LOOKUP_STRATEGY -TAO_CodeGen::lookup_strategy (void) const -{ - return this->strategy_; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton; -template class ACE_Singleton; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton -#pragma instantiate ACE_Singleton -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/TAO_IDL/be/be_constant.cpp b/TAO/TAO_IDL/be/be_constant.cpp deleted file mode 100644 index 9a184a592b0..00000000000 --- a/TAO/TAO_IDL/be/be_constant.cpp +++ /dev/null @@ -1,95 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_constant.cpp -// -// = DESCRIPTION -// Extension of class AST_Constant that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_constant, "$Id$") - -/* - * BE_Constant - */ -be_constant::be_constant (void) -{ - this->size_type (be_decl::FIXED); -} - -be_constant::be_constant (AST_Expression::ExprType et, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Constant (et, v, n, p), - AST_Decl (AST_Decl::NT_const, n, p) -{ - this->size_type (be_decl::FIXED); -} - -char * -be_constant::exprtype_to_string (void) -{ - switch (this->et ()) - { - case AST_Expression::EV_short: - return "CORBA::Short"; - case AST_Expression::EV_ushort: - return "CORBA::UShort"; - case AST_Expression::EV_long: - return "CORBA::Long"; - case AST_Expression::EV_ulong: - return "CORBA::ULong"; - case AST_Expression::EV_float: - return "CORBA::Float"; - case AST_Expression::EV_double: - return "CORBA::Double"; - case AST_Expression::EV_char: - return "CORBA::Char"; - case AST_Expression::EV_octet: - return "CORBA::Octet"; - case AST_Expression::EV_bool: - return "CORBA::Boolean"; - case AST_Expression::EV_string: - return "char *const"; - case AST_Expression::EV_any: - return "CORBA::Any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -int -be_constant::accept (be_visitor *visitor) -{ - return visitor->visit_constant (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_constant, AST_Constant, be_decl) -IMPL_NARROW_FROM_DECL (be_constant) diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp deleted file mode 100644 index 11bf6344fcf..00000000000 --- a/TAO/TAO_IDL/be/be_decl.cpp +++ /dev/null @@ -1,679 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_decl.cpp -// -// = DESCRIPTION -// Extension of class AST_Decl that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_decl, "$Id$") - -// Default Constructor -be_decl::be_decl (void) - : cli_hdr_gen_ (I_FALSE), - cli_stub_gen_ (I_FALSE), - cli_inline_gen_ (I_FALSE), - srv_hdr_gen_ (I_FALSE), - srv_skel_gen_ (I_FALSE), - srv_inline_gen_ (I_FALSE), - cli_hdr_any_op_gen_ (I_FALSE), - cli_stub_any_op_gen_ (I_FALSE), - cli_hdr_cdr_op_gen_ (I_FALSE), - cli_stub_cdr_op_gen_ (I_FALSE), - fullname_ (0), - flatname_ (0), - repoID_ (0), - prefix_ (0), - size_type_ (be_decl::SIZE_UNKNOWN), - encap_len_ (-1) -{ -} - -// Constructor -be_decl::be_decl (AST_Decl::NodeType type, - UTL_ScopedName *n, - UTL_StrList *pragmas) - : AST_Decl (type, n, pragmas), - cli_hdr_gen_ (I_FALSE), - cli_stub_gen_ (I_FALSE), - cli_inline_gen_ (I_FALSE), - srv_hdr_gen_ (I_FALSE), - srv_skel_gen_ (I_FALSE), - srv_inline_gen_ (I_FALSE), - cli_hdr_any_op_gen_ (I_FALSE), - cli_stub_any_op_gen_ (I_FALSE), - cli_hdr_cdr_op_gen_ (I_FALSE), - cli_stub_cdr_op_gen_ (I_FALSE), - fullname_ (0), - flatname_ (0), - repoID_ (0), - prefix_ (0), - size_type_ (be_decl::SIZE_UNKNOWN), - encap_len_ (-1) -{ -} - -//destructor -be_decl::~be_decl (void) -{ -} - -int -be_decl::gen_encapsulation (void) -{ - // do nothing - return 0; -} - -long -be_decl::tc_encap_len (void) -{ - return -1; -} - -// return our size type -be_decl::SIZE_TYPE -be_decl::size_type (void) -{ - if (this->size_type_ == be_decl::SIZE_UNKNOWN) - (void) this->compute_size_type (); - return this->size_type_; -} - -// set our size type and that of all our ancestors -void -be_decl::size_type (be_decl::SIZE_TYPE st) -{ - // precondition - you cannot set somebody's sizetype to unknown - ACE_ASSERT (st != be_decl::SIZE_UNKNOWN); - - // st can be VARIABLE or FIXED - if (this->size_type_ == be_decl::SIZE_UNKNOWN) // not set yet - this->size_type_ = st; // set it - else if ((this->size_type_ == be_decl::FIXED) && - (st == be_decl::VARIABLE)) - // once we are VARIABLE, we cannot be FIXED. But if we were FIXED and then - // get overwritten to VARIABLE, it is fine. Such a situation occurs only - // when setting the sizes of structures and unions - this->size_type_ = st; -} - -// compute stringified fully scoped name -void -be_decl::compute_fullname (void) -{ - if (fullname_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 0; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 2; // for "::" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->fullname_ = new char [namelen+1]; - this->fullname_[0] = '\0'; - first = I_TRUE; - second = I_FALSE; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->fullname_, "::"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->fullname_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - } - return; -} - -const char* -be_decl::fullname (void) -{ - if (!this->fullname_) - compute_fullname (); - - return this->fullname_; -} - -// compute stringified flattened fully scoped name -void -be_decl::compute_flatname (void) -{ - if (flatname_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 0; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 1; // for "_" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->flatname_ = new char [namelen+1]; - this->flatname_[0] = '\0'; - first = I_TRUE; - second = I_FALSE; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->flatname_, "_"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->flatname_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - } - return; -} - -const char* -be_decl::flatname (void) -{ - if (!this->flatname_) - compute_flatname (); - - return this->flatname_; -} - -// compute stringified repository ID -void -be_decl::compute_repoID (void) -{ - if (repoID_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 8; // for the prefix "IDL:" and suffix ":1.0" - namelen += ACE_OS::strlen (this->prefix ()) + 1; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 1; // for "/" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->repoID_ = new char [namelen+1]; - this->repoID_[0] = '\0'; - ACE_OS::sprintf (this->repoID_, "%s", "IDL:"); - ACE_OS::strcat (this->repoID_, this->prefix ()); - - // Add the "/" only if there is a prefix - if (ACE_OS::strcmp (this->prefix (), "") != 0) - ACE_OS::strcat (this->repoID_, "/"); - - i = new UTL_IdListActiveIterator (this->name ()); - first = I_TRUE; - second = I_FALSE; - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->repoID_, "/"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->repoID_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - ACE_OS::strcat (this->repoID_, ":1.0"); - } - return; -} - -const char * -be_decl::repoID (void) -{ - if (!this->repoID_) - compute_repoID (); - - return this->repoID_; -} - -void -be_decl::compute_prefix () -{ - const char* pragma = 0; - if (this->pragmas () != 0) - { - for (UTL_StrlistActiveIterator i (this->pragmas ()); - !i.is_done (); - i.next ()) - { - const char* s = i.item ()->get_string (); - - if (ACE_OS::strncmp (s, "#pragma prefix", 14) == 0) - { - pragma = s; - } - } - } - - if (pragma != 0) - { - // Skip the space and the " also... - const char* tmp = pragma + 16; - const char* end = ACE_OS::strchr (tmp, '"'); - - if (end == 0) - { - idl_global->err ()->syntax_error - (IDL_GlobalData::PS_PragmaPrefixSyntax); - this->prefix_ = ACE::strnew (""); - return; - } - int l = end - tmp; - this->prefix_ = new char[l+1]; - ACE_OS::strncpy (this->prefix_, tmp, end - tmp); - this->prefix_[l] = 0; - return; - } - - // Could not find it in the local scope, try to recurse to the top - // scope... - if (this->defined_in () == 0) - this->prefix_ = ACE::strnew (""); - else - { - be_scope* scope = - be_scope::narrow_from_scope (this->defined_in ()); - if (scope == 0) - this->prefix_ = ACE::strnew (""); - else - this->prefix_ = ACE::strnew (scope->decl()->prefix ()); - } -} - -const char* -be_decl::prefix (void) -{ - if (!this->prefix_) - compute_prefix (); - return this->prefix_; -} - -// converts a string name into an array of 4 byte longs -int -be_decl::tc_name2long (const char *name, long *&larr, long &arrlen) -{ - static long buf [NAMEBUFSIZE / sizeof (long)]; - long slen; - long i; - - slen = ACE_OS::strlen (name) + 1; // 1 for NULL terminating - - // compute the number of bytes necessary to hold the name rounded to the next - // multiple of 4 (i.e., size of long) - arrlen = slen/4 + (slen%4 ? 1:0); - - ACE_OS::memset (buf, '\0', arrlen*4); - larr = buf; - ACE_OS::memcpy (buf, name, arrlen*4); - for (i = 0; i < arrlen; i++) - larr [i] = ACE_HTONL (larr [i]); - -#if 0 - for (i=0; i < ACE_OS::strlen (name); i++) - { - long shift; // num bytes to shift left - - shift = 3 - (i%4); - // store the computed shifted quantity in the appropriate byte of the - // array to be returned - larr [i/4] |= ((name[i] & 0xff) << (shift*8)); - } -#endif - return 0; -} - -idl_bool -be_decl::is_nested (void) -{ - be_decl *d; - - d = be_scope::narrow_from_scope (this->defined_in ())->decl (); - // if we have an outermost scope and if that scope is not that of the Root, - // then we are defined at some nesting level - if (d && d->node_type () != AST_Decl::NT_root) - return I_TRUE; - - return I_FALSE; -} - -// return the length in bytes to hold the repoID inside a typecode. This -// comprises 4 bytes indicating the length of the string followed by the actual -// string represented as longs. -long -be_decl::repoID_encap_len (void) -{ - long slen; - - slen = ACE_OS::strlen (this->repoID ()) + 1; // + 1 for NULL terminating char - // the number of bytes to hold the string must be a multiple of 4 since this - // will be represented as an array of longs - return 4 + 4 * (slen/4 + (slen%4 ? 1:0)); -} - -// return the length in bytes to hold the name inside a typecode. This -// comprises 4 bytes indicating the length of the string followed by the actual -// string represented as longs. -long -be_decl::name_encap_len (void) -{ - long slen; - - slen = ACE_OS::strlen (this->local_name ()->get_string ()) + 1; - - // the number of bytes to hold the string must be a multiple of 4 since this - // will be represented as an array of longs - return 4 + 4 * (slen/4 + (slen%4 ? 1:0)); -} - -// compute the size type of the node in question -int -be_decl::compute_size_type (void) -{ - return 0; -} - -// return the scope created by this node (if one exists, else NULL) -be_scope * -be_decl::scope (void) -{ - be_decl *d = this; - - switch (this->node_type()) { - case AST_Decl::NT_interface_fwd: - /* - * Resolve forward declared interface by looking at full_definition() - * field and iterating - */ - d = be_interface::narrow_from_decl ((be_interface_fwd::narrow_from_decl - (this))->full_definition ()); - /* - * Fall through - */ - case AST_Decl::NT_interface: - return be_interface::narrow_from_decl (d); - case AST_Decl::NT_module: - return be_module::narrow_from_decl (d); - case AST_Decl::NT_root: - return be_root::narrow_from_decl (d); - case AST_Decl::NT_except: - return be_exception::narrow_from_decl (d); - case AST_Decl::NT_union: - return be_union::narrow_from_decl (d); - case AST_Decl::NT_struct: - return be_structure::narrow_from_decl (d); - case AST_Decl::NT_enum: - return be_enum::narrow_from_decl (d); - case AST_Decl::NT_op: - return be_operation::narrow_from_decl (d); - case AST_Decl::NT_sequence: - return be_sequence::narrow_from_decl (d); - default: - return (be_scope *)0; - } -} - -// boolean methods to test if code was already generated -idl_bool -be_decl::cli_hdr_gen (void) -{ - return this->cli_hdr_gen_; -} - -idl_bool -be_decl::cli_stub_gen (void) -{ - return this->cli_stub_gen_; -} - -idl_bool -be_decl::cli_hdr_any_op_gen (void) -{ - return this->cli_hdr_any_op_gen_; -} - -idl_bool -be_decl::cli_stub_any_op_gen (void) -{ - return this->cli_stub_any_op_gen_; -} - -idl_bool -be_decl::cli_hdr_cdr_op_gen (void) -{ - return this->cli_hdr_cdr_op_gen_; -} - -idl_bool -be_decl::cli_stub_cdr_op_gen (void) -{ - return this->cli_stub_cdr_op_gen_; -} - -idl_bool -be_decl::cli_inline_gen (void) -{ - return this->cli_inline_gen_; -} - -idl_bool -be_decl::srv_hdr_gen (void) -{ - return this->srv_hdr_gen_; -} - -idl_bool -be_decl::srv_skel_gen (void) -{ - return this->srv_skel_gen_; -} - -idl_bool -be_decl::srv_inline_gen (void) -{ - return this->srv_inline_gen_; -} - -// set the flag indicating that code generation is done -void -be_decl::cli_hdr_gen (idl_bool val) -{ - this->cli_hdr_gen_ = val; -} - -void -be_decl::cli_stub_gen (idl_bool val) -{ - this->cli_stub_gen_ = val; -} - -void -be_decl::cli_hdr_any_op_gen (idl_bool val) -{ - this->cli_hdr_any_op_gen_ = val; -} - -void -be_decl::cli_stub_any_op_gen (idl_bool val) -{ - this->cli_stub_any_op_gen_ = val; -} - -void -be_decl::cli_hdr_cdr_op_gen (idl_bool val) -{ - this->cli_hdr_cdr_op_gen_ = val; -} - -void -be_decl::cli_stub_cdr_op_gen (idl_bool val) -{ - this->cli_stub_cdr_op_gen_ = val; -} - -void -be_decl::cli_inline_gen (idl_bool val) -{ - this->cli_inline_gen_ = val; -} - -void -be_decl::srv_hdr_gen (idl_bool val) -{ - this->srv_hdr_gen_ = val; -} - -void -be_decl::srv_skel_gen (idl_bool val) -{ - this->srv_skel_gen_ = val; -} - -void -be_decl::srv_inline_gen (idl_bool val) -{ - this->srv_inline_gen_ = val; -} - -int -be_decl::accept (be_visitor *visitor) -{ - return visitor->visit_decl (this); -} - -idl_bool -be_decl::is_child (be_decl *node) -{ - if (this->defined_in ()) - { - be_decl *bd; - - bd = be_scope::narrow_from_scope (this->defined_in ())->decl (); - if (!bd) - return 0; - - if (!ACE_OS::strcmp (bd->fullname (), node->fullname ())) - return 1; // true - } - return 0; // not a child -} - -// narrowing methods -IMPL_NARROW_METHODS1 (be_decl, AST_Decl) -IMPL_NARROW_FROM_DECL (be_decl) diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp deleted file mode 100644 index 176be9bf235..00000000000 --- a/TAO/TAO_IDL/be/be_enum.cpp +++ /dev/null @@ -1,188 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum.cpp -// -// = DESCRIPTION -// Extension of class AST_Enum that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_enum, "$Id$") - -/* - * BE_Enum - */ -be_enum::be_enum (void) -{ - this->size_type (be_decl::FIXED); -} - -be_enum::be_enum (UTL_ScopedName *n, UTL_StrList *p) - : AST_Enum (n, p), - AST_Decl (AST_Decl::NT_enum, n, p), - UTL_Scope (AST_Decl::NT_enum), - member_count_ (-1) -{ - this->size_type (be_decl::FIXED); -} - -// compute total number of members -int -be_enum::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (!d->imported ()) - { - this->member_count_++; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_enum::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - - -// generate typecode. -// Typecode for enum comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_enum::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_enum, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -int -be_enum::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_structure: cannot generate code for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_enum::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -// return encapsulation length -long -be_enum::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID storage - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -int -be_enum::accept (be_visitor *visitor) -{ - return visitor->visit_enum (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_enum, AST_Enum, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_enum) -IMPL_NARROW_FROM_SCOPE (be_enum) diff --git a/TAO/TAO_IDL/be/be_enum_val.cpp b/TAO/TAO_IDL/be/be_enum_val.cpp deleted file mode 100644 index 995af70cd31..00000000000 --- a/TAO/TAO_IDL/be/be_enum_val.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum_val.cpp -// -// = DESCRIPTION -// Extension of class AST_EnumVal that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_enum_val, "$Id$") - -be_enum_val::be_enum_val (void) -{ -} - -be_enum_val::be_enum_val (unsigned long v, UTL_ScopedName *n, UTL_StrList *p) - : AST_Constant (AST_Expression::EV_ulong, - AST_Decl::NT_enum_val, - new AST_Expression(v), - n, - p), - AST_Decl (AST_Decl::NT_enum_val, n, p) -{ -} - -int -be_enum_val::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - return 0; -} - -long -be_enum_val::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = this->name_encap_len (); // for name - } - - return this->encap_len_; -} - -int -be_enum_val::accept (be_visitor *visitor) -{ - return visitor->visit_enum_val (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_enum_val, AST_EnumVal, be_decl) -IMPL_NARROW_FROM_DECL (be_enum_val) diff --git a/TAO/TAO_IDL/be/be_exception.cpp b/TAO/TAO_IDL/be/be_exception.cpp deleted file mode 100644 index 744cbf9cc40..00000000000 --- a/TAO/TAO_IDL/be/be_exception.cpp +++ /dev/null @@ -1,189 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_exception.cpp -// -// = DESCRIPTION -// Extension of class AST_Exception that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_exception, "$Id$") - -/* - * BE_Exception - */ -be_exception::be_exception (void) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_exception::be_exception (UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (AST_Decl::NT_except, n, p), - AST_Structure (AST_Decl::NT_except, n, p), - UTL_Scope (AST_Decl::NT_except), - member_count_ (-1) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// compute total number of members -int -be_exception::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - this->member_count_++; - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_exception::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - -// generate typecode. -// Typecode for exceptions comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_exception::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_except, // typecode kind" << nl; - *cs << this->tc_size () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description -int -be_exception::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // XXXASG - byte order must be based on what m/c we are generating code - - // TODO - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_exception: cannot generate typecode for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_exception::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -// compute encapsulation length -long -be_exception::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -int -be_exception::accept (be_visitor *visitor) -{ - return visitor->visit_exception (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_exception, AST_Exception, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_exception) -IMPL_NARROW_FROM_SCOPE (be_exception) diff --git a/TAO/TAO_IDL/be/be_expression.cpp b/TAO/TAO_IDL/be/be_expression.cpp deleted file mode 100644 index 9a0dd75c4bf..00000000000 --- a/TAO/TAO_IDL/be/be_expression.cpp +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_expression.cpp -// -// = DESCRIPTION -// Extension of class AST_Expression that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_expression, "$Id$") - -/* - * BE_Expression - */ - -// the constructors -be_expression::be_expression (UTL_ScopedName *n) - : AST_Expression (n) -{ -} - -be_expression::be_expression (AST_Expression *b, AST_Expression::ExprType t) - : AST_Expression (b, t) -{ -} - -be_expression::be_expression (AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2) - : AST_Expression (c, v1, v2) -{ -} - -be_expression::be_expression (long l) - : AST_Expression (l) -{ -} - -be_expression::be_expression (long l, AST_Expression::ExprType t) - : AST_Expression (l, t) -{ -} - -be_expression::be_expression (unsigned long l) - : AST_Expression (l) -{ -} - -be_expression::be_expression (String *s) - : AST_Expression (s) -{ -} - -be_expression::be_expression (char c) - : AST_Expression (c) -{ -} - -be_expression::be_expression (double d) - : AST_Expression (d) -{ -} - -int -be_expression::accept (be_visitor *visitor) -{ - return visitor->visit_expression (this); -} diff --git a/TAO/TAO_IDL/be/be_factory.cpp b/TAO/TAO_IDL/be/be_factory.cpp deleted file mode 100644 index b8aade84bb4..00000000000 --- a/TAO/TAO_IDL/be/be_factory.cpp +++ /dev/null @@ -1,49 +0,0 @@ -// $Id$ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_sunsoft.h" - -ACE_RCSID(be, be_factory, "$Id$") - -// destructor -TAO_Visitor_Factory::~TAO_Visitor_Factory (void) -{ -} - -// constructor -TAO_OutStream_Factory::TAO_OutStream_Factory (void) - : strm_type_ (TAO_OutStream_Factory::TAO_SUNSOFT) -{ -} - -// destructor -TAO_OutStream_Factory::~TAO_OutStream_Factory (void) -{ -} - -// set the type of specialized o/p stream we want -int -TAO_OutStream_Factory::set_stream_type -(TAO_OutStream_Factory::TAO_OutStream_Type t) -{ - this->strm_type_ = t; - return 0; -} - -// factory method -TAO_OutStream * -TAO_OutStream_Factory::make_outstream (void) -{ - switch (this->strm_type_) - { - case TAO_OutStream_Factory::TAO_SUNSOFT: - return new TAO_SunSoft_OutStream (); - case TAO_OutStream_Factory::TAO_FLICK: - return (TAO_OutStream *)0; // not implemented as yet - default: - return (TAO_OutStream *)0; - } -} diff --git a/TAO/TAO_IDL/be/be_field.cpp b/TAO/TAO_IDL/be/be_field.cpp deleted file mode 100644 index 72fbde2a82f..00000000000 --- a/TAO/TAO_IDL/be/be_field.cpp +++ /dev/null @@ -1,111 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_field.cpp -// -// = DESCRIPTION -// Extension of class AST_Field that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_field, "$Id$") - -/* - * BE_Field - */ -be_field::be_field (void) -{ -} -be_field::be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) - : AST_Field (ft, n, p), - AST_Decl (AST_Decl::NT_field, n, p) -{ -} - -int -be_field::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_type *bt; // our type node - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - - // hand over code generation to our type node - bt = be_type::narrow_from_decl (this->field_type ()); - return bt->gen_typecode (); -} - -long -be_field::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; - - // struct member is represented as the "name" followed by the typecode - - this->encap_len_ = this->name_encap_len (); // for name - - // add to this, the size of our typecode - bt = be_type::narrow_from_decl (this->field_type ()); - this->encap_len_ += bt->tc_size (); // note that we must add typecode - // size of the type - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_field::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->field_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_field::compute_size_type - " - "bad field type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); // as a side effect will also update - // the size type of parent - return 0; -} - -int -be_field::accept (be_visitor *visitor) -{ - return visitor->visit_field (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_field, AST_Field, be_decl) -IMPL_NARROW_FROM_DECL (be_field) diff --git a/TAO/TAO_IDL/be/be_generator.cpp b/TAO/TAO_IDL/be/be_generator.cpp deleted file mode 100644 index 60d53081ba6..00000000000 --- a/TAO/TAO_IDL/be/be_generator.cpp +++ /dev/null @@ -1,415 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// be_generator.cc -// -// Implementation of BE generator class -// -// This implements the same protocol as AST_Generator but creates instances -// of the BE-subclassed classes instead of of AST classes - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "ace/inc_user_config.h" - -ACE_RCSID(be, be_generator, "$Id$") - -/* - * Constructor - */ - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Inherited operations redefined here - */ - -/* - * Construct a be_root node (a node representing the root of an AST of BE nodes) - */ -AST_Root * -be_generator::create_root(UTL_ScopedName *n, - UTL_StrList *p) -{ - return new be_root(n, p); -} - -/* - * Create a BE_PredefinedType node - */ -AST_PredefinedType * -be_generator::create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_PredefinedType *) new be_predefined_type(t, n, p); -} - -/* - * Create a BE_Module node - */ -AST_Module * -be_generator::create_module(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Module *) new be_module(n, p); -} - -/* - * Create a BE_Interface node - */ -AST_Interface * -be_generator::create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) -{ - return (AST_Interface *) new be_interface(n, ih, nih, p); -} - -/* - * Create a BE_InterfaceFwd node - */ -AST_InterfaceFwd * -be_generator::create_interface_fwd(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_InterfaceFwd *) new be_interface_fwd(n, p); -} - -/* - * Create a BE_Exception node - */ -AST_Exception * -be_generator::create_exception(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Exception *) new be_exception(n, p); -} - -/* - * Create a BE_Structure node - */ -AST_Structure * -be_generator::create_structure(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Structure *) new be_structure(n, p); -} - -/* - * Create a BE_Enum node - */ -AST_Enum * -be_generator::create_enum(UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Enum *) new be_enum(n, p); -} - -/* - * Create a BE_Operation node - */ -AST_Operation * -be_generator::create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Operation *) new be_operation(rt, fl, n, p); -} - -/* - * Create a BE_Field node - */ -AST_Field * -be_generator::create_field(AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Field *) new be_field(ft, n, p); -} - -/* - * Create a BE_Argument node - */ -AST_Argument * -be_generator::create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Argument *) new be_argument(d, ft, n, p); -} - -/* - * Create a BE_Attribute node - */ -AST_Attribute * -be_generator::create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Attribute *) new be_attribute(ro, ft, n, p); -} - -/* - * Create a BE_Union node - */ -AST_Union * -be_generator::create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Union *) new be_union(dt, n, p); -} - -/* - * Create a BE_UnionBranch node - */ -AST_UnionBranch * -be_generator::create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_UnionBranch *) new be_union_branch(lab, ft, n, p); -} - -/* - * Create a BE_UnionLabel node - */ -AST_UnionLabel * -be_generator::create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv) -{ - return (AST_UnionLabel *) new be_union_label(ul, lv); -} - -/* - * Create a BE_Constant node - */ -AST_Constant * -be_generator::create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Constant *) new be_constant (et, ev, n, p); -} - -/* - * Create a symbolic BE_Expression node - */ -AST_Expression * -be_generator::create_expr(UTL_ScopedName *n) -{ - return (AST_Expression *) new be_expression (n); -} - -/* - * Create a BE_Expression node denoting a coercion - */ -AST_Expression * -be_generator::create_expr(AST_Expression *b, AST_Expression::ExprType t) -{ - return (AST_Expression *) new be_expression (b, t); -} - -/* - * Create a BE_Expression node combining two other AST_Expression nodes - */ -AST_Expression * -be_generator::create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2) -{ - return (AST_Expression *) new be_expression (c, v1, v2); -} - -/* - * Create a BE_Expression node denoting a long integer - */ -AST_Expression * -be_generator::create_expr(long l) -{ - return (AST_Expression *) new be_expression (l); -} - -/* - * Create a BE_Expression node denoting a long integer being used as a boolean - */ -AST_Expression * -be_generator::create_expr(long l, AST_Expression::ExprType t) -{ - return (AST_Expression *) new be_expression (l, t); -} - -/* - * Create a BE_Expression node denoting an unsigned long integer - */ -AST_Expression * -be_generator::create_expr(unsigned long l) -{ - return (AST_Expression *) new be_expression(l); -} - -/* - * Create a BE_Expression node denoting a char * (encapsulated as a String) - */ -AST_Expression * -be_generator::create_expr (String *s) -{ - return (AST_Expression *) new be_expression (s); -} - -/* - * Create a BE_Expression node denoting a character - */ -AST_Expression * -be_generator::create_expr(char c) -{ - return (AST_Expression *) new be_expression (c); -} - -/* - * Create a BE_Expression node denoting a 64-bit floating point number - */ -AST_Expression * -be_generator::create_expr (double d) -{ - return (AST_Expression *) new be_expression (d); -} - -/* - * Create a BE_EnumVal node - */ -AST_EnumVal * -be_generator::create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_EnumVal *) new be_enum_val(v, n, p); -} - -/* - * Create a BE_Array node - */ -AST_Array * -be_generator::create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims) -{ - return (AST_Array *) new be_array(n, ndims, dims); -} - -/* - * Create a BE_Sequence node - */ -AST_Sequence * -be_generator::create_sequence(AST_Expression *v, AST_Type *bt) -{ - return (AST_Sequence *) new be_sequence(v, bt); -} - -/* - * Create a BE_String node - */ -AST_String * -be_generator::create_string(AST_Expression *v) -{ - return (AST_String *) new be_string(v); -} - -/* - * Create a BE_string node for a wide string - */ -AST_String * -be_generator::create_wstring(AST_Expression *v) -{ - return (AST_String *) new be_string(v, sizeof(ACE_OS::WChar)); -} - -/* - * Create a BE_Typedef node - */ -AST_Typedef * -be_generator::create_typedef(AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) -{ - return (AST_Typedef *) new be_typedef(bt, n, p); -} - -/* - * Construct an AST_Native node - */ -AST_Native * -be_generator::create_native (UTL_ScopedName *n, - UTL_StrList *p) -{ - return (AST_Native *) new be_native (n, p); -} diff --git a/TAO/TAO_IDL/be/be_helper.cpp b/TAO/TAO_IDL/be/be_helper.cpp deleted file mode 100644 index 3a22e65019f..00000000000 --- a/TAO/TAO_IDL/be/be_helper.cpp +++ /dev/null @@ -1,330 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_helper.cpp -// -// = DESCRIPTION -// Provides helper classes to print generated code to the output -// -// = AUTHOR -// Aniruddha Gokhale -// -// Improvements by Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_helper, "$Id$") - -static const char copyright [] = -"/* -*- C++ -*- */\n\n\ -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******\n\ -// TAO ORB and the TAO IDL Compiler have been developed by Washington \n\ -// University Computer Science's Distributed Object Computing Group.\n\ -//\n\ -// Information on TAO is available at\n\ -// http://www.cs.wustl.edu/~schmidt/TAO.html\n"; - -TAO_NL::TAO_NL (void) -{ -} - -TAO_INDENT::TAO_INDENT (int do_now) - : do_now_ (do_now) -{ -} - -TAO_UNINDENT::TAO_UNINDENT (int do_now) - : do_now_ (do_now) -{ -} - -const TAO_NL be_nl; -const TAO_INDENT be_idt; -const TAO_INDENT be_idt_nl (1); -const TAO_UNINDENT be_uidt; -const TAO_UNINDENT be_uidt_nl (1); - -// methods of the TAO_OutStream class - -TAO_OutStream::TAO_OutStream (void) - : fp_ (NULL), - indent_level_ (0) -{ -} - -TAO_OutStream::~TAO_OutStream (void) -{ - // close the underlying I/O handle only if it exists - if (fp_) - { - ACE_OS::fclose (fp_); - fp_ = NULL; - } - indent_level_ = 0; -} - -int -TAO_OutStream::open (const char *fname, - TAO_OutStream::STREAM_TYPE st) -{ - if (fname) - { - // file name exists, open an I/O file handle - fp_ = ACE_OS::fopen (fname, "w"); - if (fp_) - { - this->st_ = st; - // put the copyright notice. Not for the gperf's temp input - // file. - if (st != TAO_OutStream::TAO_GPERF_INPUT) - { - ACE_OS::fprintf (fp_, "%s\n", copyright); - ACE_OS::fflush (fp_); - } - return 0; - } - else - return -1; - } - else - { - return -1; - } -} - -// set and get the stream type -void -TAO_OutStream::stream_type (TAO_OutStream::STREAM_TYPE st) -{ - this->st_ = st; -} - -TAO_OutStream::STREAM_TYPE -TAO_OutStream::stream_type (void) -{ - return this->st_; -} - -// Return the underlying lowlevel file pointer. -// indentation. -FILE * -TAO_OutStream::file (void) -{ - return this->fp_; -} - -int -TAO_OutStream::incr_indent (unsigned short flag) -{ - indent_level_++; - if (flag) - return this->indent (); - else - return 0; // do not indent output -} - -// indentation -int -TAO_OutStream::decr_indent (unsigned short flag) -{ - indent_level_--; - // Just in case somebody gets "unindent happy". - if (this->indent_level_ < 0) - { - // ACE_DEBUG ((LM_DEBUG, "negative indentation?\n")); - this->indent_level_ = 0; - } - if (flag) - return this->indent (); - else - return 0; // do not indent output -} - -int -TAO_OutStream::reset (void) -{ - indent_level_ = 0; - return 0; -} - -// indented print -int -TAO_OutStream::indent (void) -{ - int i; - // based on the current indentation level, leave appropriate number of blank - // spaces in the output - if (this->indent_level_ > 0) - { - for (i=0; i < this->indent_level_; i++) - { - ACE_OS::fprintf (this->fp_, " "); - ACE_OS::fflush (this->fp_); - } - } - return 0; -} - -int -TAO_OutStream::nl (void) -{ - ACE_OS::fprintf (this->fp_, "\n"); - this->indent (); - return 0; -} - -// macro generation -int -TAO_OutStream::gen_ifdef_macro (const char *flatname, const char *suffix) -{ - static char macro [NAMEBUFSIZE]; - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ACE_OS::memset (macro, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (macro, "_%s_", cg->upcase (flatname)); - if (suffix) - { - ACE_OS::sprintf (macro, "%s_%s_", macro, cg->upcase (suffix)); - } - - // append a suffix representing the stream type - switch (this->st_) - { - case TAO_OutStream::TAO_CLI_HDR: - ACE_OS::strcat (macro, "CH_"); - break; - case TAO_OutStream::TAO_CLI_INL: - ACE_OS::strcat (macro, "CI_"); - break; - case TAO_OutStream::TAO_CLI_IMPL: - ACE_OS::strcat (macro, "CS_"); - break; - case TAO_OutStream::TAO_SVR_HDR: - ACE_OS::strcat (macro, "SH_"); - break; - case TAO_OutStream::TAO_SVR_INL: - ACE_OS::strcat (macro, "SI_"); - break; - case TAO_OutStream::TAO_SVR_IMPL: - ACE_OS::strcat (macro, "SS_"); - break; - } - *this << "\n#if !defined (" << macro << ")\n"; - *this << "#define " << macro << "\n\n"; - return 0; -} - -int -TAO_OutStream::gen_endif (void) -{ - *this << "\n#endif /* end #if !defined */\n\n"; - return 0; -} - - -// ifdef generation -int -TAO_OutStream::gen_ifdef_AHETI (void) -{ - *this << be_nl << "#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) \\" << be_nl; - *this << " || !defined (TAO_LACKS_TEMPLATE_SPECIALIZATION)" << be_idt_nl; - return 0; -} - -int -TAO_OutStream::gen_else_AHETI (void) -{ - *this << be_uidt_nl << "#else /* AHETI */" << be_idt_nl; - return 0; -} - -int -TAO_OutStream::gen_endif_AHETI (void) -{ - *this << be_uidt_nl << "#endif /* AHETI */ " << be_nl; - return 0; -} - - -// printf style variable argument print -int -TAO_OutStream::print (const char *format, ...) -{ - int result = 0; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vfprintf (this->fp_, format, ap), int, -1, result); - ACE_OS::fflush (fp_); - va_end (ap); - return result; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const char *str) -{ - ACE_OS::fprintf (this->fp_, "%s", str); - ACE_OS::fflush (fp_); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const long num) -{ - ACE_OS::fprintf (this->fp_, "%ld", num); - ACE_OS::fflush (fp_); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const TAO_NL&) -{ - ACE_OS::fprintf (this->fp_ , "\n"); - this->indent (); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const TAO_INDENT& i) -{ - this->incr_indent (0); - if (i.do_now_) - this->nl (); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (const TAO_UNINDENT& i) -{ - this->decr_indent (0); - if (i.do_now_) - this->nl (); - return *this; -} - -TAO_OutStream & -TAO_OutStream::operator<< (Identifier *id) -{ - return this->print (id); -} - -TAO_OutStream & -TAO_OutStream::operator<< (UTL_IdList *id) -{ - return this->print (id); -} - -TAO_OutStream & -TAO_OutStream::operator<< (AST_Expression *expr) -{ - return this->print (expr); -} diff --git a/TAO/TAO_IDL/be/be_init.cpp b/TAO/TAO_IDL/be/be_init.cpp deleted file mode 100644 index 8be66d3756c..00000000000 --- a/TAO/TAO_IDL/be/be_init.cpp +++ /dev/null @@ -1,101 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// BE_init.cc - Initialization for dummy BE - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_init, "$Id$") - -/* - * Initialize the BE. The protocol requires only that this routine - * return an instance of AST_Generator (or a subclass thereof). - * - * Remember that none of the FE initialization has been done, when you - * add stuff here. - */ -AST_Generator * -BE_init() -{ - AST_Generator *g = new be_generator(); - - if (g == NULL) { - cerr << GTDEVEL("IDL: BE init failed to create generator, exiting\n"); - exit(99); - } - return g; -} - -/* - * Print out a version string for the BE - */ -void -BE_version() -{ - cerr << GTDEVEL("TAO C++ BE, version 0.1.0\n"); -} diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp deleted file mode 100644 index 850d634b4be..00000000000 --- a/TAO/TAO_IDL/be/be_interface.cpp +++ /dev/null @@ -1,1862 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.cpp -// -// = DESCRIPTION -// Extension of class AST_Interface that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be_visitor_interface.h" -#include "be.h" - -ACE_RCSID(be, be_interface, "$Id$") - -/* - * BE_Interface - */ - -// default constructor -be_interface::be_interface (void) - : full_skel_name_ (0), - skel_count_ (0), - full_coll_name_ (0), - local_coll_name_ (0), - in_mult_inheritance_ (-1) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// constructor used to build the AST -be_interface::be_interface (UTL_ScopedName *n, AST_Interface **ih, long nih, - UTL_StrList *p) - : AST_Interface (n, ih, nih, p), - AST_Decl (AST_Decl::NT_interface, n, p), - UTL_Scope (AST_Decl::NT_interface), - full_skel_name_ (0), - skel_count_ (0), - full_coll_name_ (0), - local_coll_name_ (0), - in_mult_inheritance_ (-1) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_interface::~be_interface (void) -{ - if (this->full_skel_name_ != 0) - { - delete[] this->full_skel_name_; - this->full_skel_name_ = 0; - } - if (this->full_coll_name_ != 0) - { - delete[] this->full_coll_name_; - this->full_coll_name_ = 0; - } - if (this->local_coll_name_ != 0) - { - delete[] this->local_coll_name_; - this->local_coll_name_ = 0; - } -} - -// compute stringified fully qualified collocated class name. -void -be_interface::compute_coll_name (void) -{ - if (this->full_coll_name_ != 0) - return; - - const char collocated[] = "_tao_collocated_"; - const char poa[] = "POA_"; - // Reserve enough room for the "POA_" prefix, the "_tao_collocated_" - // prefix and the local name and the (optional) "::" - int namelen = sizeof (collocated) + sizeof (poa); - - UTL_IdListActiveIterator *i; - ACE_NEW (i, UTL_IdListActiveIterator (this->name ())); - while (!i->is_done ()) - { - // reserve 2 characters for "::". - namelen += ACE_OS::strlen (i->item ()->get_string ()) + 2; - i->next (); - } - delete i; - - ACE_NEW (this->full_coll_name_, - char[namelen+1]); - this->full_coll_name_[0] = 0; // null terminate the string... - - // Iterate again.... - ACE_NEW (i, UTL_IdListActiveIterator (this->name ())); - - // Only the first component get the "POA_" preffix. - int poa_added = 0; - while (!i->is_done ()) - { - const char* item = i->item ()->get_string (); - - // Increase right away, so we can test for the final component - // in the loop. - i->next (); - - // We add the POA_ preffix only if the first component is not - // the global scope... - if (ACE_OS::strcmp (item, "") != 0) - { - if (!i->is_done ()) - { - // We only add the POA_ preffix if there are more than - // two components in the name, in other words, if the - // class is inside some scope. - if (!poa_added) - { - ACE_OS::strcat (this->full_coll_name_, poa); - poa_added = 1; - } - ACE_OS::strcat (this->full_coll_name_, item); - ACE_OS::strcat (this->full_coll_name_, "::"); - } - else - { - ACE_OS::strcat (this->full_coll_name_, collocated); - ACE_OS::strcat (this->full_coll_name_, item); - } - } - } - delete i; - - // Compute the local name for the collocated class. - int localen = sizeof (collocated); - localen += ACE_OS::strlen (this->local_name ()->get_string ()); - ACE_NEW (this->local_coll_name_, char[localen]); - ACE_OS::strcpy(this->local_coll_name_, collocated); - ACE_OS::strcat(this->local_coll_name_, - this->local_name ()->get_string ()); -} - -const char * -be_interface::full_coll_name (void) -{ - if (this->full_coll_name_ == 0) - this->compute_coll_name (); - - return this->full_coll_name_; -} - -const char* -be_interface::local_coll_name (void) const -{ - if (this->local_coll_name_ == 0) - ACE_const_cast (be_interface*, this)->compute_coll_name (); - - return this->local_coll_name_; -} - -// compute stringified fully scoped skel name -void -be_interface::compute_fullskelname (void) -{ - if (full_skel_name_) - return; - else - { - long namelen; - UTL_IdListActiveIterator *i; - long first = I_TRUE; - long second = I_FALSE; - - // in the first loop compute the total length - namelen = 4; - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - namelen += 2; // for "::" - else if (second) - first = second = I_FALSE; - // print the identifier - namelen += ACE_OS::strlen (i->item ()->get_string ()); // - // additional 4 for the POA_ characters - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - - this->full_skel_name_ = new char [namelen+1]; - this->full_skel_name_[0] = '\0'; - first = I_TRUE; - second = I_FALSE; - ACE_OS::strcat (this->full_skel_name_, "POA_"); - i = new UTL_IdListActiveIterator (this->name ()); - while (!(i->is_done ())) - { - if (!first) - ACE_OS::strcat (this->full_skel_name_, "::"); - else if (second) - first = second = I_FALSE; - // print the identifier - ACE_OS::strcat (this->full_skel_name_, i->item ()->get_string ()); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - delete i; - } - return; -} - -// retrieve the fully scoped skeleton name -const char* -be_interface::full_skel_name (void) -{ - if (!this->full_skel_name_) - compute_fullskelname (); - - return this->full_skel_name_; -} - -// Am I in some kind of a multiple inheritance -int be_interface::in_mult_inheritance (void) -{ - if (this->in_mult_inheritance_ == -1) - { - // compute once for all - // determine if we are in some form of a multiple inheritance - if (this->traverse_inheritance_graph - (be_interface::in_mult_inheritance_helper, 0) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_interface::in_mult_inheritance " - "error determining mult inheritance\n"), - -1); - } - } - - return this->in_mult_inheritance_; -} - -void be_interface::in_mult_inheritance (int mi) -{ - if (this->in_mult_inheritance_ == -1) - this->in_mult_inheritance_ = mi; -} - -// generate the var definition -int -be_interface::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - *ch << namebuf << " (" << local_name () << "_ptr);" << nl; - - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << - " &);" << nl; - - // arrow operator - *ch << local_name () << "_ptr operator-> (void) const;" << nl; - - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << "_ptr &() const;" << nl; - *ch << "operator " << local_name () << "_ptr &();" << nl; - - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - *ch << local_name () << "_ptr in (void) const;" << nl; - *ch << local_name () << "_ptr &inout (void);" << nl; - *ch << local_name () << "_ptr &out (void);" << nl; - *ch << local_name () << "_ptr _retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << "_ptr ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // private - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_interface::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (" << this->name () << "::_nil ())" << nl; - *ci << "{}\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // the additional ptr () member function. This member function must be - // defined before the remaining member functions including the copy - // constructor because this inline function is used elsewhere. Hence to make - // inlining of this function possible, we must define it before its use. - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (" << name () << "::_duplicate (p.ptr ()))" << nl; - *ci << "{}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << name () << "::_duplicate (p.ptr ());\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - "_ptr &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_ptr &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// yield ownership of managed obj reference" << nl; - *ci << this->name () << "_ptr val = this->ptr_;" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return val;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_interface::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << "_ptr &);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (const " << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // only interface allows assignment from var & - *ch << namebuf << " &operator= (const " << local_name () << "_var &);" << nl; - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - // cast - *ch << "operator " << local_name () << "_ptr &();" << nl; - // ptr fn - *ch << local_name () << "_ptr &ptr (void);" << nl; - // operator -> - *ch << local_name () << "_ptr operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr &ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_interface::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr &p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (ACE_const_cast (" << fname << "&,p).ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = ACE_const_cast (" << fname << "&,p).ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << this->name () << - "_var &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_duplicate (p.ptr ());" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _ptr - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_ptr &() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr &" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr " << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate typecode. -// Typecode for interface comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_interface::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_objref, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description -int -be_interface::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // XXXASG - byte order must be based on what m/c we are generating code - - // TODO - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << ",\n"; - - return 0; -} - -// compute size of typecode -long -be_interface::tc_size (void) -{ - return 4 + 4 + this->tc_encap_len (); -} - -// compute the encapsulation length -long -be_interface::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - long slen; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (slen); - - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // for repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - } - return this->encap_len_; -} - -// helper. -int -be_interface::gen_operation_table (void) -{ - TAO_OutStream *ss; // output stream. - TAO_NL nl; // end line. - - // Retrieve the singleton instance of the CodeGen. - TAO_CodeGen *cg = 0; - cg = TAO_CODEGEN::instance (); - - // Check out the op_lookup_strategy. - switch (cg->lookup_strategy ()) - { - case TAO_CodeGen::TAO_DYNAMIC_HASH: - // Init the outstream appropriately. - ss = cg->server_skeletons (); - - // start from current indentation level. - ss->indent (); - - // Start the table generation. - *ss << "static const TAO_operation_db_entry " << this->flatname () << - "_operations [] = {\n"; - ss->incr_indent (0); - - // Traverse the graph. - if (this->traverse_inheritance_graph (be_interface::gen_optable_helper, ss) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_operation_table - " - "inheritance graph traversal failed\n"), -1); - } - - // generate the skeleton for the is_a method. - ss->indent (); - *ss << "{\"_is_a\", &" << this->full_skel_name () << "::_is_a_skel},\n"; - this->skel_count_++; - - ss->indent (); - *ss << "{\"_non_existent\", &" << this->full_skel_name () << "::_non_existent_skel}\n"; - this->skel_count_++; - - ss->decr_indent (); - *ss << "};" << nl << nl; - - // XXXASG - this code should be based on using different strategies for - // demux - for next release - *ss << "static const CORBA::Long _tao_" << this->flatname () - << "_optable_size = sizeof (ACE_Hash_Map_Entry) * (" << (3*this->skel_count_) - << ");" << be_nl; - *ss << "static char _tao_" << this->flatname () << "_optable_pool " - << "[_tao_" << this->flatname () << "_optable_size];" << be_nl; - *ss << "static ACE_Static_Allocator_Base _tao_" << this->flatname () - << "_allocator (_tao_" << this->flatname () << "_optable_pool, " - << "_tao_" << this->flatname () << "_optable_size);" << be_nl; - *ss << "TAO_Dynamic_Hash_OpTable tao_" << this->flatname () << "_optable " - << "(" << this->flatname () << "_operations, " << this->skel_count_ - << ", " << 2*this->skel_count_ << ", &_tao_" << this->flatname () - << "_allocator);" << be_nl; - - break; - - case TAO_CodeGen::TAO_PERFECT_HASH: - // For each interface in the IDL, have a new temp file to - // collect the input for the gperf program. - { - // Temp file name. - char *temp_file = 0; - ACE_NEW_RETURN (temp_file, - char [ACE_OS::strlen (this->flatname ()) + - ACE_OS::strlen (".gperf") + 1], - -1); - ACE_OS::sprintf (temp_file, "%s.gperf", this->flatname ()); - - // Save this file name with the codegen singleton. - cg->gperf_input_filename (temp_file); - - // Make a new outstream to hold the gperf_temp_file for this - // interface. - - // Retrieve the singleton instance to the outstream factory. - TAO_OutStream_Factory *factory = - TAO_OUTSTREAM_FACTORY::instance (); - - // Get a new instance for the temp file. - ss = factory->make_outstream (); - if (ss == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss", - "::", - "visit_interface-", - "make_outstream failed"), - -1); - - // Store the outstream with the codegen singleton. - cg->gperf_input_stream (ss); - - // Open the temp file. - if (ss->open (temp_file, - TAO_OutStream::TAO_GPERF_INPUT) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss", - "::", - "visit_interface-", - "gperf_input.tmp file open failed"), - -1); - - // Add the gperf input header. - gen_gperf_input_header (ss); - - // Traverse the graph. - if (this->traverse_inheritance_graph (be_interface::gen_optable_helper, ss) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_operation_table - " - "inheritance graph traversal failed\n"), - -1); - - // Generate the skeleton for the is_a method. - ss->indent (); - *ss << "_is_a" << ", &" - << this->full_skel_name () - << "::_is_a_skel\n"; - this->skel_count_++; - - ss->indent (); - *ss << "_non_existent, &" - << this->full_skel_name () - << "::_non_existent_skel\n"; - this->skel_count_++; - - // Input to the gperf is ready. Run gperf and get things - // done. This method also unlinks the temp file that we used - // for the gperf. - gen_perfect_hash_optable (); - } - break; - - default: - ACE_ERROR_RETURN ((LM_ERROR, - "be_interface", - "::", - "gen_operation_table", - "unknown op_lookup_strategy"), - -1); - } - return 0; -} - -// Output the header (type declaration and %%) to the gperf's input -// file. -void -be_interface::gen_gperf_input_header (TAO_OutStream *ss) -{ - *ss << "class TAO_operation_db_entry {\n" - << "public:\n" - << "\tchar *opname_;" << "\n" - << "\tTAO_Skeleton skel_ptr_;" << "\n" - << "};" << "\n" - << "%%" - << "\n"; -} - -// we separate the generation of operation table entries from the -// "gen_operation_table" method. This enables us to invoke generation of -// entries for interfaces from which we inherit without any additional -// code. The parameter "derived" is the one for which the entire operation -// table is being built. -int -be_interface::gen_optable_entries (be_interface *derived) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - TAO_OutStream *ss; // output stream - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - switch (cg->lookup_strategy ()) - { - case TAO_CodeGen::TAO_DYNAMIC_HASH: - // Init the outstream. - ss = cg->server_skeletons (); - - // The major stuff. - if (this->nmembers () > 0) - { - // if there are elements in this scope i.e., any operations and - // attributes defined by "this" which happens to be the same as "derived" - // or one of its ancestors. - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (d->node_type () == AST_Decl::NT_op) - { - ss->indent (); // start from current indentation level - // we are an operation node - *ss << "{\"" << d->local_name () << "\", &" - << derived->full_skel_name () << "::" - << d->local_name () << "_skel},\n"; - derived->skel_count_++; - } - else if (d->node_type () == AST_Decl::NT_attr) - { - AST_Attribute *attr; - - ss->indent (); // start from current indentation level - // generate only the "get" entry if we are readonly - *ss << "{\"_get_" << d->local_name () << "\", &" << - derived->full_skel_name () << "::_get_" << d->local_name () << - "_skel},\n"; - derived->skel_count_++; - - attr = AST_Attribute::narrow_from_decl (d); - if (!attr) - return -1; - - if (!attr->readonly ()) - { - // the set method - ss->indent (); // start from current indentation level - *ss << "{\"_set_" << d->local_name () << "\", &" << - derived->full_skel_name () << "::_set_" << d->local_name - () << "_skel},\n"; - derived->skel_count_++; - } - } - si->next (); - } // end of while - delete si; // free the iterator object - } - break; - - case TAO_CodeGen::TAO_PERFECT_HASH: - // Init the outstream. - ss = cg->gperf_input_stream (); - - if (this->nmembers () > 0) - { - // if there are elements in this scope i.e., any operations and - // attributes defined by "this" which happens to be the same as "derived" - // or one of its ancestors. - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // Get the next AST decl node. - d = si->item (); - if (d->node_type () == AST_Decl::NT_op) - { - ss->indent (); // start from current indentation level - // we are an operation node - *ss << d->local_name () << ",\t&" - << derived->full_skel_name () << "::" - << d->local_name () << "_skel" << "\n"; - derived->skel_count_++; - } - else if (d->node_type () == AST_Decl::NT_attr) - { - AST_Attribute *attr; - - ss->indent (); // start from current indentation level - // generate only the "get" entry if we are readonly - *ss << "_get_" << d->local_name () << ",\t&" - << derived->full_skel_name () << "::_get_" - << d->local_name () << "_skel\n"; - derived->skel_count_++; - - attr = AST_Attribute::narrow_from_decl (d); - if (!attr) - return -1; - - if (!attr->readonly ()) - { - // the set method - ss->indent (); // start from current indentation level - *ss << "_set_" << d->local_name () << ",\t&" - << derived->full_skel_name () << "::_set_" - << d->local_name () << "_skel\n"; - derived->skel_count_++; - } - } - si->next (); - } // end of while - delete si; // free the iterator object - } - break; - - default: - ACE_ERROR_RETURN ((LM_ERROR, - "be_interface", - "::", - "gen_optable_entries", - "unknown op_lookup_strategy"), - -1); - } - return 0; -} - -// template method that traverses the inheritance graph in a breadth-first -// style. The actual work on each element in the inheritance graph is carried -// out by the function passed as argument -int -be_interface::traverse_inheritance_graph (be_interface::tao_code_emitter gen, - TAO_OutStream *os) -{ - long i; // loop index - ACE_Unbounded_Queue queue; // Queue data structure needed for - // breadth-first traversal of - // inheritance tree - - // For a special case of a deeply nested inheritance graph and one specific - // way of inheritance in which a node that was already visited, but is not present in - // the queue, gets inserted at the tail. This situation arises when a node - // multiply inherits from two or more interfaces in which the first parent is - // higher up in the tree than the second parent. In addition, if the second - // parent turns out to be a child of the first . - - ACE_Unbounded_Queue del_queue; // queue of dequeued nodes to - // be searched for the above case - - // insert ourselves in the Queue - if (queue.enqueue_tail (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, "(%N:%l) be_interface::gen_operation_table - " - "error generating entries\n"), -1); - } - - // do until queue is empty - while (!queue.is_empty ()) - { - be_interface *bi; // element inside the queue - - // use breadth-first strategy i.e., first generate entries for ourselves, - // followed by nodes that we immediately inherit from, and so on. In the - // process make sure that we do not generate code for the same node more - // than once. Such a case may arise due to multiple inheritance forming a - // diamond like inheritance graph. - - // dequeue the element at the head of the queue - if (queue.dequeue_head (bi)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::traverse_graph - " - "dequeue_head failed\n"), -1); - } - - // insert the dequeued element in the del_queue - if (del_queue.enqueue_tail (bi) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::traverse_graph - " - "enqueue_head failed\n"), -1); - } - - // use the helper method to generate code for ourself using the - // properties of the element dequeued. For the first iteration, the - // element dequeued and "this" will be the same i.e., ourselves - if (gen (this, bi, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::traverse_graph - " - "helper code gen failed\n"), -1); - } - - // now check if the dequeued element has any ancestors. If yes, insert - // them inside the queue making sure that there are no duplicates - for (i=0; i < bi->n_inherits (); i++) - { - be_interface *parent; // parent of the dequeued element - - // initialize an iterator to search the queue for duplicates - ACE_Unbounded_Queue_Iterator q_iter (queue); - - // retrieve the next parent from which the dequeued element inherits - parent = be_interface::narrow_from_decl (bi->inherits ()[i]); - if (!parent) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_server_skeletons - " - "bad inherited interface\n"), -1); - } - - // now insert this node at the tail of the queue, but make sure that - // it doesn't already exist in the queue - int found = 0; - while (!q_iter.done ()) - { - be_interface **temp; // queue element - - (void) q_iter.next (temp); - if (!ACE_OS::strcmp (parent->fullname (), (*temp)->fullname ())) - { - // we exist in this queue and cannot be inserted - found = 1; - } - if (found) - break; - (void) q_iter.advance (); - } // end of while - - // initialize an iterator to search the del_queue for duplicates - ACE_Unbounded_Queue_Iterator del_q_iter (del_queue); - - while (!found && !del_q_iter.done ()) - { - be_interface **temp; // queue element - - (void) del_q_iter.next (temp); - if (!ACE_OS::strcmp (parent->fullname (), (*temp)->fullname ())) - { - // we exist in this del_queue and cannot be inserted - found = 1; - } - if (found) - break; - (void) del_q_iter.advance (); - } // end of while - - if (!found) - { - // insert the parent in the queue - if (queue.enqueue_tail (parent) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_server_skeletons - " - "enqueue op failed\n"), -1); - } - } - } // end of for loop - } // end of while queue not empty - return 0; -} - -// helpers passed to the template method - -int -be_interface::gen_optable_helper (be_interface *derived, - be_interface *ancestor, - TAO_OutStream * /*os*/) -{ - // generate entries for the derived class using the properties of its - // ancestors - if (ancestor->gen_optable_entries (derived) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_interface::gen_operation_table - " - "error generating entries for inherited" - "interfaces\n"), -1); - } - return 0; -} - -// The main optable generator for the perfect hashing strategy. -int -be_interface::gen_perfect_hash_optable (void) -{ - // Output a class definition deriving from - // TAO_Perfect_Hash_OpTable. - gen_perfect_hash_class_definition (); - - // Call GPERF and get the methods defined. - if (gen_perfect_hash_methods () == -1) - return -1; - - // Create an instance of this perfect hash table. - gen_perfect_hash_instance (); - - return 0; -} - - -// Outputs the class definition for the perfect hashing. This class -// will inherit from the TAO_Perfect_Hash_OpTable. -void -be_interface::gen_perfect_hash_class_definition (void) -{ - // Codegen singleton. - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - // Outstream. - TAO_OutStream *ss = cg->server_skeletons (); - - *ss << "class " << "TAO_" << this->flatname () << "_Perfect_Hash_OpTable" - << " : public TAO_Perfect_Hash_OpTable" - << be_nl - << "{" - << be_nl - << "private:" - << be_nl - << " unsigned int hash (const char *str, int len);" - << be_nl - << "public:" - << be_nl - << " const TAO_operation_db_entry * lookup (const char *str, int len);" - << be_nl - << "};" - << "\n"; -} - -// We have collected the input (Operations and the corresponding -// skeleton pointers) for the gperf program. Now let us execute gperf -// and get things done. -// GPERF reads from our temp file and write to the Server Skeleton -// file. -int -be_interface::gen_perfect_hash_methods (void) -{ - // Using ACE_Process. - ACE_Process process_manager; - ACE_Process_Options process_options; - - // Codegen's singleton. - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - // Adjust the offset of the underlying file pointer. - ACE_OS::rewind (cg->gperf_input_stream ()->file ()); - - // Set the stdin and stdout appropriately for the gperf program. - - // Stdin is our temp file. Close the temp file and open. We will use - // to open the file now, so that the file will get - // deleted once when we close the file. - - // Close the file. - if (ACE_OS::fclose (cg->gperf_input_stream ()->file ()) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p:File close failed on temp gperf's input file\n"), - -1); - - // Open the temp file. - ACE_HANDLE input = ACE::open_temp_file (cg->gperf_input_filename (), - O_RDONLY); - - if (input == ACE_INVALID_HANDLE) - ACE_ERROR_RETURN ((LM_ERROR, - "%p:File open failed on gperf's temp input file\n"), - -1); - - // Stdout is server skeleton. Do *not* close the file, just open - // again with ACE_OS::open with WRITE + APPEND option.. After this, - // remember to update the file offset to the correct location. - - ACE_HANDLE output = ACE_OS::open (idl_global->be_get_server_skeleton_fname (), - O_WRONLY | O_APPEND); - if (output == ACE_INVALID_HANDLE) - ACE_ERROR_RETURN ((LM_ERROR, - "%p:File open failed on server skeleton file\n"), - -1); - - // Set the handles now in the process options. - process_options.set_handles (input, output); - - // Set the command line for the gperf program. - - process_options.command_line ("%s" - " " - "-m -M -J -c -C" - " " - "-D -E -T -S1 -f 0" - " " - "-a -o -t -p -K" - " " - "opname_ -L C++" - " " - "-Z TAO_%s_Perfect_Hash_OpTable" - " " - "-N lookup", - idl_global->perfect_hasher (), - this->flatname ()); - - // Spawn a process for gperf. - if (process_manager.spawn (process_options) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Error:%p:Couldnt spawn a process for gperf program\n"), - -1); - - // Wait for gperf to complete. - if (process_manager.wait () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Error:%p:Error on wait'ing for completion of gperf program.\n"), - -1); - - // Adjust the file offset to the EOF for the server skeleton file. - ACE_OS::fseek (cg->server_skeletons ()->file (), 0, SEEK_END); - - return 0; -} - -// Create an instance of this perfect hash table. -void -be_interface::gen_perfect_hash_instance () -{ - // Codegen singleton. - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - // Outstream. - TAO_OutStream *ss = cg->server_skeletons (); - - *ss << "TAO_" << this->flatname () << "_Perfect_Hash_OpTable" - << " " - << "tao_" << this->flatname () << "_optable" - << ";" - << be_nl; -} - -#if 0 -// Delete the stream and filename for this temp file and also remove -// the temperary gperf's input file. -void -be_interface::cleanup_gperf_temp_file (void) -{ - // Codegen singleton. - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - -#if !defined (linux) - // tao_idl core dumps on Linux if ss is deleted. - // Delete the stream ptr. - TAO_OutStream *ss = cg->gperf_input_stream (); - delete ss; -#endif /* ! linux */ - - // Delete the temp file. - ACE_OS::unlink (cg->gperf_input_filename ()); - - // Delete the filename ptr. - // @@ Alex: this looks like very bad style for me, IMHO you should - // add a method to the TAO_CodeGen class that cleanups this name, - // notice that after this code executes the state of is - // corrupted, its pointer to the is now - // invalid... - char *fname = cg->gperf_input_filename (); - delete[] fname; -} -#endif /* 0 */ - -int -be_interface::is_a_helper (be_interface * /*derived*/, - be_interface *bi, - TAO_OutStream *os) -{ - // emit the comparison code - os->indent (); - *os << "(!ACE_OS::strcmp ((char *)value, \"" << bi->repoID () << - "\")) ||\n"; - - return 0; -} - -int -be_interface::downcast_helper (be_interface * /* derived */, - be_interface *base, - TAO_OutStream *os) -{ - *os << "if (ACE_OS::strcmp (logical_type_id, \"" - << base->repoID () << "\") == 0)" << be_idt_nl - << "return ACE_static_cast (" - << base->full_skel_name () << "_ptr, this);" << be_uidt_nl; - return 0; -} - -int -be_interface::gen_skel_helper (be_interface *derived, - be_interface *ancestor, - TAO_OutStream *os) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - TAO_NL nl; // end line - - // if derived and ancestor are same, skip it - if (derived == ancestor) - return 0; - - // else generate code that does the cast to the appropriate type - - if (ancestor->nmembers () > 0) - { - // if there are elements in ancestor scope i.e., any operations and - // attributes defined by "ancestor", become methods on the derived class - // which call the corresponding method of the base class by doing the - // proper casting - - si = new UTL_ScopeActiveIterator (ancestor, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (d->node_type () == AST_Decl::NT_op) - { - os->indent (); // start from current indentation level - if (os->stream_type () == TAO_OutStream::TAO_SVR_HDR) - { - // generate the static method corresponding to this method - *os << "static void " << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req, " << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &env =" << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - } - else - { // generate code in the inline file - // generate the static method corresponding to this method - *os << "ACE_INLINE void " - << derived->full_skel_name () << "::" - << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &env" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl; - *os << ancestor->full_skel_name () - << "_ptr impl = (" - << derived->full_skel_name () - << "_ptr) obj;" << be_nl; - *os << ancestor->full_skel_name () - << "::" << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "req," << be_nl - << "(" << ancestor->full_skel_name () - << "_ptr) impl," << be_nl - << "context," << be_nl - << " env" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}\n"; - } - } - else if (d->node_type () == AST_Decl::NT_attr) - { - AST_Attribute *attr; - - attr = AST_Attribute::narrow_from_decl (d); - if (!attr) - return -1; - - os->indent (); // start from current indentation level - if (os->stream_type () == TAO_OutStream::TAO_SVR_HDR) - { - // generate the static method corresponding to this method - *os << "static void _get_" << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &env =" << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - } - else - { // generate code in the inline file - // generate the static method corresponding to this method - *os << "ACE_INLINE void " - << derived->full_skel_name () << "::_get_" - << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &env" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << ancestor->full_skel_name () - << "_ptr impl = (" - << derived->full_skel_name () - << "_ptr) obj;" << nl; - *os << ancestor->full_skel_name () - << "::_get_" << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "req," << be_nl - << "(" << ancestor->full_skel_name () - << "_ptr) impl," << be_nl - << "context," << be_nl - << "env" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}\n"; - } - - if (!attr->readonly ()) - { - // the set method - os->indent (); // start from current indentation level - if (os->stream_type () == TAO_OutStream::TAO_SVR_HDR) - { - // generate the static method corresponding to - // this method - *os << "static void _set_" << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - } - else - { // generate code in the inline file - // generate the static method corresponding to - // this method - *os << "ACE_INLINE void " - << derived->full_skel_name () - << "::_set_" << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &env" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << ancestor->full_skel_name () - << "_ptr impl = (" - << derived->full_skel_name () - << "_ptr) obj;" << be_nl; - *os << ancestor->full_skel_name () - << "::_get_" << d->local_name () - << "_skel (" << be_idt << be_idt_nl - << "req," << be_nl - << "(" << ancestor->full_skel_name () - << "_ptr) impl," << be_nl - << "context," << be_nl - << "env" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}\n"; - } - - } - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int -be_interface::collocated_ctor_helper (be_interface *derived, - be_interface *base, - TAO_OutStream *os) -{ - if (derived == base) - // we are the same. Don't do anything, otherwise we will end up calling - // ourself - return 0; - - if (base->is_nested ()) - { - be_decl *scope; - scope = be_scope::narrow_from_scope (base->defined_in ())->decl (); - *os << " ACE_NESTED_CLASS (POA_" << scope->name () << "," - << base->local_coll_name () << ") (servant, stub)," << be_nl; - } - else - { - *os << " " << base->full_coll_name () << " (servant, stub)," << be_nl; - } - - return 0; -} - -int -be_interface::copy_ctor_helper (be_interface *derived, - be_interface *base, - TAO_OutStream *os) -{ - if (derived == base) - // we are the same. Don't do anything, otherwise we will end up calling - // ourself - return 0; - - if (base->is_nested ()) - { - be_decl *scope; - scope = be_scope::narrow_from_scope (base->defined_in ())->decl (); - *os << " ACE_NESTED_CLASS (POA_" << scope->name () << "," - << base->local_name () << ") (rhs)," << be_nl; - } - else - { - *os << " " << base->full_skel_name () << " (rhs)," << be_nl; - } - - return 0; -} - -int -be_interface::in_mult_inheritance_helper (be_interface *derived, - be_interface *base, - TAO_OutStream *) -{ - switch (derived->n_inherits ()) - { - case 0: - // no parent - derived->in_mult_inheritance (0); - break; - case 1: - if (derived == base) - // prevent indefinite recursion - derived->in_mult_inheritance (-1); - else - // one parent. We have the same characteristics as our base - derived->in_mult_inheritance (base->in_mult_inheritance ()); - break; - default: - // direct multiple inheritance - derived->in_mult_inheritance (1); - } - return 0; -} - -const char* -be_interface::relative_coll_name (const char *collname) -{ - return be_interface::relative_name (this->full_coll_name (), - collname); -} - -// return the relative skeleton name (needed due to NT compiler insanity) -const char * -be_interface::relative_skel_name (const char *skelname) -{ - return be_interface::relative_name (this->full_skel_name (), - skelname); -} - -const char* -be_interface::relative_name (const char *localname, - const char *othername) -{ - // some compilers do not like generating a fully scoped name for a - // type that was defined in the same enclosing scope in which it was - // defined. We have to emit just the partial name, relative to our - // "localname" - - // The tricky part here is that it is not enough to check if the - // typename we are using was defined in the current scope. But we - // need to ensure that it was not defined in any of our ancestor - // scopes as well. If that is the case, then we can generate a fully - // scoped name for that type, else we use the ACE_NESTED_CLASS macro - - // thus we need some sort of relative name to be generated - - static char macro [NAMEBUFSIZE]; - // UNUSED: be_decl *def_scope = 0; // our defining scope - char // hold the fully scoped name - def_name [NAMEBUFSIZE], - use_name [NAMEBUFSIZE]; - char // these point to the curr and next component in the scope - *def_curr = def_name, - *def_next, - *use_curr = use_name, - *use_next; - - ACE_OS::memset (macro, '\0', NAMEBUFSIZE); - ACE_OS::memset (def_name, '\0', NAMEBUFSIZE); - ACE_OS::memset (use_name, '\0', NAMEBUFSIZE); - - // traverse every component of the def_scope and use_scope beginning at the - // root and proceeding towards the leaf trying to see if the components - // match. Continue until there is a match and keep accumulating the path - // traversed. This forms the first argument to the ACE_NESTED_CLASS - // macro. Whenever there is no match, the remaining components of the - // def_scope form the second argument - - ACE_OS::strcpy (def_name, localname); - ACE_OS::strcpy (use_name, othername); - - while (def_curr && use_curr) - { - // find the first occurrence of a :: and advance the next pointers accordingly - def_next = ACE_OS::strstr (def_curr, "::"); - use_next = ACE_OS::strstr (use_curr, "::"); - - if (def_next) - *def_next = 0; - - if (use_next) - *use_next = 0; - - if (!ACE_OS::strcmp (def_curr, use_curr)) - { - // they have same prefix, append to arg1 - def_curr = (def_next ? (def_next+2) : 0); // skip the :: - use_curr = (use_next ? (use_next+2) : 0); // skip the :: - } - else - { - // we had overwritten a ':' by a '\0' for string comparison. We - // revert back because we want the rest of the relative name to be - // used - if (def_next) - *def_next = ':'; - - if (use_next) - *use_next = ':'; - - // no match. This is the end of the first argument. Get out - // of the loop as no more comparisons are necessary - break; - } - } - - // start the 2nd argument of the macro - - // copy the remaining def_name (if any left) - if (def_curr) - ACE_OS::strcat (macro, def_curr); - - return macro; -} - -int -be_interface::accept (be_visitor *visitor) -{ - return visitor->visit_interface (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_interface, AST_Interface, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_interface) -IMPL_NARROW_FROM_SCOPE (be_interface) - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node ; -template class ACE_Unbounded_Queue ; -template class ACE_Unbounded_Queue_Iterator ; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node -#pragma instantiate ACE_Unbounded_Queue -#pragma instantiate ACE_Unbounded_Queue_Iterator -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/TAO_IDL/be/be_interface_fwd.cpp b/TAO/TAO_IDL/be/be_interface_fwd.cpp deleted file mode 100644 index 75bc5b02e0e..00000000000 --- a/TAO/TAO_IDL/be/be_interface_fwd.cpp +++ /dev/null @@ -1,518 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface_Fwd that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_interface_fwd, "$Id$") - -/* - * BE_InterfaceFwd - */ - -be_interface_fwd::be_interface_fwd (void) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_interface_fwd::be_interface_fwd (UTL_ScopedName *n, UTL_StrList *p) - : AST_InterfaceFwd (n, p), - AST_Decl (AST_Decl::NT_interface_fwd, n, p) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// generate the var definition -int -be_interface_fwd::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - *ch << namebuf << " (" << local_name () << "_ptr);" << nl; - - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << - " &);" << nl; - - // arrow operator - *ch << local_name () << "_ptr operator-> (void) const;" << nl; - - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << "_ptr &() const;" << nl; - *ch << "operator " << local_name () << "_ptr &();" << nl; - - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - *ch << local_name () << "_ptr in (void) const;" << nl; - *ch << local_name () << "_ptr &inout (void);" << nl; - *ch << local_name () << "_ptr &out (void);" << nl; - *ch << local_name () << "_ptr _retn (void);" << nl; - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << "_ptr ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // private - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_interface_fwd::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (" << this->name () << "::_nil ())" << nl; - *ci << "{}\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // the additional ptr () member function. This member function must be - // defined before the remaining member functions including the copy - // constructor because this inline function is used elsewhere. Hence to make - // inlining of this function possible, we must define it before its use. - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (" << name () << "::_duplicate (p.ptr ()))" << nl; - *ci << "{}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << name () << "::_duplicate (p.ptr ());\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - "_ptr &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << "_ptr &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << "_ptr " << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "// yield ownership of managed obj reference" << nl; - *ci << this->name () << "_ptr val = this->ptr_;" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();" << nl; - *ci << "return val;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_interface_fwd::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << "_ptr &);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (const " << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // only interface allows assignment from var & - *ch << namebuf << " &operator= (const " << local_name () << "_var &);" << nl; - *ch << namebuf << " &operator= (" << local_name () << "_ptr);" << nl; - // cast - *ch << "operator " << local_name () << "_ptr &();" << nl; - // ptr fn - *ch << local_name () << "_ptr &ptr (void);" << nl; - // operator -> - *ch << local_name () << "_ptr operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << "_ptr &ptr_;\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -int -be_interface_fwd::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - // Depending upon the data type, there are some differences which we account - // for over here. - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a _ptr - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << "_ptr &p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "CORBA::release (this->ptr_);" << nl; - *ci << "this->ptr_ = " << this->name () << "::_nil ();\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (ACE_const_cast (" << fname - << "&,p).ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = ACE_const_cast (" << fname << "&,p).ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << this->name () << - "_var &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = " << this->name () << "::_duplicate (p.ptr ());" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _ptr - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - "_ptr p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - "_ptr &() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr &" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator-> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << "_ptr " << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} -int -be_interface_fwd::gen_typecode (void) -{ - return 0; -} - -long -be_interface_fwd::tc_size (void) -{ - return 0; -} - -int -be_interface_fwd::accept (be_visitor *visitor) -{ - return visitor->visit_interface_fwd (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_interface_fwd, AST_InterfaceFwd, be_type) -IMPL_NARROW_FROM_DECL (be_interface_fwd) diff --git a/TAO/TAO_IDL/be/be_interpretive.cpp b/TAO/TAO_IDL/be/be_interpretive.cpp deleted file mode 100644 index 2e2522db17e..00000000000 --- a/TAO/TAO_IDL/be/be_interpretive.cpp +++ /dev/null @@ -1,426 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_interpretive_visitor.cpp -// -// = DESCRIPTION -// Defines a factory that returns a specialized visitor object based on the -// code generation state. The visitors returned by this factory generate -// stubs and skeletons that use interpretive form of marshaling -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -// individual visitors included only here -#include "be_interpretive.h" - -#include "be_visitor_argument.h" -#include "be_visitor_array.h" -#include "be_visitor_attribute.h" -#include "be_visitor_constant.h" -#include "be_visitor_enum.h" -#include "be_visitor_exception.h" -#include "be_visitor_field.h" -#include "be_visitor_interface.h" -#include "be_visitor_interface_fwd.h" -#include "be_visitor_module.h" -#include "be_visitor_operation.h" -#include "be_visitor_root.h" -#include "be_visitor_sequence.h" -#include "be_visitor_structure.h" -#include "be_visitor_typecode.h" -#include "be_visitor_typedef.h" -#include "be_visitor_union.h" -#include "be_visitor_union_branch.h" - -ACE_RCSID(be, be_interpretive, "$Id$") - - -TAO_Interpretive_Visitor_Factory::TAO_Interpretive_Visitor_Factory (void) -{ -} - -// destructor -TAO_Interpretive_Visitor_Factory::~TAO_Interpretive_Visitor_Factory (void) -{ -} - -be_visitor * -TAO_Interpretive_Visitor_Factory::make_visitor (be_visitor_context *ctx) -{ - TAO_CodeGen::CG_STATE st = ctx->state (); - // create a new context so that ownership issues are not confused. This newly - // created context is a copy of what was sent by the caller. The newly - // created visitor will own this new copy. - be_visitor_context *new_ctx = new be_visitor_context (*ctx); - - switch (st) - { - case TAO_CodeGen::TAO_ROOT_CH: - return new be_visitor_root_ch (new_ctx); - case TAO_CodeGen::TAO_ROOT_CI: - return new be_visitor_root_ci (new_ctx); - case TAO_CodeGen::TAO_ROOT_CS: - return new be_visitor_root_cs (new_ctx); - case TAO_CodeGen::TAO_ROOT_SH: - return new be_visitor_root_sh (new_ctx); - case TAO_CodeGen::TAO_ROOT_SI: - return new be_visitor_root_si (new_ctx); - case TAO_CodeGen::TAO_ROOT_SS: - return new be_visitor_root_ss (new_ctx); - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - return new be_visitor_root_any_op (new_ctx); - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - return new be_visitor_root_cdr_op (new_ctx); - - case TAO_CodeGen::TAO_MODULE_CH: - return new be_visitor_module_ch (new_ctx); - case TAO_CodeGen::TAO_MODULE_SH: - return new be_visitor_module_sh (new_ctx); - case TAO_CodeGen::TAO_MODULE_CI: - case TAO_CodeGen::TAO_MODULE_CS: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return new be_visitor_module (new_ctx); - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - return new be_visitor_module_any_op (new_ctx); - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - return new be_visitor_module_any_op (new_ctx); - - - case TAO_CodeGen::TAO_INTERFACE_CH: - return new be_visitor_interface_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_CI: - return new be_visitor_interface_ci (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_CS: - return new be_visitor_interface_cs (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_SH: - return new be_visitor_interface_sh (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_SI: - return new be_visitor_interface_si (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_SS: - return new be_visitor_interface_ss (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - return new be_visitor_interface_collocated_sh (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - return new be_visitor_interface_collocated_ss (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - return new be_visitor_interface_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - return new be_visitor_interface_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - return new be_visitor_interface_tie_sh (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return new be_visitor_interface_tie_si (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - return new be_visitor_interface_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - return new be_visitor_interface_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_INTERFACE_FWD_CH: - return new be_visitor_interface_fwd_ch (new_ctx); - case TAO_CodeGen::TAO_INTERFACE_FWD_CI: - return new be_visitor_interface_fwd_ci (new_ctx); - - case TAO_CodeGen::TAO_STRUCT_CH: - return new be_visitor_structure_ch (new_ctx); - case TAO_CodeGen::TAO_STRUCT_CS: - return new be_visitor_structure_cs (new_ctx); - case TAO_CodeGen::TAO_STRUCT_CI: - return new be_visitor_structure_ci (new_ctx); - case TAO_CodeGen::TAO_STRUCT_ANY_OP_CH: - return new be_visitor_structure_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_STRUCT_ANY_OP_CS: - return new be_visitor_structure_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_STRUCT_CDR_OP_CH: - return new be_visitor_structure_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_STRUCT_CDR_OP_CS: - return new be_visitor_structure_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_CONSTANT_CH: - return new be_visitor_constant_ch (new_ctx); - case TAO_CodeGen::TAO_CONSTANT_CS: - return new be_visitor_constant_cs (new_ctx); - - case TAO_CodeGen::TAO_ENUM_CH: - return new be_visitor_enum_ch (new_ctx); - case TAO_CodeGen::TAO_ENUM_CS: - return new be_visitor_enum_cs (new_ctx); - case TAO_CodeGen::TAO_ENUM_ANY_OP_CH: - return new be_visitor_enum_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_ENUM_ANY_OP_CS: - return new be_visitor_enum_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_ENUM_CDR_OP_CH: - return new be_visitor_enum_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_ENUM_CDR_OP_CS: - return new be_visitor_enum_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_FIELD_CH: - return new be_visitor_field_ch (new_ctx); - case TAO_CodeGen::TAO_FIELD_CS: - return new be_visitor_field_cs (new_ctx); - case TAO_CodeGen::TAO_FIELD_CI: - return new be_visitor_field_ci (new_ctx); - case TAO_CodeGen::TAO_FIELD_CDR_OP_CH: - return new be_visitor_field_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_FIELD_CDR_OP_CS: - return new be_visitor_field_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_UNION_CH: - return new be_visitor_union_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_CI: - return new be_visitor_union_ci (new_ctx); - case TAO_CodeGen::TAO_UNION_CS: - return new be_visitor_union_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_CH: - return new be_visitor_union_branch_public_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_CI: - return new be_visitor_union_branch_public_ci (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_CS: - return new be_visitor_union_branch_public_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS: - return new be_visitor_union_branch_public_assign_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_RESET_CS: - return new be_visitor_union_branch_public_reset_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PUBLIC_ACCESS_CS: - return new be_visitor_union_branch_public_access_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_PRIVATE_CH: - return new be_visitor_union_branch_private_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CH: - return new be_visitor_union_discriminant_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CI: - return new be_visitor_union_discriminant_ci (new_ctx); - case TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CS: - return new be_visitor_union_discriminant_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_ANY_OP_CH: - return new be_visitor_union_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_ANY_OP_CS: - return new be_visitor_union_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_CDR_OP_CH: - return new be_visitor_union_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_CDR_OP_CS: - return new be_visitor_union_cdr_op_cs (new_ctx); - case TAO_CodeGen::TAO_UNION_BRANCH_CDR_OP_CH: - return new be_visitor_union_branch_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_UNION_BRANCH_CDR_OP_CS: - return new be_visitor_union_branch_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_SEQUENCE_CH: - return new be_visitor_sequence_ch (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_CI: - return new be_visitor_sequence_ci (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_CS: - return new be_visitor_sequence_cs (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_BASE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CI: - case TAO_CodeGen::TAO_SEQUENCE_BASE_CS: - return new be_visitor_sequence_base (new_ctx); - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH: - case TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI: - return new be_visitor_sequence_elemtype (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH: - case TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CI: - case TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CS: - return new be_visitor_sequence_buffer_type (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CH: - return new be_visitor_sequence_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CS: - return new be_visitor_sequence_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CH: - return new be_visitor_sequence_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CS: - return new be_visitor_sequence_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_TYPEDEF_CH: - return new be_visitor_typedef_ch (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_CS: - return new be_visitor_typedef_cs (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_CI: - return new be_visitor_typedef_ci (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - return new be_visitor_typedef_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - return new be_visitor_typedef_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - return new be_visitor_typedef_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - return new be_visitor_typedef_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_TYPECODE_DECL: - return new be_visitor_typecode_decl (new_ctx); - case TAO_CodeGen::TAO_TYPECODE_DEFN: - return new be_visitor_typecode_defn (new_ctx); - - case TAO_CodeGen::TAO_OPERATION_CH: - return new be_visitor_operation_ch (new_ctx); - case TAO_CodeGen::TAO_OPERATION_CS: - return new be_visitor_operation_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_SH: - return new be_visitor_operation_sh (new_ctx); - case TAO_CodeGen::TAO_OPERATION_SS: - return new be_visitor_operation_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH: - return new be_visitor_operation_collocated_sh (new_ctx); - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS: - return new be_visitor_operation_collocated_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETTYPE_CH: - case TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS: - return new be_visitor_operation_rettype (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS: - return new be_visitor_operation_rettype_vardecl_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_PRE_DOCALL_CS: - return new be_visitor_operation_rettype_pre_docall_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DOCALL_CS: - return new be_visitor_operation_rettype_docall_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_POST_DOCALL_CS: - return new be_visitor_operation_rettype_post_docall_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS: - return new be_visitor_operation_rettype_return_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_EXCEPTLIST_CS: - return new be_visitor_operation_exceptlist_cs (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS: - return new be_visitor_operation_rettype_vardecl_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_DEMARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_RETVAL_MARSHAL_SS: - return new be_visitor_operation_rettype_marshal_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS: - return new be_visitor_operation_rettype_assign_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_RETVAL_POST_UPCALL_SS: - return new be_visitor_operation_rettype_post_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS: - return new be_visitor_operation_arglist (new_ctx); - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_POST_DOCALL_CS: - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_POST_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS: - return new be_visitor_operation_argument (new_ctx); - case TAO_CodeGen::TAO_OPERATION_TIE_SH: - return new be_visitor_operation_tie_sh (new_ctx); - case TAO_CodeGen::TAO_OPERATION_TIE_SI: - return new be_visitor_operation_tie_si (new_ctx); - - case TAO_CodeGen::TAO_ARGUMENT_ARGLIST_CH: - case TAO_CodeGen::TAO_ARGUMENT_ARGLIST_OTHERS: - return new be_visitor_args_arglist (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS: - return new be_visitor_args_pre_docall_cs (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS: - return new be_visitor_args_docall_cs (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS: - return new be_visitor_args_post_docall_cs (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS: - return new be_visitor_args_vardecl_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS: - return new be_visitor_args_pre_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS: - case TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS: - return new be_visitor_args_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS: - return new be_visitor_args_post_upcall_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_DEMARSHAL_SS: - case TAO_CodeGen::TAO_ARGUMENT_MARSHAL_SS: - return new be_visitor_args_marshal_ss (new_ctx); - case TAO_CodeGen::TAO_ARGUMENT_POST_MARSHAL_SS: - return new be_visitor_args_post_marshal_ss (new_ctx); - - case TAO_CodeGen::TAO_ATTRIBUTE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI: - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS: - return new be_visitor_attribute (new_ctx); - - case TAO_CodeGen::TAO_EXCEPTION_CH: - return new be_visitor_exception_ch (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CI: - return new be_visitor_exception_ci (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CS: - return new be_visitor_exception_cs (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CH: - case TAO_CodeGen::TAO_EXCEPTION_CTOR_CS: - return new be_visitor_exception_ctor (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS: - return new be_visitor_exception_ctor_assign (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH: - return new be_visitor_exception_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS: - return new be_visitor_exception_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CH: - return new be_visitor_exception_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CS: - return new be_visitor_exception_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_ARRAY_CH: - return new be_visitor_array_ch (new_ctx); - case TAO_CodeGen::TAO_ARRAY_CI: - return new be_visitor_array_ci (new_ctx); - case TAO_CodeGen::TAO_ARRAY_CS: - return new be_visitor_array_cs (new_ctx); - case TAO_CodeGen::TAO_ARRAY_ANY_OP_CH: - return new be_visitor_array_any_op_ch (new_ctx); - case TAO_CodeGen::TAO_ARRAY_ANY_OP_CS: - return new be_visitor_array_any_op_cs (new_ctx); - case TAO_CodeGen::TAO_ARRAY_CDR_OP_CH: - return new be_visitor_array_cdr_op_ch (new_ctx); - case TAO_CodeGen::TAO_ARRAY_CDR_OP_CS: - return new be_visitor_array_cdr_op_cs (new_ctx); - - case TAO_CodeGen::TAO_OPERATION_RESULT_SS: - case TAO_CodeGen::TAO_ARGUMENT_CH: - case TAO_CodeGen::TAO_ARGUMENT_CS: - case TAO_CodeGen::TAO_ARGUMENT_SH: - case TAO_CodeGen::TAO_ARGUMENT_SS: - case TAO_CodeGen::TAO_ARRAY_DEFN_CH: - case TAO_CodeGen::TAO_ARRAY_OTHER_CH: - case TAO_CodeGen::TAO_ARRAY_DEFN_CI: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CH: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_RETURN_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_POST_DOCALL_CS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETURN_TYPE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SH: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_DECL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_RETVAL_ASSIGN_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_RESULT_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_INPARAM_TYPE_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_PRE_UPCALL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_UPCALL_SS: - case TAO_CodeGen::TAO_ATTRIBUTE_POST_UPCALL_SS: - default: - return new be_visitor_decl (new_ctx); - } -} diff --git a/TAO/TAO_IDL/be/be_module.cpp b/TAO/TAO_IDL/be/be_module.cpp deleted file mode 100644 index 1d2138b0264..00000000000 --- a/TAO/TAO_IDL/be/be_module.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_module.cpp -// -// = DESCRIPTION -// Extension of class AST_Module that provides additional means for C++ -// mapping of a module -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_module, "$Id$") - -/* - * BE_Module - */ -be_module::be_module (void) -{ -} - -be_module::be_module (UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (AST_Decl::NT_module, n, p), - UTL_Scope (AST_Decl::NT_module) -{ -} - -// compute the size type of the node in question -int -be_module::compute_size_type (void) -{ - // our size does not matter - return 0; -} - -int -be_module::accept (be_visitor *visitor) -{ - return visitor->visit_module (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_module, AST_Module, be_scope, be_decl) -IMPL_NARROW_FROM_DECL (be_module) -IMPL_NARROW_FROM_SCOPE (be_module) diff --git a/TAO/TAO_IDL/be/be_native.cpp b/TAO/TAO_IDL/be/be_native.cpp deleted file mode 100644 index 149d5956dee..00000000000 --- a/TAO/TAO_IDL/be/be_native.cpp +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_native.cpp -// -// = DESCRIPTION -// The native IDL type -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_native, "$Id$") - - -// be_native: New IDL type added by the POA spec -/* - * Constructor(s) - */ -be_native::be_native (void) -{ -} - -be_native::be_native (UTL_ScopedName *n, - UTL_StrList *p) - : AST_Native (n, p), - AST_Decl (AST_Decl::NT_native, n, p) -{ -} - -int -be_native::gen_typecode (void) -{ - return 0; -} - -long -be_native::tc_size (void) -{ - return 0; -} - -int -be_native::accept (be_visitor *visitor) -{ - return visitor->visit_native (this); -} - -// Narrowing -IMPL_NARROW_METHODS2(be_native, AST_Native, be_type) -IMPL_NARROW_FROM_DECL(be_native) diff --git a/TAO/TAO_IDL/be/be_operation.cpp b/TAO/TAO_IDL/be/be_operation.cpp deleted file mode 100644 index 76f834dd1ab..00000000000 --- a/TAO/TAO_IDL/be/be_operation.cpp +++ /dev/null @@ -1,166 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_operation.cpp -// -// = DESCRIPTION -// Extension of class AST_Operation that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_operation, "$Id$") - -/* - * BE_Operation - */ -be_operation::be_operation (void) - : argument_count_ (-1), - has_native_ (0) -{ -} - -be_operation::be_operation (AST_Type *rt, AST_Operation::Flags fl, - UTL_ScopedName *n, UTL_StrList *p) - : AST_Operation (rt, fl, n, p), - AST_Decl (AST_Decl::NT_op, n, p), - UTL_Scope (AST_Decl::NT_op), - argument_count_ (-1), - has_native_ (0) -{ -} - -// compute total number of members -int -be_operation::compute_argument_attr (void) -{ - if (this->argument_count_ != -1) - return 0; - - this->argument_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - UTL_ScopeActiveIterator *si = - new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - AST_Decl *d = si->item (); - - if (d->node_type () == AST_Decl::NT_argument) - { - this->argument_count_++; - be_argument *arg = be_argument::narrow_from_decl (d); - be_type* type = - be_type::narrow_from_decl (arg->field_type ()); - - if (type->base_node_type () == AST_Decl::NT_native) - this->has_native_ = 1; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - - be_type* type = be_type::narrow_from_decl (this->return_type ()); - if (type->base_node_type () == AST_Decl::NT_native) - this->has_native_ = 1; - - return 0; -} - -// return the member count -int -be_operation::argument_count (void) -{ - this->compute_argument_attr (); - - return this->argument_count_; -} - -// return if any argument or the return type is a type. -int -be_operation::has_native (void) -{ - this->compute_argument_attr (); - - return this->has_native_; -} - -be_argument * -be_operation::add_argument_to_scope (be_argument *arg) -{ - this->add_to_scope (arg); - this->add_to_referenced (arg, 0); - return arg; -} - -// compute the size type of the node in question -int -be_operation::compute_size_type (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - // our sizetype depends on the sizetype of our members. Although - // previous value of sizetype may get overwritten, we are - // guaranteed by the "size_type" call that once the value reached - // be_decl::VARIABLE, nothing else can overwrite it. - this->size_type (bd->size_type ()); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l) be_operation::compute_size_type - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int -be_operation::accept (be_visitor *visitor) -{ - return visitor->visit_operation (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_operation, AST_Operation, be_scope, be_decl) -IMPL_NARROW_FROM_DECL (be_operation) -IMPL_NARROW_FROM_SCOPE (be_operation) diff --git a/TAO/TAO_IDL/be/be_predefined_type.cpp b/TAO/TAO_IDL/be/be_predefined_type.cpp deleted file mode 100644 index 73fb9e94929..00000000000 --- a/TAO/TAO_IDL/be/be_predefined_type.cpp +++ /dev/null @@ -1,468 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_predefined_type.cpp -// -// = DESCRIPTION -// Extension of class AST_PredefinedType that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_predefined_type, "$Id$") - -/* - * BE_PredefinedType - */ -be_predefined_type::be_predefined_type (void) -{ -} - -be_predefined_type::be_predefined_type (AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, UTL_StrList *p) - : AST_PredefinedType (t, n, p), - AST_Decl (AST_Decl::NT_pre_defined, n, p) -{ - // generate a new Scoped Name for us such that we belong to the CORBA - // namespace - if (this->pt () != AST_PredefinedType::PT_void) - { - - UTL_ScopedName *new_name = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, - I_FALSE), - NULL); - switch (this->pt ()) - { - case AST_PredefinedType::PT_long: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Long", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulong: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("ULong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_short: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Short", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ushort: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("UShort", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_float: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Float", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_double: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Double", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_char: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Char", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_octet: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Octet", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_wchar: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("WChar", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_boolean: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Boolean", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longlong: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("LongLong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulonglong: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("ULongLong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longdouble: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("LongDouble", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_any: - { - new_name->nconc (new UTL_ScopedName (new Identifier ("Any", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_pseudo: - { - new_name->nconc (new UTL_ScopedName (new Identifier - (n->last_component - ()->get_string (), 1, 0, - I_FALSE), NULL)); - } - break; - default: - { - new_name->nconc (new UTL_ScopedName (this->local_name (), NULL)); - } - } - this->set_name (new_name); - } - - // computes the repoID - compute_repoID (); - - // computes the fully scoped name - compute_fullname (); - - // computes the fully scoped typecode name - compute_tc_name (); - - // compute the flattened fully scoped name - compute_flatname (); -} - -// overriden method -void -be_predefined_type::compute_tc_name (void) -{ - // start with the head as the CORBA namespace - this->tc_name_ = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, I_FALSE), - NULL); - - switch (this->pt ()) - { - case AST_PredefinedType::PT_void: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_void", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_long: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_long", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longlong: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_longlong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulong: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_ulong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ulonglong: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_ulonglong", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_short: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_short", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_ushort: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_ushort", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_float: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_float", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_double: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_double", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_longdouble: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_longdouble", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_char: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_char", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_wchar: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_wchar", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_octet: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_octet", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_boolean: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_boolean", 1, 0, - I_FALSE), NULL)); - } - break; - case AST_PredefinedType::PT_any: - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier - ("_tc_any", - 1, 0, - I_FALSE), - NULL)); - } - break; - case AST_PredefinedType::PT_pseudo: - { - char tcname [100]; - ACE_OS::sprintf (tcname, "_tc_%s", - this->name ()->last_component ()->get_string ()); - this->tc_name_->nconc (new UTL_ScopedName (new Identifier - (ACE_OS::strdup (tcname), - 1, 0, - I_FALSE), NULL)); - } - break; - default: - ACE_ERROR ((LM_WARNING, "Unknown or invalid predefined type")); - break; - } -} - -int -be_predefined_type::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (nl); - - cs = cg->client_stubs (); - cs->indent (); // start from the current indentation level - - switch (this->pt ()) - { - case AST_PredefinedType::PT_void: - *cs << "CORBA::tk_void,\n\n"; - break; - case AST_PredefinedType::PT_short: - *cs << "CORBA::tk_short,\n\n"; - break; - case AST_PredefinedType::PT_ushort: - *cs << "CORBA::tk_ushort,\n\n"; - break; - case AST_PredefinedType::PT_long: - *cs << "CORBA::tk_long,\n\n"; - break; - case AST_PredefinedType::PT_ulong: - *cs << "CORBA::tk_ulong,\n\n"; - break; - case AST_PredefinedType::PT_longlong: - *cs << "CORBA::tk_longlong,\n\n"; - break; - case AST_PredefinedType::PT_ulonglong: - *cs << "CORBA::tk_ulonglong,\n\n"; - break; - case AST_PredefinedType::PT_float: - *cs << "CORBA::tk_float,\n\n"; - break; - case AST_PredefinedType::PT_double: - *cs << "CORBA::tk_double,\n\n"; - break; - case AST_PredefinedType::PT_longdouble: - *cs << "CORBA::tk_longdouble,\n\n"; - break; - case AST_PredefinedType::PT_boolean: - *cs << "CORBA::tk_boolean,\n\n"; - break; - case AST_PredefinedType::PT_char: - *cs << "CORBA::tk_char,\n\n"; - break; - case AST_PredefinedType::PT_octet: - *cs << "CORBA::tk_octet,\n\n"; - break; - case AST_PredefinedType::PT_any: - *cs << "CORBA::tk_any,\n\n"; - break; - case AST_PredefinedType::PT_wchar: - *cs << "CORBA::tk_wchar,\n\n"; - break; - case AST_PredefinedType::PT_pseudo: - { - if (!ACE_OS::strcmp (this->local_name ()->get_string (), "TypeCode")) - *cs << "CORBA::tk_TypeCode,\n\n"; - else - if (!ACE_OS::strcmp (this->local_name ()->get_string (), "Object")) - { - *cs << "CORBA::tk_objref,\n"; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - this->gen_encapsulation (); - } - } - break; - } - return 0; -} - -long -be_predefined_type::tc_size (void) -{ - if (ACE_OS::strcmp (this->local_name ()->get_string (), "Object")) // not same - return 4; // for the enum value - else - return 4 + 4 + this->tc_encap_len (); -} - -long -be_predefined_type::tc_encap_len (void) -{ - if ((this->encap_len_ == -1) // not computed yet - && (!ACE_OS::strcmp (this->local_name ()->get_string (), "Object"))) - // is a CORBA::Object - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // for repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - } - - return this->encap_len_; -} - -int -be_predefined_type::gen_encapsulation (void) -{ - if ((this->pt () == AST_PredefinedType::PT_any) - || (this->pt () == AST_PredefinedType::PT_pseudo)) - { - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // XXXASG - byte order must be based on what m/c we are generating code - - // TODO - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << ",\n"; - } - return 0; -} - -// compute the size type of the node in question -int -be_predefined_type::compute_size_type (void) -{ - switch (this->pt ()) - { - case AST_PredefinedType::PT_any: - case AST_PredefinedType::PT_pseudo: - // we are variable length type - this->size_type (be_decl::VARIABLE); - break; - default: - this->size_type (be_decl::FIXED); - } - return 0; -} - -void -be_predefined_type::compute_repoID (void) -{ - switch (this->pt ()) - { - case AST_PredefinedType::PT_pseudo: - if (!ACE_OS::strcmp (this->local_name ()->get_string (), "Object")) - this->repoID_ = ACE::strnew ("IDL:omg.org/CORBA/Object:1.0"); - else - be_decl::compute_repoID (); - break; - default: - be_decl::compute_repoID (); - break; - } -} - -int -be_predefined_type::accept (be_visitor *visitor) -{ - return visitor->visit_predefined_type (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_predefined_type, AST_PredefinedType, be_type) -IMPL_NARROW_FROM_DECL (be_predefined_type) diff --git a/TAO/TAO_IDL/be/be_produce.cpp b/TAO/TAO_IDL/be/be_produce.cpp deleted file mode 100644 index 05e45759458..00000000000 --- a/TAO/TAO_IDL/be/be_produce.cpp +++ /dev/null @@ -1,217 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// BE_produce.cc - Produce the work of the BE - does nothing in the -// dummy BE - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_interpretive.h" - -ACE_RCSID(be, be_produce, "$Id$") - -/* - * Do the work of this BE. This is the starting point for code generation. - */ - -void -BE_produce() -{ - be_root *root; // root of the AST made up of BE nodes - be_visitor *visitor; // visitor for root - be_visitor_context ctx; // context information for the visitor root - - // XXXASG - Here is where we will have a choice of what to initialize i.e., - // whether we want a visitor generating "interpetive" or "compiled" form of - // stubs/skeletons - // TODO - to do this elegantly. - // right now we just force it to be the interpretive one. - tao_cg->visitor_factory (new TAO_Interpretive_Visitor_Factory); - - // get the root node and narro wit down to be the back-end root node - AST_Decl *d = idl_global->root (); - root = be_root::narrow_from_decl (d); - if (!root) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "No Root\n")); - BE_abort(); - } - - // Code generation involves six steps because of the six files that we - // generate. - - // (1) generate client header - // instantiate a visitor context - ctx.state (TAO_CodeGen::TAO_ROOT_CH); // set the codegen state - // get a root visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the client header - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client header for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (2) generate client inline - // set the context information - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_CI); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the client inline file - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client inline for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - - // (3) generate client stubs - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_CS); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the client stubs - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client stubs for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (4) generate server header - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_SH); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the server header file - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "server header for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (5) generate server inline - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_SI); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the server inline file - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "server inline for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; - - // (6) generate server skeletons - ctx.reset (); - ctx.state (TAO_CodeGen::TAO_ROOT_SS); - // create a visitor - visitor = tao_cg->make_visitor (&ctx); - // generate code for the server skeletons - if (root->accept (visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "server skeletons for Root failed\n")); - BE_abort(); - } - // it is our responsibility to free up the visitor - delete visitor; -} - -/* - * Abort this run of the BE - */ -void -BE_abort() -{ - cerr << "Fatal Error" << endl; - exit (1); -} diff --git a/TAO/TAO_IDL/be/be_root.cpp b/TAO/TAO_IDL/be/be_root.cpp deleted file mode 100644 index 43aa5ffa9ca..00000000000 --- a/TAO/TAO_IDL/be/be_root.cpp +++ /dev/null @@ -1,97 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_root.cpp -// -// = DESCRIPTION -// Extension of class AST_Root that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_root, "$Id$") - -// Default Constructor -be_root::be_root (void) -{ -} - -// Constructor used to build the root of the abstract syntax tree (AST) -be_root::be_root (UTL_ScopedName *n, UTL_StrList *p) - : AST_Root (n, p), - AST_Decl (AST_Decl::NT_root, n, p), - UTL_Scope (AST_Decl::NT_root) - -{ -} - -// We had to provide these since the AST_Root::fe_* method was setting the -// names of these three to "local type" - -/* - * Add this AST_Sequence to the locally defined types in this scope - */ -AST_Sequence * -be_root::fe_add_sequence (AST_Sequence *t) -{ - if (t == NULL) - return NULL; - - add_to_local_types(t); - return t; -} - -/* - * Add this AST_String to the locally defined types in this scope - */ -AST_String * -be_root::fe_add_string (AST_String *t) -{ - if (t == NULL) - return NULL; - - add_to_local_types (t); - - return t; -} - -/* - * Add this AST_Array to the locally defined types in this scope - */ -AST_Array * -be_root::fe_add_array (AST_Array *t) -{ - if (t == NULL) - return NULL; - - add_to_local_types (t); - - return t; -} - -int -be_root::accept (be_visitor *visitor) -{ - return visitor->visit_root (this); -} - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS3 (be_root, AST_Root, be_scope, be_decl) -IMPL_NARROW_FROM_DECL (be_root) -IMPL_NARROW_FROM_SCOPE (be_root) diff --git a/TAO/TAO_IDL/be/be_scope.cpp b/TAO/TAO_IDL/be/be_scope.cpp deleted file mode 100644 index 24d3eb1daf4..00000000000 --- a/TAO/TAO_IDL/be/be_scope.cpp +++ /dev/null @@ -1,149 +0,0 @@ -// -// $Id$ -// -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_scope, "$Id$") - - -// Default Constructor -be_scope::be_scope (void) - : comma_ (0) -{ -} - -// Constructor -be_scope::be_scope (AST_Decl::NodeType type) - : UTL_Scope (type), - comma_ (0) -{ -} - -be_scope::~be_scope (void) -{ -} - -// Code generation methods -void -be_scope::comma (unsigned short comma) -{ - this->comma_ = comma; -} - -int -be_scope::comma (void) const -{ - return this->comma_; -} - -int -be_scope::gen_encapsulation (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd->gen_encapsulation () == -1) - { - // failure - return -1; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -long -be_scope::tc_encap_len (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - long encap_len = 0; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - - // NOTE: Our assumptin here is that whatever scope we are in, the - // node type that shows up here *MUST* be valid according to the - // IDL grammar. We do not check for this since the front end must - // have taken care of weeding out such errors - - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - encap_len += bd->tc_encap_len (); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l): be_scope::tc_encap_len - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return encap_len; -} - -// return the scope created by this node (if one exists, else NULL) -be_decl * -be_scope::decl (void) -{ - switch (this->scope_node_type()) - { - case AST_Decl::NT_interface: - return be_interface::narrow_from_scope (this); - case AST_Decl::NT_module: - return be_module::narrow_from_scope (this); - case AST_Decl::NT_root: - return be_root::narrow_from_scope (this); - case AST_Decl::NT_except: - return be_exception::narrow_from_scope (this); - case AST_Decl::NT_union: - return be_union::narrow_from_scope (this); - case AST_Decl::NT_struct: - return be_structure::narrow_from_scope (this); - case AST_Decl::NT_enum: - return be_enum::narrow_from_scope (this); - case AST_Decl::NT_op: - return be_operation::narrow_from_scope (this); - default: - return (be_decl *)0; - } -} - -int -be_scope::accept (be_visitor *visitor) -{ - return visitor->visit_scope (this); -} - -// narrowing methods -IMPL_NARROW_METHODS1 (be_scope, UTL_Scope) -IMPL_NARROW_FROM_SCOPE (be_scope) diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp deleted file mode 100644 index 317e420cbf4..00000000000 --- a/TAO/TAO_IDL/be/be_sequence.cpp +++ /dev/null @@ -1,445 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sequence.cpp -// -// = DESCRIPTION -// Extension of class AST_Sequence that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_visitor_sequence.h" - -ACE_RCSID(be, be_sequence, "$Id$") - - -/* - * BE_Sequence - */ -be_sequence::be_sequence (void) - : mt_ (be_sequence::MNG_UNKNOWN) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_sequence::be_sequence (AST_Expression *v, AST_Type *t) - : AST_Sequence (v, t), - AST_Decl (AST_Decl::NT_sequence, - NULL, - NULL), - mt_ (be_sequence::MNG_UNKNOWN) -{ - // check if we are bounded or unbounded. An expression value of 0 means - // unbounded - if (v->ev ()->u.ulval == 0) - { - this->unbounded_ = I_TRUE; - } - else - { - this->unbounded_ = I_FALSE; - } - - this->size_type (be_decl::VARIABLE); // a sequence data type is always - // VARIABLE -} - -idl_bool -be_sequence::unbounded (void) const -{ - return this->unbounded_; -} - -// helper to create_name -char * -be_sequence::gen_name (void) -{ - char namebuf [NAMEBUFSIZE]; - be_type *bt; // base type; - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); // reset the buffer - // retrieve the base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_name - " - "bad base type\n"), - 0); - } - if (bt->node_type () == AST_Decl::NT_sequence) - { - // our base type is an anonymous sequence - be_sequence *seq; - seq = be_sequence::narrow_from_decl (bt); - if (!seq) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_name - " - "error converting base type to sequence\n"), - 0); - } - seq->set_defined_in (this); // set ourselves as its parent - this->fe_add_sequence (seq); // add the child to our scope - ACE_OS::sprintf (namebuf, "_tao_seq_%s", seq->gen_name ()); - } - else - { - ACE_OS::sprintf (namebuf, "_tao_seq_%s", bt->local_name ()->get_string ()); - } - // append the size (if any) - if (!this->unbounded_) - { - ACE_OS::sprintf (namebuf, "%s_%d", namebuf, this->max_size ()->ev - ()->u.ulval); - } - return ACE_OS::strdup (namebuf); -} - -// create a name for ourselves -int -be_sequence::create_name (be_typedef *node) -{ - static char namebuf [NAMEBUFSIZE]; - UTL_ScopedName *n = NULL; - be_decl *scope; // scope in which we are defined - - // if there is a typedef node, we use its name as our name - if (node) - { - n = (UTL_ScopedName *)node->name ()->copy (); - this->set_name (n); // set our name - } - else - { - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); // reset the buffer - ACE_OS::strcpy (namebuf, this->gen_name ()); // generate a local name - - // now see if we have a fully scoped name and if so, generate one - scope = be_scope::narrow_from_scope (this->defined_in ())->decl (); - if (scope) - { - // make a copy of the enclosing scope's name - n = (UTL_ScopedName *)scope->name ()->copy () ; - - // add our local name as the last component - n->nconc (new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, - 0, I_FALSE), - NULL)); - // set the fully scoped name - this->set_name (n); - } - else - { - // We better be not here because we must be inside some scope, - // atleast the ROOT scope. - return -1; - } - } - return 0; -} - -// Does this sequence have a managed type sequence element? -be_sequence::MANAGED_TYPE -be_sequence::managed_type (void) -{ - if (this->mt_ == be_sequence::MNG_UNKNOWN) // not calculated yet - { - be_type *bt, *prim_type; // base types - - bt = be_type::narrow_from_decl (this->base_type ()); - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - prim_type = t->primitive_base_type (); - } - else - prim_type = bt; - - // determine if we need a managed type and which one - switch (prim_type->node_type ()) - { - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - this->mt_ = be_sequence::MNG_OBJREF; - break; - case AST_Decl::NT_string: - this->mt_ = be_sequence::MNG_STRING; - break; - case AST_Decl::NT_pre_defined: - { - be_predefined_type *bpd = be_predefined_type::narrow_from_decl - (prim_type); - if (bpd->pt () == AST_PredefinedType::PT_pseudo) - { - this->mt_ = be_sequence::MNG_PSEUDO; - } - else - { - this->mt_ = be_sequence::MNG_NONE; - } - } - break; - default: - this->mt_ = be_sequence::MNG_NONE; - } // end of switch - } - return this->mt_; -} - -// generate typecode. -// Typecode for sequences comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_sequence::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_sequence, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description - -int -be_sequence::gen_encapsulation (void) -{ - TAO_OutStream *os; // output stream - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_type *bt; // base type - - os = cg->client_stubs (); - os->incr_indent (); - - *os << "TAO_ENCAP_BYTE_ORDER, // byte order\n"; - - // emit typecode of element type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt || (bt->gen_typecode () == -1)) - { - ACE_ERROR ((LM_ERROR, "be_sequence::gen_typecode - bad base type\n")); - return -1; - } - - // emit the length - os->decr_indent (); - *os << this->max_size () << ",\n"; - return 0; -} - -// compute typecode size -long -be_sequence::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -long -be_sequence::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; // base type - - this->encap_len_ = 4; // holds the byte order flag - // add the encapsulation length of our base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, - "be_sequence::tc_encap_len - bad base type\n")); - return 0; - } - this->encap_len_ += bt->tc_size (); - this->encap_len_ += 4; // to hold the max size - - } - return this->encap_len_; -} - -/* - * Add this be_sequence to the locally defined types in this scope - */ -AST_Sequence * -be_sequence::fe_add_sequence (AST_Sequence *t) -{ - if (t == NULL) - return NULL; - - this->add_to_local_types(t); - return t; -} - -// overridden method -be_decl * -be_sequence::decl (void) -{ - return this; -} - -int -be_sequence::accept (be_visitor *visitor) -{ - return visitor->visit_sequence (this); -} - - -const char * -be_sequence::instance_name () -{ - static char namebuf[NAMEBUFSIZE]; - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - - be_type *bt; - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_DEBUG ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_instantiate_name - " - "Bad element type\n")); - return namebuf; - } - - // generate the class name - - // the base type after removing all the aliases - be_type *prim_type = bt; - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - prim_type = t->primitive_base_type (); - } - - // generate the appropriate sequence type - switch (this->managed_type ()) - { - case be_sequence::MNG_PSEUDO: - case be_sequence::MNG_OBJREF: - if (this->unbounded ()) - ACE_OS::sprintf (namebuf, - "_TAO_Unbounded_Object_Sequence_%s", - this->flatname()); - else - ACE_OS::sprintf (namebuf, - "_TAO_Bounded_Object_Sequence_%s_%d", - this->flatname(), - this->max_size ()->ev()->u.ulval); - break; - case be_sequence::MNG_STRING: // sequence of strings - if (this->unbounded ()) - ACE_OS::sprintf (namebuf, - "TAO_Unbounded_String_Sequence"); - else - ACE_OS::sprintf (namebuf, - "_TAO_Bounded_String_Sequence_%s", - this->flatname()); - break; - default: // not a managed type - if (this->unbounded ()) - { - // TAO provides extensions for octet sequences, first find out - // if the base type is an octet (or an alias for octet) - be_predefined_type *predef = - be_predefined_type::narrow_from_decl (prim_type); - if (predef != 0 && - predef->pt() == AST_PredefinedType::PT_octet) - ACE_OS::sprintf (namebuf, - "TAO_Unbounded_Sequence"); - else - ACE_OS::sprintf (namebuf, - "_TAO_Unbounded_Sequence_%s", - this->flatname()); - // or prim_type->flatname ()); - // ACE_DEBUG ((LM_DEBUG, "testing.... %d, %d = <%s>\n", - // predef, predef->pt (), namebuf)); - } - else - ACE_OS::sprintf (namebuf, - "_TAO_Bounded_Sequence_%s_%d", - this->flatname(), - //prim_type->flatname (), - this->max_size()->ev()->u.ulval); - break; - } - - return namebuf; -} - - -const char * -be_sequence::object_manager_name () -{ - static char namebuf[NAMEBUFSIZE]; - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - - be_type *bt; - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_DEBUG ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_instantiate_name - " - "Bad element type\n")); - return namebuf; - } - - be_scope * bs = be_scope::narrow_from_scope (this->defined_in()); - - if (!bs) - { - ACE_DEBUG ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_instantiate_name - " - "Bad element type\n")); - return namebuf; - } - - ACE_OS::sprintf (namebuf, - "_TAO_Object_Manager_%s_%s", - bs->decl()->flatname(), - bt->flatname()); - - - return namebuf; -} - - -// Narrowing -IMPL_NARROW_METHODS3 (be_sequence, AST_Sequence, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_sequence) diff --git a/TAO/TAO_IDL/be/be_string.cpp b/TAO/TAO_IDL/be/be_string.cpp deleted file mode 100644 index ba4a3c87277..00000000000 --- a/TAO/TAO_IDL/be/be_string.cpp +++ /dev/null @@ -1,122 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_string.cpp -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_string, "$Id$") - - -/* - * BE_String - */ -be_string::be_string (void) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_string::be_string (AST_Expression *v) - : AST_String (v), - AST_Decl (AST_Decl::NT_string, - new UTL_ScopedName(new Identifier("string", 1, 0, I_FALSE), - NULL), - NULL) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -be_string::be_string (AST_Expression *v, long wide) - : AST_String (v, wide), - AST_Decl (AST_Decl::NT_string, - wide == 1 - ? new UTL_ScopedName(new Identifier("string",1,0,I_FALSE), - NULL) - : new UTL_ScopedName(new Identifier("wstring_t", - 1, - 0, - I_FALSE), - NULL), - NULL) -{ - this->size_type (be_decl::VARIABLE); // always the case -} - -// overriden method -void -be_string::compute_tc_name (void) -{ - // start with the head as the CORBA namespace - this->tc_name_ = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, I_FALSE), - NULL); - - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_string", 1, 0, - I_FALSE), NULL)); -} - -int -be_string::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from the current indentation level - // emit the enumeration - *cs << "CORBA::tk_string, " << nl; - *cs << this->max_size () << ", // string length\n"; - return 0; -} - -// compute typecode size -long -be_string::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing string length - return 4 + 4; -} - -int -be_string::gen_encapsulation (void) -{ - return 0; -} - -long -be_string::tc_encap_len (void) -{ - if (this->encap_len_ == -1) - { - this->encap_len_ = 0; // no encapsulation - } - return this->encap_len_; -} - -int -be_string::accept (be_visitor *visitor) -{ - return visitor->visit_string (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_string, AST_String, be_type) -IMPL_NARROW_FROM_DECL (be_string) diff --git a/TAO/TAO_IDL/be/be_structure.cpp b/TAO/TAO_IDL/be/be_structure.cpp deleted file mode 100644 index 9530cb1e279..00000000000 --- a/TAO/TAO_IDL/be/be_structure.cpp +++ /dev/null @@ -1,720 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_structure.cpp -// -// = DESCRIPTION -// Extension of class AST_Structure that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_structure, "$Id$") - - -/* - * BE_Structure - */ -be_structure::be_structure (void) -{ -} - -be_structure::be_structure (UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (AST_Decl::NT_struct, n, p), - UTL_Scope (AST_Decl::NT_struct), - member_count_ (-1) -{ -} - -// compute total number of members -int -be_structure::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - this->member_count_++; - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_structure::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - -// generate the _var definition for ourself -int -be_structure::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr - *ch << namebuf << " (" << local_name () << " *);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - *ch << local_name () << " *operator-> (void);" << nl; - *ch << "const " << local_name () << " *operator-> (void) const;" << nl; - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << " &() const;" << nl; - *ch << "operator " << local_name () << " &();" << nl; - *ch << "operator " << local_name () << " &() const;" << nl; - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - if (this->size_type () == be_decl::FIXED) - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " &out (void);" << nl; - *ch << local_name () << " _retn (void);" << nl; - } - else - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " *&out (void);" << nl; - *ch << local_name () << " *_retn (void);" << nl; - } - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << " *ptr (void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *ptr_;\n"; - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_structure::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (0)" << nl; - *ci << "{}\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (p.ptr_)" << nl; - *ci << " this->ptr_ = new " << this->name () << "(*p.ptr_);" << nl; - *ci << "else" << nl; - *ci << " this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from a pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = new " << this->name () << " (*p.ptr_);\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two arrow operators - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - 3 cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - " &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() const// cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << name () << " &" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the out is handled differently based on our size type - ci->indent (); - if (this->size_type () == be_decl::VARIABLE) - { - *ci << "// mapping for variable size " << nl; - *ci << "ACE_INLINE " << name () << " *&" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << " *tmp = this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return tmp;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - else - { - *ci << "// mapping for fixed size " << nl; - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - return 0; -} - -// generate the _out definition -int -be_structure::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << " *&);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (const " << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // assignment - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // operator () - *ch << "operator " << local_name () << " *&();" << nl; - // ptr fn - *ch << local_name () << " *&ptr (void);" << nl; - // operator -> - *ch << local_name () << " *operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *&ptr_;" << nl; - *ch << "// assignment from T_var not allowed" << nl; - *ch << "void operator= (const " << local_name () << "_var &);\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_structure::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *&p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (ACE_const_cast (" << fname << "&,p).ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = ACE_const_cast (" << fname << "&,p).ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - " *&() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *&" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator -> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - - return 0; -} - -// generate typecode. -// Typecode for structures comprises the enumerated value followed by the -// encapsulation of the parameters - -int -be_structure::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_struct, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - cs->incr_indent (0); - if (this->gen_encapsulation () == -1) - { - return -1; - } - cs->decr_indent (); - return 0; -} - -// generate encapsulation -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description -int -be_structure::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_structure: cannot generate typecode for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_structure::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -// compute encapsulation length -long -be_structure::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_structure::compute_size_type (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - // our sizetype depends on the sizetype of our members. Although - // previous value of sizetype may get overwritten, we are - // guaranteed by the "size_type" call that once the value reached - // be_decl::VARIABLE, nothing else can overwrite it. - this->size_type (bd->size_type ()); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l) be_structure::compute_size_type - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int -be_structure::accept (be_visitor *visitor) -{ - return visitor->visit_structure (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_structure, AST_Structure, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_structure) -IMPL_NARROW_FROM_SCOPE (be_structure) diff --git a/TAO/TAO_IDL/be/be_sunsoft.cpp b/TAO/TAO_IDL/be/be_sunsoft.cpp deleted file mode 100644 index b6c5137f543..00000000000 --- a/TAO/TAO_IDL/be/be_sunsoft.cpp +++ /dev/null @@ -1,116 +0,0 @@ -// $Id$ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_sunsoft.h" - -ACE_RCSID(be, be_sunsoft, "$Id$") - - -TAO_SunSoft_OutStream::TAO_SunSoft_OutStream (void) - : TAO_OutStream () -{ -} - -TAO_SunSoft_OutStream::~TAO_SunSoft_OutStream (void) -{ -} - -TAO_OutStream & -TAO_SunSoft_OutStream::print (Identifier *id) -{ - ACE_OS::fprintf (this->fp_, id->get_string ()); - return *this; -} - -TAO_OutStream & -TAO_SunSoft_OutStream::print (UTL_IdList *idl) -{ - UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator (idl); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done ())) - { - if (!first) - *this << "::"; - else if (second) - first = second = I_FALSE; - // print the identifier - *this << i->item (); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - // does not start with a "" - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } - return *this; -} - -TAO_OutStream& -TAO_SunSoft_OutStream::print (AST_Expression *expr) -{ - AST_Expression::AST_ExprValue *ev = expr->ev (); - - if (ev) - { - switch (ev->et) - { - case AST_Expression::EV_short: - this->TAO_OutStream::print ("%hd", ev->u.sval); - break; - case AST_Expression::EV_ushort: - this->TAO_OutStream::print ("%hu", ev->u.usval); - break; - case AST_Expression::EV_long: - this->TAO_OutStream::print ("%ld", ev->u.lval); - break; - case AST_Expression::EV_ulong: - this->TAO_OutStream::print ("%ld", ev->u.ulval); - break; - case AST_Expression::EV_longlong: - break; - case AST_Expression::EV_ulonglong: - break; - case AST_Expression::EV_float: - this->TAO_OutStream::print ("%f", ev->u.fval); - break; - case AST_Expression::EV_double: - this->TAO_OutStream::print ("%f", ev->u.dval); - break; - case AST_Expression::EV_longdouble: - break; - case AST_Expression::EV_char: - if (isprint (ev->u.cval)) - this->TAO_OutStream::print ("'%c'", ev->u.cval); - else - this->TAO_OutStream::print ("'\\x%x'", ev->u.cval); - break; - case AST_Expression::EV_wchar: - break; - case AST_Expression::EV_octet: - this->TAO_OutStream::print ("%c", ev->u.oval); - break; - case AST_Expression::EV_bool: - this->TAO_OutStream::print ("%ld", ev->u.bval); - break; - case AST_Expression::EV_string: - this->TAO_OutStream::print ("\"%s\"", ev->u.strval->get_string ()); - break; - case AST_Expression::EV_wstring: - break; - default: - break; - } - } - else // - { - // XXXASG: need to add code here - } - return *this; -} diff --git a/TAO/TAO_IDL/be/be_type.cpp b/TAO/TAO_IDL/be/be_type.cpp deleted file mode 100644 index 54b25f68707..00000000000 --- a/TAO/TAO_IDL/be/be_type.cpp +++ /dev/null @@ -1,283 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_type.cpp -// -// = DESCRIPTION -// Extension of class AST_Type that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_type, "$Id$") - - -/* - * BE_Type - */ - -be_type::be_type (void) - : tc_name_ (0), - type_name_ (0), - nested_type_name_ (0) -{ -} - -be_type::be_type (AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Decl (nt, n, p), - tc_name_ (0), - type_name_ (0), - nested_type_name_ (0) -{ -} - -be_type::~be_type (void) -{ - if (this->nested_type_name_ != 0) - { - delete[] this->nested_type_name_; - this->nested_type_name_ = 0; - } -} - -// compute the typecode name. The idea is to use the fully scoped name, -// however, prepend a _tc_ to the last component. A slightly different approach -// is required of the predefined types. Hence this method is overridden for -// predefined types. - -void -be_type::compute_tc_name (void) -{ - static char namebuf [NAMEBUFSIZE]; - UTL_ScopedName *n; - - this->tc_name_ = NULL; - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - n = this->name (); - while (n->tail () != NULL) - { - if (!this->tc_name_) - { - // does not exist - this->tc_name_ = new UTL_ScopedName (n->head (), NULL); - } - else - { - this->tc_name_->nconc (new UTL_ScopedName (n->head (), NULL)); - } - n = (UTL_ScopedName *)n->tail (); - } - ACE_OS::sprintf (namebuf, "_tc_%s", n->last_component ()->get_string ()); - if (!this->tc_name_) - { - // does not exist - this->tc_name_ = new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, 0, I_FALSE), NULL); - } - else - { - this->tc_name_->nconc (new UTL_ScopedName (new Identifier (ACE_OS::strdup - (namebuf), 1, - 0, I_FALSE), NULL)); - } - return; -} - -// retrieve typecode name -UTL_ScopedName * -be_type::tc_name (void) -{ - if (!this->tc_name_) - compute_tc_name (); - - return this->tc_name_; -} - -// XXXASG - This code works. However, whether we should generate the -// ACE_NESTED_CLASS macro or not should be based on an option to the -// compiler. In this version, we choose to generate a relative path. - -// return the type name using the ACE_NESTED_CLASS macro -const char * -be_type::nested_type_name (be_decl *use_scope, const char *suffix) -{ - // some compilers do not like generating a fully scoped name for a type that - // was defined in the same enclosing scope in which it was defined. For such, - // we emit a macro defined in the ACE library. - // - - // The tricky part here is that it is not enough to check if the - // typename we are using was defined in the current scope. But we - // need to ensure that it was not defined in any of our ancestor - // scopes as well. If that is the case, then we can generate a fully - // scoped name for that type, else we use the ACE_NESTED_CLASS macro - - // thus we need some sort of relative name to be generated - - if (this->nested_type_name_ == 0) - ACE_NEW_RETURN (this->nested_type_name_, char[NAMEBUFSIZE], 0); - - be_decl *def_scope = 0; // our defining scope - char // hold the fully scoped name - def_name [NAMEBUFSIZE], - use_name [NAMEBUFSIZE]; - char // these point to the curr and next component in the scope - *def_curr = def_name, - *def_next, - *use_curr = use_name, - *use_next; - - ACE_OS::memset (this->nested_type_name_, '\0', NAMEBUFSIZE); - ACE_OS::memset (def_name, '\0', NAMEBUFSIZE); - ACE_OS::memset (use_name, '\0', NAMEBUFSIZE); - - // traverse every component of the def_scope and use_scope beginning at the - // root and proceeding towards the leaf trying to see if the components - // match. Continue until there is a match and keep accumulating the path - // traversed. This forms the first argument to the ACE_NESTED_CLASS - // macro. Whenever there is no match, the remaining components of the - // def_scope form the second argument - - def_scope = ((this->defined_in ())? - (be_scope::narrow_from_scope (this->defined_in ())->decl ()): - 0); - - if (def_scope && def_scope->node_type () != AST_Decl::NT_root && use_scope) - // if both scopes exist and that we are not in the root scope - { - ACE_OS::strcpy (def_name, def_scope->fullname ()); - ACE_OS::strcpy (use_name, use_scope->fullname ()); - - // find the first occurrence of a :: and advance the next pointers accordingly - def_next = ACE_OS::strstr (def_curr, "::"); - use_next = ACE_OS::strstr (use_curr, "::"); - - if (def_next) - *def_next = 0; - - if (use_next) - *use_next = 0; - - if (!ACE_OS::strcmp (def_curr, use_curr)) - { - // initial prefix matches i.e., they have a common root - // start by initializing the macro - - //@@ ACE_OS::sprintf (this->nested_type_name_, "ACE_NESTED_CLASS ("); - //@@ ACE_OS::strcat (this->nested_type_name_, def_curr); // initialize the first argument - - def_curr = (def_next ? (def_next+2) : 0); // skip the :: - use_curr = (use_next ? (use_next+2) : 0); // skip the :: - - while (def_curr && use_curr) - { - // find the first occurrence of a :: and advance the next pointers accordingly - def_next = ACE_OS::strstr (def_curr, "::"); - use_next = ACE_OS::strstr (use_curr, "::"); - - if (def_next) - *def_next = 0; - - if (use_next) - *use_next = 0; - - if (!ACE_OS::strcmp (def_curr, use_curr)) - { - // they have same prefix, append to arg1 - //@@ ACE_OS::strcat (this->nested_type_name_, "::"); - //@@ ACE_OS::strcat (this->nested_type_name_, def_curr); - def_curr = (def_next ? (def_next+2) : 0); // skip the :: - use_curr = (use_next ? (use_next+2) : 0); // skip the :: - } - else - { - // no match. This is the end of the first argument. Get out - // of the loop as no more comparisons are necessary - break; - } - } - - // start the 2nd argument of the macro - //@@ ACE_OS::strcat (this->nested_type_name_, ", "); - - // copy the remaining def_name (if any left) - if (def_curr) - ACE_OS::strcat (this->nested_type_name_, def_curr); - - // append our local name - ACE_OS::strcat (this->nested_type_name_, this->local_name ()->get_string ()); - if (suffix) - ACE_OS::strcat (this->nested_type_name_, suffix); - //@@ ACE_OS::strcat (this->nested_type_name_, ")"); - return this->nested_type_name_; - } // end of if the root prefixes match - } - - // otherwise just emit our fullname - ACE_OS::sprintf (this->nested_type_name_, this->fullname ()); - if (suffix) - ACE_OS::strcat (this->nested_type_name_, suffix); - - return this->nested_type_name_; -} - -// ***************************** -// CODE GENERATION -// ***************************** - -// generate the _var definition for ourself -int -be_type::gen_var_defn (void) -{ - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_type::gen_var_impl (void) -{ - return 0; -} - -// generate the _out definition -int -be_type::gen_out_defn (void) -{ - return 0; -} - -int -be_type::gen_out_impl (void) -{ - return 0; -} - -AST_Decl::NodeType be_type::base_node_type (void) const -{ - return ACE_const_cast(be_type*, this)->node_type (); -} - -int -be_type::accept (be_visitor *visitor) -{ - return visitor->visit_type (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_type, AST_Type, be_decl) -IMPL_NARROW_FROM_DECL (be_type) diff --git a/TAO/TAO_IDL/be/be_typedef.cpp b/TAO/TAO_IDL/be/be_typedef.cpp deleted file mode 100644 index 0fa4f180967..00000000000 --- a/TAO/TAO_IDL/be/be_typedef.cpp +++ /dev/null @@ -1,190 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_typedef.cpp -// -// = DESCRIPTION -// Extension of class AST_Typedef that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_typedef, "$Id$") - - -be_typedef::be_typedef (void) -{ -} - -be_typedef::be_typedef (AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Typedef (bt, n, p), - AST_Decl (AST_Decl::NT_typedef, n, p) -{ -} - -// given a typedef node, traverse the chain of base types until they are no -// more typedefs, and return that most primitive base type -be_type * -be_typedef::primitive_base_type (void) -{ - be_type *d; - - d = this; - while (d && d->node_type () == AST_Decl::NT_typedef) - { - be_typedef *temp; // temporary - - temp = be_typedef::narrow_from_decl (d); - d = be_type::narrow_from_decl (temp->base_type ()); - } - return d; -} - -int -be_typedef::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_alias, // typecode kind for typedefs" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - cs->incr_indent (0); - if (this->gen_encapsulation () == -1) - { - return -1; - } - - cs->decr_indent (0); - return 0; -} - -// generate encapsulation. A typedef is an alias to its base type -int -be_typedef::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - be_type *bt; // base type - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - - // generate typecode for the base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt || (bt->gen_typecode () == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_typedef::gen_encapsulation failed for base type\n"), - -1); - } - return 0; -} - -long -be_typedef::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -long -be_typedef::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - be_type *bt; // base type - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); - - // add the encapsulation length of our base type - bt = be_type::narrow_from_decl (this->base_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, - "be_typedef::tc_encap_len - bad base type\n")); - return 0; - } - this->encap_len_ += bt->tc_size (); - - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_typedef::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->base_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_typedef::compute_size_type - " - "bad base type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); - return 0; -} - -AST_Decl::NodeType be_typedef::base_node_type (void) const -{ - be_type *base = be_type::narrow_from_decl (ACE_const_cast(be_typedef*, this)->base_type ()); - return base->base_node_type (); -} - -int -be_typedef::accept (be_visitor *visitor) -{ - return visitor->visit_typedef (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_typedef, AST_Typedef, be_type) -IMPL_NARROW_FROM_DECL (be_typedef) diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp deleted file mode 100644 index 18f5e37e60c..00000000000 --- a/TAO/TAO_IDL/be/be_union.cpp +++ /dev/null @@ -1,788 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union.cpp -// -// = DESCRIPTION -// Extension of class AST_Union that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_union, "$Id$") - - -/* - * BE_Union - */ - -be_union::be_union (void) -{ -} - -be_union::be_union (AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p) - : AST_Union (dt, n, p), - AST_Structure (AST_Decl::NT_union, n, p), - AST_Decl (AST_Decl::NT_union, n, p), - UTL_Scope (AST_Decl::NT_union), - member_count_ (-1), - default_index_ (-2) -{ -} - -// compute total number of members -int -be_union::compute_member_count (void) -{ - UTL_ScopeActiveIterator *si; // iterator - - this->member_count_ = 0; - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - this->member_count_++; - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// compute total number of members -int -be_union::compute_default_index (void) -{ - UTL_ScopeActiveIterator *si; // iterator - AST_Decl *d; // temp node - be_union_branch *bub; // union branch node - int i = 0; // counter - - this->default_index_ = -1; // if not used at all, this is the value it will - // take - - // if there are elements in this scope - if (this->nmembers () > 0) - { - // instantiate a scope iterator. - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - if (!d->imported ()) - { - bub = be_union_branch::narrow_from_decl (d); - if (bub->label ()->label_kind () == AST_UnionLabel::UL_default) - this->default_index_ = i; // zero based indexing - i++; - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -// return the member count -int -be_union::member_count (void) -{ - if (this->member_count_ == -1) - this->compute_member_count (); - - return this->member_count_; -} - -// return the default_index -int -be_union::default_index (void) -{ - if (this->default_index_ == -2) - this->compute_default_index (); - - return this->default_index_; -} - -// generate typecode. -// Typecode for union comprises the enumerated value followed by the -// encapsulation of the parameters - -// generate the _var definition for ourself -int -be_union::gen_var_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // names - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", this->local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - ch->indent (); // start with whatever was our current indent level - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - // default constr - *ch << namebuf << " (void); // default constructor" << nl; - // constr - *ch << namebuf << " (" << local_name () << " *);" << nl; - // copy constructor - *ch << namebuf << " (const " << namebuf << - " &); // copy constructor" << nl; - // destructor - *ch << "~" << namebuf << " (void); // destructor" << nl; - *ch << nl; - // assignment operator from a pointer - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // assignment from _var - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - - // arrow operator - *ch << local_name () << " *operator-> (void);" << nl; - *ch << "const " << local_name () << " *operator-> (void) const;" << nl; - *ch << nl; - - // other extra types (cast operators, [] operator, and others) - *ch << "operator const " << local_name () << " &() const;" << nl; - *ch << "operator " << local_name () << " &();" << nl; - *ch << "operator " << local_name () << " &() const;" << nl; - *ch << "// in, inout, out, _retn " << nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - if (this->size_type () == be_decl::FIXED) - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " &out (void);" << nl; - *ch << local_name () << " _retn (void);" << nl; - } - else - { - *ch << "const " << local_name () << " &in (void) const;" << nl; - *ch << local_name () << " &inout (void);" << nl; - *ch << local_name () << " *&out (void);" << nl; - *ch << local_name () << " *_retn (void);" << nl; - } - - // generate an additional member function that returns the underlying pointer - *ch << local_name () << " *ptr(void) const;\n"; - - *ch << "\n"; - ch->decr_indent (); - - // generate the private section - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *ptr_;\n"; - ch->decr_indent (); - *ch << "};\n\n"; - - return 0; -} - -// implementation of the _var class. All of these get generated in the inline -// file -int -be_union::gen_var_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // default constr - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << - " (void) // default constructor" << nl; - *ci << " " << ": ptr_ (0)" << nl; - *ci << "{}\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (p.ptr_)" << nl; - *ci << " this->ptr_ = new " << this->name () << "(*p.ptr_);" << nl; - *ci << "else" << nl; - *ci << " this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // destructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::~" << lname << " (void) // destructor" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from a pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment operator from _var - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "if (this != &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = new " << this->name () << " (*p.ptr_);\n"; - ci->decr_indent (); - *ci << "}" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // two arrow operators - ci->indent (); - *ci << "ACE_INLINE const " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - 3 cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator const " << name () << - " &() const // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() // cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << name () << " &() const// cast " << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // in, inout, out, and _retn - ci->indent (); - *ci << "ACE_INLINE const " << name () << " &" << nl; - *ci << fname << "::in (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::inout (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the out is handled differently based on our size type - ci->indent (); - if (this->size_type () == be_decl::VARIABLE) - { - *ci << "// mapping for variable size " << nl; - *ci << "ACE_INLINE " << name () << " *&" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << this->name () << " *tmp = this->ptr_;" << nl; - *ci << "this->ptr_ = 0;" << nl; - *ci << "return tmp;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - else - { - *ci << "// mapping for fixed size " << nl; - *ci << "ACE_INLINE " << name () << " &" << nl; - *ci << fname << "::out (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - ci->indent (); - *ci << "ACE_INLINE " << name () << nl; - *ci << fname << "::_retn (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return *this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // the additional ptr () member function - ci->indent (); - *ci << "ACE_INLINE " << name () << " *" << nl; - *ci << fname << "::ptr (void) const" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - } - - return 0; -} - -// generate the _out definition -int -be_union::gen_out_defn (void) -{ - TAO_OutStream *ch; // output stream - TAO_NL nl; // end line - char namebuf [NAMEBUFSIZE]; // to hold the _out name - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ch = cg->client_header (); - - // generate the out definition (always in the client header) - ch->indent (); // start with whatever was our current indent level - - *ch << "class " << idl_global->export_macro () - << " " << namebuf << nl; - *ch << "{" << nl; - *ch << "public:\n"; - ch->incr_indent (); - - // No default constructor - - // constructor from a pointer - *ch << namebuf << " (" << local_name () << " *&);" << nl; - // constructor from a _var & - *ch << namebuf << " (" << local_name () << "_var &);" << nl; - // constructor from a _out & - *ch << namebuf << " (const " << namebuf << " &);" << nl; - // assignment operator from a _out & - *ch << namebuf << " &operator= (const " << namebuf << " &);" << nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // assignment - *ch << namebuf << " &operator= (" << local_name () << " *);" << nl; - // operator () - *ch << "operator " << local_name () << " *&();" << nl; - // ptr fn - *ch << local_name () << " *&ptr (void);" << nl; - // operator -> - *ch << local_name () << " *operator-> (void);" << nl; - - *ch << "\n"; - ch->decr_indent (); - *ch << "private:\n"; - ch->incr_indent (); - *ch << local_name () << " *&ptr_;" << nl; - *ch << "// assignment from T_var not allowed" << nl; - *ch << "void operator= (const " << local_name () << "_var &);\n"; - - ch->decr_indent (); - *ch << "};\n\n"; - return 0; -} - -int -be_union::gen_out_impl (void) -{ - TAO_OutStream *ci; // output stream - TAO_NL nl; // end line - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", this->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", local_name ()->get_string ()); - - // retrieve a singleton instance of the code generator - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - ci = cg->client_inline (); - - // generate the var implementation in the inline file - - ci->indent (); // start with whatever was our current indent level - - *ci << "// *************************************************************" - << nl; - *ci << "// Inline operations for class " << fname << nl; - *ci << "// *************************************************************\n\n"; - - // constr from a pointer - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << name () << " *&p)" << nl; - *ci << " : ptr_ (p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // constructor from _var & - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (" << this->name () << - "_var &p) // constructor from _var" << nl; - *ci << " : ptr_ (p.out ())" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "delete this->ptr_;" << nl; - *ci << "this->ptr_ = 0;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // copy constructor - ci->indent (); - *ci << "ACE_INLINE" << nl; - *ci << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << nl; - *ci << " : ptr_ (ACE_const_cast (" << fname << "&,p).ptr_)" << nl; - *ci << "{}\n\n"; - - // assignment operator from _out & - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (const " << fname << - " &p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = ACE_const_cast (" << fname << "&,p).ptr_;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from pointer - ci->indent (); - *ci << "ACE_INLINE " << fname << " &" << nl; - *ci << fname << "::operator= (" << this->name () << - " *p)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "this->ptr_ = p;" << nl; - *ci << "return *this;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // other extra methods - cast operator () - ci->indent (); - *ci << "ACE_INLINE " << nl; - *ci << fname << "::operator " << this->name () << - " *&() // cast" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // ptr function - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *&" << nl; - *ci << fname << "::ptr (void) // ptr" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - // operator -> - ci->indent (); - *ci << "ACE_INLINE " << this->name () << " *" << nl; - *ci << fname << "::operator-> (void)" << nl; - *ci << "{\n"; - ci->incr_indent (); - *ci << "return this->ptr_;\n"; - ci->decr_indent (); - *ci << "}\n\n"; - - - return 0; -} - -int -be_union::gen_typecode (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "CORBA::tk_union, // typecode kind" << nl; - *cs << this->tc_encap_len () << ", // encapsulation length\n"; - // now emit the encapsulation - return this->gen_encapsulation (); -} - -// generate encapsulation. -// An encapsulation for ourselves will be necessary when we are part of some -// other IDL type and a typecode for that other type is being generated. This -// will comprise our typecode kind. IDL types with parameters will additionally -// have the encapsulation length and the entire typecode description - -int -be_union::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - be_type *discrim; - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - *cs << "TAO_ENCAP_BYTE_ORDER, // byte order" << nl; - // generate repoID - *cs << (ACE_OS::strlen (this->repoID ())+1) << ", "; - (void)this->tc_name2long (this->repoID (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // repository ID = " << this->repoID () << nl; - // generate name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << ",\n"; - - // generate typecode for discriminant - discrim = be_type::narrow_from_decl (this->disc_type ()); - if (discrim->gen_typecode () == -1) - { - ACE_ERROR ((LM_ERROR, "be_union: cannot generate typecode for discriminant\n")); - return -1; - } - - // generate the default used flag - cs->indent (); - *cs << this->default_index () << ", // default used index" << nl; - // generate the member count - *cs << this->member_count () << ", // member count\n"; - cs->incr_indent (0); - // hand over to the scope to generate the typecode for elements - if (be_scope::gen_encapsulation () == -1) - { - ACE_ERROR ((LM_ERROR, "be_union: cannot generate code for members\n")); - return -1; - } - cs->decr_indent (0); - return 0; -} - -// compute typecode size -long -be_union::tc_size (void) -{ - // 4 bytes for enumeration, 4 bytes for storing encap length val, followed by the - // actual encapsulation length - return 4 + 4 + this->tc_encap_len (); -} - -long -be_union::tc_encap_len (void) -{ - if (this->encap_len_ == -1) // not computed yet - { - long slen; - be_type *discrim; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (slen); - - this->encap_len_ = 4; // holds the byte order flag - - this->encap_len_ += this->repoID_encap_len (); // for repoID - - // do the same thing for the local name - this->encap_len_ += this->name_encap_len (); // for name - - // add encapsulation size of discriminant typecode - discrim = be_type::narrow_from_decl (this->disc_type ()); - this->encap_len_ += discrim->tc_size (); - - this->encap_len_ += 4; // to hold the "default used" flag - this->encap_len_ += 4; // to hold the member count - - // compute encap length for members - this->encap_len_ += be_scope::tc_encap_len (); - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_union::compute_size_type (void) -{ - UTL_ScopeActiveIterator *si; - AST_Decl *d; - be_decl *bd; - - if (this->nmembers () > 0) - { - // if there are elements in this scope - - si = new UTL_ScopeActiveIterator (this, UTL_Scope::IK_decls); - // instantiate a scope iterator. - - while (!(si->is_done ())) - { - // get the next AST decl node - d = si->item (); - bd = be_decl::narrow_from_decl (d); - if (bd != 0) - { - // our sizetype depends on the sizetype of our members. Although - // previous value of sizetype may get overwritten, we are - // guaranteed by the "size_type" call that once the value reached - // be_decl::VARIABLE, nothing else can overwrite it. - this->size_type (bd->size_type ()); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "WARNING (%N:%l) be_structure::compute_size_type - " - "narrow_from_decl returned 0\n")); - } - si->next (); - } // end of while - delete si; // free the iterator object - } - return 0; -} - -int -be_union::accept (be_visitor *visitor) -{ - return visitor->visit_union (this); -} - -// Narrowing -IMPL_NARROW_METHODS3 (be_union, AST_Union, be_scope, be_type) -IMPL_NARROW_FROM_DECL (be_union) -IMPL_NARROW_FROM_SCOPE (be_union) diff --git a/TAO/TAO_IDL/be/be_union_branch.cpp b/TAO/TAO_IDL/be/be_union_branch.cpp deleted file mode 100644 index 11a5e4ac0dc..00000000000 --- a/TAO/TAO_IDL/be/be_union_branch.cpp +++ /dev/null @@ -1,123 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union_branch.cpp -// -// = DESCRIPTION -// Extension of class AST_UnionBranch that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_union_branch, "$Id$") - - -/* - * BE_UnionBranch - */ -be_union_branch::be_union_branch (void) -{ -} - -be_union_branch::be_union_branch (AST_UnionLabel *lab, AST_Type *ft, - UTL_ScopedName *n, UTL_StrList *p) - : AST_UnionBranch (lab, ft, n, p), - AST_Field (AST_Decl::NT_union_branch, ft, n, p), - AST_Decl (AST_Decl::NT_union_branch, n, p) -{ -} - -int -be_union_branch::gen_encapsulation (void) -{ - TAO_OutStream *cs; // output stream - TAO_NL nl; // end line - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - be_type *bt; // our type node - long i, arrlen; - long *arr; // an array holding string names converted to array of longs - - cs = cg->client_stubs (); - cs->indent (); // start from whatever indentation level we were at - - // emit the case label value - *cs << this->label ()->label_val (); - *cs << ", // union case label (evaluated)" << nl; - // emit name - *cs << (ACE_OS::strlen (this->local_name ()->get_string ())+1) << ", "; - (void)this->tc_name2long(this->local_name ()->get_string (), arr, arrlen); - for (i=0; i < arrlen; i++) - { - cs->print ("ACE_NTOHL (0x%x), ", arr[i]); - } - *cs << " // name = " << this->local_name () << "\n"; - - // hand over code generation to our type node - bt = be_type::narrow_from_decl (this->field_type ()); - if (!bt) - return -1; - return bt->gen_typecode (); -} - -long -be_union_branch::tc_encap_len (void) -{ - if (this->encap_len_ == -1) - { - be_type *bt; - - this->encap_len_ = 4; // case label; - this->encap_len_ += this->name_encap_len (); // for name - bt = be_type::narrow_from_decl (this->field_type ()); - if (!bt) - { - ACE_ERROR ((LM_ERROR, "be_union_branch: bad field type\n")); - return -1; - } - this->encap_len_ += bt->tc_size (); // note that we add the typecode size - // of the type - } - return this->encap_len_; -} - -// compute the size type of the node in question -int -be_union_branch::compute_size_type (void) -{ - be_type *type = be_type::narrow_from_decl (this->field_type ()); - if (!type) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_field::compute_size_type - " - "bad field type\n"), -1); - } - - // our size type is the same as our type - this->size_type (type->size_type ()); // as a side effect will also update - // the size type of parent - return 0; -} - -int -be_union_branch::accept (be_visitor *visitor) -{ - return visitor->visit_union_branch (this); -} - -// Narrowing -IMPL_NARROW_METHODS2 (be_union_branch, AST_UnionBranch, be_decl) -IMPL_NARROW_FROM_DECL (be_union_branch) diff --git a/TAO/TAO_IDL/be/be_union_label.cpp b/TAO/TAO_IDL/be/be_union_label.cpp deleted file mode 100644 index 16b8a09bb41..00000000000 --- a/TAO/TAO_IDL/be/be_union_label.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// -// $Id$ -// -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_union_label, "$Id$") - - -/* - * BE_UnionLabel - */ -be_union_label::be_union_label() -{ -} -be_union_label::be_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *v) - : AST_UnionLabel(ul, v) -{ -} - -int -be_union_label::accept (be_visitor *visitor) -{ - return visitor->visit_union_label (this); -} - diff --git a/TAO/TAO_IDL/be/be_visitor.cpp b/TAO/TAO_IDL/be/be_visitor.cpp deleted file mode 100644 index 7230637567b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor.h -// -// = DESCRIPTION -// Abstract class for back end visitors. -// -// = NOTES -// This is not a pure abstract class -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor.h" - -ACE_RCSID(be, be_visitor, "$Id$") - - -be_visitor::be_visitor (void) -{ -} - -be_visitor::~be_visitor (void) -{ -} - -// all the visit methods. Concrete visitors will selectively override each one -int be_visitor::visit_decl (be_decl *) -{ - return 0; -} - -int be_visitor::visit_scope (be_scope *node) -{ - return 0; -} - -int be_visitor::visit_type (be_type *) -{ - return 0; -} - -int be_visitor::visit_predefined_type (be_predefined_type *) -{ - return 0; -} - -int be_visitor::visit_module (be_module *) -{ - return 0; -} - -int be_visitor::visit_interface (be_interface *) -{ - return 0; -} - -int be_visitor::visit_interface_fwd (be_interface_fwd *) -{ - return 0; -} - -int be_visitor::visit_structure (be_structure *) -{ - return 0; -} - -int be_visitor::visit_exception (be_exception *) -{ - return 0; -} - -int be_visitor::visit_expression (be_expression *) -{ - return 0; -} - -int be_visitor::visit_enum (be_enum *) -{ - return 0; -} - -int be_visitor::visit_operation (be_operation *) -{ - return 0; -} - -int be_visitor::visit_field (be_field *) -{ - return 0; -} - -int be_visitor::visit_argument (be_argument *) -{ - return 0; -} - -int be_visitor::visit_attribute (be_attribute *) -{ - return 0; -} - -int be_visitor::visit_union (be_union *) -{ - return 0; -} - -int be_visitor::visit_union_branch (be_union_branch *) -{ - return 0; -} - -int be_visitor::visit_union_label (be_union_label *) -{ - return 0; -} - -int be_visitor::visit_constant (be_constant *) -{ - return 0; -} - -int be_visitor::visit_enum_val (be_enum_val *) -{ - return 0; -} - -int be_visitor::visit_array (be_array *) -{ - return 0; -} - -int be_visitor::visit_sequence (be_sequence *) -{ - return 0; -} - -int be_visitor::visit_string (be_string *) -{ - return 0; -} - -int be_visitor::visit_typedef (be_typedef *) -{ - return 0; -} - -int be_visitor::visit_root (be_root *) -{ - return 0; -} - -int be_visitor::visit_native (be_native *) -{ - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument.cpp b/TAO/TAO_IDL/be/be_visitor_argument.cpp deleted file mode 100644 index 01a6b4266ab..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument.cpp +++ /dev/null @@ -1,39 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_args.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Argument -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -// include all the individual files -#include "be_visitor_argument/arglist.cpp" -#include "be_visitor_argument/argument.cpp" -#include "be_visitor_argument/docall_cs.cpp" -#include "be_visitor_argument/marshal_ss.cpp" -#include "be_visitor_argument/post_docall_cs.cpp" -#include "be_visitor_argument/post_marshal_ss.cpp" -#include "be_visitor_argument/post_upcall_ss.cpp" -#include "be_visitor_argument/pre_docall_cs.cpp" -#include "be_visitor_argument/pre_upcall_ss.cpp" -#include "be_visitor_argument/upcall_ss.cpp" -#include "be_visitor_argument/vardecl_ss.cpp" - -ACE_RCSID(be, be_visitor_argument, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp deleted file mode 100644 index dadb0375cb8..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp +++ /dev/null @@ -1,314 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.cpp -// -// = DESCRIPTION -// Visitor that generates the parameters in an Operation signature -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, arglist, "$Id$") - - -// ************************************************************ -// be_visitor_args_arglist for parameter list in method declarations and -// definitions -// ************************************************************ - -be_visitor_args_arglist::be_visitor_args_arglist (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_arglist::~be_visitor_args_arglist (void) -{ -} - -int be_visitor_args_arglist::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_arglist::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - os->indent (); // start with current indentation level - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_arglist::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - *os << " " << node->local_name () << ",\n"; - return 0; -} - -int be_visitor_args_arglist::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node); - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node, "_ptr"); - break; - case AST_Argument::dir_INOUT: // inout - *os << this->type_name (node, "_ptr") << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node, "_ptr"); - break; - case AST_Argument::dir_INOUT: // inout - *os << this->type_name (node, "_ptr") << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_native (be_native *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node) << " &"; - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node, "_ptr"); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node, "_ptr") << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << this->type_name (node); - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_arglist::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const char *"; - break; - case AST_Argument::dir_INOUT: - *os << "char *&"; - break; - case AST_Argument::dir_OUT: - *os << "CORBA::String_out"; - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - *os << "const " << this->type_name (node) << " &"; - break; - case AST_Argument::dir_INOUT: - *os << this->type_name (node) << " &"; - break; - case AST_Argument::dir_OUT: - *os << this->type_name (node, "_out"); - break; - } - return 0; -} - -int be_visitor_args_arglist::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_arglist::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp b/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp deleted file mode 100644 index dbd2bd18dfa..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp +++ /dev/null @@ -1,85 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument.cpp -// -// = DESCRIPTION -// generic visitor for Argument node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, argument, "$Id$") - -be_visitor_args::be_visitor_args (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_args::~be_visitor_args (void) -{ -} - -int be_visitor_args::visit_argument (be_argument *node) -{ - return -1; -} - -// helper that returns the type name either as a nested type name (for header -// files) or as a fully scoped name. In addition, we make sure that if the type -// is an alias, we use that name -const char * -be_visitor_args::type_name (be_type *node, const char *suffix) -{ - static char namebuf [NAMEBUFSIZE]; - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - - be_type *bt; // type to use - - // use the typedefed name if that is the one used in the IDL defn - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // generate the NESTED_CLASS macro i.e., a relative path name to satisfy the - // MSVC++ compiler - switch (this->ctx_->stream ()->stream_type ()) - { - case TAO_OutStream::TAO_CLI_HDR: - ACE_OS::sprintf (namebuf, "%s", bt->nested_type_name - (this->ctx_->scope (), suffix)); - break; - default: // fullname for all other cases - ACE_OS::sprintf (namebuf, "%s", bt->fullname ()); - if (suffix) - ACE_OS::strcat (namebuf, suffix); - } - - return namebuf; -} - -// helper that returns the direction type of the argument -AST_Argument::Direction -be_visitor_args::direction (void) -{ - // grab the argument node. We know that our context has stored the right - // argument node - be_argument *arg = this->ctx_->be_node_as_argument (); - - ACE_ASSERT (arg != 0); - return arg->direction (); -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/docall_cs.cpp b/TAO/TAO_IDL/be/be_visitor_argument/docall_cs.cpp deleted file mode 100644 index ec1e8366e29..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/docall_cs.cpp +++ /dev/null @@ -1,318 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// docall_cs.cpp -// -// = DESCRIPTION -// Visitor generating the code that passes arguments to the do_static_call -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, docall_cs, "$Id$") - - -// **************************************************************************** -// visitor for argument passing to do_static_call. The do_static_call -// method takes an array with pointers to each argument (the type is -// actually void*). The total number of parameters is determined by the -// "calldata" parameter that must be passed before the variable list -// starts. -// Hence we pass the address of each argument. The case for _out is a bit -// tricky where we must first retrieve the pointer, allocate memory -// and pass it to do_static_call. This is done in the -// "pre_do_static_call" processing. -// **************************************************************************** - -be_visitor_args_docall_cs::be_visitor_args_docall_cs (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_docall_cs::~be_visitor_args_docall_cs (void) -{ -} - -int be_visitor_args_docall_cs::visit_argument (be_argument *node) -{ - this->ctx_->node (node); // save the argument node - - // retrieve the type of the argument - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_docall_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - TAO_OutStream *os = this->ctx_->stream (); // get output stream - os->indent (); - *os << "*_tao_arg = "; - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_docall_cs::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - *os << "; _tao_arg++;\n"; - - return 0; -} - -int be_visitor_args_docall_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << arg->local_name (); - break; - case AST_Argument::dir_OUT: - if (node->size_type () == be_type::VARIABLE) - // pass reference to the pointer to slice - *os << "_tao_base_" << arg->local_name (); - else - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - // pass the address. Storage is already allocated - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get argument node - - os->indent (); - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "_tao_base_" << arg->local_name (); - break; - } // end switch direction - } // end of if any - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., - // CORBA::Object, - // CORBA::TypeCode - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } // end switch direction - } // end else if pseudo - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << "&" << arg->local_name (); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_docall_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - *os << "&_tao_base_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - { - // check if the size type is VARIABLE - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_base_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - } - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - { - // check if the size type is VARIABLE - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_base_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - } - break; - } - return 0; -} - -int be_visitor_args_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp deleted file mode 100644 index 53560d84047..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp +++ /dev/null @@ -1,305 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// marshal_ss.cpp -// -// = DESCRIPTION -// Visitor that generates code that passes the argument variable to the -// marshal operations. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, marshal_ss, "$Id$") - - -// ************************************************************************ -// Visitor to generate code for passing argument to the marshal/demarshal -// routines -// ************************************************************************ - -be_visitor_args_marshal_ss::be_visitor_args_marshal_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_marshal_ss::~be_visitor_args_marshal_ss (void) -{ -} - -int be_visitor_args_marshal_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_marshal_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_marshal_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_marshal_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - { - *os << "_tao_ptr_" << arg->local_name (); - } - else - { - *os << arg->local_name (); - } - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_base_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_base_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_ptr_" << arg->local_name (); - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_ptr_" << arg->local_name (); - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_marshal_ss::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "&_tao_ptr_" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "&" << arg->local_name (); - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_" << arg->local_name (); - else - *os << "&" << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_marshal_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_marshal_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/post_docall_cs.cpp b/TAO/TAO_IDL/be/be_visitor_argument/post_docall_cs.cpp deleted file mode 100644 index 426566b132d..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/post_docall_cs.cpp +++ /dev/null @@ -1,143 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_docall_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for post-processing of arguments following a -// do_static_call -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, post_docall_cs, "$Id$") - - -// ************************************************************************* -// visitor for argument to do any pre docall processing. Not all types need -// this. Only those that have an _out type need this. In addition, interfaces -// need it because we ned to convert from the interface type to the base Object -// type and vice versa. -// ************************************************************************* - -be_visitor_args_post_docall_cs::be_visitor_args_post_docall_cs -(be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_post_docall_cs::~be_visitor_args_post_docall_cs (void) -{ -} - -int -be_visitor_args_post_docall_cs::visit_argument (be_argument *node) -{ - this->ctx_->node (node); // save the argument node - - // retrieve the type of the argument - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int -be_visitor_args_post_docall_cs::visit_interface (be_interface *node) -{ - // we must narrow the out object reference to the appropriate type - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - { - os->indent (); - // assign the narrowed obj reference - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_" << arg->local_name () - << ", _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () - << ");\n"; - } - break; - } - return 0; -} - -int -be_visitor_args_post_docall_cs::visit_interface_fwd (be_interface_fwd *node) -{ - // we must narrow the out object reference to the appropriate type - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - { - os->indent (); - // assign the narrowed obj reference - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_" << arg->local_name () - << ", _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_" << arg->local_name () - << ");\n"; - } - break; - } - return 0; -} - -int -be_visitor_args_post_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp deleted file mode 100644 index b95f03d06b3..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp +++ /dev/null @@ -1,259 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_marshal_ss.cpp -// -// = DESCRIPTION -// Visitor generating code that does post-processing of arguments following -// any marshaling. This involves any cleanup. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, post_marshal_ss, "$Id$") - - -// ************************************************************************ -// visitor for doing any post-processing after the marshaling is done -// ************************************************************************ - -be_visitor_args_post_marshal_ss::be_visitor_args_post_marshal_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_post_marshal_ss::~be_visitor_args_post_marshal_ss (void) -{ -} - -int be_visitor_args_post_marshal_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_marshal_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_marshal_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_marshal_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_marshal_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/post_upcall_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/post_upcall_ss.cpp deleted file mode 100644 index fbfa25bf59c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/post_upcall_ss.cpp +++ /dev/null @@ -1,272 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_upcall_ss.cpp -// -// = DESCRIPTION -// Visitor generating code to do post-processing of arguments following an -// upcall. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, post_upcall_ss, "$Id$") - - -// ************************************************************************ -// visitor for doing any post-processing after the upcall is made -// ************************************************************************ - -be_visitor_args_post_upcall_ss::be_visitor_args_post_upcall_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_post_upcall_ss::~be_visitor_args_post_upcall_ss (void) -{ -} - -int be_visitor_args_post_upcall_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_upcall_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_upcall_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << "_tao_base_var_" << arg->local_name () - << " = CORBA::Object::_duplicate (" - << arg->local_name () << ".in ());\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".in ();\n"; - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () << " = " - << arg->local_name () << ".in ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "_tao_base_ptr_" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".in ();\n"; - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_post_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_post_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/pre_docall_cs.cpp b/TAO/TAO_IDL/be/be_visitor_argument/pre_docall_cs.cpp deleted file mode 100644 index 642892eb8a2..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/pre_docall_cs.cpp +++ /dev/null @@ -1,395 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_docall_cs.cpp -// -// = DESCRIPTION -// Visitor that generates code (if any) for pre-processing prior to call to -// do_static_call in the client stub -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, pre_docall_cs, "$Id$") - - -// ************************************************************************* -// visitor for argument to do any pre docall processing. Not all types need -// this. Only those that have an _out type need this. In addition, interfaces -// need it because we ned to convert from the interface type to the base Object -// type and vice versa. -// ************************************************************************* - -be_visitor_args_pre_docall_cs::be_visitor_args_pre_docall_cs -(be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_pre_docall_cs::~be_visitor_args_pre_docall_cs (void) -{ -} - -int -be_visitor_args_pre_docall_cs::void_return_type (void) -{ - // is the operation return type void? - be_argument *arg = this->ctx_->be_node_as_argument (); - ACE_ASSERT (arg != 0); - be_operation *op = be_operation::narrow_from_scope (arg->defined_in ()); - ACE_ASSERT (arg != 0); - - be_type *bt = be_type::narrow_from_decl (op->return_type ()); - if (bt->node_type () == AST_Decl::NT_pre_defined - && (be_predefined_type::narrow_from_decl (bt)->pt () - == AST_PredefinedType::PT_void)) - return 1; - else - return 0; -} - -int be_visitor_args_pre_docall_cs::visit_argument (be_argument *node) -{ - this->ctx_->node (node); // save the argument node - - // retrieve the type of the argument - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - if (node->size_type () == be_decl::VARIABLE) - { - os->indent (); - *os << bt->name () << "_slice *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_ALLOCATOR_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << "_alloc (), _tao_retval);\n"; - } - else - { - *os << "ACE_ALLOCATOR (_tao_base_" << arg->local_name () - << ", " << bt->name () << "_alloc ());\n"; - } - } - break; - default: - break; - } - return 0; - -} - -int -be_visitor_args_pre_docall_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << " = " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () << ";\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () - << " = " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "CORBA::Object_ptr _tao_base_" << arg->local_name () << ";\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // pre do_static_call processing is valid only for pseudo objects and for Any - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_ptr &_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();\n"; - break; - default: - break; - } - } - break; - case AST_PredefinedType::PT_any: - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", CORBA::Any, _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", CORBA::Any);\n"; - } - break; - default: - break; - } - } - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - // caller must have allocated the pointer - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << ", _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << ");\n"; - } - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - // caller should have allocated the pointer - os->indent (); - *os << "char *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (node->size_type () == be_type::VARIABLE) - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - // caller must have allocated the pointer - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << ", _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << ");\n"; - } - break; - default: - break; - } - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (node->size_type () == be_type::VARIABLE) - { - switch (this->direction ()) - { - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " *&_tao_base_" << arg->local_name () - << " = " << arg->local_name () << ".ptr ();" << be_nl; - if (!this->void_return_type ()) - { - *os << "ACE_NEW_RETURN (_tao_base_" << arg->local_name () - << ", " << bt->name () << ", _tao_retval);\n"; - } - else - { - *os << "ACE_NEW (_tao_base_" << arg->local_name () - << ", " << bt->name () << ");\n"; - } - break; - default: - break; - } - } - return 0; -} - -int -be_visitor_args_pre_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/pre_upcall_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/pre_upcall_ss.cpp deleted file mode 100644 index 6b36b7bc816..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/pre_upcall_ss.cpp +++ /dev/null @@ -1,269 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_upcall_ss.cpp -// -// = DESCRIPTION -// Visitor that generates any pre-processing of arguments prior to making -// the upcall (in the skeleton). -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, pre_upcall_ss, "$Id$") - - -// ************************************************************************ -// visitor for passing arguments to the upcall -// ************************************************************************ - -be_visitor_args_pre_upcall_ss::be_visitor_args_pre_upcall_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_pre_upcall_ss::~be_visitor_args_pre_upcall_ss (void) -{ -} - -int be_visitor_args_pre_upcall_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_upcall_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_upcall_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_var_" << arg->local_name () - << ".in (), _tao_environment);\n"; - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: // inout - os->indent (); - *os << arg->local_name () << " = " << node->name () - << "::_narrow (_tao_base_var_" << arg->local_name () - << ".in (), _tao_environment);\n"; - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - break; - case AST_Argument::dir_INOUT: - break; - case AST_Argument::dir_OUT: - break; - } - return 0; -} - -int be_visitor_args_pre_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_pre_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp deleted file mode 100644 index 004958b33b4..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp +++ /dev/null @@ -1,309 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// upcall_ss.cpp -// -// = DESCRIPTION -// Visitor that generates code that passes argument variables to the -// upcall. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, upcall_ss, "$Id$") - - -// ************************************************************************ -// visitor for passing arguments to the upcall -// ************************************************************************ - -be_visitor_args_upcall_ss::be_visitor_args_upcall_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_upcall_ss::~be_visitor_args_upcall_ss (void) -{ -} - -int be_visitor_args_upcall_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_upcall_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_upcall_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_upcall_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".in ()"; - break; - case AST_Argument::dir_INOUT: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".inout ()"; - break; - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".in ()"; - break; - case AST_Argument::dir_INOUT: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".inout ()"; - break; - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".in ()"; - break; - case AST_Argument::dir_INOUT: - if (this->ctx_->state () - == TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS) - *os << arg->local_name (); - else - *os << arg->local_name () << ".inout ()"; - break; - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_upcall_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get the stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - os->indent (); - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - *os << arg->local_name (); - break; - } - return 0; -} - -int be_visitor_args_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp deleted file mode 100644 index 54a325daec2..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp +++ /dev/null @@ -1,428 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// vardecl_ss.cpp -// -// = DESCRIPTION -// Visitor that generates the variable declaration in the skeleton -// corresponding to the Argument node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "be.h" -#include "be_visitor_argument.h" - -ACE_RCSID(be_visitor_argument, vardecl_ss, "$Id$") - - -// ************************************************************************ -// Visitor to generate code for argument variable declaration -// ************************************************************************ - -be_visitor_args_vardecl_ss::be_visitor_args_vardecl_ss (be_visitor_context *ctx) - : be_visitor_args (ctx) -{ -} - -be_visitor_args_vardecl_ss::~be_visitor_args_vardecl_ss (void) -{ -} - -int be_visitor_args_vardecl_ss::visit_argument (be_argument *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_vardecl_ss::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_vardecl_ss::" - "visit_argument - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_args_vardecl_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_slice *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - } - else - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << "_var " << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_var _tao_base_var_" << arg->local_name () - << ";" << be_nl; - *os << "CORBA::Object_ptr &_tao_base_ptr_" << arg->local_name () - << " = _tao_base_var_" << arg->local_name () << ".out ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_ptr _tao_base_ptr_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_var_" << arg->local_name () << ".out ());\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << "_var " << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_var _tao_base_var_" << arg->local_name () - << ";" << be_nl; - *os << "CORBA::Object_ptr &_tao_base_ptr_" << arg->local_name () - << " = _tao_base_var_" << arg->local_name () << ".out ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "CORBA::Object_ptr _tao_base_ptr_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_var_" << arg->local_name () << ".out ());\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - break; - } // end switch direction - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << "_var " << arg->local_name () - << ";" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_" << arg->local_name () - << " = " << arg->local_name () << ".out ();\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");" << be_nl; - break; - } // end switch direction - } // end else if - else // simple predefined types - { - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } // end switch direction - } // end of else - - return 0; -} - -int be_visitor_args_vardecl_ss::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << "CORBA::String_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "char *&" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".out ();" << be_nl; - break; - case AST_Argument::dir_OUT: - os->indent (); - *os << "CORBA::String_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << "char *&_tao_ptr_" << arg->local_name () << " = _tao_var_" - << arg->local_name () << ".out ();" << be_nl; - *os << "CORBA::String_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - // check if it is variable sized - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - } - else - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument - // node - // if the current type is an alias, use that - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (this->direction ()) - { - case AST_Argument::dir_IN: - case AST_Argument::dir_INOUT: - os->indent (); - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - case AST_Argument::dir_OUT: - os->indent (); - // check if it is variable sized - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->name () << "_var _tao_var_" - << arg->local_name () << ";" << be_nl; - *os << bt->name () << " *&_tao_ptr_" << arg->local_name () - << " = _tao_var_" << arg->local_name () << ".out ();" << be_nl; - *os << bt->name () << "_out " << arg->local_name () - << " (_tao_ptr_" << arg->local_name () << ");\n"; - } - else - *os << bt->name () << " " << arg->local_name () << ";\n"; - break; - } - return 0; -} - -int be_visitor_args_vardecl_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_args_vardecl_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array.cpp b/TAO/TAO_IDL/be/be_visitor_array.cpp deleted file mode 100644 index d3b5a590e05..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_array.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Array -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -// include all the individual files -#include "be_visitor_array/array.cpp" -#include "be_visitor_array/array_ch.cpp" -#include "be_visitor_array/array_ci.cpp" -#include "be_visitor_array/array_cs.cpp" -#include "be_visitor_array/any_op_ch.cpp" -#include "be_visitor_array/any_op_cs.cpp" -#include "be_visitor_array/cdr_op_ch.cpp" -#include "be_visitor_array/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_array, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp deleted file mode 100644 index f0b06de755e..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp +++ /dev/null @@ -1,64 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor for code generation of Arrays for the Any operators in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, any_op_ch, "$Id$") - - -// *************************************************************************** -// Array visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_array_any_op_ch::be_visitor_array_any_op_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_any_op_ch::~be_visitor_array_any_op_ch (void) -{ -} - -int -be_visitor_array_any_op_ch::visit_array (be_array *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << "_forany &);" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << "_forany &);\n"; - - node->cli_hdr_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp deleted file mode 100644 index 105c5ce579f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor for code generation of Arrays for the Any operators in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, any_op_cs, "$Id$") - - -// *************************************************************************** -// Array visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_array_any_op_cs::be_visitor_array_any_op_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_any_op_cs::~be_visitor_array_any_op_cs (void) -{ -} - -int -be_visitor_array_any_op_cs::visit_array (be_array *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << "_forany &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "if (_tao_elem.nocopy ()) // no copy" << be_idt_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem.ptr (), 1, _tao_env); // consume it" << be_uidt_nl - << "else // copy" << be_idt_nl - << "_tao_any.replace (" << node->tc_name () << ", " << node->name () - << "_dup (_tao_elem.ptr ()), 1, _tao_env);" << be_uidt_nl - << be_uidt_nl << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << "_forany &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << node->name () << "_slice *&_tao_elem_ptr = _tao_elem.out ();" << be_nl - << "_tao_elem_ptr = " << node->name () << "_alloc ();" << be_nl - << "if (!_tao_elem_ptr) return 0;" << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem_ptr, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (" - << node->tc_name () << ", _tao_elem_ptr, 1, _tao_env);" << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << node->name () << "_free (_tao_elem_ptr);" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else Any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << "_slice *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/array.cpp b/TAO/TAO_IDL/be/be_visitor_array/array.cpp deleted file mode 100644 index c44511084ba..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/array.cpp +++ /dev/null @@ -1,151 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array.cpp -// -// = DESCRIPTION -// Generic visitor for code generation for Arrays -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, array, "$Id$") - - -// ************************************************************************ -// generic visitor for array declaration -// ************************************************************************ - -be_visitor_array::be_visitor_array (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array::~be_visitor_array (void) -{ -} - -int be_visitor_array::visit_array (be_array *node) -{ - // must be overloaded by derived visitors - return -1; -} - -int -be_visitor_array::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_ARRAY_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_var"); - else - *os << bt->name () << "_var"; - return 0; -} - -int -be_visitor_array::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_ARRAY_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_var"); - else - *os << bt->name () << "_var"; - return 0; -} - -int -be_visitor_array::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << node->name () << "_var"; - else - *os << node->name (); - return 0; -} - -int -be_visitor_array::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); - *os << "CORBA::String_var"; - return 0; -} - -int -be_visitor_array::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array::visit_typedef (be_typedef *node) -{ - return this->visit_node (node); -} - -// helper -int -be_visitor_array::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_ARRAY_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp deleted file mode 100644 index 77c844bc0cd..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp +++ /dev/null @@ -1,218 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_ch.cpp -// -// = DESCRIPTION -// Visitor for Array code generation in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, array_ch, "$Id$") - - -// ************************************************************************ -// visitor for array declaration in client header -// ************************************************************************ - -be_visitor_array_ch::be_visitor_array_ch (be_visitor_context *ctx) - : be_visitor_array (ctx) -{ -} - -be_visitor_array_ch::~be_visitor_array_ch (void) -{ -} - -int be_visitor_array_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_type *bt; // base type - be_decl *scope = this->ctx_->scope (); // scope in which it is used - - // nothing to do if we are imported or code is already generated - if (node->imported () || (node->cli_hdr_gen ())) - return 0; - - this->ctx_->node (node); // save the array node - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // generate the ifdefined macro - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); - if (this->ctx_->tdef ()) - { - // this is a typedef to an array node - *os << "typedef "; - } - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "base type decl failed\n"), - -1); - } - *os << " " << node->local_name (); - if (node->gen_dimensions (os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "gen dimensions failed\n"), - -1); - } - *os << ";" << be_nl; - *os << "typedef "; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "base type decl failed\n"), - -1); - } - *os << " " << node->local_name () << "_slice"; - if (node->gen_dimensions (os, 1) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "gen slice dimensions failed\n"), - -1); - } - *os << ";\n"; - - // typedef the _var, _out, and _forany types - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_argument - " - "var_defn failed\n"), - -1); - } - // a class is generated for an out defn only for a variable length struct - if (node->size_type () == be_decl::VARIABLE) - { - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_argument - " - "out_defn failed\n"), - -1); - } - } - else - { - // fixed size - os->indent (); - // if we are a typedefed array, we can use the TYPE name to define an - // _out type. However, for anonymous arrays that do not give rise to a - // new type, we use the base type for defining an out type - if (this->ctx_->tdef ()) - { - *os << "typedef " << node->local_name () << " " - << node->local_name () << "_out;\n"; - } - else - { - *os << "typedef "; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "base type decl failed\n"), - -1); - } - *os << " " << node->local_name () << "_out"; - if (node->gen_dimensions (os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_array - " - "gen dimensions failed\n"), - -1); - } - *os << ";" << be_nl; - } - } - - if (node->gen_forany_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ch::" - "visit_argument - " - "forany_defn failed\n"), - -1); - } - // the _alloc, _dup, copy, and free methods. If the node is nested, the - // methods become static - os->indent (); - *os << "static " << node->nested_type_name (scope, "_slice") << " *"; - *os << node->nested_type_name (scope, "_alloc") << " (void);" << be_nl; - *os << "static " << node->nested_type_name (scope, "_slice") << " *"; - *os << node->nested_type_name (scope, "_dup") << " (const "; - *os << node->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - *os << "static void " << node->nested_type_name (scope, "_copy") << " ("; - *os << node->nested_type_name (scope, "_slice") << " *_tao_to, const "; - *os << node->nested_type_name (scope, "_slice") << " *_tao_from);" << be_nl; - *os << "static void " << node->nested_type_name (scope, "_free") << " ("; - *os << node->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - - // is this a typedefined array? if so, then let the typedef deal with - // generation of the typecode - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor_context ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_ch::" - "visit_array - " - "TypeCode declaration failed\n" - ), -1); - } - delete visitor; - } - - // generate the endif macro - os->gen_endif (); - - node->cli_hdr_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp deleted file mode 100644 index 751352e59f8..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp +++ /dev/null @@ -1,134 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Arrays in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, array_ci, "$Id$") - - -// ************************************************************************ -// visitor for array declaration in client inline -// ************************************************************************ - -be_visitor_array_ci::be_visitor_array_ci (be_visitor_context *ctx) - : be_visitor_array (ctx) -{ -} - -be_visitor_array_ci::~be_visitor_array_ci (void) -{ -} - -int be_visitor_array_ci::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_type *bt; // base type - be_decl *scope = this->ctx_->scope (); // scope in which it is used - - // nothing to do if we are imported or code is already generated - if (node->imported () || (node->cli_inline_gen ())) - return 0; - - this->ctx_->node (node); // save the array node - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // alloc method - os->indent (); // start from current indentation - *os << "ACE_INLINE " << node->name () << "_slice *" << be_nl; - *os << node->name () << "_alloc (void)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return new "; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "base type decl failed\n"), - -1); - } - - if (node->gen_dimensions (os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_array::" - "gen_client_inline - " - "dimensions codegen failed\n"), - -1); - } - - *os << ";" << be_uidt_nl; - *os << "}\n\n"; - - // free method - os->indent (); - *os << "ACE_INLINE void" << be_nl - << node->name () << "_free (" << node->name () - << "_slice *_tao_slice)" << be_nl; - *os << "{" << be_idt_nl; - *os << "delete [] _tao_slice;" << be_uidt_nl; - *os << "}\n\n"; - - // generate code for the _var, _out, and _forany types - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "var_defn failed\n"), - -1); - } - if (node->size_type () == be_decl::VARIABLE) - { - if (node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "out_defn failed\n"), - -1); - } - } - - if (node->gen_forany_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "forany_defn failed\n"), - -1); - } - - node->cli_inline_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp deleted file mode 100644 index c44498415d9..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp +++ /dev/null @@ -1,208 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_cs.cpp -// -// = DESCRIPTION -// Visitor for code generation of Arrays in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, array_cs, "$Id$") - - -// ************************************************************************ -// visitor for array declaration in client stubs -// ************************************************************************ - -be_visitor_array_cs::be_visitor_array_cs (be_visitor_context *ctx) - : be_visitor_array (ctx) -{ -} - -be_visitor_array_cs::~be_visitor_array_cs (void) -{ -} - -int be_visitor_array_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_type *bt; // base type - be_decl *scope = this->ctx_->scope (); // scope in which it is used - unsigned long i; - - // nothing to do if we are imported or code is already generated - if (node->imported () || (node->cli_stub_gen ())) - return 0; - - this->ctx_->node (node); // save the array node - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_ci::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // dup method - os->indent (); - *os << node->name () << "_slice *" << be_nl - << node->name () << "_dup (const " << node->name () - << "_slice *_tao_src_array)" << be_nl; - *os << "{" << be_idt_nl; - *os << node->name () << "_slice *_tao_dup_array = " << node->name () - << "_alloc ();" << be_nl; - *os << "if (!_tao_dup_array) return (" << node->name () - << "_slice *)0;" << be_nl; - *os << node->name () << "_copy (_tao_dup_array, _tao_src_array);" << be_nl; - *os << "return _tao_dup_array;" << be_uidt_nl; - *os << "}\n\n"; - - // copy method - *os << "void " << be_nl; - *os << node->name () << "_copy (" << node->name () << "_slice * _tao_to, " - << "const " << node->name () << "_slice *_tao_from)" << be_nl; - *os << "{" << be_idt_nl; - *os << "// copy each individual elements" << be_nl; - - // generate nested loops for as many dimensions as there are - for (i = 0; i < node->n_dims (); i++) - { - // retrieve the ith dimension value - AST_Expression *expr = node->dims ()[i]; - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cs::" - "visit_array - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - // generate a loop for each dimension - *os << "for (CORBA::ULong i" << i << " = 0; i" << i << " < " - << expr->ev ()->u.ulval << "; i" << i << "++)" << be_idt_nl; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cs::" - "visit_array - " - "bad array dimension value\n"), - -1); - } - } - - // now generate code such that every element of the array gets assigned - // inside the innermost level of the nested loops generated above - be_array *primitive_type = 0; - if (bt->node_type () == AST_Decl::NT_typedef) - { - // base type of the array node is a typedef. We need to make sure that - // this typedef is not to another array type. If it is, then we cannot - // assign an array to another. We will have to invoke the underlying - // array type's copy method for every array dimension. - be_typedef *tdef = be_typedef::narrow_from_decl (bt); - // check if the base type of the typedef node is an Array node - primitive_type = be_array::narrow_from_decl (tdef->base_type ()); - } - if (primitive_type) - { - // the base type is not a typedef to a possibly another array type. In - // such a case, assign each element. - - *os << "// call the underlying _copy" << be_nl; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_cs::" - "visit_array - " - "base type decl failed\n"), - -1); - } - - *os << "_copy (_tao_to"; - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << ", "; - *os << "_tao_from"; // generate the rvalue - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << ");"; - } - else - { - // the base type is not a typedef to a possibly another array type. In - // such a case, assign each element. - - *os << "_tao_to"; // generate the lvalue - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << " = "; - *os << "_tao_from"; // generate the rvalue - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - *os << ";"; - } - for (i = 0; i < node->n_dims (); i++) - { - // decrement indentation as many times as the number of dimensions - *os << be_uidt; - } - *os << be_uidt_nl << "}\n\n"; - - // is this a typedefined array? if so, then let the typedef deal with - // generation of the typecode - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor_context ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cs::" - "visit_array - " - "TypeCode definition failed\n" - ), -1); - } - delete visitor; - } - - node->cli_stub_gen (1); - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp deleted file mode 100644 index 2706e25c018..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor for code generation of Arrays for the Cdr operators in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, cdr_op_ch, "$Id$") - - -// *************************************************************************** -// Array visitor for generating CDR operator declarations in the client header -// *************************************************************************** - -be_visitor_array_cdr_op_ch::be_visitor_array_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_cdr_op_ch::~be_visitor_array_cdr_op_ch (void) -{ -} - -int -be_visitor_array_cdr_op_ch::visit_array (be_array *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operator declarations - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << "_forany &); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << "_forany &);\n"; - - node->cli_hdr_cdr_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp deleted file mode 100644 index d9aea38b55b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp +++ /dev/null @@ -1,531 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor for code generation of Arrays for the Cdr operators in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_array.h" - -ACE_RCSID(be_visitor_array, cdr_op_cs, "$Id$") - - -// *************************************************************************** -// Array visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_array_cdr_op_cs::be_visitor_array_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_array_cdr_op_cs::~be_visitor_array_cdr_op_cs (void) -{ -} - -int -be_visitor_array_cdr_op_cs::visit_array (be_array *node) -{ - if (this->ctx_->alias ()) - { - // we are here because the base type of the array node is itself an array - // i.e., this is a case of array of array - return this->visit_node (node); - } - else - { - TAO_OutStream *os = tao_cg->client_stubs (); - be_type *bt; // base type of the array - - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_cdr_op_cs::" - "visit_array - " - "Bad base type\n"), - -1); - } - - // generate the CDR << and >> operator defns - - // save the array node for further use - this->ctx_->node (node); - - // set the sub state as generating code for the output operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT); - *os << "CORBA::Boolean operator<< (TAO_OutputCDR &strm, " - << "const " << node->name () << "_forany &_tao_array)" << be_nl - << "{" << be_idt_nl; - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_cdr_op_cs::" - "visit_array - " - "Base type codegen failed\n"), - -1); - } - *os << "}\n\n"; - - // set the sub state as generating code for the input operator - os->indent (); - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_INPUT); - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << "_forany &_tao_array)" << be_nl - << "{" << be_idt_nl; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_array_cdr_op_cs::" - "visit_array - " - "Base type codegen failed\n"), - -1); - } - *os << "}\n\n"; - - node->cli_stub_cdr_op_gen (1); - } - return 0; -} - -// handle all the base types - -int -be_visitor_array_cdr_op_cs::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_interface (be_interface *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - case AST_PredefinedType::PT_any: - // let the helper handle this - return this->visit_node (node); - case AST_PredefinedType::PT_void: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_predefined_type - " - "Bad primitive type\n" - ), -1); - default: - // all other primitive types. Handle them as shown below - break; - }; - - // we get here if the "type" of individual elements of the array is a - // primitive type. In this case, we treat the array as a single dimensional - // array (even though it was multi-dimensional), and pass the total length of - // the array as a cross product of the dimensions - - // index - unsigned long i; - - // grab the array node - be_array *array = this->ctx_->be_node_as_array (); - - if (!node) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_predefined_type - " - "bad array node\n"), - -1); - } - - // we generate optimized code based on an optimized interface available from - // the CDR class. These optimizations are applicable only to primitive - // types. - *os << " return strm."; - - // based on our substate, we may be reading from a stream or writing into a - // stream - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "read_"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "write_"; - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_predefined_type - " - "bad sub state\n"), - -1); - } - - // determine what kind of array are we reading/writing - switch (node->pt ()) - { - case AST_PredefinedType::PT_long: - *os << "long_array"; - break; - case AST_PredefinedType::PT_ulong: - *os << "ulong_array"; - break; - case AST_PredefinedType::PT_short: - *os << "short_array"; - break; - case AST_PredefinedType::PT_ushort: - *os << "ushort_array"; - break; - case AST_PredefinedType::PT_octet: - *os << "octet_array"; - break; - case AST_PredefinedType::PT_char: - *os << "char_array"; - break; - case AST_PredefinedType::PT_wchar: - *os << "wchar_array"; - break; - case AST_PredefinedType::PT_float: - *os << "float_array"; - break; - case AST_PredefinedType::PT_double: - *os << "double_array"; - break; - case AST_PredefinedType::PT_longlong: - *os << "longlong_array"; - break; - case AST_PredefinedType::PT_ulonglong: - *os << "ulonglong_array"; - break; - case AST_PredefinedType::PT_longdouble: - *os << "longdouble_array"; - break; - case AST_PredefinedType::PT_boolean: - *os << "boolean_array"; - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_predefined_type - " - "bad primitive type for optimized code gen\n"), - -1); - } - - // handle special case to avoid compiler errors - switch (node->pt ()) - { - case AST_PredefinedType::PT_char: - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << " ((char *)_tao_array.inout (), "; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << " ((const char *)_tao_array.in (), "; - break; - } - break; - default: - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << " (_tao_array.inout (), "; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << " (_tao_array.in (), "; - break; - } - break; - } - // generate a product of all the dimensions. This will be the total length of - // the "unfolded" single dimensional array. - for (i = 0; i < array->n_dims (); i++) - { - // retrieve the ith dimension value - AST_Expression *expr = array->dims ()[i]; - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_predefined_type - " - "bad array dimension\n"), - -1); - } - if (i != 0) - // do not generate the multiplication operator the first time in - *os << "*"; - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - // generate a loop for each dimension - *os << expr->ev ()->u.ulval; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_predefined_type - " - "bad array dimension value\n"), - -1); - } - } - *os << ");" << be_uidt_nl; - - return 0; -} - -int -be_visitor_array_cdr_op_cs::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_string (be_string *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_array_cdr_op_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// helper -int -be_visitor_array_cdr_op_cs::visit_node (be_type *bt) -{ - TAO_OutStream *os = this->ctx_->stream (); - unsigned long i; - be_array *node = this->ctx_->be_node_as_array (); - - if (!node) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_node - " - "bad array node\n"), - -1); - } - - // initialize a boolean variable - *os << "CORBA::Boolean _tao_marshal_flag = 1;" << be_nl; - - // we get here if the "type" of individual elements of the array is not a - // primitive type. In this case, we are left with no other alternative but to - // encode/decode element by element - - // generate nested loops for as many dimensions as there are - for (i = 0; i < node->n_dims (); i++) - { - // retrieve the ith dimension value - AST_Expression *expr = node->dims ()[i]; - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_node - " - "bad array dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - // generate a loop for each dimension - *os << "for (CORBA::ULong i" << i << " = 0; i" << i << " < " - << expr->ev ()->u.ulval << " && _tao_marshal_flag; i" << i - << "++)" << be_idt_nl; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_node - " - "bad array dimension value\n"), - -1); - } - } - - // if the type was a string, an obj ref, or a pseudo-obj, we are dealing with - // the _var type and hence we must use the appropriate in () and out () methods - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "_tao_marshal_flag = (strm >> "; - // handle the array of array case in which case, we need to pass the - // forany type - if (bt->node_type () == AST_Decl::NT_array) - { - *os << bt->name () << "_forany ((" << bt->name () - << "_slice *) "; - } - *os << "_tao_array "; - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - switch (bt->node_type ()) - { - // the following have a _var type and must be handled in a special way - case AST_Decl::NT_string: - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - *os << ".out ()"; - break; - case AST_Decl::NT_pre_defined: - { - // we need to separately handle this case of pseudo objects because - // they have a _var type - be_predefined_type *pt = be_predefined_type::narrow_from_decl (bt); - if (!pt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_node - " - "bad predefined type node\n"), - -1); - } - if (pt->pt () == AST_PredefinedType::PT_pseudo) - { - *os << ".out ()"; - } - } - } - if (bt->node_type () == AST_Decl::NT_array) - { - *os << ")"; - } - *os << ");"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "_tao_marshal_flag = (strm << "; - // handle the array of array case in which case, we need to pass the - // forany type - if (bt->node_type () == AST_Decl::NT_array) - { - *os << bt->name () << "_forany ((" << bt->name () - << "_slice *) "; - } - *os << "_tao_array "; - for (i = 0; i < node->n_dims (); i++) - { - *os << "[i" << i << "]"; - } - switch (bt->node_type ()) - { - // the follwoing three have a _var type and must be handled in a - // special way - case AST_Decl::NT_string: - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - *os << ".in ()"; - break; - case AST_Decl::NT_pre_defined: - { - be_predefined_type *pt = be_predefined_type::narrow_from_decl (bt); - if (!pt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_node - " - "bad predefined type node\n"), - -1); - } - if (pt->pt () == AST_PredefinedType::PT_pseudo) - { - *os << ".in ()"; - } - } - } - if (bt->node_type () == AST_Decl::NT_array) - { - // array of array case - *os << ")"; - } - *os << ");"; - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_array_cdr_op_cs::" - "visit_node - " - "bad sub state\n"), - -1); - } - - for (i = 0; i < node->n_dims (); i++) - { - // decrement indentation as many times as the number of dimensions - *os << be_uidt; - } - *os << be_nl; - *os << "return _tao_marshal_flag;" << be_uidt_nl; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_attribute.cpp b/TAO/TAO_IDL/be/be_visitor_attribute.cpp deleted file mode 100644 index 7b11a6294c2..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_attribute.cpp +++ /dev/null @@ -1,31 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_attribute.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Attribute -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_attribute.h" - -// include all the individual files -#include "be_visitor_attribute/attribute.cpp" - -ACE_RCSID(be, be_visitor_attribute, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp b/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp deleted file mode 100644 index 93dec0cde94..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp +++ /dev/null @@ -1,193 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// attribute.cpp -// -// = DESCRIPTION -// Visitor for generation of code for Attribute -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_attribute.h" - -ACE_RCSID(be_visitor_attribute, attribute, "$Id$") - - -// Attribute gets mapped to one or possibly two operations based on whether -// it is readonly or not. The two operations "get" and "set" the value of the -// attribute. -// -// code generation for attributes is achieved by mapping an attribute node to -// a corresponding operation node. The reason is that we do not want to -// duplicate the code. However, an attribute node and an operation node have -// different interfaces. Hence we need some form of an adapter that can take us -// from an attribute node to an operation node. The following paragraph -// describes how this is accomplished. -// -// For a "get" operation on the attribute, we create an operation node with the -// same name as the attribute and a return type which is the same as the type -// of the attribute. This operation has no arguments. -// -// For a "set" operation on the attribute (if it is not readonly), we create an -// operation node with a "void" return type and an "in" parameter of the same -// type as the attribute. - -// In both cases the context will hold sufficient information to indicate that -// the operation node is really an attribute node. - -// ************************************************************************* -// primary visitor for "attribute". The context state decides the next state -// ************************************************************************* - -be_visitor_attribute::be_visitor_attribute (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_attribute::~be_visitor_attribute (void) -{ -} - -int -be_visitor_attribute::visit_attribute (be_attribute *node) -{ - this->ctx_->node (node); // save the node - this->ctx_->attribute (node); // save this attribute node - - be_operation *op; - - // first the "get" operation - op = new be_operation (node->field_type (), AST_Operation::OP_noflags, - node->name (), 0); - op->set_name (node->name ()); - be_visitor_context ctx (*this->ctx_); - - // this switch statement eliminates the need for different classes that have - // exactly the same code except different states. - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_CH: - ctx.state (TAO_CodeGen::TAO_OPERATION_CH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_CS: - ctx.state (TAO_CodeGen::TAO_OPERATION_CS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SI); - break; - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || !op || (op->accept (visitor) == -1)) - { - delete visitor; - delete op; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_attribute::" - "visit_attribute - " - "codegen for get_attribute failed\n"), - -1); - } - delete op; - delete visitor; - if (node->readonly ()) - return 0; // nothing else to do - - // the set method. - // the return type is "void" - be_predefined_type *rt = new be_predefined_type (AST_PredefinedType::PT_void, - new UTL_ScopedName - (new Identifier - ("void", 1, 0, I_FALSE), 0), - 0); - // argument type is the same as the attribute type - be_argument *arg = new be_argument (AST_Argument::dir_IN, - node->field_type (), - node->name (), - 0); - arg->set_name (node->name ()); - // create the operation - op = new be_operation (rt, AST_Operation::OP_noflags, - node->name (), 0); - op->set_name (node->name ()); - op->add_argument_to_scope (arg); - - ctx = *this->ctx_; - // this switch statement eliminates the need for different classes that have - // exactly the same code except different states. - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ATTRIBUTE_CH: - ctx.state (TAO_CodeGen::TAO_OPERATION_CH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_CS: - ctx.state (TAO_CodeGen::TAO_OPERATION_CS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SH); - break; - case TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SI); - break; - } - - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || !op || (op->accept (visitor) == -1)) - { - delete visitor; - delete op; - delete arg; - delete rt; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_attribute::" - "visit_attribute - " - "codegen for set_attribute failed\n"), - -1); - } - delete op; - delete visitor; - delete rt; - delete arg; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_constant.cpp b/TAO/TAO_IDL/be/be_visitor_constant.cpp deleted file mode 100644 index 0281cbccf4d..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_constant.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_constant.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Constant -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_constant.h" - -// include all the individual files -#include "be_visitor_constant/constant_ch.cpp" -#include "be_visitor_constant/constant_cs.cpp" - -ACE_RCSID(be, be_visitor_constant, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp deleted file mode 100644 index 5f38c6e62fc..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp +++ /dev/null @@ -1,76 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// constant_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for the Constant node in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_constant.h" - -ACE_RCSID(be_visitor_constant, constant_ch, "$Id$") - - -// ******************************************************************** -// Visitor implementation for the Constant type -// This one for the client header file -// ******************************************************************** - -be_visitor_constant_ch::be_visitor_constant_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_constant_ch::~be_visitor_constant_ch (void) -{ -} - -// visit the Constant_Ch node and its scope -int -be_visitor_constant_ch::visit_constant (be_constant *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_hdr_gen () && !node->imported ()) - { - // if we are defined in the outermost scope, then the value is assigned - // to us here itself, else it will be in the *.cpp file - - os->indent (); // start from whatever indentation level we were at - // is our enclosing scope a module? We need this check because for - // platforms that support namespaces, the typecode must be declared - // extern - if (node->is_nested () && - (node->defined_in ()->scope_node_type () == AST_Decl::NT_module)) - *os << "TAO_NAMESPACE_STORAGE_CLASS "; - else - *os << "static "; - *os << "const " << node->exprtype_to_string () - << " " << node->local_name (); - if (!node->is_nested ()) - { - // We were defined at the outermost scope. So we put the value in the - // header itself - *os << " = " << node->constant_value (); - } - *os << ";\n\n"; - node->cli_hdr_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp deleted file mode 100644 index 2f40e9fbbf9..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp +++ /dev/null @@ -1,136 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// constant_cs.cpp -// -// = DESCRIPTION -// Visitor for code generation of Constant code in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_constant.h" - -ACE_RCSID(be_visitor_constant, constant_cs, "$Id$") - - -// ******************************************************************** -// Visitor implementation for the Constant type -// This one for the client stubs file -// ******************************************************************** - -be_visitor_constant_cs::be_visitor_constant_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_constant_cs::~be_visitor_constant_cs (void) -{ -} - -// visit the Constant_cs node and its scope -int -be_visitor_constant_cs::visit_constant (be_constant *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_stub_gen () && !node->imported ()) - { - if (node->is_nested ()) - { - if (node->defined_in ()->scope_node_type () == AST_Decl::NT_module) - { - *os << "TAO_NAMESPACE_TYPE (const " - << node->exprtype_to_string () << ")" << be_nl; - be_module *module = be_module::narrow_from_scope (node->defined_in ()); - if (!module || (this->gen_nested_namespace_begin (module) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_constant_cs::visit_constant - " - "Error parsing nested name\n"), - -1); - } - *os << "TAO_NAMESPACE_DEFINE (const " - << node->exprtype_to_string () << ", " - << node->local_name () << ", " - << node->constant_value () << ")" << be_nl; - if (this->gen_nested_namespace_end (module) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_constant_cs::visit_constant - " - "Error parsing nested name\n"), - -1); - } - } - else - { - // for those constants not defined in the outer most scope, they get - // assigned to their values in the impl file - os->indent (); // start from whatever indentation level we were at - *os << "const " << node->exprtype_to_string () << " " - << node->name () << " = " << node->constant_value () - << ";\n\n"; - } - } - node->cli_stub_gen (I_TRUE); - } - return 0; -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_constant_cs::gen_nested_namespace_begin (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_BEGIN (" << i->item ()->get_string () - << ")" << be_nl; - } - i->next (); - } - delete i; - return 0; -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_constant_cs::gen_nested_namespace_end (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_END" << be_nl; - } - i->next (); - } - delete i; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp deleted file mode 100644 index 8102f332f78..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_context.cpp +++ /dev/null @@ -1,514 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_context.cpp -// -// = DESCRIPTION -// Maintains the context information for visitors -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -ACE_RCSID(be, be_visitor_context, "$Id$") - - -// constructor -be_visitor_context::be_visitor_context (void) - : state_ (TAO_CodeGen::TAO_UNKNOWN), - sub_state_ (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN), - os_ (0), - scope_ (0), - node_ (0), - alias_ (0), - tdef_ (0), - attr_ (0), - exception_ (0), - comma_ (0), - interface_ (0) -{ -} - -be_visitor_context::be_visitor_context (const be_visitor_context &ctx) - : state_ (ctx.state_), - sub_state_ (ctx.sub_state_), - os_ (ctx.os_), - scope_ (ctx.scope_), - node_ (ctx.node_), - alias_ (ctx.alias_), - tdef_ (ctx.tdef_), - attr_ (ctx.attr_), - exception_ (ctx.exception_), - comma_ (ctx.comma_), - interface_ (ctx.interface_) -{ -} - -be_visitor_context & -be_visitor_context::operator= (const be_visitor_context &ctx) -{ - this->state_ = ctx.state_; - this->sub_state_ = ctx.sub_state_; - this->os_ = ctx.os_; - this->scope_ = ctx.scope_; - this->node_ = ctx.node_; - this->alias_ = ctx.alias_; - this->tdef_ = ctx.tdef_; - this->attr_ = ctx.attr_; - this->exception_ = ctx.exception_; - this->comma_ = ctx.comma_; - this->interface_ = ctx.interface_; - - return *this; -} - -be_visitor_context::~be_visitor_context (void) -{ - // we do not own anything -} - -//= helpers - -void -be_visitor_context::reset (void) -{ - this->state_ = TAO_CodeGen::TAO_INITIAL; - this->sub_state_ = TAO_CodeGen::TAO_SUB_STATE_UNKNOWN; - this->os_ = 0; - this->scope_ = 0; - this->node_ = 0; - this->alias_ = 0; - this->tdef_ = 0; - this->attr_ = 0; - this->exception_ = 0; - this->comma_ = 0; - -} - -void -be_visitor_context::stream (TAO_OutStream *os) -{ - this->os_ = os; -} - -TAO_OutStream * -be_visitor_context::stream (void) -{ - return this->os_; -} - -void -be_visitor_context::scope (be_decl *s) -{ - this->scope_ = s; -} - -be_decl * -be_visitor_context::scope (void) -{ - return this->scope_; -} - -void -be_visitor_context::node (be_decl *n) -{ - this->node_ = n; -} - -be_decl * -be_visitor_context::node (void) -{ - return this->node_; -} - -void -be_visitor_context::state (TAO_CodeGen::CG_STATE st) -{ - this->state_ = st; -} - -TAO_CodeGen::CG_STATE -be_visitor_context::state (void) -{ - return this->state_; -} - -void -be_visitor_context::sub_state (TAO_CodeGen::CG_SUB_STATE st) -{ - this->sub_state_ = st; -} - -TAO_CodeGen::CG_SUB_STATE -be_visitor_context::sub_state (void) -{ - return this->sub_state_; -} - -void -be_visitor_context::tdef (be_typedef *node) -{ - this->tdef_ = node; -} - -be_typedef * -be_visitor_context::tdef (void) -{ - return this->tdef_; -} - -void -be_visitor_context::alias (be_typedef *node) -{ - this->alias_ = node; -} - -be_typedef * -be_visitor_context::alias (void) -{ - return this->alias_; -} - -void -be_visitor_context::attribute (be_attribute *node) -{ - this->attr_ = node; -} - -be_attribute * -be_visitor_context::attribute (void) -{ - return this->attr_; -} - -void -be_visitor_context::exception (idl_bool ib) -{ - this->exception_ = ib; -} - -idl_bool -be_visitor_context::exception (void) -{ - return this->exception_; -} - -void -be_visitor_context::comma (idl_bool ib) -{ - this->comma_ = ib; -} - -idl_bool -be_visitor_context::comma (void) -{ - return this->comma_; -} - -void -be_visitor_context::interface (be_interface *interface) -{ - this->interface_ = interface; -} - -be_interface * -be_visitor_context::interface (void) const -{ - return this->interface_; -} - -// **************************************************************** - -// return the node as argument if possible -be_argument * -be_visitor_context::be_node_as_argument (void) -{ - if (this->node_) - return be_argument::narrow_from_decl (this->node_); - else - return (be_argument *)0; -} - -// return the node as array if possible -be_array * -be_visitor_context::be_node_as_array (void) -{ - if (this->node_) - return be_array::narrow_from_decl (this->node_); - else - return (be_array *)0; -} - -// return the node as attribute if possible -be_attribute * -be_visitor_context::be_node_as_attribute (void) -{ - if (this->node_) - return be_attribute::narrow_from_decl (this->node_); - else - return (be_attribute *)0; -} - -// return the node as constant if possible -be_constant * -be_visitor_context::be_node_as_constant (void) -{ - if (this->node_) - return be_constant::narrow_from_decl (this->node_); - else - return (be_constant *)0; -} - -// return the node as enum if possible -be_enum * -be_visitor_context::be_node_as_enum (void) -{ - if (this->node_) - return be_enum::narrow_from_decl (this->node_); - else - return (be_enum *)0; -} - -// return the node as enum_val if possible -be_enum_val * -be_visitor_context::be_node_as_enum_val (void) -{ - if (this->node_) - return be_enum_val::narrow_from_decl (this->node_); - else - return (be_enum_val *)0; -} - -// return the node as exception if possible -be_exception * -be_visitor_context::be_node_as_exception (void) -{ - if (this->node_) - return be_exception::narrow_from_decl (this->node_); - else - return (be_exception *)0; -} - -// return the node as field if possible -be_field * -be_visitor_context::be_node_as_field (void) -{ - if (this->node_) - return be_field::narrow_from_decl (this->node_); - else - return (be_field *)0; -} - -// return the node as interface if possible -be_interface * -be_visitor_context::be_node_as_interface (void) -{ - if (this->node_) - return be_interface::narrow_from_decl (this->node_); - else - return (be_interface *)0; -} - -// return the node as interface_fwd if possible -be_interface_fwd * -be_visitor_context::be_node_as_interface_fwd (void) -{ - if (this->node_) - return be_interface_fwd::narrow_from_decl (this->node_); - else - return (be_interface_fwd *)0; -} - -// return the node as module if possible -be_module * -be_visitor_context::be_node_as_module (void) -{ - if (this->node_) - return be_module::narrow_from_decl (this->node_); - else - return (be_module *)0; -} - -// return the node as operation if possible -be_operation * -be_visitor_context::be_node_as_operation (void) -{ - if (this->node_) - return be_operation::narrow_from_decl (this->node_); - else - return (be_operation *)0; -} - -// return the node as predefined_type if possible -be_predefined_type * -be_visitor_context::be_node_as_predefined_type (void) -{ - if (this->node_) - return be_predefined_type::narrow_from_decl (this->node_); - else - return (be_predefined_type *)0; -} - -// return the node as root if possible -be_root * -be_visitor_context::be_node_as_root (void) -{ - if (this->node_) - return be_root::narrow_from_decl (this->node_); - else - return (be_root *)0; -} - -// return the node as sequence if possible -be_sequence * -be_visitor_context::be_node_as_sequence (void) -{ - if (this->node_) - return be_sequence::narrow_from_decl (this->node_); - else - return (be_sequence *)0; -} - -// return the node as string if possible -be_string * -be_visitor_context::be_node_as_string (void) -{ - if (this->node_) - return be_string::narrow_from_decl (this->node_); - else - return (be_string *)0; -} - -// return the node as structure if possible -be_structure * -be_visitor_context::be_node_as_structure (void) -{ - if (this->node_) - return be_structure::narrow_from_decl (this->node_); - else - return (be_structure *)0; -} - -// return the node as typedef if possible -be_typedef * -be_visitor_context::be_node_as_typedef (void) -{ - if (this->node_) - return be_typedef::narrow_from_decl (this->node_); - else - return (be_typedef *)0; -} - -// return the node as union if possible -be_union * -be_visitor_context::be_node_as_union (void) -{ - if (this->node_) - return be_union::narrow_from_decl (this->node_); - else - return (be_union *)0; -} - -// return the node as union_branch if possible -be_union_branch * -be_visitor_context::be_node_as_union_branch (void) -{ - if (this->node_) - return be_union_branch::narrow_from_decl (this->node_); - else - return (be_union_branch *)0; -} - -// for scope - -// return the scope as enum if possible -be_enum * -be_visitor_context::be_scope_as_enum (void) -{ - if (this->scope_) - return be_enum::narrow_from_decl (this->scope_); - else - return (be_enum *)0; -} - -// return the scope as exception if possible -be_exception * -be_visitor_context::be_scope_as_exception (void) -{ - if (this->scope_) - return be_exception::narrow_from_decl (this->scope_); - else - return (be_exception *)0; -} - -// return the scope as interface if possible -be_interface * -be_visitor_context::be_scope_as_interface (void) -{ - if (this->scope_) - return be_interface::narrow_from_decl (this->scope_); - else - return (be_interface *)0; -} - -// return the scope as module if possible -be_module * -be_visitor_context::be_scope_as_module (void) -{ - if (this->scope_) - return be_module::narrow_from_decl (this->scope_); - else - return (be_module *)0; -} - -// return the scope as operation if possible -be_operation * -be_visitor_context::be_scope_as_operation (void) -{ - if (this->scope_) - return be_operation::narrow_from_decl (this->scope_); - else - return (be_operation *)0; -} - -// return the scope as root if possible -be_root * -be_visitor_context::be_scope_as_root (void) -{ - if (this->scope_) - return be_root::narrow_from_decl (this->scope_); - else - return (be_root *)0; -} - -// return the scope as structure if possible -be_structure * -be_visitor_context::be_scope_as_structure (void) -{ - if (this->scope_) - return be_structure::narrow_from_decl (this->scope_); - else - return (be_structure *)0; -} - -// return the scope as union if possible -be_union * -be_visitor_context::be_scope_as_union (void) -{ - if (this->scope_) - return be_union::narrow_from_decl (this->scope_); - else - return (be_union *)0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_decl.cpp b/TAO/TAO_IDL/be/be_visitor_decl.cpp deleted file mode 100644 index 7658f3e181f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_decl.cpp +++ /dev/null @@ -1,40 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_decl.cpp -// -// = DESCRIPTION -// Visitor for the base be_decl node. This serves to maintain the current -// state (context) of code generation for the derived visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_decl.h" - -ACE_RCSID(be, be_visitor_decl, "$Id$") - - -// Root visitor for client header -be_visitor_decl::be_visitor_decl (be_visitor_context *ctx) - : ctx_ (ctx) -{ -} - -be_visitor_decl::~be_visitor_decl (void) -{ - delete this->ctx_; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum.cpp b/TAO/TAO_IDL/be/be_visitor_enum.cpp deleted file mode 100644 index 3be324fbc36..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_enum.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Enum -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -// include all the individual files -#include "be_visitor_enum/enum_ch.cpp" -#include "be_visitor_enum/enum_cs.cpp" -#include "be_visitor_enum/any_op_ch.cpp" -#include "be_visitor_enum/any_op_cs.cpp" -#include "be_visitor_enum/cdr_op_ch.cpp" -#include "be_visitor_enum/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_enum, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp deleted file mode 100644 index 5e79530c2f1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Enums for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -ACE_RCSID(be_visitor_enum, any_op_ch, "$Id$") - - -// *************************************************************************** -// Enum visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_enum_any_op_ch::be_visitor_enum_any_op_ch -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_any_op_ch::~be_visitor_enum_any_op_ch (void) -{ -} - -int -be_visitor_enum_any_op_ch::visit_enum (be_enum *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operators - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << ");" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " &);\n"; - - node->cli_hdr_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp deleted file mode 100644 index 2bdb4bd0db3..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Enum for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -ACE_RCSID(be_visitor_enum, any_op_cs, "$Id$") - - -// *************************************************************************** -// Enum visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_enum_any_op_cs::be_visitor_enum_any_op_cs -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_any_op_cs::~be_visitor_enum_any_op_cs (void) -{ -} - -int -be_visitor_enum_any_op_cs::visit_enum (be_enum *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " _tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", &_tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << " return 1;" << be_nl - << "else" << be_nl - << " return 0;" << be_uidt_nl - << "}\n\n"; - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp deleted file mode 100644 index 0eec4fe9db9..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Enums for the CDR operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -ACE_RCSID(be_visitor_enum, cdr_op_ch, "$Id$") - - -// *************************************************************************** -// Enum visitor for generating Cdr operator declarations in the client header -// *************************************************************************** - -be_visitor_enum_cdr_op_ch::be_visitor_enum_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_cdr_op_ch::~be_visitor_enum_cdr_op_ch (void) -{ -} - -int -be_visitor_enum_cdr_op_ch::visit_enum (be_enum *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operators - os->indent (); - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << " &); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << " &);\n"; - - node->cli_hdr_cdr_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp deleted file mode 100644 index 679bcf96ad8..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Enum for the CDR operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -ACE_RCSID(be_visitor_enum, cdr_op_cs, "$Id$") - - -// *************************************************************************** -// Enum visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_enum_cdr_op_cs::be_visitor_enum_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_cdr_op_cs::~be_visitor_enum_cdr_op_cs (void) -{ -} - -int -be_visitor_enum_cdr_op_cs::visit_enum (be_enum *node) -{ - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate CDR << and >> operators - os->indent (); - *os << "CORBA::Boolean operator<< (TAO_OutputCDR &strm, " - << "const " << node->name () << " &_tao_enumval)" << be_nl - << "{" << be_idt_nl - << "return strm.write_ulong ((CORBA::ULong) _tao_enumval);" << be_uidt_nl - << "}\n\n"; - - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << " &_tao_enumval)" << be_nl - << "{" << be_idt_nl - << "CORBA::ULong _tao_temp;" << be_nl - << "if (strm.read_ulong (_tao_temp))" << be_nl - << "{" << be_idt_nl - << "ACE_OS::memcpy (&_tao_enumval, &_tao_temp, sizeof (CORBA::ULong));" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl - << "}\n\n"; - - node->cli_stub_cdr_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp deleted file mode 100644 index d5a4564483a..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp +++ /dev/null @@ -1,111 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// enum_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Enums in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -ACE_RCSID(be_visitor_enum, enum_ch, "$Id$") - - -// ******************************************************************** -// Visitor implementation for the Enum type -// This one for the client header file -// ******************************************************************** - -be_visitor_enum_ch::be_visitor_enum_ch (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_ch::~be_visitor_enum_ch (void) -{ -} - -// visit the Enum_Ch node and its scope -int -be_visitor_enum_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - this->ctx_->comma (1); // comma to be generated by the scope visitor - - if (!node->cli_hdr_gen () && !node->imported ()) - { - os->indent (); // start from whatever indentation level we were at - *os << "enum " << node->local_name () << be_nl; - *os << "{\n"; - os->incr_indent (); - if (this->visit_scope (node) == 1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_enum_ch::" - "visit_enum - " - "scope generation failed\n" - ), -1); - } - - os->decr_indent (); - *os << "};" << be_nl; - // As per the ORBOS spec, we need the following typedef - *os << "typedef " << node->local_name () << " &" << node->local_name () - << "_out;\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_enum_ch::" - "visit_enum - " - "TypeCode declaration failed\n" - ), -1); - } - - node->cli_hdr_gen (I_TRUE); - } - return 0; -} - -int -be_visitor_enum_ch::post_process (void) -{ - TAO_OutStream *os = this->ctx_->stream (); - - *os << "," << be_nl; - return 0; -} - -int -be_visitor_enum_ch::visit_enum_val (be_enum_val *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->indent (); - *os << node->local_name (); - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp deleted file mode 100644 index 2ced2f40cfe..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp +++ /dev/null @@ -1,71 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// enum_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Enums in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_enum.h" - -ACE_RCSID(be_visitor_enum, enum_cs, "$Id$") - - -// ******************************************************************** -// Visitor implementation for the Enum type -// This one for the client stubs file -// ******************************************************************** - -be_visitor_enum_cs::be_visitor_enum_cs (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_enum_cs::~be_visitor_enum_cs (void) -{ -} - -// visit the Enum_cs node and its scope -int -be_visitor_enum_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_stub_gen () && !node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_enum_cs::" - "visit_enum - " - "TypeCode definition failed\n" - ), -1); - } - - node->cli_stub_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception.cpp b/TAO/TAO_IDL/be/be_visitor_exception.cpp deleted file mode 100644 index 5121050e009..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception.cpp +++ /dev/null @@ -1,40 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_exception.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Exception -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -// include all the individual files -#include "be_visitor_exception/exception.cpp" -#include "be_visitor_exception/exception_ch.cpp" -#include "be_visitor_exception/exception_ci.cpp" -#include "be_visitor_exception/exception_cs.cpp" -#include "be_visitor_exception/exception_ctor.cpp" -#include "be_visitor_exception/ctor_assign.cpp" -#include "be_visitor_exception/any_op_ch.cpp" -#include "be_visitor_exception/any_op_cs.cpp" -#include "be_visitor_exception/cdr_op_ch.cpp" -#include "be_visitor_exception/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_exception, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp deleted file mode 100644 index f444cc73f35..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp +++ /dev/null @@ -1,102 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for the Any operators for Exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, any_op_ch, "$Id$") - - -// *************************************************************************** -// Exception visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_exception_any_op_ch::be_visitor_exception_any_op_ch -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_any_op_ch::~be_visitor_exception_any_op_ch (void) -{ -} - -int -be_visitor_exception_any_op_ch::visit_exception (be_exception *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::visit_exception - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_exception_any_op_ch::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp deleted file mode 100644 index b93a1c0b6c7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp +++ /dev/null @@ -1,145 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for the Any operators for Exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, any_op_cs, "$Id$") - - -// *************************************************************************** -// Exception visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_exception_any_op_cs::be_visitor_exception_any_op_cs -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_any_op_cs::~be_visitor_exception_any_op_cs (void) -{ -} - -int -be_visitor_exception_any_op_cs::visit_exception (be_exception *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (" - << node->tc_name () << ", _tao_elem, 1, _tao_env);" << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::visit_exception - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_exception_any_op_cs::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_any_op_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp deleted file mode 100644 index 41a1b7d3846..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for exceptions. This uses -// compiled marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, cdr_op_ch, "$Id$") - -// *************************************************************************** -// Exception visitor for generating CDR operator declarations in the client header -// *************************************************************************** - -be_visitor_exception_cdr_op_ch::be_visitor_exception_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_cdr_op_ch::~be_visitor_exception_cdr_op_ch (void) -{ -} - -int -be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Cdr <<= and >>= operator declarations - os->indent (); - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << " &); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << " &);\n"; - - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cdr_op_ch::" - "visit_exception - " - "codegen for scope failed\n"), -1); - } - - - node->cli_hdr_cdr_op_gen (1); - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp deleted file mode 100644 index 5305506892f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, cdr_op_cs, "$Id$") - -// *************************************************************************** -// Exception visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_exception_cdr_op_cs::be_visitor_exception_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_cdr_op_cs::~be_visitor_exception_cdr_op_cs (void) -{ -} - -int -be_visitor_exception_cdr_op_cs::visit_exception (be_exception *node) -{ - // already generated and/or we are imported. Don't do anything. - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // set the sub state as generating code for the output operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT); - *os << "CORBA::Boolean operator<< (TAO_OutputCDR &strm, " - << "const " << node->name () << " &_tao_aggregate)" << be_nl - << "{" << be_idt_nl; - // do we have any members? - if (node->nmembers () > 0) - { - // some members - *os << "// first marshal the repository ID" << be_nl - << "if (strm << _tao_aggregate._id ())" << be_nl - << "{" << be_idt_nl - << "// now marshal the members (if any)" << be_nl - << "if (" << be_idt_nl; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cdr_op_cs::" - "visit_exception - " - "codegen for scope failed\n"), -1); - } - *os << be_uidt_nl << ")" - << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl; - } - else - { - // no members - *os << "// first marshal the repository ID" << be_nl - << "if (strm << _tao_aggregate._id ())" << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl; - } - *os << "}\n\n"; - - // set the substate as generating code for the input operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_INPUT); - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << " &_tao_aggregate)" << be_nl - << "{" << be_idt_nl; - // retrieve the repository ID and compare with what we have - *os << "// retrieve RepoID and verify if we are of that type" << be_nl; - *os << "char *_tao_repoID;" << be_nl; - *os << "if ((strm >> _tao_repoID) &&" << be_nl - << " (_tao_aggregate._is_a (_tao_repoID)))" << be_nl - << "{" << be_idt_nl; - // do we have any members? - if (node->nmembers () > 0) - { - // some members - *os << "// now marshal the members" << be_nl - << "if (" << be_idt_nl; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cdr_op_cs::" - "visit_exception - " - "codegen for scope failed\n"), -1); - } - *os << be_uidt_nl << ")" - << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl; - } - else - { - *os << "return 1;" << be_uidt_nl; - } - *os << "}" << be_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl - << "}\n\n"; - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cdr_op_cs" - "::visit_exception - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_cdr_op_gen (1); - return 0; -} - -int -be_visitor_exception_cdr_op_cs::post_process (void) -{ - TAO_OutStream *os = tao_cg->client_stubs (); - - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_OUTPUT: - case TAO_CodeGen::TAO_CDR_INPUT: - *os << " &&" << be_nl; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - default: - break; - }; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp b/TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp deleted file mode 100644 index c6599d92e98..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp +++ /dev/null @@ -1,310 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ctor_assign.cpp -// -// = DESCRIPTION -// Visitor generating code for the special CTOR and assignment operator for -// Exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, ctor_assign, "$Id$") - - -// ************************************************************************ -// used for the body of the assignment operator and the copy constructor -// ************************************************************************ - -be_visitor_exception_ctor_assign::be_visitor_exception_ctor_assign (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_ctor_assign::~be_visitor_exception_ctor_assign (void) -{ -} - -int be_visitor_exception_ctor_assign::visit_exception (be_exception *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_exception - " - "codegen for scope failed\n"), - -1); - } - - return 0; -} - -int be_visitor_exception_ctor_assign::visit_field (be_field *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_field - " - "Bad field type\n"), - -1); - } - - // Different types have different mappings when used as in/out or - // inout parameters. Let this visitor deal with the type - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_field - " - "cannot accept visitor\n"), - -1); - } - - return 0; -} - -int be_visitor_exception_ctor_assign::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_" << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_excp." << bd->local_name () << ".in ());\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_" << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () << " = " << node->name () - << "::_duplicate (_tao_excp." << bd->local_name () << ".in ());\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" - << bd->local_name () << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." - << bd->local_name () << ";\n"; - } - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = " - << node->name () << "::_duplicate (_tao_" - << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () << " = " - << node->name () << "::_duplicate (_tao_excp." - << bd->local_name () << ".in ());\n"; - } - } // end else if - else // simple predefined types - { - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" - << bd->local_name () << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." - << bd->local_name () << ";\n"; - } - } // end of else - - return 0; -} - -int be_visitor_exception_ctor_assign::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = CORBA::string_dup (_tao_" - << bd->local_name () << ");\n"; - } - else - { - *os << "this->" << bd->local_name () - << " = CORBA::string_dup (_tao_excp." << bd->local_name () - << ".in ());\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_structure (be_structure *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_union (be_union *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - be_decl *bd = this->ctx_->node (); - - os->indent (); - if (this->ctx_->exception ()) // special ctor - { - *os << "this->" << bd->local_name () << " = _tao_" << bd->local_name () - << ";\n"; - } - else - { - *os << "this->" << bd->local_name () << " = _tao_excp." << bd->local_name () - << ";\n"; - } - return 0; -} - -int be_visitor_exception_ctor_assign::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp deleted file mode 100644 index 8a303600e92..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// .cpp -// -// = DESCRIPTION -// Generic visitor generating code for Exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, exception, "$Id$") - - -// generic struct visitor -be_visitor_exception::be_visitor_exception (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception::~be_visitor_exception (void) -{ -} - -// visit the Exception node and its scope -int -be_visitor_exception::visit_exception (be_exception *node) -{ - return -1; // must be overriden -} - -int -be_visitor_exception::visit_field (be_field *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_EXCEPTION_CH: - ctx.state (TAO_CodeGen::TAO_FIELD_CH); - break; - case TAO_CodeGen::TAO_EXCEPTION_CI: - ctx.state (TAO_CodeGen::TAO_FIELD_CI); - break; - case TAO_CodeGen::TAO_EXCEPTION_CS: - ctx.state (TAO_CodeGen::TAO_FIELD_CS); - break; - case TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_FIELD_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_FIELD_CDR_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_field - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_field - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_field - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp deleted file mode 100644 index 855abbc721d..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp +++ /dev/null @@ -1,143 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Exception in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, exception_ch, "$Id$") - - -// ****************************************************** -// for client header -// ****************************************************** - -be_visitor_exception_ch::be_visitor_exception_ch (be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_ch::~be_visitor_exception_ch (void) -{ -} - -// visit the Exception node and its scope -int be_visitor_exception_ch::visit_exception (be_exception *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - os = this->ctx_->stream (); - - os->gen_ifdef_macro (node->flatname (), "_ptr"); - - os->indent (); - *os << "class " << node->local_name () << ";" << be_nl; - // generate the _ptr declaration - *os << "typedef " << node->local_name () << " *" - << node->local_name () << "_ptr;" << be_nl; - os->gen_endif (); - - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); - *os << "class " << idl_global->export_macro () - << " " << node->local_name () - << " : public CORBA::UserException" << be_nl; - *os << "{" << be_nl - << "public:\n"; - os->incr_indent (); - // constructors and destructor - *os << node->local_name () << " (void); // default ctor" << be_nl; - *os << node->local_name () << " (const " << node->local_name () - << " &); // copy ctor" << be_nl; - *os << "~" << node->local_name () << " (void); // dtor" << be_nl; - - os->indent (); - // assignment operator - *os << node->local_name () << " &operator= (const " - << node->local_name () << " &);\n\n"; - - *os << be_nl - << "virtual void _raise (void);\n" << be_nl - << "static " << node->local_name () - << " *_narrow (CORBA::Exception *);\n\n"; - - // generate constructor that takes each member as a parameter. We need a - // new state. Such a constructor exists if we have members - if (node->member_count () > 0) - { - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_exception - " - "codegen for ctor failed\n"), -1); - } - delete visitor; - } - - // generate code for field members - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_ch::" - "visit_exception - " - "codegen for scope failed\n"), -1); - } - - *os << be_nl - << "// = TAO extension" << be_nl - << "static CORBA::Exception *_alloc (void);\n" << be_uidt_nl - << "}; // exception " << node->name () - << "\n" << be_nl; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_ch::" - "visit_exception - " - "TypeCode declaration failed\n" - ), -1); - } - - - os->gen_endif (); - - node->cli_hdr_gen (1); - - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp deleted file mode 100644 index 7f7a34758b1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp +++ /dev/null @@ -1,69 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Exception in the inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, exception_ci, "$Id$") - - -// ****************************************************** -// for client inline -// ****************************************************** - -be_visitor_exception_ci::be_visitor_exception_ci (be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_ci::~be_visitor_exception_ci (void) -{ -} - -// visit the Exception node and its scope -int be_visitor_exception_ci::visit_exception (be_exception *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - - if (!node->cli_inline_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - os->indent (); - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for exception " << node->name () << be_nl; - *os << "// *************************************************************\n\n"; - - // generate inline code required of any anonymous types of members - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_exception -" - "code for inline failed\n"), -1); - } - - node->cli_inline_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp deleted file mode 100644 index 17aa786ba9f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp +++ /dev/null @@ -1,210 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Exception in the stubs file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, exception_cs, "$Id$") - - -// *************************************************************************** -// for client stubs -// *************************************************************************** -be_visitor_exception_cs::be_visitor_exception_cs (be_visitor_context *ctx) - : be_visitor_exception (ctx) -{ -} - -be_visitor_exception_cs::~be_visitor_exception_cs (void) -{ -} - -// visit the Exception_Cs node and its scope -int be_visitor_exception_cs::visit_exception (be_exception *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_stub_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - // default constructor - os->indent (); - *os << "// default constructor" << be_nl; - *os << node->name () << "::" << node->local_name () << " (void)" << be_nl; - *os << " : CORBA_UserException (" - << node->tc_name () << ")\n"; - *os << "{" << be_nl; - *os << "}\n\n"; - - // destructor - os->indent (); - *os << "// destructor - all members are of self managing types" << be_nl; - *os << node->name () << "::~" << node->local_name () << " (void)" << be_nl; - *os << "{" << be_nl; - *os << "}\n\n"; - - // copy constructor - os->indent (); - *os << "// copy constructor" << be_nl; - *os << node->name () << "::" << node->local_name () << " (const " << - node->name () << " &_tao_excp)" << be_nl; - *os << " : CORBA_UserException (" << - "_tao_excp._type ())" << be_nl; - *os << "{\n"; - os->incr_indent (); - // assign each individual member - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception -" - "codegen for scope failed\n"), -1); - } - delete visitor; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator - os->indent (); - *os << "// assignment operator" << be_nl; - *os << node->name () << "&" << be_nl; - *os << node->name () << "::operator= (const " - << node->name () << " &_tao_excp)" << be_nl - << "{\n" << be_idt_nl - << "this->CORBA_UserException::operator= " - << "(_tao_excp);\n"; - // assign each individual member - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception -" - "codegen for scope failed\n"), -1); - } - delete visitor; - os->indent (); - *os << "return *this;" << be_uidt_nl - << "}\n\n"; - - // narrow method - os->indent (); - *os << "// narrow" << be_nl; - *os << node->name () << "_ptr " << be_nl; - *os << node->name () << "::_narrow (CORBA::Exception *exc)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (!ACE_OS::strcmp (\"" << node->repoID () << - "\", exc->_id ())) // same type" << be_nl; - *os << " return ACE_dynamic_cast (" << node->name () << "_ptr, exc);" << - be_nl; - *os << "else" << be_nl; - *os << " return 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - *os << be_nl - << "void " << node->name () << "::_raise ()" << be_nl - << "{" << be_idt_nl - << "TAO_RAISE(*this);" << be_uidt_nl - << "}\n\n"; - - // generate the _alloc method - os->indent (); - *os << "// TAO extension - the _alloc method" << be_nl; - *os << "CORBA::Exception *" << node->name () - << "::_alloc (void)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return new " << node->name () << ";" << be_uidt_nl; - *os << "}\n\n"; - - // constructor taking all members. It exists only if there are any - // members - if (node->member_count () > 0) - { - // generate the signature - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_CS); - visitor = tao_cg->make_visitor (&ctx); - - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception::" - "visit_exception - " - "codegen for ctor failed\n"), -1); - } - delete visitor; - - *os << " : CORBA_UserException " - << " (CORBA::TypeCode::_duplicate (" << node->tc_name () - << "))" << be_nl; - *os << "{\n"; - os->incr_indent (); - // assign each individual member. We need yet another state - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CTOR_ASSIGN_CS); - ctx.exception (1); // indicate that the special ctor is being - // generated - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception -" - "codegen for scope failed\n"), -1); - } - delete visitor; - os->decr_indent (); - *os << "}\n\n"; - } - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_exception_cs::" - "visit_exception - " - "TypeCode definition failed\n" - ), -1); - } - - node->cli_stub_gen (I_TRUE); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp deleted file mode 100644 index 598c6d0db18..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp +++ /dev/null @@ -1,302 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ctor.cpp -// -// = DESCRIPTION -// Visitor generating code for the special constructor for Exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_exception.h" - -ACE_RCSID(be_visitor_exception, exception_ctor, "$Id$") - - -// ************************************************************************ -// code to generate the special ctor -// ************************************************************************ - -be_visitor_exception_ctor::be_visitor_exception_ctor -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_exception_ctor::~be_visitor_exception_ctor (void) -{ -} - -int -be_visitor_exception_ctor::post_process (void) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - *os << ",\n"; - return 0; -} - -int be_visitor_exception_ctor::visit_exception (be_exception *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - this->ctx_->node (node); // save the argument node - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << node->local_name (); - else - *os << node->name () << "::" << node->local_name (); - *os << "(" << be_idt << "\n"; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor_assign::" - "visit_exception - " - "codegen for scope failed\n"), - -1); - } - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << be_uidt << ");\n\n"; - else - *os << be_uidt << ")\n\n"; - - return 0; -} - -int be_visitor_exception_ctor::visit_field (be_field *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // retrieve the type - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor::" - "visit_exception - " - "Bad field type\n"), - -1); - } - - os->indent (); - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor::" - "visit_field - " - "cannot accept visitor\n"), - -1); - } - - *os << " _tao_" << node->local_name (); - return 0; -} - -int be_visitor_exception_ctor::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - return 0; -} - -int be_visitor_exception_ctor::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int be_visitor_exception_ctor::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << "_ptr "; - return 0; -} - -int be_visitor_exception_ctor::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << "_ptr "; - return 0; -} - -int be_visitor_exception_ctor::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // check if the type is an any - if (node->pt () == AST_PredefinedType::PT_any) - { - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; - } // end of if - else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object - { - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << "_ptr "; - } // end else if - else // simple predefined types - { - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - } // end of else - - return 0; -} - -int be_visitor_exception_ctor::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; -} - -int be_visitor_exception_ctor::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - *os << "const char *"; - return 0; -} - -int be_visitor_exception_ctor::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; -} - -int be_visitor_exception_ctor::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // get output stream - - // set the right type; - be_type *bt; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope ()); - else - *os << "const " << bt->name (); - *os << " &"; - return 0; -} - -int be_visitor_exception_ctor::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_exception_ctor::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_field.cpp b/TAO/TAO_IDL/be/be_visitor_field.cpp deleted file mode 100644 index 00f70870bed..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field.cpp +++ /dev/null @@ -1,34 +0,0 @@ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_field.cpp -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -// include all the individual files -#include "be_visitor_field/field_ch.cpp" -#include "be_visitor_field/field_ci.cpp" -#include "be_visitor_field/field_cs.cpp" -#include "be_visitor_field/cdr_op_ch.cpp" -#include "be_visitor_field/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_field, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp deleted file mode 100644 index 93be4a933f5..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp +++ /dev/null @@ -1,294 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating CDR operator declarator for field in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -ACE_RCSID(be_visitor_field, cdr_op_ch, "$Id$") - - -// ********************************************** -// visitor for field in the client header file -// ********************************************** - -// constructor -be_visitor_field_cdr_op_ch::be_visitor_field_cdr_op_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_cdr_op_ch::~be_visitor_field_cdr_op_ch (void) -{ -} - -// visit the field node -int -be_visitor_field_cdr_op_ch::visit_field (be_field *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - - return 0; -} - -// =visit operations on all possible data types that a field can be - -// visit array type -int -be_visitor_field_cdr_op_ch::visit_array (be_array *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit enum type -int -be_visitor_field_cdr_op_ch::visit_enum (be_enum *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit sequence type -int -be_visitor_field_cdr_op_ch::visit_sequence (be_sequence *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit structure type -int -be_visitor_field_cdr_op_ch::visit_structure (be_structure *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit typedefed type -int -be_visitor_field_cdr_op_ch::visit_typedef (be_typedef *node) -{ - // save the node for use in code generation and - // indicate that the field of the field node - // is a typedefed quantity - this->ctx_->alias (node); - - // make a decision based on the primitive base type - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_cdr_op_ch::visit_union (be_union *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp deleted file mode 100644 index 11ac9841a35..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp +++ /dev/null @@ -1,699 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Field in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -ACE_RCSID(be_visitor_field, cdr_op_cs, "$Id$") - - -// ********************************************** -// visitor for field in the client stubs file -// ********************************************** - -// constructor -be_visitor_field_cdr_op_cs::be_visitor_field_cdr_op_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_cdr_op_cs::~be_visitor_field_cdr_op_cs (void) -{ -} - -// visit the field node -int -be_visitor_field_cdr_op_cs::visit_field (be_field *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// visit array -int -be_visitor_field_cdr_op_cs::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generation substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - // check if we are an anonymous array - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - *os << "(strm >> " << f->name () << "_forany " - << "(ACE_static_cast (" << f->name () << "_slice *, " - << "_tao_aggregate." << f->local_name () << ")))"; - } - else - { - // it is a typedef - *os << "(strm >> " << node->name () << "_forany " - << "(ACE_static_cast (" << node->name () << "_slice *, " - << "_tao_aggregate." << f->local_name () << ")))"; - } - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - // check if we are an anonymous array - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - *os << "(strm << " << f->name () << "_forany " - << "(ACE_static_cast (" << f->name () << "_slice *, " - << "_tao_aggregate." << f->local_name () << ")))"; - } - else - { - // it is a typedef - *os << "(strm << " << node->name () << "_forany " - << "(ACE_static_cast (" << node->name () << "_slice *, " - << "_tao_aggregate." << f->local_name () << ")))"; - } - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "bad sub state\n" - ), -1); - } - - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. Generate the <<, >> operators - // for the type defined by the anonymous array - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit enum type -int -be_visitor_field_cdr_op_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_enum - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the typcode for enums - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit interface type -int -be_visitor_field_cdr_op_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_interface - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ".out ())"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ".in ())"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done because an interface cannit be declared inside a - // structure - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_interface - " - "bad sub state\n" - ), -1); - } - return 0; -} - -// visit interface forward type -int -be_visitor_field_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_interface_fwd - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ").out ()"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ").in ()"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done because an interface cannit be declared inside a - // structure - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_interface_fwd - " - "bad sub state\n" - ), -1); - } - return 0; -} - -// visit predefined type -int -be_visitor_field_cdr_op_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_predefined_type - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - // is a psuedo obj - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "(strm >> _tao_aggregate." << f->local_name () - << ".out ())"; - else if (node->pt () == AST_PredefinedType::PT_char) - *os << "(strm >> CORBA::Any::to_char (_tao_aggregate." - << f->local_name () << "))"; - else if (node->pt () == AST_PredefinedType::PT_wchar) - *os << "(strm >> CORBA::Any::to_wchar (_tao_aggregate." - << f->local_name () << "))"; - else if (node->pt () == AST_PredefinedType::PT_octet) - *os << "(strm >> CORBA::Any::to_octet (_tao_aggregate." - << f->local_name () << "))"; - else if (node->pt () == AST_PredefinedType::PT_boolean) - *os << "(strm >> CORBA::Any::to_boolean (_tao_aggregate." - << f->local_name () << "))"; - else - *os << "(strm >> _tao_aggregate." << f->local_name () << ")"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - // is a psuedo obj - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "(strm << _tao_aggregate." << f->local_name () << ".in ())"; - else if (node->pt () == AST_PredefinedType::PT_char) - *os << "(strm << CORBA::Any::from_char (_tao_aggregate." - << f->local_name () << "))"; - else if (node->pt () == AST_PredefinedType::PT_wchar) - *os << "(strm << CORBA::Any::from_wchar (_tao_aggregate." - << f->local_name () << "))"; - else if (node->pt () == AST_PredefinedType::PT_octet) - *os << "(strm << CORBA::Any::from_octet (_tao_aggregate." - << f->local_name () << "))"; - else if (node->pt () == AST_PredefinedType::PT_boolean) - *os << "(strm << CORBA::Any::from_boolean (_tao_aggregate." - << f->local_name () << "))"; - else - *os << "(strm << _tao_aggregate." << f->local_name () << ")"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "bad sub state\n" - ), -1); - } - - return 0; -} - -int -be_visitor_field_cdr_op_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_sequence - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_sequence - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef - && node->is_child (this->ctx_->scope ())) - // not a typedef AND - // node is defined inside the structure - { - // Anonymous sequence - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit string type -int -be_visitor_field_cdr_op_cs::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_string - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ".out ())"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ".in ())"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_array - " - "bad sub state\n" - ), -1); - } - - return 0; -} - -// visit structure type -int -be_visitor_field_cdr_op_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_structure - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_structure - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit typedef type -int -be_visitor_field_cdr_op_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_cdr_op_cs::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the field node - be_field *f = this->ctx_->be_node_as_field (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_union - " - "cannot retrieve field node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_aggregate." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_union - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cdr_op_cs::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp b/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp deleted file mode 100644 index 832c0a9ea0f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp +++ /dev/null @@ -1,455 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Field node in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -ACE_RCSID(be_visitor_field, field_ch, "$Id$") - - -// ********************************************** -// visitor for field in the client header file -// ********************************************** - -// constructor -be_visitor_field_ch::be_visitor_field_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_ch::~be_visitor_field_ch (void) -{ -} - -// visit the field node -int -be_visitor_field_ch::visit_field (be_field *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // field's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - // now output the field name. However, don't do it if the type was an - // anonymous array because generation of the field member got handled by the - // array code generation - - if (bt->node_type () != AST_Decl::NT_array) - *os << " " << node->local_name () << ";\n"; - return 0; -} - -// =visit operations on all possible data types that a field can be - -// visit array type -int -be_visitor_field_ch::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - else - { - // this was a typedefed array - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - } - return 0; -} - -// visit enum type -int -be_visitor_field_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // now use this enum as a "type" for the subsequent declarator - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - - return 0; -} - -// visit interface type -int -be_visitor_field_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - os->indent (); - *os << "TAO_Object_Field_T<" - << bt->nested_type_name (this->ctx_->scope (), "") - << ">"; - return 0; -} - -// visit interface forward type -int -be_visitor_field_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - os->indent (); - *os << "TAO_Object_Field_T<" - << bt->nested_type_name (this->ctx_->scope (), "") - << ">"; - return 0; -} - -// visit predefined type -int -be_visitor_field_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - os->indent (); // start from current indentation level - if (node->pt () == AST_PredefinedType::PT_pseudo) // is a psuedo obj - *os << bt->nested_type_name (this->ctx_->scope (), "_var"); - else - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// visit sequence type -int -be_visitor_field_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// visit string type -int -be_visitor_field_ch::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - os->indent (); // start from current indentation level - // set the right type; - if (this->ctx_->alias ()) - { - *os << this->ctx_->alias ()->nested_type_name (this->ctx_->scope ()) - << "_var"; - } - else - *os << "CORBA::String_var"; - return 0; -} - -// visit structure type -int -be_visitor_field_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} - -// visit typedefed type -int -be_visitor_field_ch::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the node for use in code generation and - // indicate that the field of the field node - // is a typedefed quantity - - // make a decision based on the primitive base type - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_spec_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; - - os = this->ctx_->stream (); - // set the right type; - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); // start from current indentation level - *os << bt->nested_type_name (this->ctx_->scope ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp b/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp deleted file mode 100644 index 28eb711e10b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp +++ /dev/null @@ -1,223 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Field in the client inline file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -ACE_RCSID(be_visitor_field, field_ci, "$Id$") - - -// ********************************************** -// visitor for field in the client inline file. -// -// Generate inline code for types that are defined -// inside the structure -// ********************************************** - -// constructor -be_visitor_field_ci::be_visitor_field_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_ci::~be_visitor_field_ci (void) -{ -} - -// visit the field node -int -be_visitor_field_ci::visit_field (be_field *node) -{ - be_type *bt = - be_type::narrow_from_decl (node->field_type ()); - // first generate the type information - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a field can be - -// visit array -int -be_visitor_field_ci::visit_array (be_array *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit sequence -int -be_visitor_field_ci::visit_sequence (be_sequence *node) -{ - // anonymous sequence - return 0; -} - -// visit structure type -int -be_visitor_field_ci::visit_structure (be_structure *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit typedef type -int -be_visitor_field_ci::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_ci::visit_union (be_union *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_ci::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp b/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp deleted file mode 100644 index 756c8aa123b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp +++ /dev/null @@ -1,285 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Field in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_field.h" - -ACE_RCSID(be_visitor_field, field_cs, "$Id$") - - -// ********************************************** -// visitor for field in the client stubs file -// ********************************************** - -// constructor -be_visitor_field_cs::be_visitor_field_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_field_cs::~be_visitor_field_cs (void) -{ -} - -// visit the field node -int -be_visitor_field_cs::visit_field (be_field *node) -{ - // first generate the type information - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} - -// visit array -int -be_visitor_field_cs::visit_array (be_array *node) -{ - // if not a typedef and we are defined in the use scope, we must be - // defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit enum type -int -be_visitor_field_cs::visit_enum (be_enum *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the typcode for enums - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -int -be_visitor_field_cs::visit_sequence (be_sequence *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit structure type -int -be_visitor_field_cs::visit_structure (be_structure *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit typedef type -int -be_visitor_field_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_field_cs::visit_union (be_union *node) -{ - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_field_cs::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface.cpp deleted file mode 100644 index 10d6df9fde0..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface.cpp +++ /dev/null @@ -1,43 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Interface -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -// include all the individual files -#include "be_visitor_interface/interface.cpp" -#include "be_visitor_interface/interface_ch.cpp" -#include "be_visitor_interface/interface_ci.cpp" -#include "be_visitor_interface/interface_cs.cpp" -#include "be_visitor_interface/interface_sh.cpp" -#include "be_visitor_interface/interface_si.cpp" -#include "be_visitor_interface/interface_ss.cpp" -#include "be_visitor_interface/collocated_sh.cpp" -#include "be_visitor_interface/collocated_ss.cpp" -#include "be_visitor_interface/tie_sh.cpp" -#include "be_visitor_interface/tie_si.cpp" -#include "be_visitor_interface/any_op_ch.cpp" -#include "be_visitor_interface/any_op_cs.cpp" -#include "be_visitor_interface/cdr_op_ch.cpp" -#include "be_visitor_interface/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_interface, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp deleted file mode 100644 index edf9ef073be..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp +++ /dev/null @@ -1,73 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for an Interface in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, any_op_ch, "$Id$") - - -// *************************************************************************** -// Interface visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_interface_any_op_ch::be_visitor_interface_any_op_ch -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_any_op_ch::~be_visitor_interface_any_op_ch (void) -{ -} - -int -be_visitor_interface_any_op_ch::visit_interface (be_interface *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "// Any operators for interface " << node->name () << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "_ptr);" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::visit_interface - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp deleted file mode 100644 index c06122bb3fd..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp +++ /dev/null @@ -1,116 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for Interface in the stubs -// file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, any_op_cs, "$Id$") - - -// *************************************************************************** -// Interface visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_interface_any_op_cs::be_visitor_interface_any_op_cs -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_any_op_cs::~be_visitor_interface_any_op_cs (void) -{ -} - -int -be_visitor_interface_any_op_cs::visit_interface (be_interface *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << "_ptr _tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::Object_ptr *_tao_obj_ptr;" << be_nl - << "ACE_NEW (_tao_obj_ptr, CORBA::Object_ptr);" << be_nl - << "*_tao_obj_ptr = " << node->name () - << "::_duplicate (_tao_elem);" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_obj_ptr, 1, _tao_env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << "_ptr &_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_elem = " << node->name () << "::_nil ();" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "CORBA::Object_ptr *_tao_obj_ptr;" << be_nl - << "ACE_NEW_RETURN (_tao_obj_ptr, CORBA::Object_ptr, 0);" << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_obj_ptr, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "_tao_elem = " << node->name () - << "::_narrow (*_tao_obj_ptr, _tao_env);" << be_nl - << "if (_tao_env.exception ()) return 0; // narrow failed" << be_nl - << "CORBA::release (*_tao_obj_ptr);" << be_nl - << "*_tao_obj_ptr = _tao_elem;" << be_nl - << "((CORBA::Any *)&_tao_any)->replace (" - << node->tc_name () << ", _tao_obj_ptr, 1, _tao_env);" << be_nl - << "if (_tao_env.exception ()) return 0; // narrow failed" << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_nl - << "return 0; // failure" << be_uidt_nl - << "}\n\n"; - - *os << "#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)" << be_idt_nl - << "template class TAO_Object_Field_T<" - << node->name () << ">;" << be_uidt_nl - << "#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)" << be_nl - << "# pragma instantiate TAO_Object_Field_T<" - << node->name () << ">" << be_nl - << "#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */\n\n"; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::visit_interface - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp deleted file mode 100644 index 73ed62d13b7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for interfaces. This uses -// compiled marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, cdr_op_ch, "$Id$") - -// *************************************************************************** -// Interface visitor for generating CDR operator declarations in the client header -// *************************************************************************** - -be_visitor_interface_cdr_op_ch::be_visitor_interface_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_cdr_op_ch::~be_visitor_interface_cdr_op_ch (void) -{ -} - -int -be_visitor_interface_cdr_op_ch::visit_interface (be_interface *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operator declarations - os->indent (); - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << "_ptr ); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << "_ptr &);\n"; - - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cdr_op_ch::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - - - node->cli_hdr_cdr_op_gen (1); - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp deleted file mode 100644 index 2447cd44d2a..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp +++ /dev/null @@ -1,104 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for interfaces -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, cdr_op_cs, "$Id$") - -// *************************************************************************** -// Interface visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_interface_cdr_op_cs::be_visitor_interface_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_cdr_op_cs::~be_visitor_interface_cdr_op_cs (void) -{ -} - -int -be_visitor_interface_cdr_op_cs::visit_interface (be_interface *node) -{ - // already generated and/or we are imported. Don't do anything. - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // set the sub state as generating code for the output operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT); - *os << "CORBA::Boolean operator<< (TAO_OutputCDR &strm, " - << "const " << node->name () << "_ptr _tao_objref)" << be_nl - << "{" << be_idt_nl; - // hand over the encoding to the TAO's internal engine - *os << "CORBA::Environment env;" << be_nl; - *os << "if (TAO_MARSHAL_OBJREF::instance ()->" << be_nl - << " encode (0, &_tao_objref, 0, &strm, env) == " << be_nl - << " CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt_nl; - *os << "}\n\n"; - - // set the substate as generating code for the input operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_INPUT); - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << "_ptr &_tao_objref)" << be_nl - << "{" << be_idt_nl; - // hand over to the TAO's internal marshaling engine - *os << "CORBA::Environment env;" << be_nl; - *os << "CORBA::Object_ptr obj;" << be_nl; - *os << "if (TAO_MARSHAL_OBJREF::instance ()->" << be_nl - << " decode (0, &obj, 0, &strm, env) == " << be_nl - << " CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl; - *os << "// narrow to the right type" << be_nl; - *os << "_tao_objref = " << node->name () - << "::_narrow (obj, env);" << be_nl; - *os << "CORBA::release (obj);" << be_nl; - *os << "if (!CORBA::is_nil (_tao_objref))" << be_idt_nl - << "return 1;" << be_uidt_nl; - *os << "}" << be_uidt_nl; - *os << "return 0; // error" << be_uidt_nl; - *os << "}\n\n"; - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cdr_op_cs" - "::visit_interface - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_cdr_op_gen (1); - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_interface/collocated_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/collocated_sh.cpp deleted file mode 100644 index 46a63786e3a..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/collocated_sh.cpp +++ /dev/null @@ -1,140 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for collocated classes for the Interface node -// inside the server header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, collocated_sh, "$Id$") - - -// ************************************************************ -// collocated class in header -// ************************************************************ - -be_visitor_interface_collocated_sh::be_visitor_interface_collocated_sh -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_collocated_sh::~be_visitor_interface_collocated_sh (void) -{ -} - -int be_visitor_interface_collocated_sh::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->gen_ifdef_macro (node->flatname (), "_collocated"); - - // output the class defn - os->indent (); - *os << "class " << idl_global->export_macro () - << " " << node->local_coll_name (); - os->incr_indent (); - *os << " : public virtual " << node->name (); - - // generate base classes if any - if (node->n_inherits () > 0) - { - for (int i = 0; i < node->n_inherits (); ++i) - { - *os << "," << be_nl; - be_interface* parent = - be_interface::narrow_from_decl (node->inherits()[i]); - *os << " public virtual " - << parent->relative_coll_name (node->full_coll_name ()); - } - } - *os << "\n"; - os->decr_indent (); - *os << "{" << be_nl; - *os << "public:\n"; - os->incr_indent (); - - *os << node->local_coll_name () << " (\n"; - - os->incr_indent (0); - os->incr_indent (); - - // XXXASG - can we make this a method to return the right name ?? - if (!node->is_nested ()) - { - // The skeleton name is the outermost, we need to printout the - // POA_ prefix that goes with it. - *os << "POA_"; - } - - *os << node->local_name () << "_ptr " - << " servant," << be_nl; - - *os << "STUB_Object *stub\n"; - os->decr_indent (); - *os << ");\n"; - os->decr_indent (0); - - os->indent (); - if (!node->is_nested ()) - { - // The skeleton name is the outermost, we need to printout the - // POA_ prefix that goes with it. - *os << "POA_"; - } - *os << node->local_name () - << "_ptr _get_servant (void) const;" << be_nl; - - *os << "virtual CORBA::Boolean _is_a (" << be_idt << be_idt_nl - << "const char *logical_type_id," << be_nl - << "CORBA::Environment &_tao_environment = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n"; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_collocated_sh::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - - os->decr_indent (); - - *os << be_nl << "private:\n"; - os->incr_indent (); - if (!node->is_nested ()) - { - // The skeleton name is the outermost, we need to printout the - // POA_ prefix that goes with it. - *os << "POA_"; - } - *os << node->local_name () << "_ptr servant_;\n"; - os->decr_indent (); - *os << "};\n\n"; - - os->gen_endif (); - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/collocated_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/collocated_ss.cpp deleted file mode 100644 index a89bb37be3c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/collocated_ss.cpp +++ /dev/null @@ -1,136 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for collocated classes for an Interface in the -// server skeleton file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, collocated_ss, "$Id$") - - -// ************************************************************ -// be_visitor_interface_collacted_ss -// ************************************************************ - -be_visitor_interface_collocated_ss::be_visitor_interface_collocated_ss -(be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_collocated_ss::~be_visitor_interface_collocated_ss (void) -{ -} - -int be_visitor_interface_collocated_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os = tao_cg->server_skeletons (); - - this->ctx_->node (node); - - *os << node->full_coll_name () << "::" - << node->local_coll_name () << " (\n"; - - os->incr_indent (0); - os->incr_indent (); - *os << node->full_skel_name () << "_ptr " - << " servant," << be_nl; - - *os << "STUB_Object *stub\n"; - os->decr_indent (); - *os << ")\n"; - os->decr_indent (0); - - os->incr_indent (); - - if (node->is_nested ()) - { - be_decl* scope = - be_scope::narrow_from_scope (node->defined_in ())->decl (); - - *os << ": ACE_NESTED_CLASS (" - << scope->name () << "," - << node->local_name () - << ") ()," << be_nl; - } - else - { - *os << ": " << node->name () - << " ()," << be_nl; - } - - // @@ We should call the constructor for all base classes, since we - // are using multiple inheritance. - - if (node->traverse_inheritance_graph (be_interface::collocated_ctor_helper, os) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_collocated_ss::" - "visit_interface - " - "codegen for base class ctor init failed\n"), - -1); - } - - *os << " CORBA_Object (stub, servant, 1)," << be_nl - << " servant_ (servant)"; - - *os << "\n"; - os->decr_indent (); - *os << "{\n"; - *os << "}\n\n"; - - os->indent (); - *os << node->full_skel_name () << "_ptr " - << node->full_coll_name () << "::" - << "_get_servant (void) const\n" - << "{\n"; - os->incr_indent (); - *os << "return this->servant_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "CORBA::Boolean " << node->full_coll_name () - << "::_is_a (" << be_idt << be_idt_nl - << "const char* logical_type_id," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << "return this->servant_->_is_a (" << be_idt << be_idt_nl - << "logical_type_id," << be_nl - << "_tao_environment" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}\n\n"; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_collocated_ss::" - "visit_scope - " - "codegen for scope failed\n"), - -1); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp deleted file mode 100644 index a6b83a2f488..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp +++ /dev/null @@ -1,663 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces. This is a generic visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface, "$Id$") - - -// ****************************************************** -// Generic Interface visitor -// ****************************************************** - -be_visitor_interface::be_visitor_interface (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_interface::~be_visitor_interface (void) -{ -} - -// this method must be overridden by the derived interface visitors -int -be_visitor_interface::visit_interface (be_interface *node) -{ - return -1; -} - -// =all common visit methods for interface visitor - -// visit an attribute -int -be_visitor_interface::visit_attribute (be_attribute *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_SS: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_SS); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_TIE_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_ATTRIBUTE_TIE_SI); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_attribute - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_attribute - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_attribute - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a constant -int -be_visitor_interface::visit_constant (be_constant *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_constant - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_constant - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_interface::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an exception -int -be_visitor_interface::visit_exception (be_exception *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_exception - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_exception - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_exception - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an operation -int -be_visitor_interface::visit_operation (be_operation *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_OPERATION_CH); - // return node->gen_client_header (); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_OPERATION_CS); - // return node->gen_client_stubs (); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_SH); - // return node->gen_server_header (); - break; - case TAO_CodeGen::TAO_INTERFACE_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_SS); - // return node->gen_server_skeletons (); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_SS); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SH); - break; - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - ctx.state (TAO_CodeGen::TAO_OPERATION_TIE_SI); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - case TAO_CodeGen::TAO_INTERFACE_CI: - case TAO_CodeGen::TAO_INTERFACE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_operation - " - "Bad context state\n" - ), -1); - } - } - - // grab the appropriate visitor - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_operation - " - "NUL visitor\n" - ), -1); - } - - // visit the node using this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_operation - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_interface::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a union -int -be_visitor_interface::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_union - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a typedef -int -be_visitor_interface::visit_typedef (be_typedef *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_INTERFACE_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CI: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CI); - break; - case TAO_CodeGen::TAO_INTERFACE_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_INTERFACE_SH: - case TAO_CodeGen::TAO_INTERFACE_SI: - case TAO_CodeGen::TAO_INTERFACE_SS: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH: - case TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS: - case TAO_CodeGen::TAO_INTERFACE_TIE_SH: - case TAO_CodeGen::TAO_INTERFACE_TIE_SI: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_typedef - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_typedef - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp deleted file mode 100644 index 5621a2e5c47..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp +++ /dev/null @@ -1,223 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface_ch, "$Id$") - - -// ****************************************************** -// Interface visitor for client header -// ****************************************************** - -be_visitor_interface_ch::be_visitor_interface_ch (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_ch::~be_visitor_interface_ch (void) -{ -} - -int -be_visitor_interface_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - long i; // loop index - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - - os = this->ctx_->stream (); - - // == STEP 1: generate the class name and class names we inherit == - - // generate the ifdefined macro for the _ptr type - os->gen_ifdef_macro (node->flatname (), "_ptr"); - - // the following two are required to be under the ifdef macro to avoid - // multiple declarations - - os->indent (); // start with whatever indentation level we are at - // forward declaration - *os << "class " << node->local_name () << ";" << be_nl; - // generate the _ptr declaration - *os << "typedef " << node->local_name () << " *" << node->local_name () - << "_ptr;" << be_nl; - - os->gen_endif (); - - // generate the ifdefined macro for the var type - os->gen_ifdef_macro (node->flatname (), "_var"); - - // generate the _var declaration - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "codegen for _var failed\n"), -1); - } - os->gen_endif (); - - // generate the ifdef macro for the _out class - os->gen_ifdef_macro (node->flatname (), "_out"); - - // generate the _out declaration - ORBOS/97-05-15 pg 16-20 spec - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "codegen for _out failed\n"), -1); - } - // generate the endif macro - os->gen_endif (); - - // now the interface definition itself - os->gen_ifdef_macro (node->flatname ()); - - // now generate the class definition - os->indent (); - *os << "class " << idl_global->export_macro () - << " " << node->local_name (); - - if (node->n_inherits () > 0) // node interface inherits from other - // interfaces - { - *os << ": "; - for (i = 0; i < node->n_inherits (); i++) - { - be_interface *inherited = - be_interface::narrow_from_decl (node->inherits ()[i]); - be_decl *scope = 0; - if (inherited->is_nested ()) - { - // inherited node is used in the scope of "node" node - scope = be_scope::narrow_from_scope (node->defined_in ()) - ->decl (); - } - - *os << "public virtual "; - *os << inherited->nested_type_name (scope); // dump the scoped name - if (i < node->n_inherits () - 1) // node is the case of multiple - // inheritance, so put a comma - { - *os << ", "; - } - } // end of for loop - *os << be_nl; - } - else - { - // we do not inherit from anybody, hence we do so from the base - // CORBA::Object class - // Generate code that uses the macro. This is required to deal with - // the MSVC++ insanity - *os << " : public virtual ACE_CORBA_1 (Object)" << be_nl; - } - - // generate the body - - *os << "{" << be_nl - << "public:" << be_idt_nl - // generate the static _duplicate, _narrow, and _nil operations - << "// the static operations" << be_nl - << "static " << node->local_name () << "_ptr " << "_duplicate (" - << node->local_name () << "_ptr obj);" << be_nl - << "static " << node->local_name () << "_ptr " - << "_narrow (" << be_idt << be_idt_nl - << "CORBA::Object_ptr obj," << be_nl - << "CORBA::Environment &env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt_nl - << "static " << node->local_name () << "_ptr " << "_nil (void);\n\n"; - - // generate code for the interface definition by traversing thru the - // elements of its scope. We depend on the front-end to have made sure - // that only legal syntactic elements appear in our scope. - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - // the _is_a method - os->indent (); - *os << "virtual CORBA::Boolean _is_a (" << be_idt << be_idt_nl - << "const CORBA::Char *type_id, " << be_nl - << "CORBA::Environment &env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt_nl - << "virtual const char* " - << "_interface_repository_id (void) const;" << be_uidt_nl; - - // generate the "protected" constructor so that users cannot instantiate - // us - *os << "protected:" << be_idt_nl - << node->local_name () << " (void); // default constructor" << be_nl - << node->local_name () - << " (STUB_Object *objref, " << be_idt << be_idt_nl - << "TAO_ServantBase *_tao_servant = 0, " << be_nl - << "CORBA::Boolean _tao_collocated = 0" << be_uidt_nl - << ");" << be_uidt_nl - << "virtual ~" << node->local_name () << " (void);" << be_uidt_nl; - - // private copy constructor and assignment operator. These are not - // allowed, hence they are private. - *os << "private:\n"; - os->incr_indent (); - *os << node->local_name () << " (const " << node->local_name () << " &);" - << be_nl - << "void operator= (const " << node->local_name () << " &);\n"; - - os->decr_indent (); - *os << "};\n\n"; - os->gen_endif (); - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ch::" - "visit_interface - " - "TypeCode declaration failed\n" - ), -1); - } - - - node->cli_hdr_gen (I_TRUE); - } // if !cli_hdr_gen - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp deleted file mode 100644 index 420bd26cc40..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp +++ /dev/null @@ -1,104 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces in the client inline file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface_ci, "$Id$") - - -// ************************************************** -// Interface visitor for client inline -// ************************************************** -be_visitor_interface_ci::be_visitor_interface_ci (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_ci::~be_visitor_interface_ci (void) -{ -} - -int -be_visitor_interface_ci::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->cli_inline_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - os->indent (); // start from the current indentation level - - // generate the constructors and destructor - *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::" << node->local_name () << - " (void) // default constructor" << be_nl; - *os << "{}" << be_nl << be_nl; - - *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::" << node->local_name () << - " (STUB_Object *objref, TAO_ServantBase *_tao_servant, " - << "CORBA::Boolean _tao_collocated) // constructor" << be_nl; - *os << " : CORBA_Object (objref, _tao_servant, _tao_collocated)" << be_nl; - *os << "{}" << be_nl << be_nl; - - *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::~" << node->local_name () << - " (void) // destructor" << be_nl; - *os << "{}\n\n"; - - // generate the ifdefined macro for the _var type - os->gen_ifdef_macro (node->flatname (), "_var"); - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ci::" - "visit_interface - " - "codegen for _var failed\n"), -1); - } - os->gen_endif (); - - // generate the ifdefined macro for the _out type - os->gen_ifdef_macro (node->flatname (), "_out"); - if (node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ci::" - "visit_interface - " - "codegen for _out failed\n"), -1); - } - os->gen_endif (); - - // generate inline methods for elements of our scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_ci::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp deleted file mode 100644 index 776e06e1593..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp +++ /dev/null @@ -1,185 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface_cs, "$Id$") - - -// ************************************************************ -// Interface visitor for client stubs -// ************************************************************ - -be_visitor_interface_cs::be_visitor_interface_cs (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_cs::~be_visitor_interface_cs (void) -{ -} - -int -be_visitor_interface_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->cli_stub_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - os->indent (); // start with whatever indentation level we are at - - // first generate the code for the static methods - - // The _duplicate method - *os << node->name () << "_ptr " << node->name () << "::_duplicate (" - << node->name () << "_ptr obj)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (!CORBA::is_nil (obj))\n"; - os->incr_indent (); - *os << "obj->_incr_refcnt ();\n"; - os->decr_indent (); - *os << be_nl; - *os << "return obj;\n"; - os->decr_indent (); - *os << "} // end of _duplicate" << be_nl << be_nl; - - // The _narrow method - *os << node->name () << "_ptr " << node->name () - << "::_narrow (" << be_idt << be_idt_nl - << "CORBA::Object_ptr obj," << be_nl - << "CORBA::Environment &env" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << "if (CORBA::is_nil (obj))" << be_idt_nl - << "return " << node->name () << "::_nil ();" << be_uidt_nl - << "if (!obj->_is_a (\"" << node->repoID () << "\", env))" - << be_idt_nl - << "return " << node->name () << "::_nil ();" << be_uidt_nl; - - *os << "if (!obj->_is_collocated ()" << be_idt << be_idt << be_idt_nl - << " || !obj->_servant()" << be_nl - << " || obj->_servant()->_downcast (\"" - << node->repoID () << "\") == 0" << be_uidt_nl - << ")" << be_uidt << be_uidt_nl - << "{" << be_idt_nl; - *os << "STUB_Object* stub = obj->_stubobj ();" << be_nl - << "stub->_incr_refcnt ();" << be_nl; - *os << node->name () << "_ptr new_obj = new " - << node->name () << "(stub);" << be_nl - << "return new_obj;" << be_uidt_nl - << "} // end of if" << be_nl; - - *os << "STUB_Object *stub = obj->_servant ()->_create_stub (env);" << be_nl - << "if (env.exception () != 0)" << be_idt_nl - << "return " << node->name () << "::_nil ();" << be_uidt_nl - << "void* servant = obj->_servant ()->_downcast (\"" - << node->repoID () << "\");" << be_nl - << "return new "; - - // This may be necessary to work around a GCC compiler bug! - const char *skel_name = node->full_skel_name (); - const char *coll_name = node->full_coll_name (); - assert (coll_name != 0); - - *os << coll_name << "(" << be_idt << be_idt_nl - << "ACE_reinterpret_cast(" << skel_name - << "_ptr, servant)," << be_nl - << "stub" << be_uidt_nl - << ");" << be_uidt << be_uidt_nl - << "}" << be_nl << be_nl; - - // _nil method - *os << node->name () << "_ptr " << node->name () << "::_nil (void)" << - be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return (" << node->name () << "_ptr)NULL;\n"; - os->decr_indent (); - *os << "} // end of _nil" << be_nl << be_nl; - - // generate code for the elements of the interface - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cs::" - "visit_interface - " - "codegen for scope failed\n"), -1); - } - - // generate the is_a method - os->indent (); - *os << "CORBA::Boolean " << node->name () << "::_is_a (" << - "const CORBA::Char *value, CORBA::Environment &env)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (\n"; - os->incr_indent (0); - if (node->traverse_inheritance_graph (be_interface::is_a_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cs::" - "visit_interface - " - "_is_a method codegen failed\n"), -1); - } - - os->indent (); - *os << "(!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env))))\n"; - *os << " return 1; // success using local knowledge\n"; - os->decr_indent (); - *os << "else" << be_nl; - *os << " return this->CORBA_Object::_is_a (value, env); // remote call\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "const char* " << node->name () - << "::_interface_repository_id (void) const" - << be_nl - << "{" << be_idt_nl - << "return \"" << node->repoID () << "\";" << be_uidt_nl - << "}\n\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_cs::" - "visit_interface - " - "TypeCode definition failed\n" - ), -1); - } - - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp deleted file mode 100644 index 62b52961f6c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp +++ /dev/null @@ -1,225 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface_sh, "$Id$") - - -// ************************************************************ -// Interface visitor for server header -// ************************************************************ - -be_visitor_interface_sh::be_visitor_interface_sh (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_sh::~be_visitor_interface_sh (void) -{ -} - -int -be_visitor_interface_sh::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - long i; // loop index - static char namebuf [NAMEBUFSIZE]; // holds the class name - - if (node->srv_hdr_gen () || node->imported ()) - return 0; - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - - os = this->ctx_->stream (); - - // generate the skeleton class name - - os->indent (); // start with whatever indentation level we are at - - // we shall have a POA_ prefix only if we are at the topmost level - if (!node->is_nested ()) - { - // we are outermost - ACE_OS::sprintf (namebuf, "POA_%s", node->local_name ()->get_string ()); - } - else - { - ACE_OS::sprintf (namebuf, "%s", node->local_name ()->get_string ()); - } - - *os << "class " << namebuf << ";" << be_nl; - - // generate the _ptr declaration - *os << "typedef " << namebuf << " *" << namebuf - << "_ptr;" << be_nl; - - // now generate the class definition - *os << "class " << idl_global->export_macro () - << " " << namebuf << " : "; - if (node->n_inherits () > 0) - { - // this interface inherits from other interfaces - be_interface *intf; // inherited interface - - *os << "public virtual "; - intf = be_interface::narrow_from_decl (node->inherits ()[0]); - *os << intf->relative_skel_name (node->full_skel_name ()); - for (i = 1; i < node->n_inherits (); i++) - { - *os << ", public virtual "; - intf = be_interface::narrow_from_decl (node->inherits ()[i]); - *os << intf->relative_skel_name (node->full_skel_name ()); - } // end of for loop - } - else - { - // We don't inherit from another user defined object, hence our - // base class is the ServantBase class. - *os << " public virtual PortableServer::ServantBase"; - } - *os << be_nl - << "{" << be_nl - << "protected:" << be_idt_nl - << namebuf << " (void);" << be_uidt_nl - << "public:" << be_idt_nl - << namebuf << " (" << namebuf << "& rhs);" << be_nl - << "virtual ~" << namebuf << " (void);" << be_nl; - - *os << "virtual CORBA::Boolean _is_a (" << be_idt << be_idt_nl - << "const char* logical_type_id," << be_nl - << "CORBA::Environment &_tao_environment = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt_nl; - - *os << "virtual void* _downcast (" << be_idt << be_idt_nl - << "const char* logical_type_id" << be_uidt_nl - << ");\n" << be_uidt; - - // generate code for elements in the scope (e.g., operations) - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - // add a skeleton for our _is_a method - os->indent (); - *os << "static void _is_a_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &_tao_enviroment = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - - // add a skeleton for our _non_existent method - os->indent (); - *os << "static void _non_existent_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &req," << be_nl - << "void *obj," << be_nl - << "void *context," << be_nl - << "CORBA::Environment &_tao_enviroment = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - - // add a method that says whether we are involved in a multiple inheritance - // or not - os->indent (); - *os << "CORBA::Boolean in_mult_inheritance (void);\n\n"; - - // generate skeletons for operations of our base classes. These skeletons - // just cast the pointer to the appropriate type before invoking the call - if (node->traverse_inheritance_graph (be_interface::gen_skel_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "inheritance graph traversal failed\n"), - -1); - } - - // add the dispatch method - os->indent (); - *os << "virtual void _dispatch (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_req," << be_nl - << "void *_tao_context," << be_nl - << "CORBA::Environment &_tao_env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - - // Print out the _this() method. - os->indent (); - *os << node->name () << " *_this (" << be_idt << be_idt_nl - << "CORBA::Environment &_tao_environment = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n"; - - // the _interface_repository_id method - os->indent (); - *os << "virtual const char* _interface_repository_id (void) const;\n"; - os->decr_indent (); - - *os << "};\n\n"; - - // generate the collocated class - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for collocated class failed\n"), - -1); - } - - // generate the TIE class - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_INTERFACE_TIE_SH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for TIE class failed\n"), - -1); - } - - *os << "\n"; - ctx.stream (tao_cg->server_template_header ()); - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_si.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_si.cpp deleted file mode 100644 index 76768659b91..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_si.cpp +++ /dev/null @@ -1,110 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_si.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces in the server inline file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface_si, "$Id$") - - -// ************************************************************************ -// Interface visitor for server inline -// ************************************************************************ - -be_visitor_interface_si::be_visitor_interface_si (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_si::~be_visitor_interface_si (void) -{ -} - -int -be_visitor_interface_si::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->srv_inline_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - // determine if we are in some form of a multiple inheritance - if (node->traverse_inheritance_graph - (be_interface::in_mult_inheritance_helper, 0) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_si::visit_interface " - "error determining mult inheritance\n"), - -1); - } - - os->indent (); // start with whatever indentation level we are at - *os << "ACE_INLINE CORBA::Boolean" << be_nl; - *os << node->full_skel_name () << "::in_mult_inheritance (void)" << be_nl - << "{" << be_idt_nl; - switch (node->in_mult_inheritance ()) - { - case 0: - *os << "return 0;"; - break; - case 1: - *os << "return 1;"; - break; - default: - // error - return -1; - } - *os << be_uidt_nl - << "}" << be_nl << be_nl; - - // Generate skeletons for operations of our base classes. These skeletons - // just cast the pointer to the appropriate type before invoking the - // call. Hence we generate these in the inline file - if (node->traverse_inheritance_graph (be_interface::gen_skel_helper, os) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_si::" - "visit_interface - " - "codegen for base class skeletons failed\n"), -1); - } - - // generate the TIE class - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_INTERFACE_TIE_SI); - ctx.stream (tao_cg->server_template_inline ()); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_sh::" - "visit_interface - " - "codegen for TIE class failed\n"), - -1); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp deleted file mode 100644 index fe96a9d80e8..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp +++ /dev/null @@ -1,342 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for Interfaces in the server skeletons file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, interface_ss, "$Id$") - - -// ************************************************************ -// Interface visitor for server skeletons -// ************************************************************ - -be_visitor_interface_ss::be_visitor_interface_ss (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_ss::~be_visitor_interface_ss (void) -{ -} - -int -be_visitor_interface_ss::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - - if (node->srv_skel_gen () || node->imported ()) - return 0; - - os = this->ctx_->stream (); - - // generate the skeleton class name - - os->indent (); // start with whatever indentation level we are at - - if (node->gen_operation_table () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "codegen for operation table failed\n"), - -1); - } - - // constructor - *os << "// skeleton constructor" << be_nl; - // find if we are at the top scope or inside some module - if (!node->is_nested ()) - { - // we are outermost. So the POA_ prefix is prepended to our name - *os << node->full_skel_name () << "::POA_" << node->local_name () << - " (void)" << be_nl; - } - else - { - // the POA_ prefix is prepended to our outermost module name - *os << node->full_skel_name () << "::" << node->local_name () << - " (void)" << be_nl; - } - - *os << "{" << be_idt_nl - << "this->optable_ = &tao_" << node->flatname () - << "_optable;" << be_uidt_nl - << "}\n\n"; - - *os << "// copy ctor" << be_nl; - // find if we are at the top scope or inside some module - if (!node->is_nested ()) - { - // we are outermost. So the POA_ prefix is prepended to our name - *os << node->full_skel_name () << "::POA_" - << node->local_name () << " (" - << "POA_" << node->local_name () << "& rhs)"; - } - else - { - // the POA_ prefix is prepended to our outermost module name - *os << node->full_skel_name () << "::" - << node->local_name () << " (" - << node->local_name () << "& rhs)"; - } - *os << be_idt_nl - << ": "; - if (node->traverse_inheritance_graph - (be_interface::copy_ctor_helper, os) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::visit_interface - " - " copy ctor generation failed\n"), -1); - *os << " TAO_ServantBase (rhs)" << be_uidt_nl - << "{}\n"; - - // destructor - os->indent (); - *os << "// skeleton destructor" << be_nl; - - if (!node->is_nested ()) - { - // we are outermost. So the POA_ prefix is prepended to our name - *os << node->full_skel_name () << "::~POA_" << node->local_name () << - " (void)" << be_nl; - } - else - { - // the POA_ prefix is prepended to our outermost module name - *os << node->full_skel_name () << "::~" << node->local_name () << - " (void)" << be_nl; - } - *os << "{\n"; - *os << "}\n"; - - - // generate code for elements in the scope (e.g., operations) - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "codegen for scope failed\n"), - -1); - } - - // generate code for the _is_a skeleton - os->indent (); - *os << "void " << node->full_skel_name () - << "::_is_a_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_server_request, " << be_nl - << "void * _tao_object_reference," << be_nl - << "void * /*context*/," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl; - *os << "{\n"; - os->incr_indent (); - *os << "static const TAO_Param_Data_Skel " << node->flatname () - << "_is_a_paramdata [] = " << be_nl; - *os << "{" << be_idt_nl; - *os << "{CORBA::_tc_boolean, 0, 0}," << be_nl; - *os << "{CORBA::_tc_string, CORBA::ARG_IN, 0}" << be_uidt_nl; - *os << "};" << be_nl; - *os << "static const TAO_Call_Data_Skel " << node->flatname () - << "_is_a_calldata = " << be_nl; - *os << "{\"_is_a\", 1, 2, " << node->flatname () << "_is_a_paramdata};" - << be_nl; - *os << "CORBA::Environment _tao_skel_environment;" << be_nl; - *os << node->full_skel_name () << "_ptr _tao_impl = (" - << node->full_skel_name () << "_ptr) _tao_object_reference;" - << be_nl; - *os << "CORBA::Boolean _tao_retval;" << be_nl; - *os << "char *_tao_value = 0;" << be_nl; - *os << "_tao_server_request.demarshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "&" << node->flatname () << "_is_a_calldata, " << be_nl - << "&_tao_retval, " << be_nl - << "&_tao_value" << be_uidt_nl - << ");" << be_nl; - *os << "if (_tao_environment.exception () != 0) return;" << be_nl; - *os << "_tao_retval = _tao_impl->_is_a (_tao_value, " - << "_tao_skel_environment);" << be_nl; - *os << "_tao_server_request.marshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "_tao_skel_environment," << be_nl - << "&" << node->flatname () << "_is_a_calldata, " << be_nl - << "&_tao_retval, " << be_nl - << "&_tao_value" << be_uidt_nl - << ");" << be_nl; - *os << "CORBA::string_free (_tao_value);" << be_uidt_nl; - *os << "}\n\n"; - - - os->indent (); - *os << "CORBA::Boolean " << node->full_skel_name () - << "::_is_a (" << be_idt << be_idt_nl - << "const char* value," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl - << "if (\n" << be_idt; - if (node->traverse_inheritance_graph (be_interface::is_a_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "traversal of inhertance graph failed\n"), - -1); - } - - os->indent (); - *os << "(!ACE_OS::strcmp ((char *)value, " - << "CORBA::_tc_Object->id (_tao_environment))))" - << be_idt_nl << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt << be_uidt << be_uidt_nl - << "}\n\n"; - - // generate code for the _non_existent skeleton - os->indent (); - *os << "void " << node->full_skel_name () - << "::_non_existent_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_server_request, " << be_nl - << "void * _tao_object_reference," << be_nl - << "void * /*context*/," << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt_nl - << ")" << be_uidt_nl; - *os << "{" << be_idt_nl; - *os << "static const TAO_Param_Data_Skel " << node->flatname () - << "_non_existent_paramdata [] = " << be_nl - << "{" << be_idt_nl - << "{CORBA::_tc_boolean, 0, 0}" << be_uidt_nl - << "};" << be_nl; - *os << "static const TAO_Call_Data_Skel " << node->flatname () - << "_non_existent_calldata = " << be_nl - << "{\"_non_existent\", 1, 1, " << node->flatname () - << "_non_existent_paramdata};" << be_nl; - *os << "CORBA::Environment _tao_skel_environment;" << be_nl; - *os << "CORBA::Boolean _tao_retval = 0;" << be_nl; - *os << "_tao_server_request.marshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "_tao_skel_environment," << be_nl - << "&" << node->flatname () << "_non_existent_calldata, " << be_nl - << "&_tao_retval " << be_uidt_nl - << ");" << be_uidt_nl; - *os << "}\n\n"; - - os->indent (); - *os << "void* " << node->full_skel_name () - << "::_downcast (" << be_idt << be_idt_nl - << "const char* logical_type_id" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl; - - if (node->traverse_inheritance_graph (be_interface::downcast_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "traversal of inhertance graph failed\n"), - -1); - } - - *os << "if (ACE_OS::strcmp (logical_type_id, " - << "\"IDL:omg.org/CORBA/Object:1.0\") == 0)" << be_idt_nl - << "return ACE_static_cast(PortableServer::Servant, this);" - << be_uidt_nl; - - *os << "return 0;" << be_uidt_nl - << "}\n\n"; - - - // now the dispatch method - os->indent (); - *os << "void " << node->full_skel_name () << - "::_dispatch (CORBA::ServerRequest &req, " << - "void *context, CORBA::Environment &env)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "TAO_Skeleton skel; // pointer to skeleton for operation" << be_nl; - *os << "const char *opname = req.operation (); // retrieve operation name" - << be_nl; - *os << "// find the skeleton corresponding to this opname" << be_nl; - *os << "if (this->_find (opname, skel) == -1)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "env.exception (new CORBA_BAD_OPERATION (CORBA::COMPLETED_NO));" - << be_nl; - *os << "ACE_ERROR ((LM_ERROR, \"Bad operation <%s>\\n\", opname));\n"; - os->decr_indent (); - *os << "}\n"; - *os << "else" << be_nl; - *os << " skel (req, this, context, env);\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "const char* " << node->full_skel_name () - << "::_interface_repository_id (void) const" - << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return \"" << node->repoID () << "\";\n"; - os->decr_indent (); - *os << "}\n\n"; - - // generate the collocated class impl - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "Bad visitor for collocated class\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_ss::" - "visit_interface - " - "codegen for collocated class failed\n"), - -1); - } - delete visitor; - - *os << "\n"; - - // the _this () operation - *os << node->name () << "*" << be_nl - << node->full_skel_name () - << "::_this (CORBA_Environment &_env)" << be_nl - << "{" << be_idt_nl - << "STUB_Object *stub = this->_create_stub (_env);" << be_nl - << "if (_env.exception () != 0)" << be_idt_nl - << "return 0;" << be_uidt_nl - << "return new " << node->full_coll_name () - << " (this, stub);" << be_uidt << be_nl; - - *os << "}\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp deleted file mode 100644 index 78d03c9a8a4..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for TIE class for an Interface in the header -// file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, tie_sh, "$Id$") - - -// ************************************************************ -// Interface visitor for server header -// ************************************************************ - -be_visitor_interface_tie_sh::be_visitor_interface_tie_sh (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_tie_sh::~be_visitor_interface_tie_sh (void) -{ -} - -int -be_visitor_interface_tie_sh::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - static char namebuf [NAMEBUFSIZE]; // holds the class name - static char tiename [NAMEBUFSIZE]; // holds the tie name - - if (node->srv_hdr_gen () || node->imported ()) - return 0; - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::memset (tiename, '\0', NAMEBUFSIZE); - - os = this->ctx_->stream (); - - // generate the skeleton class name which will be used to determine the TIE - // class name - - // we shall have a POA_ prefix only if we are at the topmost level - if (!node->is_nested ()) - { - // we are outermost - ACE_OS::sprintf (namebuf, "POA_%s", node->local_name ()->get_string ()); - ACE_OS::sprintf (tiename, "POA_%s_tie", - node->local_name ()->get_string ()); - } - else - { - ACE_OS::sprintf (namebuf, "%s", node->local_name ()->get_string ()); - ACE_OS::sprintf (tiename, "%s_tie", - node->local_name ()->get_string ()); - } - - // now generate the class definition - os->indent (); // start with whatever indentation level we are at - - // Since templates nested inside of classes are broken on most C++ compilers, - // we generate code for this inside a conditional macro. The code is - // activated only if "namespaces" are supported on the platform - if (node->is_nested ()) - { - *os << "\n#if defined (ACE_HAS_USING_KEYWORD)" << be_nl; - } - - *os << "// TIE class: Refer to CORBA v2.2, Section 20.34.4" << be_nl; - *os << "template " << be_nl; - *os << "class " << idl_global->export_macro () - << " " << tiename << " : public " << namebuf << be_nl; - *os << "{" << be_nl - << "public:" << be_idt_nl - << tiename << " (T &t);" << be_nl - << "// the T& ctor" << be_nl - << tiename << " (T &t, PortableServer::POA_ptr poa);" << be_nl - << "// ctor taking a POA" << be_nl - << tiename << " (T *tp, CORBA::Boolean release=1);" << be_nl - << "// ctor taking pointer and an ownership flag" << be_nl - << tiename << " (T *tp, PortableServer::POA_ptr poa, " - << "CORBA::Boolean release=1);" << be_nl - << "// ctor with T*, ownership flag and a POA" << be_nl - << "~" << tiename << " (void);" << be_nl - << "// dtor" << be_nl << be_nl - << "// TIE specific functions" << be_nl - << "T *_tied_object (void);" << be_nl - << "// return the underlying object" << be_nl - << "void _tied_object (T &obj);" << be_nl - << "// set the underlying object" << be_nl - << "void _tied_object (T *obj, CORBA::Boolean release=1);" << be_nl - << "// set the underlying object and the ownership flag" << be_nl - << "CORBA::Boolean _is_owner (void);" << be_nl - << "// do we own it" << be_nl - << "void _is_owner (CORBA::Boolean b);" << be_nl - << "// set the ownership" << be_nl << be_nl - << "// overridden ServantBase operations" << be_nl - << "PortableServer::POA_ptr _default_POA (" << be_idt << be_idt_nl - << "CORBA::Environment &env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n"; - - if (node->traverse_inheritance_graph (be_visitor_interface_tie_sh::method_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_tie_sh_ss::" - "visit_interface - " - "traversal of inhertance graph failed\n"), - -1); - } - - *os << be_uidt << "private:" << be_idt_nl - << "T *ptr_;" << be_nl - << "PortableServer::POA_var poa_;" << be_nl - << "CORBA::Boolean rel_;" << be_nl << be_nl - << "// copy and assignment are not allowed" << be_nl - << tiename << " (const " << tiename << " &);" << be_nl - << "void operator= (const " << tiename << " &);" << be_uidt_nl - << "};\n\n"; - - if (node->is_nested ()) - { - *os << "#endif /* ACE_HAS_USING_KEYWORD */\n"; - } - - return 0; -} - -int -be_visitor_interface_tie_sh::method_helper (be_interface *, - be_interface *node, - TAO_OutStream *os) -{ - be_visitor_context ctx; - ctx.state (TAO_CodeGen::TAO_INTERFACE_TIE_SH); - ctx.stream (os); - be_visitor* visitor = tao_cg->make_visitor (&ctx); - if (visitor == 0 || visitor->visit_scope (node) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_tie_sh::" - "method_helper\n"), -1); - } - delete visitor; - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp b/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp deleted file mode 100644 index 2d9b0aba3a1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp +++ /dev/null @@ -1,211 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_si.cpp -// -// = DESCRIPTION -// Visitor generating code for TIE classes for the Interface node in the -// inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface.h" - -ACE_RCSID(be_visitor_interface, tie_si, "$Id$") - - -// ************************************************************************ -// Interface visitor for server inline -// ************************************************************************ - -be_visitor_interface_tie_si::be_visitor_interface_tie_si (be_visitor_context *ctx) - : be_visitor_interface (ctx) -{ -} - -be_visitor_interface_tie_si::~be_visitor_interface_tie_si (void) -{ -} - -int -be_visitor_interface_tie_si::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - static char fulltiename [NAMEBUFSIZE]; // holds the class name - static char localtiename [NAMEBUFSIZE]; // holds the tie name - - if (node->srv_inline_gen () || node->imported ()) - return 0; - - ACE_OS::memset (fulltiename, '\0', NAMEBUFSIZE); - ACE_OS::memset (localtiename, '\0', NAMEBUFSIZE); - - os = this->ctx_->stream (); - - // generate the skeleton class name which will be used to determine the TIE - // class name - - // we are outermost - ACE_OS::sprintf (fulltiename, "%s_tie", node->full_skel_name ()); - if (!node->is_nested ()) - { - ACE_OS::sprintf (localtiename, "POA_%s_tie", - node->local_name ()->get_string ()); - } - else - { - ACE_OS::sprintf (localtiename, "%s_tie", - node->local_name ()->get_string ()); - } - - if (node->is_nested ()) - { - *os << "\n#if defined (ACE_HAS_USING_KEYWORD)\n"; - } - - os->indent (); // start with whatever indentation level we are at - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename << " (T &t)" << be_nl - << "\t: ptr_ (&t)," << be_nl - << "\t poa_ (PortableServer::POA::_nil ())," << be_nl - << "\t rel_ (0)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename - << " (T &t, PortableServer::POA_ptr poa)" << be_nl - << "\t: ptr_ (&t)," << be_nl - << "\t poa_ (PortableServer::POA::_duplicate (poa))," << be_nl - << "\t rel_ (0)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename - << " (T *tp, CORBA::Boolean release)" << be_nl - << "\t: ptr_ (tp)," << be_nl - << "\t poa_ (PortableServer::POA::_nil ())," << be_nl - << "\t rel_ (release)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::" << localtiename - << " (T *tp, PortableServer::POA_ptr poa, CORBA::Boolean release)" - << be_nl - << "\t: ptr_ (tp)," << be_nl - << "\t poa_ (PortableServer::POA::_duplicate (poa))," << be_nl - << "\t rel_ (release)" << be_nl - << "{}" << be_nl << be_nl; - - *os << "template ACE_INLINE" << be_nl - << fulltiename << "::~" << localtiename << " (void)" << be_nl - << "{" << be_idt_nl - << "if (this->rel_) delete this->ptr_;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE T *" << be_nl - << fulltiename << "::_tied_object (void)" << be_nl - << "{" << be_idt_nl - << "return this->ptr_;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE void" << be_nl - << fulltiename << "::_tied_object (T &obj)" << be_nl - << "{" << be_idt_nl - << "if (this->rel_) delete this->ptr_;" << be_nl - << "this->ptr_ = &obj;" << be_nl - << "this->rel_ = 0;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE void" << be_nl - << fulltiename << "::_tied_object (T *obj, " - << "CORBA::Boolean release)" << be_nl - << "{" << be_idt_nl - << "if (this->rel_) delete this->ptr_;" << be_nl - << "this->ptr_ = obj;" << be_nl - << "this->rel_ = release;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE CORBA::Boolean" << be_nl - << fulltiename << "::_is_owner (void)" << be_nl - << "{" << be_idt_nl - << "return this->rel_;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE void" << be_nl - << fulltiename << "::_is_owner (CORBA::Boolean b)" << be_nl - << "{" << be_idt_nl - << "this->rel_ = b;" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "template ACE_INLINE " - << "PortableServer::POA_ptr" << be_nl - << fulltiename << "::_default_POA (CORBA::Environment &env)" << be_nl - << "{" << be_idt_nl - << "if (!CORBA::is_nil (this->poa_.in ()))" << be_idt_nl - << "return PortableServer::POA::_duplicate (this->poa_.in ());" - << be_uidt_nl - << "else" << be_nl - << "{" << be_idt_nl - << "TAO_POA *poa = TAO_ORB_Core_instance ()->root_poa ();" << be_nl - << "PortableServer::POA_var result = poa->_this (env);" << be_nl - << "if (env.exception () != 0)" << be_idt_nl - << "return PortableServer::POA::_nil ();" << be_uidt_nl - << "else" << be_idt_nl - << "return result._retn ();" << be_uidt << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - if (node->traverse_inheritance_graph (be_visitor_interface_tie_si::method_helper, os) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_tie_sh_ss::" - "visit_interface - " - "traversal of inhertance graph failed\n"), - -1); - } - - if (node->is_nested ()) - { - *os << "#endif /* ACE_HAS_USING_KEYWORD */\n"; - } - - return 0; -} - -int -be_visitor_interface_tie_si::method_helper (be_interface *derived, - be_interface *node, - TAO_OutStream *os) -{ - be_visitor_context ctx; - ctx.state (TAO_CodeGen::TAO_INTERFACE_TIE_SI); - ctx.interface (derived); - ctx.stream (os); - - be_visitor* visitor = tao_cg->make_visitor (&ctx); - if (visitor == 0 || visitor->visit_scope (node) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_interface_tie_sh::" - "method_helper\n"), -1); - } - delete visitor; - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp deleted file mode 100644 index dddb1fc84dc..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface_fwd.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Interface_Fwd -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface_fwd.h" - -// include all the individual files -#include "be_visitor_interface_fwd/interface_fwd_ch.cpp" -#include "be_visitor_interface_fwd/interface_fwd_ci.cpp" - -ACE_RCSID(be, be_visitor_interface_fwd, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp deleted file mode 100644 index 7591f4d83be..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp +++ /dev/null @@ -1,96 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Interface_Fwd node in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface_fwd.h" - -ACE_RCSID(be_visitor_interface_fwd, interface_fwd_ch, "$Id$") - - -// ******************************************************************** -// Visitor implementation for the Interface_Fwd type -// This one for the client header file -// ******************************************************************** - -be_visitor_interface_fwd_ch::be_visitor_interface_fwd_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_interface_fwd_ch::~be_visitor_interface_fwd_ch (void) -{ -} - -// visit the Interface_Fwd_Ch node and its scope -int -be_visitor_interface_fwd_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_hdr_gen () && !node->imported ()) - { - os->indent (); // start from the current - - // all we do in this is generate a forward declaration of the class - *os << "class " << node->local_name () << ";" << be_nl; - - // generate the ifdefined macro for the _ptr type - os->gen_ifdef_macro (node->flatname (), "_ptr"); - - // generate the _ptr declaration - *os << "typedef " << node->local_name () << " *" << node->local_name () - << "_ptr;\n"; - - os->gen_endif (); - - // enclose under an ifdef macro - os->gen_ifdef_macro (node->flatname (), "_var"); - - // generate the _var declaration - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ch::" - "visit_interface_fwd - " - "codegen for _var failed\n"), -1); - } - // gen an endif - os->gen_endif (); - - // enclose under an ifdef macro - os->gen_ifdef_macro (node->flatname (), "_out"); - - // generate the _out declaration - ORBOS/97-05-15 pg 16-20 spec - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ch::" - "visit_interface_fwd - " - "codegen for _out failed\n"), -1); - } - // generate the endif macro - os->gen_endif (); - node->cli_hdr_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ci.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ci.cpp deleted file mode 100644 index 173f0829a88..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ci.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Interface_Fwd node in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_interface_fwd.h" - -ACE_RCSID(be_visitor_interface_fwd, interface_fwd_ci, "$Id$") - - -// ******************************************************************** -// Visitor implementation for the Interface_Fwd type -// This one for the client inline file -// ******************************************************************** - -be_visitor_interface_fwd_ci::be_visitor_interface_fwd_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_interface_fwd_ci::~be_visitor_interface_fwd_ci (void) -{ -} - -// visit the Interface_Fwd_ci node and its scope -int -be_visitor_interface_fwd_ci::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (!node->cli_inline_gen () && !node->imported ()) - { - - // generate the ifdefined macro for the _var type - os->gen_ifdef_macro (node->flatname (), "_var"); - - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ci::" - "visit_interface_fwd - " - "codegen for _var failed\n"), -1); - } - - os->gen_endif (); - - // generate the ifdefined macro for the _out type - os->gen_ifdef_macro (node->flatname (), "_out"); - - if (node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_interface_fwd_ci::" - "visit_interface_fwd - " - "codegen for _out failed\n"), -1); - } - os->gen_endif (); - - node->cli_stub_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_module.cpp b/TAO/TAO_IDL/be/be_visitor_module.cpp deleted file mode 100644 index 950ec36ccd4..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_module.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Module -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -// include all the individual files -#include "be_visitor_module/module.cpp" -#include "be_visitor_module/module_ch.cpp" -#include "be_visitor_module/module_sh.cpp" -#include "be_visitor_module/any_op.cpp" -#include "be_visitor_module/cdr_op.cpp" - -ACE_RCSID(be, be_visitor_module, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp b/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp deleted file mode 100644 index 2d50f3b54d0..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for elements in the scope of -// the Module. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -ACE_RCSID(be_visitor_module, any_op, "$Id$") - - -// *************************************************************************** -// Module visitor for generating Any operator declarations in the client header -// and stub -// *************************************************************************** - -be_visitor_module_any_op::be_visitor_module_any_op (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_any_op::~be_visitor_module_any_op (void) -{ -} - -int -be_visitor_module_any_op::visit_module (be_module *node) -{ - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::visit_module - " - "codegen for scope failed\n"), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp b/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp deleted file mode 100644 index 4059e2f0f05..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op.cpp -// -// = DESCRIPTION -// Visitor generating code for the CDR operators for types defined in Module's -// scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -ACE_RCSID(be_visitor_module, cdr_op, "$Id") - - -// *************************************************************************** -// Module visitor for generating CDR operator declarations in the client header -// and stub -// *************************************************************************** - -be_visitor_module_cdr_op::be_visitor_module_cdr_op (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_cdr_op::~be_visitor_module_cdr_op (void) -{ -} - -int -be_visitor_module_cdr_op::visit_module (be_module *node) -{ - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module_cdr_op::visit_module - " - "codegen for scope failed\n"), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_module/module.cpp b/TAO/TAO_IDL/be/be_visitor_module/module.cpp deleted file mode 100644 index 7fda90e94bd..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module/module.cpp +++ /dev/null @@ -1,624 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module.cpp -// -// = DESCRIPTION -// Generic visitor generating code for Module -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -ACE_RCSID(be_visitor_module, module, "$Id$") - - -// ****************************************************** -// Generic Module visitor -// ****************************************************** - -be_visitor_module::be_visitor_module (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_module::~be_visitor_module (void) -{ -} - -// visit the Module node and its scope -int be_visitor_module::visit_module (be_module *node) -{ - // all we have to do is to visit the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::visit_module - " - "codegen for scope failed\n"), -1); - } - return 0; -} - -// =all common visit methods for module visitor - -// visit a constant -int -be_visitor_module::visit_constant (be_constant *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CH); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - case TAO_CodeGen::TAO_MODULE_CI: - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_constant - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_constant - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_module::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CI: - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an exception -int -be_visitor_module::visit_exception (be_exception *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_exception - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_exception - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_exception - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface -int -be_visitor_module::visit_interface (be_interface *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SH); - break; - case TAO_CodeGen::TAO_MODULE_SI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SI); - break; - case TAO_CodeGen::TAO_MODULE_SS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface_fwd -int -be_visitor_module::visit_interface_fwd (be_interface_fwd *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CI); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - case TAO_CodeGen::TAO_MODULE_CS: - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface_fwd - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface_fwd - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_interface_fwd - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_module::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an union -int -be_visitor_module::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_union - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit a typedef -int -be_visitor_module::visit_typedef (be_typedef *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_MODULE_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CH); - break; - case TAO_CodeGen::TAO_MODULE_CI: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CI); - break; - case TAO_CodeGen::TAO_MODULE_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CS); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_MODULE_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_MODULE_SH: - case TAO_CodeGen::TAO_MODULE_SI: - case TAO_CodeGen::TAO_MODULE_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_typedef - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_typedef - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp b/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp deleted file mode 100644 index f109e3cd647..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp +++ /dev/null @@ -1,80 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Module in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -ACE_RCSID(be_visitor_module, module_ch, "$Id$") - - -// ****************************************************** -// Module visitor for client header -// ****************************************************** - -be_visitor_module_ch::be_visitor_module_ch (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_ch::~be_visitor_module_ch (void) -{ -} - -int -be_visitor_module_ch::visit_module (be_module *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_hdr_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - // XXXASG - Modules really map to namespace. We need to see if our target - // compiler supports namespaces or not. This visitor generates a class for a - // module. We can have the factory generate another module visitor that can - // generate namespaces - - os->indent (); // start from whatever indentation level we were at - // now generate the class definition - *os << "TAO_NAMESPACE " // << idl_global->export_macro () - << " " << node->local_name () << be_nl - << "{\n"; - os->incr_indent (0); - - // generate code for the module definition by traversing thru the - // elements of its scope. We depend on the front-end to have made sure - // that only legal syntactic elements appear in our scope. - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module_ch::" - "visit_module - " - "codegen for scope failed\n"), -1); - } - - *os << be_uidt_nl - << "}; // module " << node->name () << "\n\n"; - - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp b/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp deleted file mode 100644 index f3080384f59..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for Module in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_module.h" - -ACE_RCSID(be_visitor_module, module_sh, "$Id$") - - -// ************************************************************ -// Module visitor for server header -// ************************************************************ - -be_visitor_module_sh::be_visitor_module_sh (be_visitor_context *ctx) - : be_visitor_module (ctx) -{ -} - -be_visitor_module_sh::~be_visitor_module_sh (void) -{ -} - -int -be_visitor_module_sh::visit_module (be_module *node) -{ - TAO_OutStream *os; // output stream - - if (!node->srv_hdr_gen () && !node->imported ()) // not generated and not imported - { - os = this->ctx_->stream (); - - // generate the skeleton class name - - os->indent (); // start with whatever indentation level we are at - - // now generate the class definition. The prefix POA_ is prepended to our - // name only if we are the outermost module - *os << "TAO_NAMESPACE "; // << idl_global->export_macro () - - if (!node->is_nested ()) - // we are outermost module - *os << " POA_" << node->local_name () << be_nl; - else - // we are inside another module - *os << " " << node->local_name () << be_nl; - - *os << "{" << be_nl - << be_idt; - - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module_sh::" - "visit_module - " - "codegen for scope failed\n"), -1); - } - - os->decr_indent (); - *os << "};\n\n"; - } - return 0; - -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation.cpp b/TAO/TAO_IDL/be/be_visitor_operation.cpp deleted file mode 100644 index 2d4ce818f44..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_operation.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Operation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -// include all the individual files -#include "be_visitor_operation/arglist.cpp" -#include "be_visitor_operation/argument.cpp" -#include "be_visitor_operation/collocated_sh.cpp" -#include "be_visitor_operation/collocated_ss.cpp" -#include "be_visitor_operation/exceptlist_cs.cpp" -#include "be_visitor_operation/operation_ch.cpp" -#include "be_visitor_operation/operation_cs.cpp" -#include "be_visitor_operation/operation_sh.cpp" -#include "be_visitor_operation/operation_ss.cpp" -#include "be_visitor_operation/rettype.cpp" -#include "be_visitor_operation/rettype_assign_ss.cpp" -#include "be_visitor_operation/rettype_docall_cs.cpp" -#include "be_visitor_operation/rettype_marshal_ss.cpp" -#include "be_visitor_operation/rettype_post_docall_cs.cpp" -#include "be_visitor_operation/rettype_post_upcall_ss.cpp" -#include "be_visitor_operation/rettype_pre_docall_cs.cpp" -#include "be_visitor_operation/rettype_return_cs.cpp" -#include "be_visitor_operation/rettype_vardecl_cs.cpp" -#include "be_visitor_operation/rettype_vardecl_ss.cpp" -#include "be_visitor_operation/tie_sh.cpp" -#include "be_visitor_operation/tie_si.cpp" - -ACE_RCSID(be, be_visitor_operation, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp deleted file mode 100644 index 3df15693f2a..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp +++ /dev/null @@ -1,179 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.cpp -// -// = DESCRIPTION -// Visitor generating code for the parameter list of the Operation signature. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, arglist, "$Id$") - - -// ************************************************************ -// operation visitor to generate the argument list. -// We have separated code generation for this from the 4 main -// visitors to avoid code duplication and tight coupling -// ************************************************************ - -be_visitor_operation_arglist::be_visitor_operation_arglist (be_visitor_context - *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_arglist::~be_visitor_operation_arglist (void) -{ -} - -int -be_visitor_operation_arglist::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - *os << " (" << be_idt << be_idt << "\n"; - - // all we do is hand over code generation to our scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_arglist::" - "visit_operation - " - "codegen for scope failed\n"), - -1); - } - - // last argument - is always CORBA::Environment - os->indent (); - *os << "CORBA::Environment &_tao_environment"; - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - *os << " = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt; - break; - default: - break; - } - *os << be_uidt_nl << " )" << be_uidt; - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - *os << ";\n"; - break; - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - // each method is pure virtual in the server header - *os << " = 0;\n"; - break; - default: - *os << "\n"; - } - - return 0; -} - -int -be_visitor_operation_arglist::visit_argument (be_argument *node) -{ - // get the visitor that will dump the argument's mapping in the operation - // signature. - be_visitor_context ctx (*this->ctx_); - - // first grab the interface definition inside which this operation is - // defined. We need this since argument types may very well be declared - // inside the scope of the interface node. In such cases, we would like to - // generate the appropriate relative scoped names. - be_operation *op = this->ctx_->be_scope_as_operation (); - if (!op) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad operation\n"), - -1); - } - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (op->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad interface\n"), - -1); - } - ctx.scope (intf); // set new scope - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_ARGLIST_CH); - break; - case TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH: - case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_ARGLIST_OTHERS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad context\n"), - -1); - } - } - - // grab a visitor - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad visitor\n"), - -1); - } - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - - "visit_argument - " - "codegen for arglist failed\n"), - -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp deleted file mode 100644 index 82186cc9ec7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp +++ /dev/null @@ -1,185 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument.cpp -// -// = DESCRIPTION -// Visitor that calls the visitor for arguments. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, argument, "$Id$") - - -// ************************************************************ -// generic operation visitor to handle the pre/post -// do_static_call/upcall stuff with arguments -// ************************************************************ - -be_visitor_operation_argument::be_visitor_operation_argument (be_visitor_context - *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_argument::~be_visitor_operation_argument (void) -{ -} - -int -be_visitor_operation_argument::post_process (void) -{ - TAO_OutStream *os = this->ctx_->stream (); - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS: - case TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS: - *os << ",\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_operation_argument::visit_operation (be_operation *node) -{ - // all we do is hand over code generation to our scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_argument::" - "visit_operation - " - "codegen for scope failed\n"), - -1); - } - - return 0; -} - -int -be_visitor_operation_argument::visit_argument (be_argument *node) -{ - // get the visitor that will dump the argument's mapping in the operation - // signature. - be_visitor_context ctx (*this->ctx_); - - // first grab the interface definition inside which this operation is - // defined. We need this since argument types may very well be declared - // inside the scope of the interface node. In such cases, we would like to - // generate the appropriate relative scoped names. - be_operation *op = this->ctx_->be_scope_as_operation (); - if (!op) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad operation\n"), - -1); - } - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (op->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_arglist::" - "visit_argument - " - "Bad interface\n"), - -1); - } - ctx.scope (intf); // set new scope - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_DOCALL_CS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_PRE_DOCALL_CS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_DOCALL_CS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_POST_DOCALL_CS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_DOCALL_CS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_VARDECL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_DEMARSHAL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_MARSHAL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_PRE_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_PRE_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_POST_UPCALL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_UPCALL_SS); - break; - case TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS: - ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_MARSHAL_SS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_argument::" - "visit_argument - " - "Bad context\n"), - -1); - } - } - - // grab a visitor - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_argument::" - "visit_argument - " - "Bad visitor\n"), - -1); - } - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_argument::" - - "visit_argument - " - "codegen for argument failed\n"), - -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/collocated_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/collocated_sh.cpp deleted file mode 100644 index 6e24c848923..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/collocated_sh.cpp +++ /dev/null @@ -1,124 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for collocated operation in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, collocated_sh, "$Id$") - - -// ************************************************************************* -// be_visitor_operation_collocated_sh -- -// This visitor generates code for the collocated operation signature in a -// server header file -// ************************************************************************* - -be_visitor_operation_collocated_sh::be_visitor_operation_collocated_sh -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_collocated_sh::~be_visitor_operation_collocated_sh (void) -{ -} - -int be_visitor_operation_collocated_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node representing the return type - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // every operation is declared virtual in the client code - *os << "virtual "; - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/collocated_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/collocated_ss.cpp deleted file mode 100644 index 2d4119b7a62..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/collocated_ss.cpp +++ /dev/null @@ -1,165 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for collocated Operation in the skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, collocated_ss, "$Id$") - - -// ************************************************************************* -// be_visitor_operation_collocated_ss -- -// This visitor generates code for the collocated operation signature in a -// server skeletons file -// ************************************************************************* - -be_visitor_operation_collocated_ss::be_visitor_operation_collocated_ss -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_collocated_ss::~be_visitor_operation_collocated_ss (void) -{ -} - -int be_visitor_operation_collocated_ss::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (node->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_collocated_ss::" - "visit_operation - " - "bad interface scope\n"), - -1); - } - - // retrieve the operation return type - be_type *bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_collocated_ss::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // STEP 2: generate the return type mapping (same as in the header file) - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_collocated_ss::" - "visit_operation - " - "Bad visitor for return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_collocated_ss::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - *os << " " << intf->full_coll_name () << "::" - << node->local_name () << " "; - - // STEP 4: generate the argument list with the appropriate mapping (same as - // in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - *os << "{" << be_idt << "\n"; - - os->indent (); - if (bt->node_type () != AST_Decl::NT_pre_defined - || be_predefined_type::narrow_from_decl (bt)->pt () != AST_PredefinedType::PT_void) - { - *os << "return "; - } - - *os << "this->servant_->" << node->local_name () << " (" << be_idt << "\n"; - - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // last argument is the environment - if (node->argument_count () > 0) - *os << ",\n"; - os->indent (); - *os << "_tao_environment"; - // end the upcall - *os << be_uidt_nl; - *os << ");" << be_uidt_nl; - *os << "}\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp deleted file mode 100644 index 4f0eef339d7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp +++ /dev/null @@ -1,96 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exceptlist_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for the list of exceptions that an operation -// raises. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, exceptlist_cs, "$Id$") - - -// **************************************************************************** -// visitor to generate the exception list for operations -// **************************************************************************** - -be_visitor_operation_exceptlist_cs::be_visitor_operation_exceptlist_cs (be_visitor_context - *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_exceptlist_cs::~be_visitor_operation_exceptlist_cs (void) -{ -} - -int -be_visitor_operation_exceptlist_cs::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - // don't do anything if the exception list is empty - if (node->exceptions ()) - { - os->indent (); -#if 0 - *os << "static CORBA::TypeCode_ptr " << "_tao_" << node->flatname () - << "_exceptlist [] = {" << be_idt_nl; -#endif - *os << "static TAO_Exception_Data " << "_tao_" << node->flatname () - << "_exceptiondata [] = " << be_nl; - *os << "{" << be_idt_nl; - // initialize an iterator to iterate thru the exception list - UTL_ExceptlistActiveIterator *ei; - ACE_NEW_RETURN (ei, - UTL_ExceptlistActiveIterator (node->exceptions ()), - -1); - // continue until each element is visited - while (!ei->is_done ()) - { - be_exception *excp = be_exception::narrow_from_decl (ei->item ()); - - if (excp == 0) - { - delete ei; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_exceptlist_cs" - "visit_operation - " - "codegen for scope failed\n"), -1); - - } - *os << "{"; - *os << excp->tc_name (); - *os << ", "; - *os << excp->name () << "::_alloc}"; - ei->next (); - if (!ei->is_done ()) - { - *os << ",\n"; - os->indent (); - } - // except the last one is processed? - - } // end of while loop - delete ei; - *os << be_uidt_nl << "};\n\n"; - } // end of if - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp deleted file mode 100644 index b58cf932529..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp +++ /dev/null @@ -1,122 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Operation node in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, operation_ch, "$Id$") - - -// ****************************************************** -// primary visitor for "operation" in client header -// ****************************************************** - -be_visitor_operation_ch::be_visitor_operation_ch (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_ch::~be_visitor_operation_ch (void) -{ -} - -int -be_visitor_operation_ch::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // every operation is declared virtual in the client code - *os << "virtual "; - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ch::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_ch::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ch::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_CH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_ch::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ch::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp deleted file mode 100644 index a54a7e431e9..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp +++ /dev/null @@ -1,492 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Operation in the stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, operation_cs, "$Id$") - - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -be_visitor_operation_cs::be_visitor_operation_cs (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_cs::~be_visitor_operation_cs (void) -{ -} - -// processing to be done after every element in the scope is processed -int -be_visitor_operation_cs::post_process () -{ - // all we do here is to insert a comma and a newline - TAO_OutStream *os = this->ctx_->stream (); - *os << ",\n"; - return 0; -} - -int -be_visitor_operation_cs::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - be_visitor_context ctx; // visitor context - be_visitor *visitor; // visitor - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node for future use - - os->indent (); // start with the current indentation level - - // retrieve the operation return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // Generate the return type mapping (same as in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor for return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // Generate the operation name - *os << " " << node->name (); - - // Generate the argument list with the appropriate mapping (same as - // in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - // Generate the actual code for the stub. However, if any of the argument - // types is "native", we flag a MARSHAL exception. - // last argument - is always CORBA::Environment - *os << "{\n"; - os->incr_indent (0); - - // Generate the param_data and call_data tables. We generate these if and - // only if none of our arguments is of "native" type. Native types cannot be - // marshaled. Hence, stubs for such operations will generate MARSHAL - // exceptions. As a result it is pointless generating these tables - if (!node->has_native ()) - { - // native type does not exist. Generate the static tables - - // Generate the TAO_Param_Data table - os->indent (); - *os << "static const TAO_Param_Data "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << - "_paramdata [] = " << be_nl; - *os << "{\n"; - os->incr_indent (); - - // entry for the return type - *os << "{" << bt->tc_name () << ", PARAM_RETURN, 0}"; - if (node->nmembers () > 0) - *os << ",\n"; - - // generate entries for the param data table for arguments - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "visit scope failed\n"), - -1); - } - *os << "\n"; - os->decr_indent (); - *os << "}; // " << node->flatname () << "_paramdata\n\n"; - - // Check if this operation raises any exceptions. In that case, we must - // generate a list of exception typecodes. This is not valid for - // attributes - if (!this->ctx_->attribute ()) - { - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_EXCEPTLIST_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) " - "be_visitor_operation_cs::visit_operation - " - "Exceptionlist generation error\n"), - -1); - } - } - - // now generate the calldata table - os->indent (); - *os << "static const TAO_Call_Data "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () - << "_calldata = " << be_nl - << "{" - << "\""; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () << "\", "; - - // are we oneway or two operation? - if (node->flags () == AST_Operation::OP_oneway) - { - *os << "0, "; // for false - } - else - { - *os << "1, "; // for true - } - // insert the size of the paramdata table i.e., number of arguments + 1 - // for return type - *os << (node->argument_count () + 1) << ", "; - - // insert the address of the paramdata table - // first check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_paramdata, "; - - // insert exception list (if any) - node for attributes - if (this->ctx_->attribute ()) - *os << "0, 0};\n\n"; - else - { - if (node->exceptions ()) - { - *os << node->exceptions ()->length () - << ", _tao_" << node->flatname () << "_exceptiondata};\n\n"; - } - else - *os << "0, 0};\n\n"; - } - } // end of if !(native) - - // Declare a return type - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var decl failed\n"), - -1); - } - - os->indent (); - if (node->has_native ()) // native exists => no stub - { - *os << "_tao_environment.exception (new CORBA::MARSHAL " - << "(CORBA::COMPLETED_NO));" << be_nl; - // return the appropriate return value - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var failed\n"), - -1); - } - } - else - { - // Generate code that retrieves the underlying stub object and then - // invokes do_static_call on it. - *os << "STUB_Object *istub = this->_stubobj ();" << be_nl - << "if (istub)" << be_nl - << "{\n"; - os->incr_indent (0); - - // do any pre do_static_call processing with return type. This includes - // allocating memory, initialization. - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_PRE_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for retval pre do_static_call failed\n"), - -1); - } - - // do any pre do_static_call stuff with arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_PRE_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument pre do_static_call failed\n"), - -1); - } - - os->indent (); - *os << "void* _tao_arguments[" - << node->argument_count () + 1 << "];" << be_nl - << "const void** _tao_arg = ACE_const_cast(const void**,_tao_arguments);" << be_nl - << "*_tao_arg = "; - - // pass the appropriate return value to docall - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var in do_static_call failed\n"), - -1); - } - *os << "; _tao_arg++;\n"; - - // pass each argument to do_static_call - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var in do_static_call failed\n"), - -1); - } - - // call do_static_call with appropriate number of arguments - os->indent (); - *os << "istub->do_static_call (" << be_idt_nl - << "_tao_environment, " << be_nl - << "&"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_calldata," << be_nl - << "_tao_arguments" << be_uidt_nl - << ");\n"; - - // if there is an exception, return - os->indent (); - *os << "if (_tao_environment.exception ())" << be_idt << "\n"; - // return the appropriate return value - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var failed\n"), - -1); - } - *os << be_uidt; - - // do any post processing for the retval - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_POST_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return type post do_static_call failed\n"), - -1); - } - - // do any post processing for the arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_POST_DOCALL_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for args in post do_static_call failed\n"), - -1); - } - - } // end of if (!native) - - os->decr_indent (); - *os << "} // end of if (istub)\n"; - // return the appropriate return value - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_RETURN_CS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var failed\n"), - -1); - } - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_operation_cs::visit_argument (be_argument *node) -{ - // this method is used to generate the ParamData table entry - - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; // argument type - - // retrieve the type for this argument - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - os->indent (); - *os << "{" << bt->tc_name () << ", "; - switch (node->direction ()) - { - case AST_Argument::dir_IN: - *os << "PARAM_IN, "; - break; - case AST_Argument::dir_INOUT: - *os << "PARAM_INOUT, "; - break; - case AST_Argument::dir_OUT: - *os << "PARAM_OUT, "; - break; - } - *os << "0}"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp deleted file mode 100644 index 0ebb02d6143..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp +++ /dev/null @@ -1,148 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for Operation in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, operation_sh, "$Id$") - - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -be_visitor_operation_sh::be_visitor_operation_sh (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_sh::~be_visitor_operation_sh (void) -{ -} - -int -be_visitor_operation_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node representing the return type - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // every operation is declared virtual in the client code - *os << "virtual "; - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_SH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_sh::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - // generate the corresponding static skeleton method for this operation only - // if there was no "native" type - if (!node->has_native ()) - { - os->indent (); - *os << "static void "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () << - "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_req, " << be_nl - << "void *_tao_obj, " << be_nl - << "void *_tao_context, " << be_nl - << "CORBA::Environment &_tao_env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ");" << be_uidt << "\n\n"; - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp deleted file mode 100644 index 174f3a76c17..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp +++ /dev/null @@ -1,499 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for Operation in the server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, operation_ss, "$Id$") - - -// ************************************************************ -// Operation visitor for server skeletons -// ************************************************************ - -be_visitor_operation_ss::be_visitor_operation_ss (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_ss::~be_visitor_operation_ss (void) -{ -} - -// processing to be done after every element in the scope is processed -int -be_visitor_operation_ss::post_process () -{ - // all we do here is to insert a comma and a newline - TAO_OutStream *os = this->ctx_->stream (); - *os << ",\n"; - return 0; -} - -int -be_visitor_operation_ss::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node for return type - - os = this->ctx_->stream (); // grab the o/p stream - this->ctx_->node (node); // save the node for future use - - os->indent (); // start with the current indentation level - - // if there is an argument of type "native", return immediately - if (node->has_native ()) - return 0; - - // retrieve the operation return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // We need the interface node in which this operation was defined. However, - // if this operation node was an attribute node in disguise, we get this - // information from the context - be_interface *intf; - intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (node->defined_in ()); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "bad interface scope\n"), - -1); - } - - // generate the signature of the static skeleton - os->indent (); - *os << "void " << intf->full_skel_name () << "::"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () - << "_skel (" << be_idt << be_idt_nl - << "CORBA::ServerRequest &_tao_server_request, " << be_nl - << "void *_tao_object_reference, " << be_nl - << "void * /* context */, " << be_nl - << "CORBA::Environment &_tao_environment" << be_uidt << be_uidt_nl - << ")" << be_nl; - - // generate the actual code for the skeleton. However, if any of the argument - // types is "native", we do not generate any skeleton - // last argument - is always CORBA::Environment - *os << "{" << be_idt_nl; - - // generate the param_data and call_data tables. We generate these if and - // only if none of our arguments is of "native" type. Native types cannot be - // marshaled. - // native type does not exist. Generate the static tables - - // generate the TAO_Param_Data_Skel table - *os << "static const TAO_Param_Data_Skel "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << - "_paramdata [] = " << be_nl; - *os << "{\n"; - os->incr_indent (); - - // entry for the return type - *os << "{" << bt->tc_name () << ", 0, 0}"; - if (node->nmembers () > 0) - *os << ",\n"; - - // generate entries for the param data table for arguments - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "visit scope failed\n"), - -1); - } - *os << "\n"; - os->decr_indent (); - *os << "}; // " << node->flatname () << "_paramdata\n\n"; - - // now generate the calldata table - os->indent (); - *os << "static const TAO_Call_Data_Skel "; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () - << "_calldata = " << be_nl - << "{" - << "\""; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->local_name () << "\", "; - - // are we oneway or two operation? - if (node->flags () == AST_Operation::OP_oneway) - { - *os << "0, "; // for false - } - else - { - *os << "1, "; // for true - } - // insert the size of the paramdata table i.e., number of arguments + 1 - // for return type - *os << (node->argument_count () + 1) << ", "; - - // insert the address of the paramdata table - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_paramdata};\n\n"; - - os->indent (); - // declare an environment variable for user raised exceptions - *os << "CORBA::Environment _tao_skel_environment;" << be_nl; - // get the right object implementation. - *os << intf->full_skel_name () << " *_tao_impl = (" - << intf->full_skel_name () << " *)_tao_object_reference;\n"; - - // declare a return type variable - be_visitor_context ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DECL_SS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var decl failed\n"), - -1); - } - - // declare variables for arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for return var decl failed\n"), - -1); - } - - - // setup parameters for demarshaling and demarshal them - os->indent (); - *os << "_tao_server_request.demarshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "&"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_calldata,\n"; - - // pass the appropriate return value to the demarshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_DEMARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for return var in demarshal failed\n"), - -1); - } - // insert a comma after the return val if there are arguments - if (node->argument_count () > 0) - *os << ",\n"; - - // pass each argument to the demarshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DEMARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument in demarshal failed\n"), - -1); - } - - // end the demarshal call - *os << be_uidt_nl; - *os << ");\n"; - - // check for exception - os->indent (); - *os << "if (_tao_environment.exception ()) return;\n"; - - // do pre upcall processing if any - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_PRE_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // make the upcall and assign to the return val - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for retval assignment failed\n"), - -1); - } - - // make the upcall - *os << "_tao_impl->" << node->local_name () << " (" << be_idt << "\n"; - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // last argument is the environment - if (node->argument_count () > 0) - *os << ",\n"; - os->indent (); - *os << "_tao_skel_environment"; - // end the upcall - *os << be_uidt_nl; - *os << ");\n"; - - // do any post processing for the arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_POST_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for args in post upcall failed\n"), - -1); - } - - // check if we are oneway in which case, we are done - if (node->flags () == AST_Operation::OP_oneway) - { - // we are done. Nothing else to do, except closing the function body. - os->decr_indent (); - *os << "}\n\n"; - return 0; - } - - // setup parameters for marshaling and marshal them into the - // outgoing stream - os->indent (); - *os << "_tao_server_request.marshal (" << be_idt_nl - << "_tao_environment, " << be_nl - << "_tao_skel_environment, " << be_nl - << "&"; - // check if we are an attribute node in disguise - if (this->ctx_->attribute ()) - { - // now check if we are a "get" or "set" operation - if (node->nmembers () == 1) // set - *os << "_set_"; - else - *os << "_get_"; - } - *os << node->flatname () << "_calldata,\n"; - - // pass the appropriate return value to the marshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_MARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for return var in marshal failed\n"), - -1); - } - // insert a comma after the return val if there are arguments - if (node->argument_count () > 0) - { - *os << ",\n"; - } - - // pass each argument to the marshal operation - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_MARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument in marshal failed\n"), - -1); - } - // end the marshal call - *os << be_uidt_nl; - *os << ");\n"; - - // do any post processing for the retval - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_RETVAL_POST_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (bt->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for return type post upcall failed\n"), - -1); - } - - // do any post processing for the arguments - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for args in post marshal failed\n"), - -1); - } - - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_operation_ss::visit_argument (be_argument *node) -{ - // this method is used to generate the ParamData table entry - - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; // argument type - - // retrieve the type for this argument - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_argument - " - "Bad argument type\n"), - -1); - } - - os->indent (); - *os << "{" << bt->tc_name () << ", "; - switch (node->direction ()) - { - case AST_Argument::dir_IN: - *os << "CORBA::ARG_IN, "; - break; - case AST_Argument::dir_INOUT: - *os << "CORBA::ARG_INOUT, "; - break; - case AST_Argument::dir_OUT: - *os << "CORBA::ARG_OUT, "; - break; - } - *os << "0}"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp deleted file mode 100644 index 49ee0d64acb..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp +++ /dev/null @@ -1,259 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype.cpp -// -// = DESCRIPTION -// Visitor generating code for return type of the Operation node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype, "$Id$") - - -// **************************************************************************** -// Operation visitor for return types. This generates the mapping for a return -// type in an operation signature -// **************************************************************************** - -be_visitor_operation_rettype::be_visitor_operation_rettype (be_visitor_context - *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype::~be_visitor_operation_rettype (void) -{ -} - -int -be_visitor_operation_rettype::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_slice") << " *"; - else - *os << bt->name () << "_slice *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int -be_visitor_operation_rettype::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << bt->name () << "_ptr"; - return 0; -} - -int -be_visitor_operation_rettype::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << bt->name () << "_ptr"; - return 0; -} - -int -be_visitor_operation_rettype::visit_native (be_native *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " *"; - else - *os << bt->name () << " *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << bt->name () << "_ptr"; - break; - case AST_PredefinedType::PT_any: - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " *"; - else - *os << bt->name () << " *"; - break; - default: - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - break; - } - return 0; -} - -int -be_visitor_operation_rettype::visit_sequence (be_sequence *node) -{ - // we should never directly be here because anonymous sequence return types - // are not allowed - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " *"; - else - *os << bt->name () << " *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - *os << "char *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << " *"; - return 0; -} - -int -be_visitor_operation_rettype::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_OPERATION_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << " *"; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp deleted file mode 100644 index 18da2e48a94..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_assign_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for assigning the return value of upcall to the -// return type variable. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_assign_ss, "$Id$") - - -// **************************************************************************** -// visitor for assignment to a return value variable from the upcall -// **************************************************************************** - -be_visitor_operation_rettype_assign_ss:: -be_visitor_operation_rettype_assign_ss (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_assign_ss:: -~be_visitor_operation_rettype_assign_ss (void) -{ -} - -int -be_visitor_operation_rettype_assign_ss::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss:: -visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - break; - case AST_PredefinedType::PT_pseudo: - case AST_PredefinedType::PT_any: - default: - *os << "_tao_retval = "; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_structure (be_structure *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_assign_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_assign_ss::visit_union (be_union *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval = "; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_docall_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_docall_cs.cpp deleted file mode 100644 index 1e21d6a8106..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_docall_cs.cpp +++ /dev/null @@ -1,172 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_docall_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for passing the return type variable to the -// do_static_call method in the stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_docall_cs, "$Id$") - - -// ***************************************************************************** -// be_visitor_operation_rettype_docall_cs -// -// This visitor generates code that passes the return type variable to the -// do_static_call method -// ***************************************************************************** - -be_visitor_operation_rettype_docall_cs::be_visitor_operation_rettype_docall_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_docall_cs:: -~be_visitor_operation_rettype_docall_cs (void) -{ -} - -int -be_visitor_operation_rettype_docall_cs::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_base_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_base_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - *os << "0"; - break; - case AST_PredefinedType::PT_any: - *os << "_tao_retval"; - break; - default: - *os << "&_tao_retval"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // check if the struct is variable - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_retval"; - else - *os << "&_tao_retval"; - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // check if the union is variable - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_retval"; - else - *os << "&_tao_retval"; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp deleted file mode 100644 index c29b91f99ee..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp +++ /dev/null @@ -1,181 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_marshal_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for marshaling the return type variable -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_marshal_ss, "$Id$") - - -// **************************************************************************** -// Visitor that passes the return value to the marshal/demarshal routine -// **************************************************************************** - -be_visitor_operation_rettype_marshal_ss:: -be_visitor_operation_rettype_marshal_ss (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_marshal_ss:: -~be_visitor_operation_rettype_marshal_ss (void) -{ -} - -int -be_visitor_operation_rettype_marshal_ss::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_ptr_retval"; - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss:: -visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - os->indent (); - *os << "0"; - break; - case AST_PredefinedType::PT_pseudo: - os->indent (); - *os << "&_tao_ptr_retval"; - break; - case AST_PredefinedType::PT_any: - os->indent (); - *os << "_tao_ptr_retval"; - break; - default: - os->indent (); - *os << "&_tao_retval"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "&_tao_ptr_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_retval"; - else - *os << "&_tao_retval"; - - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_marshal_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_marshal_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - if (node->size_type () == be_type::VARIABLE) - *os << "_tao_ptr_retval"; - else - *os << "&_tao_retval"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_post_docall_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_post_docall_cs.cpp deleted file mode 100644 index 52d013c259f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_post_docall_cs.cpp +++ /dev/null @@ -1,84 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_post_docall_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for return type post processing following a -// do_static_call. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_post_docall_cs, "$Id$") - - -// ******************************************************************************* -// be_visitor_operation_rettype_post_docall_cs -// -// This visitor generates code that passes the return type variable to the -// do_static_call method -// ******************************************************************************** - -be_visitor_operation_rettype_post_docall_cs:: -be_visitor_operation_rettype_post_docall_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_post_docall_cs:: -~be_visitor_operation_rettype_post_docall_cs (void) -{ -} - -int -be_visitor_operation_rettype_post_docall_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << "_tao_retval = " << bt->name () - << "::_narrow (_tao_base_retval, _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_retval);\n"; - return 0; -} - -int -be_visitor_operation_rettype_post_docall_cs:: -visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << "_tao_retval = " << bt->name () - << "::_narrow (_tao_base_retval, _tao_environment);" << be_nl; - *os << "CORBA::release (_tao_base_retval);\n"; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp deleted file mode 100644 index b1e9623cf7c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp +++ /dev/null @@ -1,113 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_post_upcall_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for post-processing of return type after an -// upcall is made -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_post_upcall_ss, "$Id$") - - -// **************************************************************************** -// visitor to do any post processing for return type after an upcall -// **************************************************************************** - -be_visitor_operation_rettype_post_upcall_ss::be_visitor_operation_rettype_post_upcall_ss (be_visitor_context - *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_post_upcall_ss::~be_visitor_operation_rettype_post_upcall_ss (void) -{ -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_array (be_array *) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_enum (be_enum *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_interface (be_interface *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_interface_fwd (be_interface_fwd *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_predefined_type (be_predefined_type *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_sequence (be_sequence *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_string (be_string * /* node*/) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_structure (be_structure *node) -{ - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_post_upcall_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_post_upcall_ss::visit_union (be_union *node) -{ - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_pre_docall_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_pre_docall_cs.cpp deleted file mode 100644 index f6f656853e4..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_pre_docall_cs.cpp +++ /dev/null @@ -1,174 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_pre_docall_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for doing any pre-processing of return type prior -// to making the do_static_call. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_pre_docall_cs, "$Id$") - - -// ***************************************************************************** -// be_visitor_operation_rettype_pre_docall_cs -// -// This visitor generates code that passes the return type variable to the -// do_static_call method -// ***************************************************************************** - -be_visitor_operation_rettype_pre_docall_cs:: -be_visitor_operation_rettype_pre_docall_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_pre_docall_cs:: -~be_visitor_operation_rettype_pre_docall_cs (void) -{ -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << "ACE_ALLOCATOR_RETURN (_tao_retval, " << bt->name () - << "_alloc (), _tao_retval);\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "CORBA::Object_ptr _tao_base_retval = CORBA::Object::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "CORBA::Object_ptr _tao_base_retval = CORBA::Object::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - switch (node->pt ()) - { - case AST_PredefinedType::PT_any: - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, CORBA::Any, _tao_retval);\n"; - break; - default: - break; - } - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, " << bt->name () << ", _tao_retval);\n"; - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - // check if the union is variable - if (node->size_type () == be_type::VARIABLE) - { - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, " << bt->name () << ", _tao_retval);\n"; - } - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_pre_docall_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_pre_docall_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - // check if the union is variable - if (node->size_type () == be_type::VARIABLE) - { - os->indent (); - *os << "ACE_NEW_RETURN (_tao_retval, " << bt->name () << ", _tao_retval);\n"; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp deleted file mode 100644 index 6f36cc21644..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp +++ /dev/null @@ -1,160 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_return_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for returning the return type variable. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_return_cs, "$Id$") - - -// ************************************************************ -// be_visitor_operation_rettype_return_cs -// -// code to generate the return statement of the stub. -// ************************************************************ - -be_visitor_operation_rettype_return_cs::be_visitor_operation_rettype_return_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_return_cs::~be_visitor_operation_rettype_return_cs (void) -{ -} - -int -be_visitor_operation_rettype_return_cs::visit_array (be_array *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_enum (be_enum *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // we must narrow it - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // we must narrow it - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - switch (node->pt ()) - { - case AST_PredefinedType::PT_void: - *os << "return;\n"; - break; - default: - *os << "return _tao_retval;\n"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_sequence (be_sequence *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_structure (be_structure *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_return_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_return_cs::visit_union (be_union *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "return _tao_retval;\n"; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp deleted file mode 100644 index 5613cffe2db..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp +++ /dev/null @@ -1,231 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_vardecl_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for return type variable declaration in the stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_vardecl_cs, "$Id$") - - -// ************************************************************ -// be_visitor_operation_rettype_vardecl_cs -// This visitor generates code for variable declaration and initialization -// of the return type. -// ************************************************************ - -be_visitor_operation_rettype_vardecl_cs:: -be_visitor_operation_rettype_vardecl_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_vardecl_cs:: -~be_visitor_operation_rettype_vardecl_cs (void) -{ -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_slice *_tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << " _tao_retval = (" << bt->name () << ")0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_ptr _tao_retval = " << bt->name () << "::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_ptr _tao_retval = " << bt->name () << "::_nil ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - os->indent (); - *os << bt->name () << "_ptr _tao_retval = 0;\n"; - break; - case AST_PredefinedType::PT_any: - os->indent (); - *os << bt->name () << " *_tao_retval = 0;\n"; - break; - case AST_PredefinedType::PT_void: - break; - default: - os->indent (); - *os << bt->name () << " _tao_retval = 0;\n"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_sequence (be_sequence *node) -{ - // we should never directly be here because anonymous sequence return types - // are not allowed - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << " *_tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "char *_tao_retval = 0;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << bt->name () << " *_tao_retval = 0;\n"; - else - { - *os << bt->name () << " _tao_retval;" << be_nl; - *os << "ACE_OS::memset (&_tao_retval, 0, sizeof (" << bt->name () << "));\n"; - } - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_vardecl_cs::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_vardecl_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - *os << bt->name () << " *_tao_retval = 0;\n"; - else - { - *os << bt->name () << " _tao_retval;\n"; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp deleted file mode 100644 index b77fd3e1e7b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp +++ /dev/null @@ -1,238 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_vardecl_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for return type variable declaration in the -// skeleton file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, rettype_vardecl_ss, "$Id$") - - -// ******************************************************************************** -// be_visitor_operation_rettype_vardecl_ss -// This visitor generates code for variable declaration and initialization -// of the return type. -// ******************************************************************************** - -be_visitor_operation_rettype_vardecl_ss::be_visitor_operation_rettype_vardecl_ss -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_operation_rettype_vardecl_ss:: -~be_visitor_operation_rettype_vardecl_ss (void) -{ -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << "_slice *&_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << " _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_interface (be_interface *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // due to the virtual inheritance and the fact that we will be passing the - // address of the objref to the marshaling routine, we use the base - // CORBA::Object_ptr as the type for the return value even though the actual - // return type may be some derived class - *os << "CORBA::Object_var _tao_retval = CORBA::Object::_nil ();" << be_nl; - *os << "CORBA::Object_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss:: -visit_interface_fwd (be_interface_fwd *) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - // due to the virtual inheritance and the fact that we will be passing the - // address of the objref to the marshaling routine, we use the base - // CORBA::Object_ptr as the type for the return value even though the actual - // return type may be some derived class - *os << "CORBA::Object_var _tao_retval = CORBA::Object::_nil ();" << be_nl; - *os << "CORBA::Object_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss:: -visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - break; - case AST_PredefinedType::PT_any: - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << "_ptr &_tao_ptr_retval = _tao_retval.out ();\n"; - break; - case AST_PredefinedType::PT_void: - break; - default: - os->indent (); - *os << bt->name () << " _tao_retval = 0;\n"; - break; - } - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_sequence (be_sequence *node) -{ - // we should never directly be here because anonymous sequence return types - // are not allowed - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << " *&_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_string (be_string * /* node*/) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - - os->indent (); - *os << "CORBA::String_var _tao_retval;" << be_nl; - *os << "char *&_tao_ptr_retval = _tao_retval.out ();\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << " *&_tao_ptr_retval = _tao_retval.out ();\n"; - } - else - *os << bt->name () << " _tao_retval;\n"; - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_rettype_vardecl_ss::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_operation_rettype_vardecl_ss::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // grab the out stream - be_type *bt; // return type - - if (this->ctx_->alias ()) // a typedefed return type - bt = this->ctx_->alias (); - else - bt = node; - - os->indent (); - // based on whether we are variable or not, we return a pointer or the - // aggregate type - if (node->size_type () == be_decl::VARIABLE) - { - *os << bt->name () << "_var _tao_retval;" << be_nl; - *os << bt->name () << " *&_tao_ptr_retval = _tao_retval.out ();\n"; - } - else - *os << bt->name () << " _tao_retval;\n"; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp deleted file mode 100644 index 08c28a0d6ee..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp +++ /dev/null @@ -1,121 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for operations of the TIE class in the header -// file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, tie_sh, "$Id$") - - -// ************************************************************ -// Operation visitor for server header for TIE class operations -// ************************************************************ - -be_visitor_operation_tie_sh::be_visitor_operation_tie_sh (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_tie_sh::~be_visitor_operation_tie_sh (void) -{ -} - -int -be_visitor_operation_tie_sh::visit_operation (be_operation *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node representing the return type - - os = this->ctx_->stream (); - this->ctx_->node (node); // save the node - - os->indent (); // start with the current indentation level - - // STEP I: generate the return type - bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_sh::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - // grab the right visitor to generate the return type - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_tie_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_sh::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - // STEP 2: generate the operation name - *os << " " << node->local_name (); - - // STEP 3: generate the argument list with the appropriate mapping. For these - // we grab a visitor that generates the parameter listing - ctx = *this->ctx_; - // we use the _CH state here because the _SH state produces pure virtual - // methods. - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_CH); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_tie_sh::" - "visit_operation - " - "Bad visitor to return type\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_sh::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp b/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp deleted file mode 100644 index 21ed4b77977..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp +++ /dev/null @@ -1,158 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_si.cpp -// -// = DESCRIPTION -// Visitor generating code for operations for the TIE class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_operation.h" - -ACE_RCSID(be_visitor_operation, tie_si, "$Id$") - - -// ************************************************************ -// Operation visitor for server inline for TIE class operations -// ************************************************************ - -be_visitor_operation_tie_si::be_visitor_operation_tie_si -(be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_operation_tie_si::~be_visitor_operation_tie_si (void) -{ -} - -int be_visitor_operation_tie_si::visit_operation (be_operation *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - be_interface *intf = - this->ctx_->interface (); - - if (!intf) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_si::" - "visit_operation - " - "bad interface scope\n"), - -1); - } - - // retrieve the operation return type - be_type *bt = be_type::narrow_from_decl (node->return_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_si::" - "visit_operation - " - "Bad return type\n"), - -1); - } - - os->indent (); - *os << "template ACE_INLINE\n"; - - // generate the return type mapping (same as in the header file) - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_OPERATION_RETTYPE_OTHERS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_tie_si::" - "visit_operation - " - "Bad visitor for return type\n"), - -1); - } - - if (bt->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_tie_si::" - "visit_operation - " - "codegen for return type failed\n"), - -1); - } - delete visitor; - - *os << " " << intf->full_skel_name () << "_tie::" - << node->local_name () << " "; - - // STEP 4: generate the argument list with the appropriate mapping (same as - // in the header file) - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_operation_cs::" - "visit_operation - " - "Bad visitor for argument list\n"), - -1); - } - - if (node->accept (visitor) == -1) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_cs::" - "visit_operation - " - "codegen for argument list failed\n"), - -1); - } - delete visitor; - - *os << "{" << be_idt_nl; - - if (bt->node_type () != AST_Decl::NT_pre_defined - || be_predefined_type::narrow_from_decl (bt)->pt () != AST_PredefinedType::PT_void) - { - *os << "return "; - } - - *os << "this->ptr_->" << node->local_name () << " (" << be_idt << "\n"; - - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - delete visitor; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_operation_ss::" - "visit_operation - " - "codegen for making upcall failed\n"), - -1); - } - // last argument is the environment - if (node->argument_count () > 0) - *os << ",\n"; - os->indent (); - *os << "_tao_environment" << be_uidt_nl - << ");" << be_uidt_nl - << "}\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root.cpp b/TAO/TAO_IDL/be/be_visitor_root.cpp deleted file mode 100644 index ce312a283c1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_root.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Root -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_visitor_root.h" - -// include all the individual files -#include "be_visitor_root/root.cpp" -#include "be_visitor_root/root_ch.cpp" -#include "be_visitor_root/root_ci.cpp" -#include "be_visitor_root/root_cs.cpp" -#include "be_visitor_root/root_sh.cpp" -#include "be_visitor_root/root_si.cpp" -#include "be_visitor_root/root_ss.cpp" -#include "be_visitor_root/any_op.cpp" -#include "be_visitor_root/cdr_op.cpp" - -ACE_RCSID(be, be_visitor_root, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp b/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp deleted file mode 100644 index 9d31730b5c7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op.cpp -// -// = DESCRIPTION -// Visitor generating code for the Any operators for types defined in Root's -// scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, any_op, "$Id$") - - -// *************************************************************************** -// Root visitor for generating Any operator declarations in the client header -// and stub -// *************************************************************************** - -be_visitor_root_any_op::be_visitor_root_any_op (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_any_op::~be_visitor_root_any_op (void) -{ -} - -int -be_visitor_root_any_op::visit_root (be_root *node) -{ - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::visit_root - " - "codegen for scope failed\n"), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp b/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp deleted file mode 100644 index a7af7e9cebf..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op.cpp -// -// = DESCRIPTION -// Visitor generating code for the CDR operators for types defined -// in Root's scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, cdr_op, "$Id$") - - -// *************************************************************************** -// Root visitor for generating CDR operator declarations in the client header -// and stub -// *************************************************************************** - -be_visitor_root_cdr_op::be_visitor_root_cdr_op (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_cdr_op::~be_visitor_root_cdr_op (void) -{ -} - -int -be_visitor_root_cdr_op::visit_root (be_root *node) -{ - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_cdr_op::visit_root - " - "codegen for scope failed\n"), -1); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root.cpp b/TAO/TAO_IDL/be/be_visitor_root/root.cpp deleted file mode 100644 index 0f063a6f715..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root.cpp +++ /dev/null @@ -1,834 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root.cpp -// -// = DESCRIPTION -// Visitor generating code for the Root node. This is a generic visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root, "$Id$") - - -// Generic Root visitor -be_visitor_root::be_visitor_root (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_root::~be_visitor_root (void) -{ -} - -// this method must be overridden by the derived root visitors -int -be_visitor_root::init (void) -{ - return -1; -} - -// visit the Root node and its scope -int be_visitor_root::visit_root (be_root *node) -{ - // open the appropriate output file based on what state we are in. The - // overridden "init" method of derived classes will do the job. - if (this->init () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::init - " - "failed to initialize context\n"), -1); - } - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::visit_root - " - "codegen for scope failed\n"), -1); - } - - // The next thing we need to do is make one more pass thru the entire tree - // and generate code for all the <<= and >>= operators for all the - // user-defined types. - // - // XXXASG - this part of the code may be conditionally generated because at - // times it is not necessary to have these operators at all. TO-DO. - be_visitor_context ctx (*this->ctx_); - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_ROOT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_ROOT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - (void) tao_cg->end_server_header (); - (void) tao_cg->end_server_template_header (); - return 0; - - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SI: - return 0; // nothing to be done - case TAO_CodeGen::TAO_ROOT_SS: - (void) tao_cg->end_server_template_skeletons (); - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_root - " - "NUL visitor\n" - ), -1); - } - - // generate the <<= and >>= operators for all the user-defined data types in - // the outermost scope - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_root - " - "failed to generate Any operators\n" - ), -1); - } - delete visitor; - - - // make one more pass over the entire tree and generate the CDR << and >> - // operators for compiled marshaling. Again, this code can be conditionally - // generated if compiled marshaling is desired. - ctx = *this->ctx_; - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_ROOT_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_ROOT_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - } - - visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_root - " - "NUL visitor\n" - ), -1); - } - - // generate the << and >> operators for all the user-defined data types in - // the outermost scope - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_root - " - "failed to generate CDR operators\n" - ), -1); - } - delete visitor; - - // generate any final code such as #endifs - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - (void) tao_cg->end_client_header (); - break; - default: - break; - } - return 0; -} - -// =all common visit methods for root visitor - -// visit a constant -int -be_visitor_root::visit_constant (be_constant *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_CONSTANT_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_constant - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_root::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CI: - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an exception -int -be_visitor_root::visit_exception (be_exception *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_exception - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_exception - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_exception - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface -int -be_visitor_root::visit_interface (be_interface *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SH); - break; - case TAO_CodeGen::TAO_ROOT_SI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SI); - break; - case TAO_CodeGen::TAO_ROOT_SS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_SS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an interface_fwd -int -be_visitor_root::visit_interface_fwd (be_interface_fwd *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CI); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - case TAO_CodeGen::TAO_ROOT_CS: - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface_fwd - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface_fwd - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_interface_fwd - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an module -int -be_visitor_root::visit_module (be_module *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_MODULE_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_MODULE_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_MODULE_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - ctx.state (TAO_CodeGen::TAO_MODULE_SH); - break; - case TAO_CodeGen::TAO_ROOT_SI: - ctx.state (TAO_CodeGen::TAO_MODULE_SI); - break; - case TAO_CodeGen::TAO_ROOT_SS: - ctx.state (TAO_CodeGen::TAO_MODULE_SS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_MODULE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_MODULE_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_MODULE_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_MODULE_CDR_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_module - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_module - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_module - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_root::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an union -int -be_visitor_root::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_union - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an typedef -int -be_visitor_root::visit_typedef (be_typedef *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_ROOT_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CH); - break; - case TAO_CodeGen::TAO_ROOT_CI: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CI); - break; - case TAO_CodeGen::TAO_ROOT_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CS); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_ROOT_SH: - case TAO_CodeGen::TAO_ROOT_SI: - case TAO_CodeGen::TAO_ROOT_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_typedef - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_typedef - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root::" - "visit_typedef - " - "failed to accept visitor" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp deleted file mode 100644 index 29a3dacdfb9..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp +++ /dev/null @@ -1,59 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Root in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root_ch, "$Id$") - - -// ******************************** -// Root visitor for client header -// ******************************** - -be_visitor_root_ch::be_visitor_root_ch (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_ch::~be_visitor_root_ch (void) -{ -} - -int -be_visitor_root_ch::init (void) -{ - // first open the client-side header file for writing - if (tao_cg->start_client_header (idl_global->be_get_client_hdr_fname ()) - == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_visitor_root_ch::init - " - "Error opening client header file\n")); - return -1; - } - - // init the stream - this->ctx_->stream (tao_cg->client_header ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp deleted file mode 100644 index d7ca5008cba..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for the Root in the client inline -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root_ci, "$Id$") - - -// ********************************* -// Root visitor for client inline -// ********************************* - -be_visitor_root_ci::be_visitor_root_ci (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_ci::~be_visitor_root_ci (void) -{ -} - -int -be_visitor_root_ci::init (void) -{ - // first open the client-side inline file for writing - if (tao_cg->start_client_inline (idl_global->be_get_client_inline_fname ()) - == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_visitor_root_ci - " - "Error opening client inline file\n")); - return -1; - } - - this->ctx_->stream (tao_cg->client_inline ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp deleted file mode 100644 index a6d0bc90b54..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Root in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root_cs, "$Id$") - - -// *********************************** -// Root visitor for client stubs -// *********************************** - -be_visitor_root_cs::be_visitor_root_cs (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_cs::~be_visitor_root_cs (void) -{ -} - -int -be_visitor_root_cs::init (void) -{ - // first open the file - if (tao_cg->start_client_stubs (idl_global->be_get_client_stub_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_cs - " - "Error opening client stub file\n"), -1); - } - - // init stream - this->ctx_->stream (tao_cg->client_stubs ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp deleted file mode 100644 index f8c1eebbc21..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp +++ /dev/null @@ -1,70 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_sh.cpp -// -// = DESCRIPTION -// Visitor generating code for Root in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root_sh, "$Id$") - - -// *********************************** -// Root visitor for server header -// *********************************** - -be_visitor_root_sh::be_visitor_root_sh (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_sh::~be_visitor_root_sh (void) -{ -} - -int -be_visitor_root_sh::init (void) -{ - // open the file - if (tao_cg->start_server_header (idl_global->be_get_server_hdr_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_sh::init - " - "Error :%p: Unable to open server header file : %s\n", - idl_global->be_get_server_hdr_fname ()), - -1); - } - - if (tao_cg->start_server_template_header (idl_global->be_get_server_template_hdr_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_sh::init - " - "Error:Unable to openin server template header file : %s\n", - idl_global->be_get_server_template_hdr_fname ()), - -1); - } - - // set the stream and the next state - this->ctx_->stream (tao_cg->server_header ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_si.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_si.cpp deleted file mode 100644 index 5a4ec77261c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root_si.cpp +++ /dev/null @@ -1,68 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_si.cpp -// -// = DESCRIPTION -// Visitor generating code for the Root in the server inline file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root_si, "$Id$") - - -// *********************************************** -// Root visitor for server inline -// *********************************************** - -be_visitor_root_si::be_visitor_root_si (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_si::~be_visitor_root_si (void) -{ -} - -int -be_visitor_root_si::init (void) -{ - // first open the file for writing - if (tao_cg->start_server_inline (idl_global->be_get_server_inline_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_si::init - " - "server inline open failed\n"), -1); - } - - if (tao_cg->start_server_template_inline - (idl_global->be_get_server_template_inline_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_si::init - " - "Error opening server template inline file\n"), - -1); - } - - // init stream - this->ctx_->stream (tao_cg->server_inline ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp deleted file mode 100644 index c5557f3fa80..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp +++ /dev/null @@ -1,69 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ss.cpp -// -// = DESCRIPTION -// Visitor generating code for the Root in the server skeletons file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_root.h" - -ACE_RCSID(be_visitor_root, root_ss, "$Id$") - - -// ****************************************************** -// Root visitor for server skeletons -// ****************************************************** - -be_visitor_root_ss::be_visitor_root_ss (be_visitor_context *ctx) - : be_visitor_root (ctx) -{ -} - -be_visitor_root_ss::~be_visitor_root_ss (void) -{ -} - -int -be_visitor_root_ss::init (void) -{ - // first open the file for writing - if (tao_cg->start_server_skeletons (idl_global - ->be_get_server_skeleton_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_ss::init - " - "Error opening server skeletons file\n"), -1); - } - - if (tao_cg->start_server_template_skeletons - (idl_global->be_get_server_template_skeleton_fname ()) - == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_root_ss::init - " - "Error opening server template skeleton file\n"), - -1); - } - - // set stream - this->ctx_->stream (tao_cg->server_skeletons ()); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_scope.cpp b/TAO/TAO_IDL/be/be_visitor_scope.cpp deleted file mode 100644 index 13e74a1731e..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_scope.cpp +++ /dev/null @@ -1,120 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_scope.cpp -// -// = DESCRIPTION -// Visitor for the base be_scope node. This serves to maintain the current -// state (context) of code generation for the derived visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_scope.h" - -ACE_RCSID(be, be_visitor_scope, "$Id$") - - -// ****************************************************** -// Generic visitor for a scope. -// All elements that give rise to a scope inherit from -// this class -// ****************************************************** - -be_visitor_scope::be_visitor_scope (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_scope::~be_visitor_scope (void) -{ -} - -// visit the scope and its elements -int -be_visitor_scope::visit_scope (be_scope *node) -{ - // proceed if the number of members in our scope is greater than 0 - if (node->nmembers () > 0) - { - // initialize an iterator to iterate thru our scope - UTL_ScopeActiveIterator *si; - ACE_NEW_RETURN (si, - UTL_ScopeActiveIterator (node, - UTL_Scope::IK_decls), - -1); - // continue until each element is visited - while (!si->is_done ()) - { - AST_Decl *d = si->item (); - if (!d) - { - delete si; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_scope::visit_scope - " - "bad node in this scope\n"), -1); - - } - be_decl *bd = be_decl::narrow_from_decl (d); - // set the scope node as "node" in which the code is being generated - // so that elements in the node's scope can use it for code generation - this->ctx_->scope (node->decl ()); - // set the node to be visited - this->ctx_->node (bd); - if (bd == 0 || bd->accept (this) == -1) - { - delete si; - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_scope::visit_scope - " - "codegen for scope failed\n"), -1); - - } - si->next (); - if (!si->is_done ()) - this->post_process (); // anything to be done after each element - // except the last one is processed? - - } // end of while loop - delete si; - } // end of if - - -#if 0 - // For debugging the prefix... - be_decl* decl = node->decl (); - ACE_DEBUG ((LM_DEBUG, "Enter scope <%s> : [%s]\n", - decl->fullname (), decl->prefix ())); - if (decl->pragmas () != 0) - { - for (UTL_StrlistActiveIterator i(decl->pragmas ()); - !i.is_done (); - i.next ()) - { - String* s = i.item (); - - ACE_DEBUG ((LM_DEBUG, " pragma = <%s>\n", s->get_string ())); - } - } -#endif - - return 0; -} - -int -be_visitor_scope::post_process (void) -{ - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence.cpp b/TAO/TAO_IDL/be/be_visitor_sequence.cpp deleted file mode 100644 index 4ca0e85f1ce..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence.cpp +++ /dev/null @@ -1,43 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_sequence.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Sequence -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" -#include "be_visitor_sequence.h" - -// include all the individual files -#include "be_visitor_sequence/any_op_ch.cpp" -#include "be_visitor_sequence/any_op_cs.cpp" -#include "be_visitor_sequence/cdr_op_ch.cpp" -#include "be_visitor_sequence/cdr_op_cs.cpp" -#include "be_visitor_sequence/buffer_type.cpp" -#include "be_visitor_sequence/elemtype.cpp" -#include "be_visitor_sequence/sequence_base.cpp" -#include "be_visitor_sequence/sequence_ch.cpp" -#include "be_visitor_sequence/sequence_ci.cpp" -#include "be_visitor_sequence/sequence_cs.cpp" -#include "be_visitor_sequence/gen_unbounded_sequence_ch.cpp" -#include "be_visitor_sequence/gen_bounded_sequence_ch.cpp" -#include "be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp" -#include "be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp" -#include "be_visitor_sequence/gen_bounded_str_sequence_ch.cpp" -#include "be_visitor_sequence/gen_object_manager_ch.cpp" - -ACE_RCSID(be, be_visitor_sequence, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp deleted file mode 100644 index 622c5a566ba..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp +++ /dev/null @@ -1,66 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for the Sequence -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, any_op_ch, "$Id$") - - -// *************************************************************************** -// Sequence visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_sequence_any_op_ch::be_visitor_sequence_any_op_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_any_op_ch::~be_visitor_sequence_any_op_ch (void) -{ -} - -int -be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operators - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - node->cli_hdr_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp deleted file mode 100644 index 29546a71c71..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp +++ /dev/null @@ -1,113 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operator for the Sequence node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, any_op_cs, "$Id$") - - -// *************************************************************************** -// Sequence visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_sequence_any_op_cs::be_visitor_sequence_any_op_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_any_op_cs::~be_visitor_sequence_any_op_cs (void) -{ -} - -int -be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (" << be_idt << be_idt_nl - << "CORBA::Any &_tao_any," << be_nl - << "const " << node->name () << " &_tao_elem" << be_uidt_nl - << ") // copying" << be_uidt_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" - << " // copy the value" << be_uidt_nl - << "}\n" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 0, _tao_env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (" - << node->tc_name () << ", _tao_elem, 1, _tao_env);" - << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - node->cli_stub_any_op_gen (1); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp deleted file mode 100644 index 5ffe0a8aced..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp +++ /dev/null @@ -1,154 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// buffer_type.cpp -// -// = DESCRIPTION -// Visitor generating code for the internal buffer type of the Sequence node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, buffer_type, "$Id$") - - -// **************************************************************** -// We have to generate the buffer type in the constructor -// **************************************************************** - -be_visitor_sequence_buffer_type:: -be_visitor_sequence_buffer_type (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_buffer_type::~be_visitor_sequence_buffer_type (void) -{ -} - -// helper -int -be_visitor_sequence_buffer_type::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << node->name () << "_ptr"; - else - *os << node->name (); - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH) - *os << node->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << node->name () << "_ptr"; - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH) - *os << node->nested_type_name (this->ctx_->scope (), "_ptr"); - else - *os << node->name () << "_ptr"; - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); - *os << "char *"; - return 0; -} - -int -be_visitor_sequence_buffer_type::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_exception (be_exception *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_buffer_type::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_buffer_type::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp deleted file mode 100644 index 11e3e211a36..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp +++ /dev/null @@ -1,65 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for sequences. This uses -// compiled marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, cdr_op_ch, "$Id$") - -// *************************************************************************** -// Sequence visitor for generating CDR operator declarations in the client header -// *************************************************************************** - -be_visitor_sequence_cdr_op_ch::be_visitor_sequence_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_cdr_op_ch::~be_visitor_sequence_cdr_op_ch (void) -{ -} - -int -be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operator declarations - os->indent (); - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << " &); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << " &);\n"; - - - node->cli_hdr_cdr_op_gen (1); - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp deleted file mode 100644 index 494e5010d20..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp +++ /dev/null @@ -1,522 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor for code generation of Sequences for the CDR operators -// in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, cdr_op_cs, "$Id$") - - -// *************************************************************************** -// Sequence visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_sequence_cdr_op_cs::be_visitor_sequence_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_cdr_op_cs::~be_visitor_sequence_cdr_op_cs (void) -{ -} - -int -be_visitor_sequence_cdr_op_cs::visit_sequence (be_sequence *node) -{ - if (this->ctx_->alias ()) - { - // we are here because the base type of the sequence node is itself a sequence - // i.e., this is a case of sequence of sequence - return this->visit_node (node); - } - else - { - TAO_OutStream *os = tao_cg->client_stubs (); - be_type *bt; // base type of the sequence - - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - // retrieve the type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_cdr_op_cs::" - "visit_sequence - " - "Bad base type\n"), - -1); - } - - // generate the CDR << and >> operator defns - - // save the sequence node for further use - this->ctx_->node (node); - - // set the sub state as generating code for the output operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT); - *os << "CORBA::Boolean operator<< (" << be_idt << be_idt_nl - << "TAO_OutputCDR &strm," << be_nl - << "const " << node->name () - << " &_tao_sequence" << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl; - - // first encode the sequence length - *os << "if (strm << _tao_sequence.length ())" << be_nl - << "{" << be_idt_nl; - // now encode the sequence elements - *os << "// encode all elements" << be_nl; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_cdr_op_cs::" - "visit_sequence - " - "Base type codegen failed\n"), - -1); - } - *os << "}" << be_nl - << "return 0; // error" << be_uidt_nl - << "}\n\n"; - - // set the sub state as generating code for the input operator - os->indent (); - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_INPUT); - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << " &_tao_sequence)" << be_nl - << "{" << be_idt_nl; - // first retrieve the length and adjust the sequence length accordingly - *os << "CORBA::ULong _tao_seq_len;" << be_nl; - *os << "if (strm >> _tao_seq_len)" << be_nl - << "{" << be_idt_nl; - // now check if the length does not exceed the maximum. We do this only - // for bounded sequences - - AST_Expression *expr = node->max_size (); - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_sequence - " - "bad sequence dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - if (expr->ev ()->u.ulval > 0) - { - // we are dealing with a bounded sequence. Check if we are within - // bounds - *os << "if (_tao_seq_len <= _tao_sequence.maximum ())" << be_nl - << "{" << be_idt_nl; - } - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_sequence - " - "bad sequence dimension value\n"), - -1); - } - *os << "// set the length of the sequence" << be_nl - << "_tao_sequence.length (_tao_seq_len);" << be_nl; - *os << "// retrieve all the elements" << be_nl; - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_cdr_op_cs::" - "visit_sequence - " - "Base type codegen failed\n"), - -1); - } - if (expr->ev ()->u.ulval > 0) - { - // we are dealing with a bounded sequence. - *os << "}" << be_uidt_nl; - } - *os << "}" << be_nl - << "return 0; // error" << be_uidt_nl - << "}\n\n"; - - node->cli_stub_cdr_op_gen (1); - } - return 0; -} - -// handle all the base types - -int -be_visitor_sequence_cdr_op_cs::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_interface (be_interface *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - case AST_PredefinedType::PT_any: - // let the helper handle this - return this->visit_node (node); - case AST_PredefinedType::PT_void: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_predefined_type - " - "Bad primitive type\n" - ), -1); - default: - // all other primitive types. Handle them as shown below - break; - }; - - // we get here if the "type" of individual elements of the sequence is a - // primitive type. In this case, we treat the sequence as a single - // dimensional sequence (even of it was multi-dimensional), and pass - // the total length of the sequence as a cross product of the - // dimensions - - // grab the sequence node - be_sequence *sequence = this->ctx_->be_node_as_sequence (); - - if (!node) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_predefined_type - " - "bad sequence node\n"), - -1); - } - - // we generate optimized code based on an optimized interface available from - // the CDR class. These optimizations are applicable only to primitive - // types. - *os << " return strm."; - - // based on our substate, we may be reading from a stream or writing into a - // stream - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "read_"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "write_"; - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_predefined_type - " - "bad sub state\n"), - -1); - } - - // determine what kind of sequence are we reading/writing - switch (node->pt ()) - { - case AST_PredefinedType::PT_long: - *os << "long_array"; - break; - case AST_PredefinedType::PT_ulong: - *os << "ulong_array"; - break; - case AST_PredefinedType::PT_short: - *os << "short_array"; - break; - case AST_PredefinedType::PT_ushort: - *os << "ushort_array"; - break; - case AST_PredefinedType::PT_octet: - *os << "octet_array"; - break; - case AST_PredefinedType::PT_char: - *os << "char_array"; - break; - case AST_PredefinedType::PT_wchar: - *os << "wchar_array"; - break; - case AST_PredefinedType::PT_float: - *os << "float_array"; - break; - case AST_PredefinedType::PT_double: - *os << "double_array"; - break; - case AST_PredefinedType::PT_longlong: - *os << "longlong_array"; - break; - case AST_PredefinedType::PT_ulonglong: - *os << "ulonglong_array"; - break; - case AST_PredefinedType::PT_longdouble: - *os << "longdouble_array"; - break; - case AST_PredefinedType::PT_boolean: - *os << "boolean_array"; - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_predefined_type - " - "bad primitive type for optimized code gen\n"), - -1); - } - - // handle special case to avoid compiler errors - switch (node->pt ()) - { - case AST_PredefinedType::PT_char: - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << " ((char *)_tao_sequence.get_buffer (), "; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << " ((const char *)_tao_sequence.get_buffer (), "; - break; - } - break; - default: - *os << " (_tao_sequence.get_buffer (), "; - break; - } - AST_Expression *expr = sequence->max_size (); - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_predefined_type - " - "bad sequence dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - // generate a loop for each dimension - *os << expr->ev ()->u.ulval; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_predefined_type - " - "bad sequence dimension value\n"), - -1); - } - *os << ");" << be_uidt_nl; - - return 0; -} - -int -be_visitor_sequence_cdr_op_cs::visit_string (be_string *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_cdr_op_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// helper -int -be_visitor_sequence_cdr_op_cs::visit_node (be_type *bt) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_sequence *node = this->ctx_->be_node_as_sequence (); - - if (!node) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_node - " - "bad sequence node\n"), - -1); - } - - // initialize a boolean variable - *os << "CORBA::Boolean _tao_marshal_flag = 1;" << be_nl; - - // we get here if the "type" of individual elements of the sequence is not a - // primitive type. In this case, we are left with no other alternative but to - // encode/decode element by element - - AST_Expression *expr = node->max_size (); - // dimension value - if ((expr == NULL) || ((expr != NULL) && (expr->ev () == NULL))) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_node - " - "bad sequence dimension\n"), - -1); - } - if (expr->ev ()->et == AST_Expression::EV_ulong) - { - *os << "for (CORBA::ULong i = 0; i < _tao_sequence.length ()" - << " && _tao_marshal_flag; " - << "i++)" << be_idt_nl; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_node - " - "bad sequence dimension value\n"), - -1); - } - - // if the type was a string, an obj ref, or a pseudo-obj, we are dealing with - // a manager type and hence we must use the appropriate in () and out () - // methods. - // - - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "_tao_marshal_flag = (strm >> _tao_sequence[i]"; - switch (bt->node_type ()) - { - case AST_Decl::NT_string: - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - *os << ".out ()"; - break; - case AST_Decl::NT_pre_defined: - { - // we need to separately handle this case of pseudo objects because - // they have a _var type - be_predefined_type *pt = be_predefined_type::narrow_from_decl (bt); - if (!pt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_node - " - "bad predefined type node\n"), - -1); - } - if (pt->pt () == AST_PredefinedType::PT_pseudo) - { - *os << ".out ()"; - } - } - } - *os << ");"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "_tao_marshal_flag = (strm << _tao_sequence[i]"; - switch (bt->node_type ()) - { - case AST_Decl::NT_string: - case AST_Decl::NT_interface: - case AST_Decl::NT_interface_fwd: - *os << ".in ()"; - break; - case AST_Decl::NT_pre_defined: - { - be_predefined_type *pt = be_predefined_type::narrow_from_decl (bt); - if (!pt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_node - " - "bad predefined type node\n"), - -1); - } - if (pt->pt () == AST_PredefinedType::PT_pseudo) - { - *os << ".in ()"; - } - } - } - *os << ");"; - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cdr_op_cs::" - "visit_node - " - "bad sub state\n"), - -1); - } - - *os << be_uidt_nl; - *os << "return _tao_marshal_flag;" << be_uidt_nl; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/elemtype.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/elemtype.cpp deleted file mode 100644 index 3c477a033e5..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/elemtype.cpp +++ /dev/null @@ -1,244 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// elemtype.cpp -// -// = DESCRIPTION -// Visitor generating code for the element type for the Sequence -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, elemtype, "$Id$") - - -// *********************************************************** -// sequence element type visitor for return types of [] methods -// *********************************************************** - - -be_visitor_sequence_elemtype:: -be_visitor_sequence_elemtype (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_elemtype::~be_visitor_sequence_elemtype (void) -{ -} - -// helper -int -be_visitor_sequence_elemtype::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " &"; - else - *os << bt->name () << " &"; - return 0; -} - -int -be_visitor_sequence_elemtype::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - // !! branching in either compile time template instantiation - // or manual template instatiation - os->gen_ifdef_AHETI(); - - if (this->ctx_->state() != TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - { - if (this->ctx_->scope()->fullname()) - *os << this->ctx_->scope()->fullname() << "::"; - } - - *os << "_TAO_Object_Manager_" - << this->ctx_->scope()->flatname() - << "_" - << bt->flatname (); - - os->gen_else_AHETI(); - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - { - *os << "TAO_Object_Manager<" - << bt->nested_type_name (this->ctx_->scope ()) << "> "; - } - else - *os << "TAO_Object_Manager<" << bt->name () << "> "; - - os->gen_endif_AHETI(); - break; - default: - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()) << " &"; - else - *os << bt->name () << " &"; - } - return 0; -} - -int -be_visitor_sequence_elemtype::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // !! branching in either compile time template instantiation - // or manual template instatiation - os->gen_ifdef_AHETI(); - - if (this->ctx_->state() != TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - { - if (this->ctx_->scope()->fullname()) - *os << this->ctx_->scope()->fullname() << "::"; - } - - *os << "_TAO_Object_Manager_" - << this->ctx_->scope()->flatname() - << "_" - << bt->flatname (); - - os->gen_else_AHETI(); - - *os << "TAO_Object_Manager<" - << bt->nested_type_name (this->ctx_->scope ()) << "> "; - - os->gen_endif_AHETI(); - - return 0; -} - -int -be_visitor_sequence_elemtype::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os->gen_ifdef_AHETI(); - - if (this->ctx_->state() != TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH) - { - if (this->ctx_->scope()->fullname()) - *os << this->ctx_->scope()->fullname() << "::"; - } - - *os << "_TAO_Object_Manager_" - << this->ctx_->scope()->flatname() - << "_" - << bt->flatname (); - - os->gen_else_AHETI(); - - *os << "TAO_Object_Manager<" - << bt->nested_type_name (this->ctx_->scope ()) << "> "; - - - os->gen_endif_AHETI(); - - return 0; -} - -int -be_visitor_sequence_elemtype::visit_string (be_string *) -{ - TAO_OutStream *os = this->ctx_->stream (); - - *os << "TAO_String_Manager "; - return 0; -} - -int -be_visitor_sequence_elemtype::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_exception (be_exception *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_elemtype::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_elemtype::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp deleted file mode 100644 index 006cbb8d25e..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_obj_sequence_ch.cpp +++ /dev/null @@ -1,287 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// gen_bounded_obj_sequence_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, gen_bounded_obj_sequence_ch, "$Id$") - - -int -be_visitor_sequence_ch::gen_bounded_obj_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the class name - be_type *pt; // base types - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - pt = t->primitive_base_type (); - } - else - pt = bt; - - - const char * class_name = node->instance_name (); - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - this->gen_object_manager (node); - // Generate the code for the object manager - - const char * object_manager = node->object_manager_name (); - - os->gen_ifdef_macro (class_name); - - os->indent (); - - *os << "class " << class_name << " : public TAO_Bounded_Base_Sequence" << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - << "// = Initialization and termination methods." << be_nl - << be_nl; - - // constructor - *os << class_name << " (void)" << be_idt_nl - << " : TAO_Bounded_Base_Sequence (" << node->max_size () - << ", allocbuf (" << node->max_size () << "))" << be_uidt_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong length," << be_idt_nl; - // the accept is here the first time used and if an - // error occurs, it will occur here. Later no check - // for errors will be done. - if (pt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - *os <<"* *value," << be_nl - << "CORBA::Boolean release=0)" << be_uidt_nl - << "// Constructor from data." << be_nl - << " : TAO_Bounded_Base_Sequence (" << node->max_size () << ", length, value, release)" << be_nl - << "{" << be_nl - << " this->_allocate_buffer (" << node->max_size () << ");" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (const " << class_name << " &rhs)" << be_nl - << "// Copy constructor." << be_idt_nl - << ": TAO_Bounded_Base_Sequence (rhs)" << be_uidt_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **tmp1 = allocbuf (" << node->max_size () << ");" << be_nl; - pt->accept(visitor); *os <<" ** const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << "** ACE_CAST_CONST, rhs.buffer_);" << be_nl - << "for (CORBA::ULong i = 0; i < rhs.length_; i++)" << be_idt_nl - << "tmp1[i] = "; pt->accept (visitor); *os << "::_duplicate (tmp2[i]);" << be_uidt_nl - << "this->buffer_ = tmp1;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // destructor - *os << "~" << class_name << " (void)" << be_nl - << "// destructor" << be_nl - << "{" << be_idt_nl - << "this->_deallocate_buffer ();" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator= - *os << class_name << " &operator= (const " << class_name << " &rhs)" << be_nl - << "// Assignment from another Bounded sequence." << be_nl - << "{" << be_idt_nl - << "if (this == &rhs)" << be_idt_nl - << "return *this;" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " **, this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (tmp[i]);" << be_nl - << "tmp[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << "}" << be_nl - << "// No need to reallocate the buffer since it is always of size" << be_nl - << "// " << node->max_size () << "" << be_nl - << "#if 0" << be_idt_nl - << "if (this->maximum_ < rhs.maximum_)" << be_nl - << "{" << be_idt_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << "}" << be_uidt_nl - << "#endif /* 0 */" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << be_nl - << "TAO_Bounded_Base_Sequence::operator= (rhs);" << be_nl - << be_nl; - pt->accept(visitor); *os <<" **tmp1 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " **, this->buffer_);" << be_nl; - pt->accept(visitor); *os <<" ** const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " ** ACE_CAST_CONST, rhs.buffer_);" << be_nl - << "for (CORBA::ULong i=0; i < rhs.length_; ++i)" << be_idt_nl - << "tmp1[i] = "; pt->accept (visitor); *os << "::_duplicate (tmp2[i]);" << be_uidt_nl - << "return *this;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator[] - *os << object_manager << " operator[] (CORBA::ULong index) const // Read-write accessor." << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (index < this->maximum_);" << be_nl; - pt->accept(visitor); *os <<" **const tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " ** ACE_CAST_CONST, this->buffer_);" << be_nl - << "return " << object_manager << " (tmp + index, this->release_);" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocbuf - *os << "static "; pt->accept (visitor); *os << " **allocbuf (CORBA::ULong length) // Allocate storage for a sequence.." << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **buf;" << be_nl - << be_nl - << "ACE_NEW_RETURN (buf, "; pt->accept (visitor); *os << "*[" << node->max_size () << "], 0);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < " << node->max_size () << "; i++)" << be_idt_nl - << "buf[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << be_nl - << "return buf;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // freebuf - *os << "static void freebuf ("; pt->accept (visitor); *os << " **buffer)" << be_nl - << "{" << be_idt_nl - << "for (CORBA::ULong i = 0; i < " << node->max_size () << "; ++i)" << be_idt_nl - << "if (buffer[i] != "; pt->accept (visitor); *os << "::_nil ())" << be_nl - << "{" << be_idt_nl - << "CORBA::release (buffer[i]);" << be_nl - << "buffer[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << "}" << be_uidt_nl - << be_nl - << "delete[] buffer;" << be_uidt_nl - << "} " << be_nl - << be_nl; - - // allocate_buffer - *os << "// The Base_Sequence functions, please see tao/sequence.h" << be_nl - << "virtual void _allocate_buffer (CORBA::ULong length)" << be_nl - << "{" << be_idt_nl - << "// For this class memory is never reallocated so the implementation" << be_nl - << "// is *really* simple." << be_nl - << "this->buffer_ = allocbuf (length);" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // deallocate_buffer - *os << "virtual void _deallocate_buffer (void)" << be_nl - << "{" << be_idt_nl - << "if (this->buffer_ == 0 || this->release_ == 0)" << be_idt_nl - << "return;" << be_uidt_nl; - pt->accept(visitor); *os <<" **tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " **, this->buffer_);" << be_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = 0;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // _shrink_buffer - *os << "virtual void _shrink_buffer (CORBA::ULong nl, CORBA::ULong ol)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); - *os <<" **tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); - *os << " **, this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = nl; i < ol; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (tmp[i]);" << be_nl - << "tmp[i] = "; - pt->accept (visitor); - *os << "::_nil ();" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n" << be_nl; - - if (pt->node_type () != AST_Decl::NT_pre_defined) - { - // Pseudo objects do not require this methods. - *os << "virtual void _downcast (" << be_idt << be_idt_nl - << "void* target," << be_nl - << "CORBA_Object *src," << be_nl - << "CORBA::Environment &_env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl; - pt->accept (visitor); - *os << " **tmp = ACE_static_cast ("; - pt->accept (visitor); - *os << "**, target);" << be_nl - << "*tmp = "; - pt->accept (visitor); - *os << "::_narrow (src, _env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "virtual CORBA_Object* _upcast (void *src) const" << be_nl - << "{" << be_idt_nl; - pt->accept (visitor); - *os << " **tmp = ACE_static_cast ("; - pt->accept (visitor); - *os << "**, src);" << be_nl - << "return *tmp;" << be_uidt_nl - << "}" << be_nl; - } - *os << "};" << be_uidt_nl << "\n"; - - os->gen_endif (); - - - delete visitor; - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp deleted file mode 100644 index b19bb042e5f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_sequence_ch.cpp +++ /dev/null @@ -1,272 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// gen_bounded_sequence_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -//#include "idl.h" -//#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, gen_bounded_sequence_ch, "$Id$") - - -int -be_visitor_sequence_ch::gen_bounded_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the class name - be_type *pt; // base types - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - pt = t->primitive_base_type (); - } - else - pt = bt; - - - const char * class_name = node->instance_name (); - - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - os->gen_ifdef_macro (class_name); - - os->indent (); - - *os << "class " << class_name << " : public TAO_Bounded_Base_Sequence" << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - << "// = Initialization and termination methods." << be_nl - << be_nl; - - // Constructor - *os << class_name << " (void)" << be_nl - << "// Default constructor." << be_nl - << " : TAO_Bounded_Base_Sequence (" << node->max_size () - << ", 0, allocbuf (" << node->max_size () << "), 0)" << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong length," << be_idt_nl; - pt->accept (visitor); *os <<" *data," << be_nl - << "CORBA::Boolean release=0)" << be_uidt_nl - << "// Constructor using the data and memory management flag." << be_nl - << " : TAO_Bounded_Base_Sequence (" << node->max_size () << ", length, data, release)" << be_nl - << "{" << be_nl - << " this->_allocate_buffer (" << node->max_size () << ");" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (const " << class_name << " &rhs)" << be_nl - << "// Copy constructor." << be_idt_nl - << ": TAO_Bounded_Base_Sequence (rhs)" << be_uidt_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" *tmp1 = allocbuf (" << node->max_size () << ");" << be_nl - << be_nl; - pt->accept(visitor); *os <<" * const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " * ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_idt_nl - << "tmp1[i] = tmp2[i];" << be_uidt_nl - << be_nl - << "this->buffer_ = tmp1;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator= - *os << class_name << " &operator= (const " << class_name << " &rhs)" << be_nl - << "// Assignment operator. " << be_nl - << "{" << be_idt_nl - << "if (this == &rhs)" << be_idt_nl - << "return *this;" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_nl - << "{" << be_nl - << "}" << be_nl - << "else" << be_idt_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_nl - << be_nl - <<"TAO_Bounded_Base_Sequence::operator= (rhs);" << be_nl - << be_nl; - pt->accept(visitor); *os <<"* tmp1 = ACE_reinterpret_cast ("; - pt->accept(visitor); *os << " *, this->buffer_);" << be_nl; - pt->accept(visitor); *os <<"* const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " * ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_idt_nl - << "tmp1[i] = tmp2[i];" << be_uidt_nl - << be_nl - << "return *this;" << be_uidt_nl << be_uidt_nl - << "}" << be_nl - << be_nl; - - // destructor - *os << "~" << class_name << " (void) // Dtor." << be_nl - << "{" << be_idt_nl - << "this->_deallocate_buffer ();" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // Accessors - *os << "// = Accessors." << be_nl; - pt->accept(visitor); *os <<" &operator[] (CORBA::ULong i)// operator []" << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (i < this->maximum_);" << be_nl; - pt->accept(visitor); *os <<" *tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << "*,this->buffer_);" << be_nl - << "return tmp[i];" << be_uidt_nl - << "}" << be_nl - << be_nl - << "const "; pt->accept (visitor); *os << " &operator[] (CORBA::ULong i) const// operator []" << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (i < this->maximum_);" << be_nl - << "const "; pt->accept (visitor); *os << "* tmp = ACE_reinterpret_cast (const "; - pt->accept (visitor); *os << "* ACE_CAST_CONST,this->buffer_);" << be_nl - << "return tmp[i];" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // Static Operations - *os << "// = Static operations." << be_nl - << "static "; pt->accept (visitor); *os << " *allocbuf (CORBA::ULong) // Allocate storage for the sequence." << be_nl - << "{" << be_idt_nl - << "return new "; pt->accept (visitor); *os << "[" << node->max_size () << "];" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // free_buf - *os << "static void freebuf ("; pt->accept (visitor); *os << " *buffer) // Free the sequence." << be_nl - << "{" << be_idt_nl - << "delete [] buffer;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocate_buffer - *os << "virtual void _allocate_buffer (CORBA::ULong length)" << be_nl - << "// allocate a buffer of the requested length. The buffer is allocated for the" << be_nl - << "// right type" << be_nl - << "{" << be_idt_nl - << "this->buffer_ = allocbuf (" << node->max_size () << ");" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // deallocate_buffer - *os << "virtual void _deallocate_buffer (void)" << be_nl - << "// deallocate the buffer" << be_nl - << "{" << be_idt_nl - << "if (this->buffer_ == 0 || this->release_ == 0)" << be_idt_nl - << "return;" << be_uidt_nl; - pt->accept(visitor); *os <<" *tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " *, this->buffer_);" << be_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = 0;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // get_buffer - pt->accept(visitor); *os <<" *get_buffer (CORBA::Boolean orphan = 0)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" *result = 0;" << be_nl - << "if (orphan == 0)" << be_nl - << "{" << be_idt_nl - << "// We retain ownership." << be_nl - << "if (this->buffer_ == 0)" << be_nl - << "{" << be_idt_nl - << "result = allocbuf (this->maximum_);" << be_nl - << "this->buffer_ = result;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl - << "{" << be_idt_nl - << "result = ACE_reinterpret_cast ("; - pt->accept (visitor); - *os << "*, this->buffer_);" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else // if (orphan == 1)" << be_nl - << "{" << be_idt_nl - << "if (this->release_ != 0)" << be_nl - << "{" << be_idt_nl - << "// We set the state back to default and relinquish" << be_nl - << "// ownership." << be_nl - << "result = ACE_reinterpret_cast("; pt->accept (visitor); *os << "*,this->buffer_);" << be_nl - << "this->maximum_ = 0;" << be_nl - << "this->length_ = 0;" << be_nl - << "this->buffer_ = 0;" << be_nl - << "this->release_ = 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "return result;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // get_buffer - *os << "const "; pt->accept (visitor); *os << " *get_buffer (void) const" << be_nl - << "{" << be_idt_nl - << "return ACE_reinterpret_cast(const "; - pt->accept (visitor); - *os << " * ACE_CAST_CONST, this->buffer_);" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // replace - *os << "void replace (CORBA::ULong max," << be_idt_nl - << "CORBA::ULong length," << be_nl; - pt->accept(visitor); *os <<" *data," << be_nl - << "CORBA::Boolean release = 0)" << be_uidt_nl - << "{" << be_idt_nl - << "this->maximum_ = max;" << be_nl - << "this->length_ = length;" << be_nl - << "if (this->buffer_ && this->release_ == 1)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<"* tmp = ACE_reinterpret_cast("; - pt->accept (visitor); *os << "* ACE_CAST_CONST, this->buffer_);" << be_nl - << "freebuf (tmp);" << be_uidt_nl - << "}" << be_nl - << "this->buffer_ = data;" << be_nl - << "this->release_ = release;" << be_uidt_nl - << "}" << be_nl - << be_uidt_nl - << "};" << be_nl; - - os->gen_endif (); // endif macro - - - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_ch.cpp deleted file mode 100644 index ecdce315b92..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_ch.cpp +++ /dev/null @@ -1,233 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// gen_bounded_str_sequence_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, gen_bounded_str_sequence_ch, "$Id$") - - -int -be_visitor_sequence_ch::gen_bounded_str_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the class name - be_type *pt; // base types - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - pt = t->primitive_base_type (); - } - else - pt = bt; - - - const char * class_name = node->instance_name (); - - - // get the visitor for the type of the sequence - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - os->gen_ifdef_macro (class_name); - - os->indent (); - // the accept is here the first time used and if an - // error occurs, it will occur here. Later no check - // for errors will be done. - if (pt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - - - *os << "class " << class_name << " : public TAO_Bounded_Base_Sequence" << be_nl - << "{" << be_nl - << "public:" << be_idt_nl; - - // constructor - *os << class_name << " (void)" << be_nl - << " : TAO_Bounded_Base_Sequence (" << node->max_size () - << ", allocbuf(" << node->max_size () << "))" << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong length," << be_idt_nl - << "char* *value," << be_nl - << "CORBA::Boolean release = 0)" << be_uidt_nl - << " : TAO_Bounded_Base_Sequence (" << node->max_size () << ", length, value, release)" << be_nl - << "{" << be_nl - << " this->_allocate_buffer (" << node->max_size () << ");" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (const " << class_name << " &rhs)" << be_idt_nl - << ": TAO_Bounded_Base_Sequence (rhs)" << be_uidt_nl - << "{" << be_idt_nl - << "char **tmp1 = allocbuf (this->maximum_);" << be_nl - << "char ** const tmp2 = ACE_reinterpret_cast (char ** ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i=0; i < rhs.length_; i++)" << be_idt_nl - << "tmp1[i] = CORBA::string_dup (tmp2[i]);" << be_uidt_nl - << be_nl - << "this->buffer_ = tmp1;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator= - *os << class_name << " &operator= (const " << class_name << " &rhs)" << be_nl - << "{" << be_idt_nl - << "if (this == &rhs)" << be_idt_nl - << "return *this;" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_nl - << "{ " << be_idt_nl - << "char **tmp = ACE_reinterpret_cast (char **, this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::string_free (tmp[i]);" << be_nl - << "tmp[i] = 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << be_nl - << "TAO_Bounded_Base_Sequence::operator= (rhs);" << be_nl - << be_nl - << "char **tmp1 = ACE_reinterpret_cast (char **, this->buffer_);" << be_nl - << "char ** const tmp2 = ACE_reinterpret_cast (char ** ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < rhs.length_; i++)" << be_idt_nl - << "tmp1[i] = CORBA::string_dup (tmp2[i]);" << be_uidt_nl - << "return *this;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // destructor - *os << "~" << class_name << " (void)" << be_nl - << "{" << be_idt_nl - << "this->_deallocate_buffer ();" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator[] - *os << "TAO_String_Manager operator[] (CORBA::ULong index) const" << be_nl - << "// read-write accessor" << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (index < this->maximum_);" << be_nl - << "char **const tmp = ACE_reinterpret_cast (char ** ACE_CAST_CONST, this->buffer_);" << be_nl - << "return TAO_String_Manager (tmp + index, this->release_);" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocbuf - *os << "static char **allocbuf (CORBA::ULong length)" << be_nl - << "{" << be_idt_nl - << "char **buf;" << be_nl - << "ACE_NEW_RETURN (buf, char *[" << node->max_size () << "], 0);" << be_nl - << "for (CORBA::ULong i = 0; i < " << node->max_size () << "; i++)" << be_idt_nl - << "buf[i] = 0;" << be_uidt_nl - << "return buf;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // freebuf - *os << "static void freebuf (char **buffer)" << be_nl - << "{" << be_idt_nl - << "for (CORBA::ULong i = 0; i < " << node->max_size () << "; ++i)" << be_nl - << "{" << be_idt_nl - << "if (buffer[i] != 0)" << be_nl - << "{" << be_idt_nl - << "CORBA::string_free (buffer[i]);" << be_nl - << "buffer[i] = 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "delete [] buffer;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocate_buffer - *os << "virtual void _allocate_buffer (CORBA::ULong length)" << be_nl - << "{" << be_idt_nl - << "// For this class memory is never reallocated so the implementation" << be_nl - << "// is *really* simple." << be_nl - << "this->buffer_ = allocbuf (" << node->max_size () << ");" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // deallocate_bufffer - *os << "virtual void _deallocate_buffer (void)" << be_nl - << "{" << be_idt_nl - << "if (this->buffer_ == 0 || this->release_ == 0)" << be_idt_nl - << "return;" << be_uidt_nl - << "char **tmp = ACE_reinterpret_cast (char **, this->buffer_);" << be_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = 0;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // shrink_buffer - *os << "virtual void _shrink_buffer (CORBA::ULong nl,CORBA::ULong ol)" << be_nl - << "{" << be_idt_nl - << "char **tmp = ACE_reinterpret_cast (char **,this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = nl; i < ol; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::string_free (tmp[i]);" << be_nl - << "tmp[i] = 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << be_uidt_nl - << "};" << be_nl; - - - - os->gen_endif (); // endif macro - - - delete visitor; - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp deleted file mode 100644 index 0efb9aece41..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_object_manager_ch.cpp +++ /dev/null @@ -1,219 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// gen_object_manager_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - - -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, gen_object_manager_ch, "$Id$") - - -int -be_visitor_sequence_ch::gen_object_manager (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the class name - // we might want to use this later - be_type *pt; // base types - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - pt = t->primitive_base_type (); - } - else - pt = bt; - - - const char * class_name = node->instance_name (); - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - const char * object_manager = node->object_manager_name (); - // create the name for the object manager - - os->gen_ifdef_macro (object_manager); - - os->indent (); - - *os << "class " << object_manager << be_nl - << "{" << be_idt_nl - << "friend class " << class_name << ";" << be_uidt_nl - << "public:" << be_idt_nl - << be_nl; - - // constructor - *os << "// = Initialization and termination methods." << be_nl - << object_manager << " (const " << object_manager << " &rhs)" << be_idt_nl - << ": ptr_ (rhs.ptr_)," << be_nl - << "release_ (rhs.release_)" << be_uidt_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << object_manager << " ("; - // the accept is here the first time used and if an - // error occurs, it will occur here. Later no check - // for errors will be done. - if (pt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - *os << "** buffer, CORBA::Boolean release)" << be_idt_nl - << ": ptr_ (buffer)," << be_nl - << "release_ (release)" << be_uidt_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // destructor - *os << "~" << object_manager << " (void)" << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // operator= - *os << object_manager << " &operator= (const " << object_manager << " &rhs)" << be_nl - << "{" << be_idt_nl - << "if (this == &rhs)" << be_idt_nl - << "return *this;" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (*this->ptr_);" << be_nl - << "*this->ptr_ = "; pt->accept (visitor); *os << "::_duplicate (*rhs.ptr_);" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "*this->ptr_ = *rhs.ptr_;" << be_uidt_nl - << be_nl - << "return *this;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator= - *os << object_manager << " &operator= ("; pt->accept (visitor); *os << " *p)" << be_nl - << "// Assignment from "; pt->accept (visitor); *os << " *." << be_nl - << "{" << be_idt_nl - << "if (this->release_)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (*this->ptr_);" << be_nl - << "*this->ptr_ = p;" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "*this->ptr_ = p;" << be_uidt_nl - << be_nl - << "return *this;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // cast operator - *os << "operator const "; pt->accept (visitor); *os << " *() const // Cast (read-only)." << be_nl - << "{" << be_idt_nl - << "return *this->ptr_;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // cast operator - *os << "operator "; pt->accept (visitor); *os << " *&() // Cast." << be_nl - << "{" << be_idt_nl - << "return *this->ptr_;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // in method - *os << "const "; pt->accept (visitor); *os << " *in (void) const // in " - << be_nl - << "{" << be_idt_nl - << "return *this->ptr_;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // inout method - pt->accept (visitor); - *os << " *&inout (void) // inout " - << be_nl - << "{" << be_idt_nl - << "return *this->ptr_;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // out method - pt->accept (visitor); - *os << " *&out (void) // out " - << be_nl - << "{" << be_idt_nl - << "CORBA::release (*this->ptr_);" << be_nl - << "*this->ptr_ = "; pt->accept (visitor); *os << "::_nil ();" - << be_nl - << "return *this->ptr_;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // retn method - pt->accept (visitor); - *os << " *_retn (void) // retn " - << be_nl - << "{" << be_idt_nl; - pt->accept (visitor); - *os << " *temp = *this->ptr_;" << be_nl - << "*this->ptr_ = "; pt->accept (visitor); *os << "::_nil ();" - << be_nl - << "return temp;" << be_uidt_nl - << "}" << be_nl - << be_uidt_nl; - - // members - *os << "private:" << be_idt_nl; - pt->accept(visitor); *os <<" **ptr_;" << be_nl - << "// data member, notice that it is a pointer, to implement the" << be_nl - << "// reference behavior for assignment." << be_nl - << be_nl - << "CORBA::Boolean release_;" << be_nl - << "// release flag based on parent's flag" << be_uidt_nl - << "};" << be_nl; - - os->gen_endif (); // endif macro - - delete visitor; - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp deleted file mode 100644 index 49718aca3e6..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_ch.cpp +++ /dev/null @@ -1,288 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// gen_unbounded_obj_sequence_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - - -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, gen_unbounded_obj_sequence_ch, "$Id$") - - -int -be_visitor_sequence_ch::gen_unbounded_obj_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the class name - be_type *pt; // base types - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - pt = t->primitive_base_type (); - } - else - pt = bt; - - - const char * class_name = node->instance_name (); - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - this->gen_object_manager (node); - - const char * object_manager = node->object_manager_name (); - - os->gen_ifdef_macro (class_name); - - os->indent (); - - *os << "class " << class_name << " : public TAO_Unbounded_Base_Sequence" << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - << "// = Initialization and termination methods." << be_nl - << be_nl; - - // constructor - *os << class_name << " (void)" << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong maximum)" << be_idt_nl - << ": TAO_Unbounded_Base_Sequence (maximum, allocbuf (maximum))" << be_uidt_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong maximum," << be_idt_nl - << "CORBA::ULong length," << be_nl; - pt->accept (visitor); - *os <<"* *value," << be_nl - << "CORBA::Boolean release=0)" << be_uidt_nl - << ": TAO_Unbounded_Base_Sequence (maximum, length, value, release)" << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << "(const " << class_name << " &rhs)" << be_idt_nl - << ": TAO_Unbounded_Base_Sequence (rhs)" << be_uidt_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **tmp1 = allocbuf (this->maximum_);" << be_nl; - pt->accept(visitor); *os <<" ** const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " ** ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < rhs.length_; ++i)" << be_idt_nl - << "tmp1[i] = "; pt->accept (visitor); *os << "::_duplicate (tmp2[i]);" << be_uidt_nl - << be_nl - << "this->buffer_ = tmp1;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // destructor - *os << "~" << class_name << " (void)" << be_nl - << "{" << be_idt_nl - << "this->_deallocate_buffer ();" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator= - *os << class_name << " &operator= (const " << class_name << " &rhs)" << be_nl - << "{" << be_idt_nl - << "if (this == &rhs)" << be_idt_nl - << "return *this;" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " **, this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (tmp[i]);" << be_nl - << "tmp[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << "}" << be_nl - << "if (this->maximum_ < rhs.maximum_)" << be_nl - << "{" << be_idt_nl - << class_name << "::freebuf (tmp);" << be_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << be_nl - << "TAO_Unbounded_Base_Sequence::operator= (rhs);" << be_nl - << be_nl; - pt->accept(visitor); *os <<" **tmp1 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " **, this->buffer_);" << be_nl; - pt->accept(visitor); *os <<" ** const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " ** ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < rhs.length_; ++i)" << be_idt_nl - << "tmp1[i] = "; pt->accept (visitor); *os << "::_duplicate (tmp2[i]);" << be_uidt_nl - << be_nl - << "return *this;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator[] - *os << object_manager << " operator[] (CORBA::ULong index) const" << be_nl - << "// read-write accessor" << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (index < this->maximum_);" << be_nl; - pt->accept(visitor); *os <<" ** const tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " ** ACE_CAST_CONST, this->buffer_);" << be_nl - << "return " << object_manager << " (tmp + index, this->release_);" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocbuf - *os << "static "; pt->accept (visitor); *os << " **allocbuf (CORBA::ULong nelems)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **buf;" << be_nl - << be_nl - << "ACE_NEW_RETURN (buf, "; pt->accept (visitor); *os << "*[nelems], 0);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < nelems; i++)" << be_idt_nl - << "buf[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << be_nl - << "return buf;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // freebuf - *os << "static void freebuf ("; pt->accept (visitor); *os << " **buffer)" << be_nl - << "{" << be_idt_nl - << "if (buffer == 0)" << be_idt_nl - << "return;" << be_uidt_nl - << "delete[] buffer;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocate_buffer - *os << "// The Base_Sequence functions, please see tao/Sequence.h" << be_nl - << "virtual void _allocate_buffer (CORBA::ULong length)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **tmp = allocbuf (length);" << be_nl - << be_nl - << "if (this->buffer_ != 0)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **old = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << "**, this->buffer_);" << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_idt_nl - << "if (!this->release_)" << be_idt_nl - << "tmp[i] = "; pt->accept (visitor); *os << "::_duplicate (old[i]);" << be_uidt_nl - << "else" << be_idt_nl - << "tmp[i] = old[i];" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_idt_nl - << "delete[] old;" << be_uidt_nl << be_uidt_nl - << "}" << be_nl - << "this->buffer_ = tmp;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // deallocate_buffer - *os << "virtual void _deallocate_buffer (void)" << be_nl - << "{" << be_idt_nl - << "if (this->buffer_ == 0 || this->release_ == 0)" << be_idt_nl - << "return;" << be_uidt_nl; - pt->accept(visitor); *os <<" **tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << "**, this->buffer_);" << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (tmp[i]);" << be_nl - << "tmp[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << "}" << be_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = 0;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // shrink_buffer - *os << "virtual void _shrink_buffer (CORBA::ULong nl, CORBA::ULong ol)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" **tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << "**, this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = nl; i < ol; ++i)" << be_nl - << "{" << be_idt_nl - << "CORBA::release (tmp[i]);" << be_nl - << "tmp[i] = "; pt->accept (visitor); *os << "::_nil ();" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_uidt_nl; - - if (pt->node_type () != AST_Decl::NT_pre_defined) - { - // Pseudo objects do not require this methods. - *os << "virtual void _downcast (" << be_idt << be_idt_nl - << "void* target," << be_nl - << "CORBA_Object *src," << be_nl - << "CORBA_Environment &_env = " << be_idt_nl - << "CORBA::Environment::default_environment ()" - << be_uidt << be_uidt_nl - << ")" << be_uidt_nl - << "{" << be_idt_nl; - pt->accept (visitor); - *os << " **tmp = ACE_static_cast ("; - pt->accept (visitor); - *os << "**, target);" << be_nl - << "*tmp = "; - pt->accept (visitor); - *os << "::_narrow (src, _env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "virtual CORBA_Object* _upcast (void *src) const" << be_nl - << "{" << be_idt_nl; - pt->accept (visitor); - *os << " **tmp = ACE_static_cast ("; - pt->accept (visitor); - *os << "**, src);" << be_nl - << "return *tmp;" << be_uidt_nl - << "}" << be_nl; - } - *os << "};" << be_uidt_nl << "\n"; - - os->gen_endif (); // endif macro - - - delete visitor; - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp deleted file mode 100644 index fd83360d159..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_ch.cpp +++ /dev/null @@ -1,315 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// gen_unbounded_sequence_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -//#include "idl.h" -//#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, gen_unbounded_sequence_ch, "$Id$") - - -int -be_visitor_sequence_ch::gen_unbounded_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the class name - be_type *pt; // base types - - if (bt->node_type () == AST_Decl::NT_typedef) - { - // get the primitive base type of this typedef node - be_typedef *t = be_typedef::narrow_from_decl (bt); - pt = t->primitive_base_type (); - } - else - pt = bt; - - - const char * class_name = node->instance_name (); - - - // get the visitor for the type of the sequence - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - os->gen_ifdef_macro (class_name); - - os->indent (); - - *os << "class " << class_name << " : public TAO_Unbounded_Base_Sequence" << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - << "// = Initialization and termination methods." << be_nl - << be_nl; - // constructor - *os << class_name << " (void) // Default constructor." << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong maximum) " - << "// Constructor using a maximum length value." << be_idt_nl - << ": TAO_Unbounded_Base_Sequence (maximum, allocbuf (maximum))" - << be_uidt_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (CORBA::ULong maximum," << be_idt_nl - << "CORBA::ULong length," << be_nl; - // the accept is here the first time used and if an - // error occurs, it will occur here. Later no check - // for errors will be done. - if (pt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - *os << " *data," << be_nl - << "CORBA::Boolean release = 0)" << be_uidt_nl - << ": TAO_Unbounded_Base_Sequence (maximum, length, data, release)" << be_nl - << "{" << be_nl - << "}" << be_nl - << be_nl; - - // constructor - *os << class_name << " (const " << class_name << " &rhs)" << be_nl - << "// Copy constructor." << be_idt_nl; - *os << ": TAO_Unbounded_Base_Sequence (rhs)" << be_uidt_nl - << "{" << be_idt_nl; - pt->accept(visitor); - *os <<" *tmp1 = allocbuf (this->maximum_);" << be_nl; - pt->accept(visitor); - *os << " * const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); - *os << " * ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_idt_nl - << "tmp1[i] = tmp2[i];" << be_uidt_nl - << be_nl - << "this->buffer_ = tmp1;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator = - *os << class_name << " &operator= (const " << class_name << " &rhs)" << be_nl - << "// Assignment operator." << be_nl - << "{" << be_idt_nl - << "if (this == &rhs)" << be_idt_nl - << "return *this;" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_nl - << "{" << be_idt_nl - << "if (this->maximum_ < rhs.maximum_)" << be_nl - << "{" << be_idt_nl - << "// free the old buffer" << be_nl; - pt->accept(visitor); *os <<" *tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " *, this->buffer_);" << be_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_idt_nl - << "this->buffer_ = allocbuf (rhs.maximum_);" << be_uidt_nl - << be_nl - << "TAO_Unbounded_Base_Sequence::operator= (rhs);" << be_nl - << be_nl; - pt->accept(visitor); *os <<" *tmp1 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " *, this->buffer_);" << be_nl; - pt->accept(visitor); *os <<" * const tmp2 = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " * ACE_CAST_CONST, rhs.buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_idt_nl - << "tmp1[i] = tmp2[i];" << be_uidt_nl - << be_nl - << "return *this;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // destructor - *os << "~" << class_name << " (void) // Dtor." << be_nl - << "{" << be_idt_nl - << "this->_deallocate_buffer ();" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // Accessors - *os << "// = Accessors." << be_nl; - pt->accept(visitor); *os <<" &operator[] (CORBA::ULong i)" << be_nl - << "// operator []" << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (i < this->maximum_);" << be_nl; - pt->accept(visitor); *os <<"* tmp = ACE_reinterpret_cast("; - pt->accept (visitor); *os << "*,this->buffer_);" << be_nl - << "return tmp[i];" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // operator[] - *os << "const "; pt->accept (visitor); *os << " &operator[] (CORBA::ULong i) const" << be_nl - << "// operator []" << be_nl - << "{" << be_idt_nl - << "ACE_ASSERT (i < this->maximum_);" << be_nl; - pt->accept(visitor); *os <<" * const tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << "* ACE_CAST_CONST, this->buffer_);" << be_nl - << "return tmp[i];" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // Static operations - *os << "// = Static operations." << be_nl - << "static "; pt->accept (visitor); *os << " *allocbuf (CORBA::ULong size)" << be_nl - << "// Allocate storage for the sequence." << be_nl - << "{" << be_idt_nl - << "return new "; pt->accept (visitor); *os << "[size];" << be_uidt_nl - << "}" << be_nl - << be_nl; - *os << "static void freebuf ("; pt->accept (visitor); *os << " *buffer)" << be_nl - << "// Free the sequence." << be_nl - << "{" << be_idt_nl - << "delete [] buffer;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // allocate_buffer - *os << "virtual void _allocate_buffer (CORBA::ULong length)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<"* tmp = allocbuf (length);" << be_nl - << be_nl - << "if (this->buffer_ != 0)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" *old = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " *,this->buffer_);" << be_nl - << be_nl - << "for (CORBA::ULong i = 0; i < this->length_; ++i)" << be_idt_nl - << "tmp[i] = old[i];" << be_uidt_nl - << be_nl - << "if (this->release_)" << be_idt_nl - << "freebuf (old);" << be_uidt_nl << be_uidt_nl - << "}" << be_nl - << "this->buffer_ = tmp;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // deallocate_buffer - *os << "virtual void _deallocate_buffer (void)" << be_nl - << "{" << be_idt_nl - << "if (this->buffer_ == 0 || this->release_ == 0)" << be_idt_nl - << "return;" << be_uidt_nl - << be_nl; - pt->accept(visitor); *os <<" *tmp = ACE_reinterpret_cast ("; - pt->accept (visitor); *os << " *,this->buffer_);" << be_nl - << be_nl - << "freebuf (tmp);" << be_nl - << "this->buffer_ = 0;" << be_uidt_nl - << "} " << be_nl - << be_nl; - - // Implement the TAO_Base_Sequence methods (see Sequence.h) - *os << "// Implement the TAO_Base_Sequence methods (see Sequence.h)" << be_nl - << be_nl; - pt->accept(visitor); *os <<" *get_buffer (CORBA::Boolean orphan = 0)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" *result = 0;" << be_nl - << "if (orphan == 0)" << be_nl - << "{" << be_idt_nl - << "// We retain ownership." << be_nl - << "if (this->buffer_ == 0)" << be_nl - << "{" << be_idt_nl - << "result = allocbuf (this->length_);" << be_nl - << "this->buffer_ = result;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl - << "{" << be_idt_nl - << "result = ACE_reinterpret_cast ("; pt->accept (visitor); *os << "*, this->buffer_);" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else // if (orphan == 1)" << be_nl - << "{" << be_idt_nl - << "if (this->release_ != 0)" << be_nl - << "{" << be_idt_nl - << "// We set the state back to default and relinquish" << be_nl - << "// ownership." << be_nl - << "result = ACE_reinterpret_cast("; pt->accept (visitor); *os << "*,this->buffer_);" << be_nl - << "this->maximum_ = 0;" << be_nl - << "this->length_ = 0;" << be_nl - << "this->buffer_ = 0;" << be_nl - << "this->release_ = 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "return result;" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // get_buffer - *os << "const "; pt->accept (visitor); *os << " *get_buffer (void) const" << be_nl - << "{" << be_idt_nl - << "return ACE_reinterpret_cast(const "; - pt->accept (visitor); - *os << " * ACE_CAST_CONST, this->buffer_);" << be_uidt_nl - << "}" << be_nl - << be_nl; - - // replace - *os << "void replace (CORBA::ULong max," << be_nl - << "CORBA::ULong length," << be_nl; - pt->accept(visitor); *os <<" *data," << be_nl - << "CORBA::Boolean release)" << be_nl - << "{" << be_idt_nl - << "this->maximum_ = max;" << be_nl - << "this->length_ = length;" << be_nl - << "if (this->buffer_ && this->release_ == 1)" << be_nl - << "{" << be_idt_nl; - pt->accept(visitor); *os <<" *tmp = ACE_reinterpret_cast("; pt->accept (visitor); *os << "*,this->buffer_);" << be_nl - << "freebuf (tmp);" << be_uidt_nl - << "}" << be_nl - << "this->buffer_ = data;" << be_nl - << "this->release_ = release;" << be_uidt_nl - << "}" << be_nl - << be_uidt_nl - << "};" << be_nl; - - - - os->gen_endif (); // endif macro - - - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp deleted file mode 100644 index 78aaef41f62..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp +++ /dev/null @@ -1,141 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_base.cpp -// -// = DESCRIPTION -// Visitor generating code for the base type of the Sequence -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, sequence_base, "$Id$") - - -// **************************************************************** -// We have to generate the parameters for the template that implements -// each sequence type. -// **************************************************************** - -be_visitor_sequence_base:: -be_visitor_sequence_base (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_base::~be_visitor_sequence_base (void) -{ -} - -int -be_visitor_sequence_base::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - *os << node->name (); - return 0; -} - -// helper -int -be_visitor_sequence_base::visit_node (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (this->ctx_->state () == TAO_CodeGen::TAO_SEQUENCE_BASE_CH) - *os << bt->nested_type_name (this->ctx_->scope ()); - else - *os << bt->name (); - return 0; -} - -int -be_visitor_sequence_base::visit_sequence (be_sequence *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_interface (be_interface *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_interface_fwd (be_interface_fwd *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_string (be_string *) -{ - // NO-OP, we have ad-hoc classes from strings. - return 0; -} - -int -be_visitor_sequence_base::visit_structure (be_structure *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_union (be_union *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_enum (be_enum *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_exception (be_exception *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_array (be_array *node) -{ - return this->visit_node (node); -} - -int -be_visitor_sequence_base::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // set the alias node - if (node->primitive_base_type ()->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_sequence_base::" - "visit_typedef - " - "accept on primitive type failed\n"), - -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp deleted file mode 100644 index 63d24ff71ab..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp +++ /dev/null @@ -1,627 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, sequence_ch, "$Id$") - - -// Root visitor for client header -be_visitor_sequence_ch::be_visitor_sequence_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_ch::~be_visitor_sequence_ch (void) -{ -} - -int -be_visitor_sequence_ch::gen_base_sequence_class (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - - // !! branching in either compile time template instantiation - // or manual template instatiation - os->gen_ifdef_AHETI(); - - // this is the instantiation branch - *os << node->instance_name (); - - os->gen_else_AHETI(); - - // generate the appropriate sequence type - switch (node->managed_type ()) - { - case be_sequence::MNG_OBJREF: - if (node->unbounded ()) - *os << "TAO_Unbounded_Object_Sequence<"; - else - *os << "TAO_Bounded_Object_Sequence<"; - break; - case be_sequence::MNG_PSEUDO: - if (node->unbounded ()) - *os << "TAO_Unbounded_Pseudo_Sequence<"; - else - *os << "TAO_Bounded_Pseudo_Sequence<"; - break; - case be_sequence::MNG_STRING: - if (node->unbounded ()) - *os << "TAO_Unbounded_String_Sequence"; - else - *os << "TAO_Bounded_String_Sequence"; - break; - default: // not a managed type - if (node->unbounded ()) - *os << "TAO_Unbounded_Sequence<"; - else - *os << "TAO_Bounded_Sequence<"; - break; - } - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - - // find out if the sequence is of a managed type and if it is bounded or not - if (node->managed_type () == be_sequence::MNG_STRING) - { - if (!node->unbounded ()) - { - *os << "<" << node->max_size () << ">"; - } - } - else - { - if (node->unbounded ()) - { - *os << ">"; - } - else - { - *os << ", " << node->max_size () << ">"; - } - } - - os->gen_endif_AHETI(); - - return 0; -} - - -int -be_visitor_sequence_ch::instantiate_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_instantiate_template_name - " - "Bad element type\n"), -1); - } - - // generate the appropriate sequence type - switch (node->managed_type ()) - { - case be_sequence::MNG_PSEUDO: - case be_sequence::MNG_OBJREF: - if (node->unbounded ()) - this->gen_unbounded_obj_sequence (node); - else - this->gen_bounded_obj_sequence (node); - break; - case be_sequence::MNG_STRING: // sequence of strings - if (!node->unbounded ()) - this->gen_bounded_str_sequence (node); - // else - // inheriting from the right class is enough - break; - default: // not a managed type - if (node->unbounded ()) - { -#if 1 - // TAO provides extensions for octet sequences, first find out - // if the base type is an octet (or an alias for octet) - be_predefined_type *predef = 0; - if (bt->base_node_type () == AST_Type::NT_pre_defined) - { - be_typedef* alias = - be_typedef::narrow_from_decl (bt); - - if (alias == 0) - { - predef = - be_predefined_type::narrow_from_decl (bt); - } - else - { - predef = be_predefined_type::narrow_from_decl - (alias->primitive_base_type ()); - } - } - if (predef != 0) - { - if (predef->pt() != AST_PredefinedType::PT_octet) - this->gen_unbounded_sequence (node); - } - else - this->gen_unbounded_sequence (node); -#else - // @@ This needs to be fixed. (Michael) - be_predefined_type * bpt = - be_predefined_type::narrow_from_decl (node->base_type()); - if (bpt) - { - if (bpt->pt() != AST_PredefinedType::PT_octet) - this->gen_unbounded_sequence (node); - } - else - this->gen_unbounded_sequence (node); -#endif - } - else - this->gen_bounded_sequence (node); - break; - } - - return 0; -} - - -int be_visitor_sequence_ch::visit_sequence (be_sequence *node) -{ - be_type *bt; // type node - TAO_OutStream *os = this->ctx_->stream (); - - // first create a name for ourselves - if (node->create_name (this->ctx_->tdef ()) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "failed creating name\n"), -1); - } - - if (node->cli_hdr_gen () || node->imported ()) - return 0; - - // instantiation - - if (this->instantiate_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen. for the primitive type sequence\n"), -1); - } - - // end of instantiation - - - - // generate the ifdefined macro for the sequence type - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); // start with the current indentation level - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - *os << "// *************************************************************" - << be_nl - << "// " << node->local_name () << be_nl - << "// *************************************************************" - << be_nl << be_nl; - - // generate a typedef to a parametrized sequence - *os << "class " << idl_global->export_macro () - << " " << node->local_name () << " : public "; - - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - - *os << "{" << be_nl - << "public:" << be_idt_nl - << node->local_name () << " (void); // default ctor" << be_nl; - // for unbounded sequences, we have a different set of constructors - if (node->unbounded ()) - { - *os << node->local_name () << " (CORBA::ULong max); // uses max size" - << be_nl; - } - - *os << node->local_name () << " (" << be_idt_nl; - if (node->unbounded ()) - { - // unbounded seq takes this extra parameter - *os << "CORBA::ULong max, " << be_nl; - } - *os << "CORBA::ULong length, " << be_nl; - // generate the base type for the buffer - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - *os << " *buffer, " << be_nl - << "CORBA::Boolean release=0" << be_uidt_nl - << ");" << be_nl; - *os << node->local_name () << " (const " << node->local_name () - << " &); // copy ctor" << be_nl; - *os << "~" << node->local_name () << " (void); // dtor\n"; - - // TAO provides extensions for octet sequences, first find out if - // the base type is an octet (or an alias for octet) - be_predefined_type *predef = 0; - if (bt->base_node_type () == AST_Type::NT_pre_defined) - { - be_typedef* alias = - be_typedef::narrow_from_decl (bt); - - if (alias == 0) - { - predef = be_predefined_type::narrow_from_decl (bt); - } - else - { - predef = be_predefined_type::narrow_from_decl - (alias->primitive_base_type ()); - } - } - // Now generate the extension... - if (predef != 0 && predef->pt () == AST_PredefinedType::PT_octet - && node->unbounded ()) - { - *os << "\n" - << "#if defined(TAO_NO_COPY_OCTET_SEQUENCES)" << be_nl - << node->local_name () << " (" << be_idt << be_idt_nl - << "CORBA::ULong length," << be_nl - << "const ACE_Message_Block* mb" << be_uidt_nl - << ")" << be_uidt_nl - << " : " << node->instance_name () - << " (length, mb) {}" << "\n" - << "#endif /* TAO_NO_COPY_OCTET_SEQUENCE */\n\n"; - } - - os->decr_indent (); - *os << "};" << be_nl; - - // define a _ptr type. This is just an extension for convenience - *os << "typedef " << node->local_name () << " *" - << node->local_name () << "_ptr;\n"; - - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "TypeCode declaration failed\n" - ), -1); - } - } - - os->gen_endif (); // endif macro - - // generate the ifdefined macro for the var type - os->gen_ifdef_macro (node->flatname (), "_var"); - - // generate the var and out types - if (this->gen_var_defn (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen for _var failed\n"), -1); - } - - os->gen_endif (); - - // generate the ifdefined macro for the _out type - os->gen_ifdef_macro (node->flatname (), "_out"); - - if (this->gen_out_defn (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "visit_sequence - " - "codegen for _out failed\n"), - -1); - } - os->gen_endif (); - node->cli_hdr_gen (1); - - return 0; -} - -// generate the _var definition for ourself -int -be_visitor_sequence_ch::gen_var_defn (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char namebuf [NAMEBUFSIZE]; // names - be_type *bt; // base type - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_var", node->local_name ()->get_string ()); - - os = this->ctx_->stream (); - - *os << "// *************************************************************" - << be_nl; - *os << "// class " << node->name () << "_var" << be_nl; - *os << "// *************************************************************\n\n"; - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_var_defn - " - "Bad base type\n"), - -1); - } - - // generate the var definition (always in the client header). - // Depending upon the data type, there are some differences which we account - // for over here. - - os->indent (); // start with whatever was our current indent level - *os << "class " << idl_global->export_macro () - << " " << namebuf << be_nl; - *os << "{" << be_nl; - *os << "public:\n"; - os->incr_indent (); - // default constr - *os << namebuf << " (void); // default constructor" << be_nl; - // constr - *os << namebuf << " (" << node->local_name () << " *);" << be_nl; - // copy constructor - *os << namebuf << " (const " << namebuf << - " &); // copy constructor" << be_nl; - // destructor - *os << "~" << namebuf << " (void); // destructor" << be_nl; - *os << be_nl; - // assignment operator from a pointer - *os << namebuf << " &operator= (" << node->local_name () << " *);" << be_nl; - // assignment from _var - *os << namebuf << " &operator= (const " << namebuf << - " &);" << be_nl; - - // arrow operator - *os << node->local_name () << " *operator-> (void);" << be_nl; - *os << "const " << node->local_name () << " *operator-> (void) const;" << be_nl; - *os << be_nl; - - // other extra types (cast operators, [] operator, and others) - - // cast operator - *os << "operator const " << node->local_name () << " &() const;" << be_nl; - *os << "operator " << node->local_name () << " &();" << be_nl; - *os << "operator " << node->local_name () << " &() const;" << be_nl; - - // overloaded [] operator. The const version is not required for sequences - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_var_defn - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_var_defn - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - - *os << "operator[] (CORBA::ULong index);" << be_nl; - - *os << "// in, inout, out, _retn " << be_nl; - // the return types of in, out, inout, and _retn are based on the parameter - // passing rules and the base type - *os << "const " << node->local_name () << " &in (void) const;" << be_nl; - *os << node->local_name () << " &inout (void);" << be_nl; - *os << node->local_name () << " *&out (void);" << be_nl; - *os << node->local_name () << " *_retn (void);" << be_nl; - - // generate an additional member function that returns the underlying pointer - *os << node->local_name () << " *ptr (void) const;\n"; - - *os << "\n"; - os->decr_indent (); - - // generate the private section - *os << "private:\n"; - os->incr_indent (); - *os << node->local_name () << " *ptr_;\n"; - - os->decr_indent (); - *os << "};\n\n"; - - return 0; -} - -// generate the _out definition -int -be_visitor_sequence_ch::gen_out_defn (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char namebuf [NAMEBUFSIZE]; // to hold the _out name - be_type *bt; // base type - - ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (namebuf, "%s_out", node->local_name ()->get_string ()); - os = this->ctx_->stream (); - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_out_defn - " - "Bad base type\n"), - -1); - } - - // generate the out definition (always in the client header) - os->indent (); // start with whatever was our current indent level - - *os << "class " << idl_global->export_macro () << " " - << namebuf << be_nl; - *os << "{" << be_nl; - *os << "public:\n"; - os->incr_indent (); - - // No default constructor - - // constructor from a pointer - *os << namebuf << " (" << node->local_name () << " *&);" << be_nl; - // constructor from a _var & - *os << namebuf << " (" << node->local_name () << "_var &);" << be_nl; - // constructor from a _out & - *os << namebuf << " (const " << namebuf << " &);" << be_nl; - // assignment operator from a _out & - *os << namebuf << " &operator= (const " << namebuf << " &);" << be_nl; - // assignment operator from a pointer &, cast operator, ptr fn, operator - // -> and any other extra operators - // assignment - *os << namebuf << " &operator= (" << node->local_name () << " *);" << be_nl; - // operator () - *os << "operator " << node->local_name () << " *&();" << be_nl; - // ptr fn - *os << node->local_name () << " *&ptr (void);" << be_nl; - // operator -> - *os << node->local_name () << " *operator-> (void);" << be_nl; - - // overloaded [] operator only for sequence. The const version is not - // required - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ch::" - "gen_out_defn - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_sequence::" - "gen_var_defn - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - *os << "operator[] (CORBA::ULong index);" << be_nl; - *os << "\n"; - os->decr_indent (); - *os << "private:\n"; - os->incr_indent (); - - *os << node->local_name () << " *&ptr_;" << be_nl; - *os << "// assignment from T_var not allowed" << be_nl; - *os << "void operator= (const " << node->local_name () << "_var &);\n"; - - os->decr_indent (); - *os << "};\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ci.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ci.cpp deleted file mode 100644 index d5a5fb2a9d1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ci.cpp +++ /dev/null @@ -1,474 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequence in the client inline file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, sequence_ci, "$Id$") - - -// *********************************************************** -// sequence visitor for inline generation -// *********************************************************** - - -be_visitor_sequence_ci::be_visitor_sequence_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_ci::~be_visitor_sequence_ci (void) -{ -} - -int -be_visitor_sequence_ci::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - if (node->cli_inline_gen () || node->imported ()) - return 0; - - - // all we do is generate the _var and _out implementations - if (this->gen_var_impl (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "visit_sequence - " - "codegen for _var failed\n"), -1); - } - - if (this->gen_out_impl (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "visit_sequence - " - "codegen for _out failed\n"), -1); - } - - return 0; -} - -int -be_visitor_sequence_ci::gen_var_impl (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _var names - be_type *bt; // base type - - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_var", node->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_var", node->local_name ()->get_string ()); - - os = this->ctx_->stream (); - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - // generate the var implementation in the inline file - os->indent (); // start with whatever was our current indent level - - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for class " << fname << be_nl; - *os << "// *************************************************************\n\n"; - - // default constr - *os << "ACE_INLINE" << be_nl - << fname << "::" << lname - << " (void) // default constructor" << be_nl - << " " << ": ptr_ (0)" << be_nl - << "{}\n\n"; - - // constr from a _ptr - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << node->name () << " *p)" << be_nl; - *os << " : ptr_ (p)" << be_nl; - *os << "{}\n\n"; - - // copy constructor - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (p.ptr_)" << be_nl; - *os << " this->ptr_ = new " << node->name () << "(*p.ptr_);" << be_nl; - *os << "else" << be_nl; - *os << " this->ptr_ = 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // destructor - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::~" << lname << " (void) // destructor" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator from a pointer - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (" << node->name () << - " *p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = p;" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator from _var - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (const " << fname << - " &p) // deep copy" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "if (this != &p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = new " << node->name () << " (*p.ptr_);\n"; - os->decr_indent (); - *os << "}" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // two arrow operators - os->indent (); - *os << "ACE_INLINE const " << node->name () << " *" << be_nl; - *os << fname << "::operator-> (void) const" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::operator-> (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // other extra methods - 3 cast operator () - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator const " << node->name () << - " &() const // cast" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator " << node->name () << " &() // cast " << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator " << node->name () << " &() const// cast " << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // operator [] - os->indent (); - *os << "ACE_INLINE "; - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_var_impl - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_var_impl - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - - *os << be_nl; - *os << fname << "::operator[] (CORBA::ULong index)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_->operator[] (index);\n"; - os->decr_indent (); - *os << "}\n\n"; - - // in, inout, out, and _retn - os->indent (); - *os << "ACE_INLINE const " << node->name () << " &" << be_nl; - *os << fname << "::in (void) const" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << node->name () << " &" << be_nl; - *os << fname << "::inout (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return *this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "// mapping for variable size " << be_nl; - *os << "ACE_INLINE " << node->name () << " *&" << be_nl; - *os << fname << "::out (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = 0;" << be_nl; - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::_retn (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << node->name () << " *tmp = this->ptr_;" << be_nl; - *os << "this->ptr_ = 0;" << be_nl; - *os << "return tmp;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // the additional ptr () member function - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::ptr (void) const" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - return 0; -} - -int -be_visitor_sequence_ci::gen_out_impl (be_sequence *node) -{ - TAO_OutStream *os; // output stream - char fname [NAMEBUFSIZE]; // to hold the full and - char lname [NAMEBUFSIZE]; // local _out names - be_type *bt; // base type - - - ACE_OS::memset (fname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (fname, "%s_out", node->fullname ()); - - ACE_OS::memset (lname, '\0', NAMEBUFSIZE); - ACE_OS::sprintf (lname, "%s_out", node->local_name ()->get_string ()); - - os = this->ctx_->stream (); - - // retrieve base type - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_out_impl - " - "Bad element type\n"), -1); - } - - // generate the out implementation in the inline file - - os->indent (); // start with whatever was our current indent level - - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for class " << fname << be_nl; - *os << "// *************************************************************\n\n"; - - // constr from a pointer - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << node->name () << " *&p)" << be_nl; - *os << " : ptr_ (p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->ptr_ = 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // constructor from _var & - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (" << node->name () << - "_var &p) // constructor from _var" << be_nl; - *os << " : ptr_ (p.out ())" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "delete this->ptr_;" << be_nl; - *os << "this->ptr_ = 0;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // copy constructor - os->indent (); - *os << "ACE_INLINE" << be_nl; - *os << fname << "::" << lname << " (const " << fname << - " &p) // copy constructor" << be_nl; - *os << " : ptr_ (ACE_const_cast (" << fname - << "&,p).ptr_)" << be_nl; - *os << "{}\n\n"; - - // assignment operator from _out & - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (const " << fname << - " &p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->ptr_ = ACE_const_cast (" << fname - << "&,p).ptr_;" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment from _var is not allowed by a private declaration - - // assignment operator from pointer - os->indent (); - *os << "ACE_INLINE " << fname << " &" << be_nl; - *os << fname << "::operator= (" << node->name () << - " *p)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "this->ptr_ = p;" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // other extra methods - cast operator () - os->indent (); - *os << "ACE_INLINE " << be_nl; - *os << fname << "::operator " << node->name () << - " *&() // cast" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // ptr function - os->indent (); - *os << "ACE_INLINE " << node->name () << " *&" << be_nl; - *os << fname << "::ptr (void) // ptr" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // operator -> - os->indent (); - *os << "ACE_INLINE " << node->name () << " *" << be_nl; - *os << fname << "::operator-> (void)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // sequence has an additional method - os->indent (); - *os << "ACE_INLINE "; - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQELEM_RETTYPE_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_out_impl - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_ci::" - "gen_out_impl - " - "[] ret type gen failed\n"), - -1); - } - delete visitor; - - *os << be_nl; - *os << fname << "::operator[] (CORBA::ULong index)" << be_nl; - *os << "{\n"; - os->incr_indent (); - *os << "return this->ptr_->operator[] (index);\n"; - os->decr_indent (); - *os << "}\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp deleted file mode 100644 index e656f71cc67..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp +++ /dev/null @@ -1,283 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Sequences in the client stubs file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_sequence.h" - -ACE_RCSID(be_visitor_sequence, sequence_cs, "$Id$") - - -// ************************************************************ -// Root visitor for client stub class -// ************************************************************ - -be_visitor_sequence_cs::be_visitor_sequence_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_sequence_cs::~be_visitor_sequence_cs (void) -{ -} - -// XXXASG - this method is same as that in the _ch visitor. So we need some -// abstraction for this - -int -be_visitor_sequence_cs::gen_base_sequence_class (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - be_type *bt; - - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "gen_base_sequence_class - " - "Bad element type\n"), -1); - } - - os->gen_ifdef_AHETI(); - - // this is the instantiation branch - *os << node->instance_name (); - - os->gen_else_AHETI(); - - // generate the appropriate sequence type - switch (node->managed_type ()) - { - case be_sequence::MNG_OBJREF: - if (node->unbounded ()) - *os << "TAO_Unbounded_Object_Sequence<"; - else - *os << "TAO_Bounded_Object_Sequence<"; - break; - case be_sequence::MNG_PSEUDO: - if (node->unbounded ()) - *os << "TAO_Unbounded_Pseudo_Sequence<"; - else - *os << "TAO_Bounded_Pseudo_Sequence<"; - break; - case be_sequence::MNG_STRING: - if (node->unbounded ()) - *os << "TAO_Unbounded_String_Sequence"; - else - *os << "TAO_Bounded_String_Sequence"; - break; - default: // not a managed type - if (node->unbounded ()) - *os << "TAO_Unbounded_Sequence<"; - else - *os << "TAO_Bounded_Sequence<"; - break; - } - - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BASE_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - - // find out if the sequence is of a managed type and if it is bounded or not - if (node->managed_type () == be_sequence::MNG_STRING) - { - if (!node->unbounded ()) - { - *os << "<" << node->max_size () << ">"; - } - } - else - { - if (node->unbounded ()) - { - *os << ">"; - } - else - { - *os << ", " << node->max_size () << ">"; - } - } - - os->gen_endif_AHETI(); - - return 0; -} - -int be_visitor_sequence_cs::visit_sequence (be_sequence *node) -{ - // generate the constructors - be_type *bt; // type node - TAO_OutStream *os = this->ctx_->stream (); - - if (node->cli_stub_gen () || node->imported ()) - return 0; - - // generate the ifdefined macro for the sequence type - os->gen_ifdef_macro (node->flatname ()); - - os->indent (); // start with the current indentation level - - // retrieve the base type since we may need to do some code - // generation for the base type. - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "Bad element type\n"), -1); - } - - *os << "// *************************************************************" - << be_nl - << "// " << node->name () << be_nl - << "// *************************************************************" - << be_nl << be_nl; - - // default constructor - *os << node->name () << "::" << node->local_name () << " (void)" << be_nl - << "{}" << be_nl; - - // for unbounded sequences, we have a different set of constructors - if (node->unbounded ()) - { - *os << node->name () << "::" << node->local_name () - << " (CORBA::ULong max) // uses max size" << be_nl - << " : "; - - // pass it to the base constructor - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - - - *os << " (max)" << be_nl - << "{}" << be_nl; - } - - // constructor with the buffer - *os << node->name () << "::" << node->local_name () << " ("; - if (node->unbounded ()) - { - *os << "CORBA::ULong max, "; // unbounded seq takes this extra parameter - } - *os << "CORBA::ULong length, "; - // generate the base type for the buffer - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_SEQUENCE_BUFFER_TYPE_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "Bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "base type visit failed\n"), - -1); - } - delete visitor; - *os << " *buffer, CORBA::Boolean release)" << be_nl - << " : "; - // pass it to the base constructor - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - *os << " ("; - if (node->unbounded ()) - { - *os << "max, "; - } - *os << "length, buffer, release)" << be_nl - << "{}" << be_nl; - - // copy constructor - *os << node->name () << "::" << node->local_name () - << " (const " << node->local_name () - << " &seq) // copy ctor" << be_nl - << " : "; - // pass it to the base constructor - if (this->gen_base_sequence_class (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "codegen for base sequence class\n"), -1); - } - *os << " (seq)" << be_nl - << "{}" << be_nl; - - // destructor - *os << node->name () << "::~" << node->local_name () - << " (void) // dtor" << be_nl - << "{}\n\n"; - - if (!this->ctx_->tdef ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_sequence_cs::" - "visit_sequence - " - "TypeCode definition failed\n" - ), -1); - } - } - - os->gen_endif (); - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure.cpp b/TAO/TAO_IDL/be/be_visitor_structure.cpp deleted file mode 100644 index 5c803e00fc0..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_structure.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Structure -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -// include all the individual files -#include "be_visitor_structure/structure.cpp" -#include "be_visitor_structure/structure_ch.cpp" -#include "be_visitor_structure/structure_ci.cpp" -#include "be_visitor_structure/structure_cs.cpp" -#include "be_visitor_structure/any_op_ch.cpp" -#include "be_visitor_structure/any_op_cs.cpp" -#include "be_visitor_structure/cdr_op_ch.cpp" -#include "be_visitor_structure/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_structure, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp deleted file mode 100644 index e3fa722bef5..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp +++ /dev/null @@ -1,102 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for structures -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, any_op_ch, "$Id$") - - -// *************************************************************************** -// Structure visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_structure_any_op_ch::be_visitor_structure_any_op_ch -(be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_any_op_ch::~be_visitor_structure_any_op_ch (void) -{ -} - -int -be_visitor_structure_any_op_ch::visit_structure (be_structure *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::visit_structure - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_structure_any_op_ch::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_ch::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp deleted file mode 100644 index d826e28918d..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp +++ /dev/null @@ -1,146 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for structures -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, any_op_cs, "$Id$") - - -// *************************************************************************** -// Structure visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_structure_any_op_cs::be_visitor_structure_any_op_cs -(be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_any_op_cs::~be_visitor_structure_any_op_cs (void) -{ -} - -int -be_visitor_structure_any_op_cs::visit_structure (be_structure *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" - << " // copy the value" << be_uidt_nl - << "}\n" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (" - << node->tc_name () << ", _tao_elem, 1, _tao_env);" << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::visit_structure - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_structure_any_op_cs::visit_field (be_field *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_cs::" - "visit_field - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_any_op_cs::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp deleted file mode 100644 index b81eff78ef1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for structures. This uses -// compiled marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, cdr_op_ch, "$Id$") - -// *************************************************************************** -// Structure visitor for generating CDR operator declarations in the client header -// *************************************************************************** - -be_visitor_structure_cdr_op_ch::be_visitor_structure_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_cdr_op_ch::~be_visitor_structure_cdr_op_ch (void) -{ -} - -int -be_visitor_structure_cdr_op_ch::visit_structure (be_structure *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operator declarations - os->indent (); - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << " &); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << " &);\n"; - - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cdr_op_ch::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - - - node->cli_hdr_cdr_op_gen (1); - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp deleted file mode 100644 index 4cf9e122583..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp +++ /dev/null @@ -1,128 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for structures -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, cdr_op_cs, "$Id$") - -// *************************************************************************** -// Structure visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_structure_cdr_op_cs::be_visitor_structure_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_cdr_op_cs::~be_visitor_structure_cdr_op_cs (void) -{ -} - -int -be_visitor_structure_cdr_op_cs::visit_structure (be_structure *node) -{ - // already generated and/or we are imported. Don't do anything. - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // set the sub state as generating code for the output operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT); - *os << "CORBA::Boolean operator<< (TAO_OutputCDR &strm, " - << "const " << node->name () << " &_tao_aggregate)" << be_nl - << "{" << be_idt_nl - << "if (" << be_idt_nl; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cdr_op_cs::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - *os << be_uidt_nl << ")" - << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt_nl << be_uidt_nl - << "}\n\n"; - - // set the substate as generating code for the input operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_INPUT); - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << " &_tao_aggregate)" << be_nl - << "{" << be_idt_nl - << "if (" << be_idt_nl; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cdr_op_cs" - "::visit_structure - " - "codegen for scope failed\n"), -1); - } - *os << be_uidt_nl << ")" - << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt_nl << be_uidt_nl - << "}\n\n"; - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cdr_op_cs" - "::visit_structure - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_cdr_op_gen (1); - return 0; -} - -int -be_visitor_structure_cdr_op_cs::post_process (void) -{ - TAO_OutStream *os = tao_cg->client_stubs (); - - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_OUTPUT: - case TAO_CodeGen::TAO_CDR_INPUT: - *os << " &&" << be_nl; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - default: - break; - }; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp deleted file mode 100644 index 8bc51866ec7..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure.cpp -// -// = DESCRIPTION -// Visitor generating code for Structures. This is a generic visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, structure, "$Id$") - - -// generic struct visitor -be_visitor_structure::be_visitor_structure (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_structure::~be_visitor_structure (void) -{ -} - -// visit the Structure node and its scope -int -be_visitor_structure::visit_structure (be_structure *node) -{ - return -1; // must be overriden -} - -int -be_visitor_structure::visit_field (be_field *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_STRUCT_CH: - ctx.state (TAO_CodeGen::TAO_FIELD_CH); - break; - case TAO_CodeGen::TAO_STRUCT_CI: - ctx.state (TAO_CodeGen::TAO_FIELD_CI); - break; - case TAO_CodeGen::TAO_STRUCT_CS: - ctx.state (TAO_CodeGen::TAO_FIELD_CS); - break; - case TAO_CodeGen::TAO_STRUCT_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_FIELD_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_STRUCT_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_FIELD_CDR_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::" - "visit_field - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::" - "visit_field - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure::" - "visit_field - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp deleted file mode 100644 index f9ce9cb68e2..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp +++ /dev/null @@ -1,117 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Structure in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, structure_ch, "$Id$") - - -// ****************************************************** -// for client header -// ****************************************************** - -be_visitor_structure_ch::be_visitor_structure_ch (be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_ch::~be_visitor_structure_ch (void) -{ -} - -// visit the Structure node and its scope -int be_visitor_structure_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - os = this->ctx_->stream (); - - os->indent (); // start from whatever indentation level we were at - *os << "struct " << idl_global->export_macro () << " " - << node->local_name () << be_nl - << "{" << be_idt << "\n"; - - // generate code for field members - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - - os->decr_indent (); - *os << "};\n\n"; - - // generate var defn - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "codegen for _var failed\n"), -1); - } - - // a class is generated for an out defn only for a variable length struct - if (node->size_type () == be_decl::VARIABLE) - { - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "codegen for _out failed\n"), -1); - } - } - else - { - os->indent (); - *os << "typedef " << node->local_name () << " &" << node->local_name - () << "_out;\n\n"; - } - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ch::" - "visit_structure - " - "TypeCode declaration failed\n" - ), -1); - } - - - node->cli_hdr_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp deleted file mode 100644 index 8271008eb2b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp +++ /dev/null @@ -1,74 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Structure in the inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, structure_ci, "$Id$") - - -// ****************************************************** -// for client inline -// ****************************************************** - -be_visitor_structure_ci::be_visitor_structure_ci (be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_ci::~be_visitor_structure_ci (void) -{ -} - -// visit the Structure node and its scope -int be_visitor_structure_ci::visit_structure (be_structure *node) -{ - if (!node->cli_inline_gen () && !node->imported ()) - { - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ci::" - "visit_structure - " - "codegen for _var failed\n"), -1); - } - if (node->size_type () == be_decl::VARIABLE && - node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ci::" - "visit_structure - " - "codegen for _out failed\n"), -1); - } - // all we have to do is to visit the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_ci::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - node->cli_inline_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp deleted file mode 100644 index 8ab877e8f35..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Structures in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_structure.h" - -ACE_RCSID(be_visitor_structure, structure_cs, "$Id$") - - -// *************************************************************************** -// for client stubs -// *************************************************************************** -be_visitor_structure_cs::be_visitor_structure_cs (be_visitor_context *ctx) - : be_visitor_structure (ctx) -{ -} - -be_visitor_structure_cs::~be_visitor_structure_cs (void) -{ -} - -// visit the Structure_Cs node and its scope -int be_visitor_structure_cs::visit_structure (be_structure *node) -{ - if (!node->cli_stub_gen () && !node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cs::" - "visit_structure - " - "TypeCode definition failed\n" - ), -1); - } - - - // do any code generation required for the scope members - // all we have to do is to visit the scope - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_structure_cs::" - "visit_structure - " - "codegen for scope failed\n"), -1); - } - node->cli_stub_gen (I_TRUE); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode.cpp deleted file mode 100644 index 9267ece581e..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typecode.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typecode.cpp -// -// = DESCRIPTION -// Visitors for generation of code for TypeCodes for various types -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typecode.h" - -// include all the individual files -#include "be_visitor_typecode/typecode_decl.cpp" -#include "be_visitor_typecode/typecode_defn.cpp" - -ACE_RCSID(be, be_visitor_typecode, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp deleted file mode 100644 index 134201bca63..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp +++ /dev/null @@ -1,119 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typecode_decl.cpp -// -// = DESCRIPTION -// Visitor generating code for TypeCode declaration for a type -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typecode.h" - -ACE_RCSID(be_visitor_typecode, typecode_decl, "$Id$") - - -// ****************************************************** -// TypeCode declarations -// ****************************************************** - -be_visitor_typecode_decl::be_visitor_typecode_decl (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_typecode_decl::~be_visitor_typecode_decl (void) -{ -} - -int -be_visitor_typecode_decl::visit_type (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - // Generate the typecode decl - if (node->is_nested ()) - { - // we have a scoped name - os->indent (); - // is our enclosing scope a module? We need this check because for - // platforms that support namespaces, the typecode must be declared - // extern - if (node->defined_in ()->scope_node_type () == AST_Decl::NT_module) - *os << "TAO_NAMESPACE_STORAGE_CLASS "; - else - *os << "static "; - *os << "CORBA::TypeCode_ptr " - << node->tc_name ()->last_component () << ";\n\n"; - } - else - { - // we are in the ROOT scope - os->indent (); - *os << "extern " << idl_global->export_macro () << " CORBA::TypeCode_ptr " - << " " << node->tc_name ()->last_component () << ";\n\n"; - } - return 0; -} - -int -be_visitor_typecode_decl::visit_array (be_array *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_enum (be_enum *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_exception (be_exception *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_interface (be_interface *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_sequence (be_sequence *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_structure (be_structure *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_typedef (be_typedef *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_decl::visit_union (be_union *node) -{ - return this->visit_type (node); -} diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp deleted file mode 100644 index 6c017da35f0..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp +++ /dev/null @@ -1,226 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typecode_defn.cpp -// -// = DESCRIPTION -// Visitor generating code for TypeCode definitions for types. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typecode.h" - -ACE_RCSID(be_visitor_typecode, typecode_defn, "$Id$") - - -// ****************************************************** -// TypeCode Definitions -// ****************************************************** - -be_visitor_typecode_defn::be_visitor_typecode_defn (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_typecode_defn::~be_visitor_typecode_defn (void) -{ -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_typecode_defn::gen_nested_namespace_begin (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_BEGIN (" << i->item ()->get_string () - << ")" << be_nl; - } - i->next (); - } - delete i; - return 0; -} - -// the following needs to be done to deal with the most bizarre behavior of -// MSVC++ compiler -int -be_visitor_typecode_defn::gen_nested_namespace_end (be_module *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - UTL_IdListActiveIterator *i; - - i = new UTL_IdListActiveIterator (node->name ()); - while (!(i->is_done ())) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "") != 0) - { - // leave the outermost root scope - *os << "TAO_NAMESPACE_END" << be_nl; - } - i->next (); - } - delete i; - return 0; -} - -int -be_visitor_typecode_defn::visit_type (be_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); - - os->indent (); - // generate the typecode information here - *os << "static const CORBA::Long _oc_" << node->flatname () << "[] =" - << be_nl; - *os << "{" << be_idt << "\n"; - // note that we just need the parameters here and hence we generate the - // encapsulation for the parameters - if (node->gen_encapsulation () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typecode_defn::" - "visit_type - " - "codegen for typecode failed\n"), -1); - } - *os << be_uidt << "};" << be_nl; - - *os << "static CORBA::TypeCode _tc__tc_" << node->flatname () - << " ("; - switch (node->node_type ()) - { - case AST_Decl::NT_array: - *os << "CORBA::tk_array"; - break; - case AST_Decl::NT_enum: - *os << "CORBA::tk_enum"; - break; - case AST_Decl::NT_except: - *os << "CORBA::tk_except"; - break; - case AST_Decl::NT_interface: - *os << "CORBA::tk_objref"; - break; - case AST_Decl::NT_sequence: - *os << "CORBA::tk_sequence"; - break; - case AST_Decl::NT_struct: - *os << "CORBA::tk_struct"; - break; - case AST_Decl::NT_typedef: - *os << "CORBA::tk_alias"; - break; - case AST_Decl::NT_union: - *os << "CORBA::tk_union"; - break; - default: - return -1; // error - } - - *os << ", sizeof (_oc_" << node->flatname () - << "), (char *) &_oc_" << node->flatname () - << ", 0);" << be_nl; - - // is our enclosing scope a module? We need this check because for - // platforms that support namespaces, the typecode must be declared - // extern - if (node->is_nested () && - node->defined_in ()->scope_node_type () == AST_Decl::NT_module) - { - *os << "TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)" << be_nl; - be_module *module = be_module::narrow_from_scope (node->defined_in ()); - if (!module || (this->gen_nested_namespace_begin (module) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_typecode_defn::visit_type - " - "Error parsing nested name\n"), - -1); - } - *os << "TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_" - << node->local_name () << ", &_tc__tc_" - << node->flatname () << ")" << be_nl; - if (this->gen_nested_namespace_end (module) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "be_visitor_typecode_defn::visit_type - " - "Error parsing nested name\n"), - -1); - } - } - else - { - // outermost scope. - *os << "CORBA::TypeCode_ptr " << node->tc_name () << " = &_tc__tc_" - << node->flatname () << ";\n\n"; - } - return 0; -} - -int -be_visitor_typecode_defn::visit_array (be_array *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_enum (be_enum *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_exception (be_exception *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_interface (be_interface *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_sequence (be_sequence *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_structure (be_structure *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_typedef (be_typedef *node) -{ - return this->visit_type (node); -} - -int -be_visitor_typecode_defn::visit_union (be_union *node) -{ - return this->visit_type (node); -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef.cpp b/TAO/TAO_IDL/be/be_visitor_typedef.cpp deleted file mode 100644 index b1c95a284c8..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typedef.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Typedef -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -// include all the individual files -#include "be_visitor_typedef/typedef.cpp" -#include "be_visitor_typedef/typedef_ch.cpp" -#include "be_visitor_typedef/typedef_ci.cpp" -#include "be_visitor_typedef/typedef_cs.cpp" -#include "be_visitor_typedef/any_op_ch.cpp" -#include "be_visitor_typedef/any_op_cs.cpp" -#include "be_visitor_typedef/cdr_op_ch.cpp" -#include "be_visitor_typedef/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_typedef, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp deleted file mode 100644 index 1ce2a21d9c0..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp +++ /dev/null @@ -1,293 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators of a Typedef node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, any_op_ch, "$Id$") - - -// *************************************************************************** -// Typedef visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_typedef_any_op_ch::be_visitor_typedef_any_op_ch -(be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_any_op_ch::~be_visitor_typedef_any_op_ch (void) -{ -} - -int -be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); // reset - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (!bt->imported () && - bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_ch::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_ch::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp deleted file mode 100644 index 87d7215633d..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp +++ /dev/null @@ -1,294 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, any_op_cs, "$Id$") - - -// *************************************************************************** -// Typedef visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_typedef_any_op_cs::be_visitor_typedef_any_op_cs -(be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_any_op_cs::~be_visitor_typedef_any_op_cs (void) -{ -} - -int -be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - // Any <<= and >>= operators - os->indent (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); // reset - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (!bt->imported () && - bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_any_op_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_any_op_cs::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp deleted file mode 100644 index d269c48d875..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp +++ /dev/null @@ -1,292 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Cdr operators of a Typedef node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, cdr_op_ch, "$Id$") - - -// *************************************************************************** -// Typedef visitor for generating Cdr operator declarations in the client header -// *************************************************************************** - -be_visitor_typedef_cdr_op_ch::be_visitor_typedef_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_cdr_op_ch::~be_visitor_typedef_cdr_op_ch (void) -{ -} - -int -be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operator declarations - os->indent (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forcdr type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored cdr "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); // reset - } - - node->cli_hdr_cdr_op_gen (1); - return 0; -} - -int -be_visitor_typedef_cdr_op_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (!bt->imported () && - bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_ch::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_ch::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_op_ch::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp deleted file mode 100644 index 26cbbb1f957..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp +++ /dev/null @@ -1,294 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Cdr operators in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, cdr_op_cs, "$Id$") - - -// *************************************************************************** -// Typedef visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_typedef_cdr_op_cs::be_visitor_typedef_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_cdr_op_cs::~be_visitor_typedef_cdr_op_cs (void) -{ -} - -int -be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node) -{ - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the CDR << and >> operator impls - - os->indent (); - - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forcdr type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored cdr "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); // reset - } - - node->cli_stub_cdr_op_gen (1); - return 0; -} - -int -be_visitor_typedef_cdr_op_cs::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (!bt->imported () && - bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} - -int -be_visitor_typedef_cdr_op_cs::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cdr_op_cs::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp deleted file mode 100644 index 27b32ad0206..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp +++ /dev/null @@ -1,485 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef.cpp -// -// = DESCRIPTION -// Generic visitor generating code for Typedefs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, typedef, "$Id$") - - -// ****************************************************** -// Generic Typedef visitor -// ****************************************************** - -be_visitor_typedef::be_visitor_typedef (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_typedef::~be_visitor_typedef (void) -{ -} - -// visit the Typedef node and its scope -int be_visitor_typedef::visit_typedef (be_typedef *node) -{ - return -1; // must be overridden -} - -// =all common visit methods for typedef visitor - -// visit a array -int -be_visitor_typedef::visit_array (be_array *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_ARRAY_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_ARRAY_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_ARRAY_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ARRAY_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ARRAY_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_ARRAY_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_ARRAY_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_array - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_array - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_array - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -//visit an enum -int -be_visitor_typedef::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_enum - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_enum - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_enum - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an predefined type -int -be_visitor_typedef::visit_predefined_type (be_predefined_type *node) -{ - return 0; -} - -// visit an sequence -int -be_visitor_typedef::visit_sequence (be_sequence *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_sequence - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_sequence - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_sequence - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_typedef::visit_string (be_string *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_string - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_string - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_string - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an structure -int -be_visitor_typedef::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_structure - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_structure - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_structure - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit an union -int -be_visitor_typedef::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_TYPEDEF_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CI: - ctx.state (TAO_CodeGen::TAO_UNION_CI); - break; - case TAO_CodeGen::TAO_TYPEDEF_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_ANY_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_ANY_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS); - break; - case TAO_CodeGen::TAO_TYPEDEF_SH: - case TAO_CodeGen::TAO_TYPEDEF_SI: - case TAO_CodeGen::TAO_TYPEDEF_SS: - return 0; // nothing to be done - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_union - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_union - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef::" - "visit_union - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp deleted file mode 100644 index 54cd1a6afba..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp +++ /dev/null @@ -1,456 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Typedef in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, typedef_ch, "$Id$") - - -// ****************************************************** -// Typedef visitor for client header -// ****************************************************** - -be_visitor_typedef_ch::be_visitor_typedef_ch (be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_ch::~be_visitor_typedef_ch (void) -{ -} - -int -be_visitor_typedef_ch::visit_typedef (be_typedef *node) -{ - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc, _dup, - // and _free methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); // reset - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - - // accept on this base type, but generate code for the typedef node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - // generate the typecode decl for this typedef node - if (!node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "TypeCode declaration failed\n" - ), -1); - } - - - } - this->ctx_->tdef (0); // reset - } - - return 0; -} - -int -be_visitor_typedef_ch::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - // is the base type an alias to an array node or an actual array node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - // is our base type an array node. If so, generate code for that array node - if (bt->node_type () == AST_Decl::NT_array) - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - else - { - // base type is simply an alias to an array node. Simply output the - // required typedefs - - os->indent (); - // typedef the type and the _slice type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_slice") - << " " << tdef->nested_type_name (scope, "_slice") << ";" << be_nl; - // typedef the _var, _out, and _forany types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_forany") - << " " << tdef->nested_type_name (scope, "_forany") << ";" << be_nl; - // the _alloc, _dup, copy, and free methods - *os << "static " << tdef->nested_type_name (scope, "_slice") << " *" - << tdef->nested_type_name (scope, "_alloc") << " (void);" << be_nl; - *os << "static " << tdef->nested_type_name (scope, "_slice") << " *" - << tdef->nested_type_name (scope, "_dup") << " (const " - << tdef->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - *os << "static void " << tdef->nested_type_name (scope, "_copy") << " (" - << tdef->nested_type_name (scope, "_slice") << " *_tao_to, const " - << tdef->nested_type_name (scope, "_slice") << " *_tao_from);" << be_nl; - *os << "static void " << tdef->nested_type_name (scope, "_free") << " (" - << tdef->nested_type_name (scope, "_slice") << " *_tao_slice);" << be_nl; - } - return 0; -} - -int -be_visitor_typedef_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_enum) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_enum (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_enum - " - "base class visitor failed \n" - ), -1); - } - } - - // now generate the typedefs - os->indent (); - // typedef the type and the _slice type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _out - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - // now generate the typedefs - os->indent (); - - // typedef the _ptr - *os << "typedef " << bt->nested_type_name (scope, "_ptr") - << " " << tdef->nested_type_name (scope, "_ptr") << ";" << be_nl; - - // typedef the _var - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - - // typedef the _out - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - - return 0; -} - -int -be_visitor_typedef_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - // now generate the typedefs - os->indent (); - // typedef the type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - if ((node->pt () == AST_PredefinedType::PT_pseudo) || - (node->pt () == AST_PredefinedType::PT_any)) - { - // typedef the _ptr and _var - *os << "typedef " << bt->nested_type_name (scope, "_ptr") - << " " << tdef->nested_type_name (scope, "_ptr") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - } - // typedef the _out - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_string (be_string *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - - // now generate the typedefs - os->indent (); - // typedef the type and the _slice type - *os << "typedef char *" - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out, and _forany types - *os << "typedef CORBA::String_var" - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef CORBA::String_out" - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - else - { - // now generate the typedefs - os->indent (); - // typedef the type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - } - return 0; -} - -int -be_visitor_typedef_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - - // now generate the typedefs - os->indent (); - // typedef the type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} - -int -be_visitor_typedef_ch::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - - // now generate the typedefs - os->indent (); - // typedef the type and the _slice type - *os << "typedef " << bt->nested_type_name (scope) - << " " << tdef->nested_type_name (scope) << ";" << be_nl; - // typedef the _var, _out types - *os << "typedef " << bt->nested_type_name (scope, "_var") - << " " << tdef->nested_type_name (scope, "_var") << ";" << be_nl; - *os << "typedef " << bt->nested_type_name (scope, "_out") - << " " << tdef->nested_type_name (scope, "_out") << ";" << be_nl; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp deleted file mode 100644 index 654a1519696..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp +++ /dev/null @@ -1,285 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Typedefs in the client inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, typedef_ci, "$Id$") - - -// ****************************************************** -// Typedef visitor for client inline -// ****************************************************** - -be_visitor_typedef_ci::be_visitor_typedef_ci (be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_ci::~be_visitor_typedef_ci (void) -{ -} - -int -be_visitor_typedef_ci::visit_typedef (be_typedef *node) -{ - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc - // methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->alias (0); - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - this->ctx_->tdef (0); - } - return 0; -} - -int -be_visitor_typedef_ci::visit_array (be_array *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_array) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_array (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_array - " - "base class visitor failed \n" - ), -1); - } - } - else - { - // generate the inline code for alloc, dup, copy, and free methods - - // alloc method - os->indent (); - *os << "ACE_INLINE " << tdef->name () << "_slice *" << be_nl; - *os << tdef->name () << "_alloc (void)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return " << bt->name () << "_alloc ();" << be_uidt_nl; - *os << "}\n\n"; - - // dup method - os->indent (); - *os << "ACE_INLINE " << tdef->name () << "_slice *" << be_nl; - *os << tdef->name () << "_dup (const " << tdef->name () - << "_slice *_tao_src)" << be_nl; - *os << "{" << be_idt_nl; - *os << "return " << bt->name () << "_dup (_tao_src);" << be_uidt_nl; - *os << "}\n\n"; - - // copy method - os->indent (); - *os << "ACE_INLINE void" << be_nl; - *os << tdef->name () << "_copy (" << tdef->name () - << "_slice *_tao_dest, const " << tdef->name () - << "_slice *_tao_src)" << be_nl; - *os << "{" << be_idt_nl; - *os << bt->name () << "_copy (_tao_dest, _tao_src);" << be_uidt_nl; - *os << "}\n\n"; - - // free method - os->indent (); - *os << "ACE_INLINE void" << be_nl; - *os << tdef->name () << "_free (" << tdef->name () - << "_slice *_tao_src)" << be_nl; - *os << "{" << be_idt_nl; - *os << bt->name () << "_free (_tao_src);" << be_uidt_nl; - *os << "}\n\n"; - } - return 0; -} - -int -be_visitor_typedef_ci::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_sequence) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_sequence (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_sequence - " - "base class visitor failed \n" - ), -1); - } - } - return 0; -} - -int -be_visitor_typedef_ci::visit_structure (be_structure *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_struct) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_structure (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_structure - " - "base class visitor failed \n" - ), -1); - } - } - return 0; -} - -int -be_visitor_typedef_ci::visit_union (be_union *node) -{ - TAO_OutStream *os = this->ctx_->stream (); // output stream - be_typedef *tdef = this->ctx_->tdef (); // typedef node - be_decl *scope = this->ctx_->scope (); // scope in which it is used - be_type *bt; - - if (this->ctx_->alias ()) // typedef of a typedef - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () == AST_Decl::NT_union) // direct typedef of a base node - // type - { - // let the base class visitor handle this case - if (this->be_visitor_typedef::visit_union (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ci::" - "visit_union - " - "base class visitor failed \n" - ), -1); - } - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp deleted file mode 100644 index 1efcfa25292..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp +++ /dev/null @@ -1,148 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Typedef in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_typedef.h" - -ACE_RCSID(be_visitor_typedef, typedef_cs, "$Id$") - - -// ****************************************************** -// Typedef visitor for client stubs -// ****************************************************** - -be_visitor_typedef_cs::be_visitor_typedef_cs (be_visitor_context *ctx) - : be_visitor_typedef (ctx) -{ -} - -be_visitor_typedef_cs::~be_visitor_typedef_cs (void) -{ -} - -int -be_visitor_typedef_cs::visit_typedef (be_typedef *node) -{ - // In general, we may have a chain of typedefs. i.e., - // typedef sequence X; - // typedef X Y; - // typedef Y Z; and so on - // The first time we will be in will be for node Z for which the code - // generation has to take place. However, it is not enough to just generate - // code that looks like - - // typedef Y Z; - // For different types (in this case we have a sequence), we will need - // typedefs for the _var and _out types for Z. If it had been an array, we - // will additionally have the _forany type as well as inlined *_alloc - // methods. - // - // Finally, we need to differentiate between the case where we were - // generating code for - // typedef sequence X; and - // typedef Y Z; where Y was somehow aliased to the sequence. In the former - // case, we will need to generate all the code for sequence or whatever - // the type maybe. In the latter, we just need typedefs for the type and all - // associated _var, _out, and other types. - - be_type *bt; // base type - - if (this->ctx_->tdef ()) - { - // the fact that we are here indicates that we were generating code for a - // typedef node whose base type also happens to be another typedef-ed - // (i.e. an alias) node for another (possibly alias) node - - this->ctx_->alias (node); // save this alias - - // grab the most primitive base type in the chain to avoid recusrsively - // going thru this visit method - bt = node->primitive_base_type (); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad primitive base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - this->ctx_->alias (0); - } - else - { - // the context has not stored any "tdef" node. So we must be in here for - // the first time - this->ctx_->tdef (node); // save the typedef node - - // grab the immediate base type node - bt = be_type::narrow_from_decl (node->base_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "bad base type\n" - ), -1); - } - // accept on this base type - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_ch::" - "visit_typedef - " - "failed to accept visitor\n" - ), -1); - } - - if (!node->imported ()) - { - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - be_visitor *visitor; - be_visitor_context ctx (*this->ctx_); - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_typedef_cs::" - "visit_typedef - " - "TypeCode definition failed\n" - ), -1); - } - - } - this->ctx_->tdef (0); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union.cpp b/TAO/TAO_IDL/be/be_visitor_union.cpp deleted file mode 100644 index 0aa88dff8b8..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union.cpp -// -// = DESCRIPTION -// Visitors for generation of code for Union -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -// include all the individual files -#include "be_visitor_union/discriminant_ch.cpp" -#include "be_visitor_union/discriminant_ci.cpp" -#include "be_visitor_union/discriminant_cs.cpp" -#include "be_visitor_union/union.cpp" -#include "be_visitor_union/union_ch.cpp" -#include "be_visitor_union/union_ci.cpp" -#include "be_visitor_union/union_cs.cpp" -#include "be_visitor_union/any_op_ch.cpp" -#include "be_visitor_union/any_op_cs.cpp" -#include "be_visitor_union/cdr_op_ch.cpp" -#include "be_visitor_union/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_union, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp deleted file mode 100644 index 2f46f76a34f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp +++ /dev/null @@ -1,102 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for Union. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, any_op_ch, "$Id$") - - -// *************************************************************************** -// Union visitor for generating Any operator declarations in the client header -// *************************************************************************** - -be_visitor_union_any_op_ch::be_visitor_union_any_op_ch -(be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_any_op_ch::~be_visitor_union_any_op_ch (void) -{ -} - -int -be_visitor_union_any_op_ch::visit_union (be_union *node) -{ - if (node->cli_hdr_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, const " << node->name () - << " &); // copying version" << be_nl; - *os << "void " << idl_global->export_macro () - << " operator<<= (CORBA::Any &, " << node->name () - << "*); // noncopying version" << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>>= (const CORBA::Any &, " - << node->name () << " *&);\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::visit_union - " - "codegen for scope failed\n"), -1); - } - - node->cli_hdr_any_op_gen (1); - return 0; -} - -int -be_visitor_union_any_op_ch::visit_union_branch (be_union_branch *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_ch::" - "visit_union_branch - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_ch::" - "visit_field - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp deleted file mode 100644 index fcdd82ba452..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp +++ /dev/null @@ -1,144 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Any operators for Union. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, any_op_cs, "$Id$") - - -// *************************************************************************** -// Union visitor for generating Any operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_union_any_op_cs::be_visitor_union_any_op_cs -(be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_any_op_cs::~be_visitor_union_any_op_cs (void) -{ -} - -int -be_visitor_union_any_op_cs::visit_union (be_union *node) -{ - if (node->cli_stub_any_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // generate the Any <<= and >>= operator declarations - os->indent (); - *os << "void operator<<= (CORBA::Any &_tao_any, const " - << node->name () << " &_tao_elem) // copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", new " - << node->name () << "(_tao_elem), 1, _tao_env);" << be_uidt_nl - << "}\n" << be_nl; - - *os << "void operator<<= (CORBA::Any &_tao_any, " - << node->name () << " *_tao_elem) // non copying" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "_tao_any.replace (" << node->tc_name () << ", " - << "_tao_elem, 1, _tao_env); // consume it" << be_uidt_nl - << "}\n" << be_nl; - - *os << "CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, " - << node->name () << " *&_tao_elem)" << be_nl - << "{" << be_idt_nl - << "CORBA::Environment _tao_env;" << be_nl - << "CORBA::TypeCode_var type = _tao_any.type ();" << be_nl - << "if (!type->equal (" << node->tc_name () - << ", _tao_env)) return 0; // not equal" << be_nl - << "if (_tao_any.any_owns_data ())" << be_nl - << "{" << be_idt_nl - << "ACE_NEW_RETURN (_tao_elem, " << node->name () << ", 0);" - << be_nl - << "TAO_InputCDR stream ((ACE_Message_Block *)_tao_any.value ());" - << be_nl - << "if (stream.decode (" << node->tc_name () - << ", _tao_elem, 0, _tao_env)" << be_nl - << " == CORBA::TypeCode::TRAVERSE_CONTINUE)" << be_nl - << "{" << be_idt_nl - << "((CORBA::Any *)&_tao_any)->replace (" - << node->tc_name () << ", _tao_elem, 1, _tao_env);" << be_nl - << " return 1;" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // decode failed - << "{" << be_idt_nl - << "delete _tao_elem;" << be_nl - << "return 0;" << be_uidt_nl - << "}" << be_uidt_nl - << "}" << be_nl - << "else" << be_nl // else any does not own the data - << "{" << be_idt_nl - << "_tao_elem = (" << node->name () << " *)_tao_any.value ();" - << be_nl - << "return 1;" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::visit_union - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_any_op_gen (1); - return 0; -} - -int -be_visitor_union_any_op_cs::visit_union_branch (be_union_branch *node) -{ - be_type *bt; // field's type - - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_cs::" - "visit_union_branch - " - "Bad field type\n" - ), -1); - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_any_op_cs::" - "visit_union_branch - " - "codegen for field type failed\n" - ), -1); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp deleted file mode 100644 index e1768bb6b58..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for unions. This uses -// compiled marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, cdr_op_ch, "$Id$") - -// *************************************************************************** -// Union visitor for generating CDR operator declarations in the client header -// *************************************************************************** - -be_visitor_union_cdr_op_ch::be_visitor_union_cdr_op_ch -(be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_cdr_op_ch::~be_visitor_union_cdr_op_ch (void) -{ -} - -int -be_visitor_union_cdr_op_ch::visit_union (be_union *node) -{ - if (node->cli_hdr_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_header (); - - // generate the CDR << and >> operator declarations - os->indent (); - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator<< (TAO_OutputCDR &, const " << node->name () - << " &); // " << be_nl; - *os << "CORBA::Boolean " << idl_global->export_macro () - << " operator>> (TAO_InputCDR &, " - << node->name () << " &);\n"; - - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cdr_op_ch::" - "visit_union - " - "codegen for scope failed\n"), -1); - } - - - node->cli_hdr_cdr_op_gen (1); - return 0; -} - diff --git a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp deleted file mode 100644 index 297a063ff22..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp +++ /dev/null @@ -1,137 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for CDR operators for unions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, cdr_op_cs, "$Id$") - -// *************************************************************************** -// Union visitor for generating CDR operator declarations in the client -// stubs file -// *************************************************************************** - -be_visitor_union_cdr_op_cs::be_visitor_union_cdr_op_cs -(be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_cdr_op_cs::~be_visitor_union_cdr_op_cs (void) -{ -} - -int -be_visitor_union_cdr_op_cs::visit_union (be_union *node) -{ - // already generated and/or we are imported. Don't do anything. - if (node->cli_stub_cdr_op_gen () || node->imported ()) - return 0; - - TAO_OutStream *os = tao_cg->client_stubs (); - - // set the sub state as generating code for the output operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT); - *os << "CORBA::Boolean operator<< (TAO_OutputCDR &strm, " - << "const " << node->name () << " &_tao_union)" << be_nl - << "{" << be_idt_nl - << "return 1;" << be_uidt_nl - << "}\n\n"; -#if 0 /* TO-DO */ - << "if (" << be_idt_nl; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cdr_op_cs::" - "visit_union - " - "codegen for scope failed\n"), -1); - } - *os << be_uidt_nl << ")" - << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt_nl << be_uidt_nl - << "}\n\n"; -#endif - - // set the substate as generating code for the input operator - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_INPUT); - *os << "CORBA::Boolean operator>> (TAO_InputCDR &strm, " - << node->name () << " &_tao_union)" << be_nl - << "{" << be_idt_nl - << "return 1;" << be_uidt_nl - << "}\n\n"; - -#if 0 /* TO-DO */ - << "if (" << be_idt_nl; - - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cdr_op_cs" - "::visit_union - " - "codegen for scope failed\n"), -1); - } - *os << be_uidt_nl << ")" - << be_idt_nl - << "return 1;" << be_uidt_nl - << "else" << be_idt_nl - << "return 0;" << be_uidt_nl << be_uidt_nl - << "}\n\n"; -#endif - - // set the substate as generating code for the types defined in our scope - this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE); - // all we have to do is to visit the scope and generate code - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cdr_op_cs" - "::visit_union - " - "codegen for scope failed\n"), -1); - } - - node->cli_stub_cdr_op_gen (1); - return 0; -} - -int -be_visitor_union_cdr_op_cs::post_process (void) -{ - TAO_OutStream *os = tao_cg->client_stubs (); - - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_OUTPUT: - case TAO_CodeGen::TAO_CDR_INPUT: - *os << " &&" << be_nl; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - default: - break; - }; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp deleted file mode 100644 index 66c3002b440..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp +++ /dev/null @@ -1,142 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for discriminant of the Union -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, discriminant_ch, "$Id$") - - -// ************************************************************************* -// be_visitor_discriminant_ch - visitor for discriminant in client header file -// ************************************************************************* - -be_visitor_union_discriminant_ch::be_visitor_union_discriminant_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_union_discriminant_ch::~be_visitor_union_discriminant_ch (void) -{ -} - -int -be_visitor_union_discriminant_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - os->indent (); - // the set method - *os << "void _d (" << bt->nested_type_name (bu) << ");" << be_nl; - // the get method - *os << bt->nested_type_name (bu) << " _d (void) const;\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ch::visit_predefined_type (be_predefined_type - *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - os->indent (); - // the set method - *os << "void _d (" << bt->nested_type_name (bu) << ");" << be_nl; - // the get method - *os << bt->nested_type_name (bu) << " _d (void) const;\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ch::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp deleted file mode 100644 index cfee3582b2f..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp +++ /dev/null @@ -1,136 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for discriminant of the union. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, discriminant_ci, "$Id$") - - -// ************************************************************************* -// be_visitor_discriminant_ci - visitor for discriminant in client inline file -// ************************************************************************* - -be_visitor_union_discriminant_ci::be_visitor_union_discriminant_ci -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_union_discriminant_ci::~be_visitor_union_discriminant_ci (void) -{ -} - -int -be_visitor_union_discriminant_ci::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - os->indent (); - // the set method - *os << "// accessor to set the discriminant" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::_d (" << bt->name () - << " discval)" << be_nl - << "{" << be_idt_nl - << "this->disc_ = discval;" << be_uidt_nl - << "}" << be_nl; - - // the get method - *os << "// accessor to get the discriminant" << be_nl - << "ACE_INLINE " << bt->name () << be_nl - << bu->name () << "::_d (void) const" << be_nl - << "{" << be_idt_nl - << "return this->disc_;" << be_uidt_nl - << "}\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ci::visit_predefined_type (be_predefined_type - *node) -{ - TAO_OutStream *os; // output stream - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - os = this->ctx_->stream (); - - os->indent (); - // the set method - *os << "// accessor to set the discriminant" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::_d (" << bt->name () - << " discval)" << be_nl - << "{" << be_idt_nl - << "this->disc_ = discval;" << be_uidt_nl - << "}" << be_nl; - - // the get method - *os << "// accessor to get the discriminant" << be_nl - << "ACE_INLINE " << bt->name () << be_nl - << bu->name () << "::_d (void) const" << be_nl - << "{" << be_idt_nl - << "return this->disc_;" << be_uidt_nl - << "}\n\n"; - return 0; -} - -int -be_visitor_union_discriminant_ci::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp deleted file mode 100644 index 79f75f66a28..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for discriminant of the union -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, discriminant_cs, "$Id$") - - -// ************************************************************************* -// be_visitor_discriminant_cs - visitor for discriminant in client stubs -// ************************************************************************* - -be_visitor_union_discriminant_cs::be_visitor_union_discriminant_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -be_visitor_union_discriminant_cs::~be_visitor_union_discriminant_cs (void) -{ -} - -int -be_visitor_union_discriminant_cs::visit_enum (be_enum *node) -{ - be_union *bu = - this->ctx_->be_node_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the typecode for the enum - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_discriminant_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/union.cpp b/TAO/TAO_IDL/be/be_visitor_union/union.cpp deleted file mode 100644 index a967d11d7ce..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/union.cpp +++ /dev/null @@ -1,119 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union.cpp -// -// = DESCRIPTION -// Generic visitor generating code for Unions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, union, "$Id$") - - -// generic struct visitor -be_visitor_union::be_visitor_union (be_visitor_context *ctx) - : be_visitor_scope (ctx) -{ -} - -be_visitor_union::~be_visitor_union (void) -{ -} - -// visit the Union node and its scope -int -be_visitor_union::visit_union (be_union *node) -{ - return -1; // must be overriden -} - -int -be_visitor_union::visit_union_branch (be_union_branch *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // this switch is acceptable rather than having derived visitors overriding - // this method and differing only in what state they set - - switch (this->ctx_->state ()) - { - case TAO_CodeGen::TAO_UNION_PUBLIC_CH: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_CH); - break; - case TAO_CodeGen::TAO_UNION_PRIVATE_CH: - ctx.state (TAO_CodeGen::TAO_UNION_PRIVATE_CH); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_CI: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_CI); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_CS: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_CS); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_RESET_CS: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_RESET_CS); - break; - case TAO_CodeGen::TAO_UNION_PUBLIC_ACCESS_CS: - ctx.state (TAO_CodeGen::TAO_UNION_PUBLIC_ACCESS_CS); - break; - case TAO_CodeGen::TAO_UNION_CDR_OP_CH: - ctx.state (TAO_CodeGen::TAO_UNION_BRANCH_CDR_OP_CH); - break; - case TAO_CodeGen::TAO_UNION_CDR_OP_CS: - ctx.state (TAO_CodeGen::TAO_UNION_BRANCH_CDR_OP_CS); - break; - default: - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::" - "visit_union_branch - " - "Bad context state\n" - ), -1); - } - } - - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::" - "visit_union_branch - " - "NUL visitor\n" - ), -1); - } - - // let the node accept this visitor - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union::" - "visit_union_branch - " - "failed to accept visitor\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp deleted file mode 100644 index 0fd71f3ad11..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp +++ /dev/null @@ -1,220 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Unions in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, union_ch, "$Id$") - - -// ****************************************************** -// for client header -// ****************************************************** - -be_visitor_union_ch::be_visitor_union_ch (be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_ch::~be_visitor_union_ch (void) -{ -} - -// visit the Union node and its scope -int be_visitor_union_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and - // not imported - { - os = this->ctx_->stream (); - - // generate the ifdefined macro for the union type - os->gen_ifdef_macro (node->flatname ()); - os->indent (); // start with the current indentation level - *os << "class " << idl_global->export_macro () << " " - << node->local_name () << ": public TAO_Base_Union " << be_nl - << "{" << be_nl - << "public:" << be_idt_nl - - // generate default and copy constructors - << node->local_name () << " (void); // default constructor" << be_nl - << node->local_name () << " (const " << node->local_name () - << " &); // copy constructor" << be_nl - // generate destructor - << "~" << node->local_name () << " (void); // destructor" << be_nl - // generate assignment operator - << node->local_name () << " &operator= (const " - << node->local_name () << " &); // copy constructor\n\n"; - - // retrieve the disriminant type - bt = be_type::narrow_from_decl (node->disc_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "bad disciminant type\n"), -1); - } - - // the discriminant type may have to be defined here if it was an enum - // declaration inside of the union statement. - - ctx.state (TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CH); // set current code - // gen state - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "bad visitor\n"), -1); - } - - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - " visit_union - " - "codegen for discriminant failed\n"), -1); - } - delete visitor; - - // now generate the public defn for the union branch members. For this, - // set our state to reflect what we are aiming to do - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_CH); // set current code - // gen state - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for public defn of union members\n"), - -1); - } - - // now generate the private data members of the union - os->decr_indent (); - *os << "private:\n"; - os->incr_indent (); - *os << bt->nested_type_name (node) << " disc_;" << be_nl; // emit the - // ACE_NESTED_CLASS macro - - // the members are inside of a union - *os << "union" << be_nl; - *os << "{\n"; - os->incr_indent (0); - this->ctx_->state (TAO_CodeGen::TAO_UNION_PRIVATE_CH); // set current - // code gen state - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for private members of union\n"), -1); - } - - os->decr_indent (); - *os << "} u_; // end of union" << be_nl; - - // the reset method (TAO extension) - *os << "// TAO extensions" << be_nl; - *os << "void _reset (" << bt->nested_type_name (node) - << ", CORBA::Boolean);" << be_nl; - *os << "// Frees any allocated storage" << be_nl << be_nl; - // the virtual overloaded _discriminant method - *os << "virtual void *_discriminant (void);" << be_nl; - *os << "// returns pointer to the discriminant" << be_nl << be_nl; - // the overloaded virtual reset method - *os << "virtual void _reset (void);" << be_nl; - *os << "// calls the above reset with finalize=1" << be_nl << be_nl; - // the _access method - *os << "virtual void *_access (CORBA::Boolean flag);" << be_nl; - *os << "// accesses the right data member. " - << "Also will allocate on TRUE flag" << be_nl << be_uidt_nl; - *os << "}; // " << node->name () << "\n\n"; - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "TypeCode declaration failed\n" - ), -1); - } - - - os->gen_endif (); - - // generate the ifdefined macro for the _var type - os->gen_ifdef_macro (node->flatname (), "_var"); - // generate var defn - if (node->gen_var_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for _var\n"), -1); - } - os->gen_endif (); - - // generate the ifdefined macro for the array type - os->gen_ifdef_macro (node->flatname (), "_out"); - // a class is generated for an out defn only for a variable length struct - if (node->size_type () == be_decl::VARIABLE) - { - if (node->gen_out_defn () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ch::" - "visit_union - " - "codegen for _out\n"), -1); - } - } - else - { - os->indent (); - *os << "typedef " << node->local_name () << " &" << node->local_name - () << "_out;\n\n"; - } - os->gen_endif (); - - node->cli_hdr_gen (I_TRUE); - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp deleted file mode 100644 index 48736d3a86b..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp +++ /dev/null @@ -1,159 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Union in the client inline file -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, union_ci, "$Id$") - - -// ****************************************************** -// for client inline -// ****************************************************** - -be_visitor_union_ci::be_visitor_union_ci (be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_ci::~be_visitor_union_ci (void) -{ -} - -// visit the Union node and its scope -int be_visitor_union_ci::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // type node - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - - if (!node->cli_inline_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - *os << "// *************************************************************" - << be_nl; - *os << "// Inline operations for union " << node->name () << be_nl; - *os << "// *************************************************************\n\n"; - - // generate the default constructor and the destructor here - os->indent (); - *os << "// destructor" << be_nl - << "ACE_INLINE" << be_nl - << node->name () << "::~" << node->local_name () << " (void)" << be_nl - << "{" << be_idt_nl - << "// finalize" << be_nl - << "this->_reset (this->disc_, 1);" << be_uidt_nl - << "}" << be_nl << be_nl; - - // the virtual overloaded _reset method - *os << "// this reset method is used by the decoding engine" << be_nl; - *os << "ACE_INLINE void" << be_nl - << node->name () << "::_reset (void)" << be_nl - << "{" << be_idt_nl - << "this->_reset (this->disc_, 1);" << be_uidt_nl - << "}" << be_nl << be_nl; - - // the virtual overloaded _discriminant method - *os << "// returns pointer to the discriminant" << be_nl; - *os << "ACE_INLINE void *" << be_nl - << node->name () << "::_discriminant (void)" << be_nl - << "{" << be_idt_nl - << "return &this->disc_;" << be_uidt_nl - << "}\n\n"; - - // the discriminant type may have to be defined here if it was an enum - // declaration inside of the union statement. - - bt = be_type::narrow_from_decl (node->disc_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "bad discriminant type\n"), -1); - } - - ctx.state (TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CI); // set current code - // gen state - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "bad visitor\n"), -1); - } - // generate code for the discriminant - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit union - " - "codegen for discrminant failed\n"), -1); - } - - // now generate the implementation of the access methods for the - // union. For this set our state - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_CI); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "codegen for scope failed\n"), -1); - } - - // generate the ifdefined macro for the array type - os->gen_ifdef_macro (node->flatname (), "_var"); - if (node->gen_var_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "codegen for _var failed\n"), -1); - } - os->gen_endif (); - - // generate the ifdefined macro for the array type then generate the _out - // impl - os->gen_ifdef_macro (node->flatname (), "_out"); - if (node->size_type () == be_decl::VARIABLE - && node->gen_out_impl () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_ci::" - "visit_union - " - "codegen for _out failed\n"), -1); - } - os->gen_endif (); - - node->cli_inline_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp deleted file mode 100644 index 87a6b5285ca..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp +++ /dev/null @@ -1,235 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Unions in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union.h" - -ACE_RCSID(be_visitor_union, union_cs, "$Id$") - - -// ****************************************************** -// for client stubs -// ****************************************************** - -be_visitor_union_cs::be_visitor_union_cs (be_visitor_context *ctx) - : be_visitor_union (ctx) -{ -} - -be_visitor_union_cs::~be_visitor_union_cs (void) -{ -} - -// visit the Union_cs node and its scope -int be_visitor_union_cs::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_type *bt; // for discriminant type - - if (!node->cli_stub_gen () && !node->imported ()) - { - os = this->ctx_->stream (); - - be_visitor_context ctx (*this->ctx_); - // the discriminant type may have to be defined here if it was an enum - // declaration inside of the union statement. We need to generate its - // typecode - - bt = be_type::narrow_from_decl (node->disc_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit_union - " - "bad discriminant type\n"), -1); - } - - ctx.state (TAO_CodeGen::TAO_UNION_DISCTYPEDEFN_CS); // set current code - // gen state - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit_union - " - "bad visitor\n"), -1); - } - // generate code for the discriminant - if (bt->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit union - " - "codegen for discrminant failed\n"), -1); - } - - // first generate code for any of the members (if required, e.g., - // anonymous sequences, structs, unions, arrays) - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_CS); // set current code - // gen state - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for scope failed\n"), -1); - } - - // now generate the operations on the union such as the copy constructor - // and the assignment operator - - *os << "// *************************************************************" - << be_nl; - *os << "// Operations for union " << node->name () << be_nl; - *os << "// *************************************************************\n\n"; - - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_ASSIGN_CS); - - // generate the copy constructor and the assignment operator here - os->indent (); - *os << "// default constructor" << be_nl - << node->name () << "::" << node->local_name () << " (void)" << be_nl - << " : TAO_Base_Union ()" << be_nl - << "{" << be_idt_nl - << "ACE_OS::memset (&this->disc_, 0, sizeof (this->disc_));" << be_nl - << "ACE_OS::memset (&this->u_, 0, sizeof (this->u_));" << be_uidt_nl - << "}" << be_nl << be_nl; - - *os << "// copy constructor" << be_nl; - *os << node->name () << "::" << node->local_name () << " (const " << - node->name () << " &u)" << be_nl; - *os << "{" << be_idt_nl; - // first reset and set the discriminant - *os << "this->_reset (u.disc_, 0);" << be_nl; - *os << "this->disc_ = u.disc_;" << be_nl; - // now switch based on the disc value - *os << "switch (this->disc_)" << be_nl; - *os << "{\n"; - os->incr_indent (0); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for copy ctor failed\n"), -1); - } - - os->decr_indent (); - *os << "}\n"; - os->decr_indent (); - *os << "}\n\n"; - - // assignment operator - os->indent (); - *os << "// assignment operator" << be_nl; - *os << node->name () << " &" << be_nl; // return type - *os << node->name () << "::operator= (const " << - node->name () << " &u)" << be_nl; - *os << "{\n"; - os->incr_indent (); - // first reset and set the discriminant - *os << "this->_reset (u.disc_, 0);" << be_nl; - *os << "this->disc_ = u.disc_;" << be_nl; - // now switch based on the disc value - *os << "switch (this->disc_)" << be_nl; - *os << "{\n"; - os->incr_indent (0); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for assign op failed\n"), -1); - } - - os->decr_indent (); - *os << "}" << be_nl; - *os << "return *this;\n"; - os->decr_indent (); - *os << "}\n\n"; - - // the reset method - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_RESET_CS); - os->indent (); - *os << "// reset method to reset old values of a union" << be_nl; - *os << "void " << node->name () << "::_reset (" << bt->name () - << " new_disc_val, CORBA::Boolean finalize)" << be_nl; - *os << "{" << be_idt_nl; - *os << "if ((this->disc_ != new_disc_val) || finalize)" << be_nl; - *os << "{" << be_idt_nl; - *os << "switch (this->disc_)" << be_nl; - *os << "{" << be_idt_nl; - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for reset failed\n"), -1); - } - - *os << be_uidt_nl << "}" << be_uidt_nl - << "}" << be_uidt_nl - << "}\n\n"; - - // the access method - os->indent (); - *os << "// the virtual overloaded access method" << be_nl; - *os << "void *" << node->name () << "::_access (" - << " CORBA::Boolean alloc_flag)" << be_nl; - *os << "{" << be_idt_nl; - *os << "switch (this->disc_)" << be_nl; - *os << "{" << be_idt_nl; - this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_ACCESS_CS); - if (this->visit_scope (node) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs" - "visit_union - " - "codegen for access failed\n"), -1); - } - - *os << be_uidt_nl << "}" << be_nl; - *os << "return 0; // default" << be_uidt_nl - << "}\n\n"; - - - // by using a visitor to declare and define the TypeCode, we have the - // added advantage to conditionally not generate any code. This will be - // based on the command line options. This is still TO-DO - ctx = *this->ctx_; - ctx.state (TAO_CodeGen::TAO_TYPECODE_DEFN); - visitor = tao_cg->make_visitor (&ctx); - if (!visitor || (node->accept (visitor) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_cs::" - "visit_union - " - "TypeCode definition failed\n" - ), -1); - } - - - node->cli_stub_gen (I_TRUE); - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch.cpp deleted file mode 100644 index 5cb1335b6ce..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union_branch.cpp -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -// include all the individual files -#include "be_visitor_union_branch/private_ch.cpp" -#include "be_visitor_union_branch/public_assign_cs.cpp" -#include "be_visitor_union_branch/public_reset_cs.cpp" -#include "be_visitor_union_branch/public_access_cs.cpp" -#include "be_visitor_union_branch/public_ch.cpp" -#include "be_visitor_union_branch/public_ci.cpp" -#include "be_visitor_union_branch/public_cs.cpp" -#include "be_visitor_union_branch/cdr_op_ch.cpp" -#include "be_visitor_union_branch/cdr_op_cs.cpp" - -ACE_RCSID(be, be_visitor_union_branch, "$Id$") - diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp deleted file mode 100644 index 74108181d13..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp +++ /dev/null @@ -1,295 +0,0 @@ - -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.cpp -// -// = DESCRIPTION -// Visitor generating CDR operator declarator for union_branch in the client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, cdr_op_ch, "$Id$") - - -// ********************************************** -// visitor for union_branch in the client header file -// ********************************************** - -// constructor -be_visitor_union_branch_cdr_op_ch::be_visitor_union_branch_cdr_op_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_cdr_op_ch::~be_visitor_union_branch_cdr_op_ch (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_cdr_op_ch::visit_union_branch (be_union_branch *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -// visit array type -int -be_visitor_union_branch_cdr_op_ch::visit_array (be_array *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit enum type -int -be_visitor_union_branch_cdr_op_ch::visit_enum (be_enum *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit sequence type -int -be_visitor_union_branch_cdr_op_ch::visit_sequence (be_sequence *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit structure type -int -be_visitor_union_branch_cdr_op_ch::visit_structure (be_structure *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the struct declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} - -// visit typedefed type -int -be_visitor_union_branch_cdr_op_ch::visit_typedef (be_typedef *node) -{ - // save the node for use in code generation and - // indicate that the union_branch of the union_branch node - // is a typedefed quantity - this->ctx_->alias (node); - - // make a decision based on the primitive base type - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_union_branch_cdr_op_ch::visit_union (be_union *node) -{ - // if not a typedef and we are defined in the use scope, we must be defined - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp deleted file mode 100644 index a50ef5538f6..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp +++ /dev/null @@ -1,645 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_branch_cdr_op_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Union_Branch in the client stubs file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, cdr_op_cs, "$Id$") - - -// ********************************************** -// visitor for union_branch in the client stubs file -// ********************************************** - -// constructor -be_visitor_union_branch_cdr_op_cs::be_visitor_union_branch_cdr_op_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_cdr_op_cs::~be_visitor_union_branch_cdr_op_cs (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_cdr_op_cs::visit_union_branch (be_union_branch *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// visit array -int -be_visitor_union_branch_cdr_op_cs::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "bad sub state\n" - ), -1); - } - - // if not a typedef and we are defined in the use scope, we must be defined - - if (!this->ctx_->alias () // not a typedef - && node->is_child (this->ctx_->scope ())) - { - // this is the case for anonymous arrays. - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit enum type -int -be_visitor_union_branch_cdr_op_cs::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_enum - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // generate the typcode for enums - ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit interface type -int -be_visitor_union_branch_cdr_op_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_interface - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ".out ())"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ".in ())"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done because an interface cannit be declared inside a - // structure - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_interface - " - "bad sub state\n" - ), -1); - } - return 0; -} - -// visit interface forward type -int -be_visitor_union_branch_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_interface_fwd - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ").out ()"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ").in ()"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done because an interface cannit be declared inside a - // structure - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_interface_fwd - " - "bad sub state\n" - ), -1); - } - return 0; -} - -// visit predefined type -int -be_visitor_union_branch_cdr_op_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_predefined_type - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - // is a psuedo obj - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "(strm >> _tao_union." << f->local_name () << ".out ())"; - else - *os << "(strm >> _tao_union." << f->local_name () << ")"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - // is a psuedo obj - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "(strm << _tao_union." << f->local_name () << ".in ())"; - else - *os << "(strm << _tao_union." << f->local_name () << ")"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "bad sub state\n" - ), -1); - } - - return 0; -} - -int -be_visitor_union_branch_cdr_op_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_sequence - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_sequence - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef - && node->is_child (this->ctx_->scope ())) - // not a typedef AND - // node is defined inside the structure - { - // Anonymous sequence - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit string type -int -be_visitor_union_branch_cdr_op_cs::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_string - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ".out ())"; - break; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ".in ())"; - break; - case TAO_CodeGen::TAO_CDR_SCOPE: - // nothing to be done - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_array - " - "bad sub state\n" - ), -1); - } - - return 0; -} - -// visit structure type -int -be_visitor_union_branch_cdr_op_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_structure - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_structure - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} - -// visit typedef type -int -be_visitor_union_branch_cdr_op_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_union_branch_cdr_op_cs::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - os = this->ctx_->stream (); - - // retrieve the union_branch node - be_union_branch *f = this->ctx_->be_node_as_union_branch (); - if (!f) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_union - " - "cannot retrieve union_branch node\n" - ), -1); - } - - // check what is the code generations substate. Are we generating code for - // the in/out operators for our parent or for us? - switch (this->ctx_->sub_state ()) - { - case TAO_CodeGen::TAO_CDR_INPUT: - *os << "(strm >> _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_OUTPUT: - *os << "(strm << _tao_union." << f->local_name () << ")"; - return 0; - case TAO_CodeGen::TAO_CDR_SCOPE: - // proceed further - break; - default: - // error - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_union - " - "bad sub state\n" - ), -1); - } - - if (node->node_type () != AST_Decl::NT_typedef // not a typedef - && node->is_child (this->ctx_->scope ())) // node is defined inside the - // structure - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cdr_op_cs::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp deleted file mode 100644 index cb0cdc2ef4c..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp +++ /dev/null @@ -1,408 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// private_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Union branch for the private part of the -// class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, private_ch, "$Id$") - - -// ********************************************** -// visitor for union_branch in the client header generating the private information -// ********************************************** - -// constructor -be_visitor_union_branch_private_ch::be_visitor_union_branch_private_ch (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_private_ch::visit_union_branch (be_union_branch *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_private_ch::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_array - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // are we fixed size or variable. This will decide our type -#if 0 - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->nested_type_name (bu, "_slice") << " *" << ub->local_name () - << "_;\n"; - } - else - { - *os << bt->nested_type_name (bu) << " " << ub->local_name () << "_;\n"; - } -#endif - *os << bt->nested_type_name (bu, "_slice") << " *" << ub->local_name () - << "_;\n"; - - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_enum - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " " << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_interface - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // C++ does not allow an object declaration inside a union. Hence we - // must have a pointer. This changes some of the methods - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () << - "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_interface_fwd - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // C++ does not allow an object declaration inside a union. Hence we - // must have a pointer. This changes some of the methods - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () << - "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_predefined_type - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (node->pt () == AST_PredefinedType::PT_pseudo) - { - // Cannot have an object inside of a union - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () << - "_;\n"; - } - else if (node->pt () == AST_PredefinedType::PT_any) - { - // Cannot have an object inside of a union. In addition, an Any is a - // variable data type - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << - "_;\n"; - } - else - { - os->indent (); // start from current indentation - *os << bt->nested_type_name (bu) << " " << ub->local_name () << - "_;\n"; - } - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // C++ doesn't allow object instances inside unions, so we need a - // pointer - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_string - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - *os << "char *" << ub->local_name () << "_;\n"; - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_structure - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - - // if we are variable sized, we need a pointer type - if (node->size_type () == be_type::VARIABLE) - { - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n"; - } - else - { - *os << bt->nested_type_name (bu) << " " << ub->local_name () << "_;\n"; - } - - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_private_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_private_ch::" - "visit_union - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // C++ doesn't allow instances of classes - *os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n"; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp deleted file mode 100644 index 0302672a142..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp +++ /dev/null @@ -1,384 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_access_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Union Branch in the client inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, public_access_cs, "$Id$") - - -// ***************************************************** -// visitor for union_branch in the client -// stubs file for the access method -// ***************************************************** - -// constructor -be_visitor_union_branch_public_access_cs:: -be_visitor_union_branch_public_access_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_access_cs:: -~be_visitor_union_branch_public_access_cs (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_access_cs:: -visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; - be_type *bt; // union_branch's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - - if (node->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "case " << node->label ()->label_val ()->n () << ":" << be_idt_nl; - } - else - { - *os << "case " << node->label ()->label_val () << ":" << be_idt_nl; - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_public_access_cs::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_enum - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - *os << "if (alloc_flag)" << be_idt_nl; - *os << "this->u_." << ub->local_name () << "_ = " << bt->name () - << "_alloc ();" << be_uidt_nl; - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_enum (be_enum *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_enum - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - *os << "return &this->u_." << ub->local_name () << "_;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_interface (be_interface *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - *os << "return (CORBA::Object_ptr *) &this->u_." << ub->local_name () << "_;" - << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_interface_fwd (be_interface_fwd *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - *os << "return (CORBA::Object_ptr) &this->u_." << ub->local_name () << "_;" - << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - *os << "return &this->u_." << ub->local_name () << "_;" << be_uidt_nl; - break; - case AST_PredefinedType::PT_any: - *os << "if (alloc_flag)" << be_idt_nl; - *os << "this->u_." << ub->local_name () << "_ = new " << bt->name () - << ";" << be_uidt_nl; - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - break; - case AST_PredefinedType::PT_void: - break; - default: - *os << "return &this->u_." << ub->local_name () << "_;" << be_uidt_nl; - } - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - *os << "if (alloc_flag)" << be_idt_nl; - *os << "this->u_." << ub->local_name () << "_ = new " << bt->name () - << ";" << be_uidt_nl; - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_string (be_string *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_string - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - *os << "return &this->u_." << ub->local_name () << "_;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_structure - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - if (bt->size_type () == be_type::VARIABLE) - { - *os << "if (alloc_flag)" << be_idt_nl; - *os << "this->u_." << ub->local_name () << "_ = new " << bt->name () - << ";" << be_uidt_nl; - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - } - else - { - *os << "return &this->u_." << ub->local_name () << "_;" << be_uidt_nl; - } - - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_public_access_cs::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_access_cs::" - "visit_union - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - *os << "if (alloc_flag)" << be_idt_nl; - *os << "this->u_." << ub->local_name () << "_ = new " << bt->name () - << ";" << be_uidt_nl; - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp deleted file mode 100644 index f4d76dff735..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp +++ /dev/null @@ -1,595 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_assign_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Union Branch for the assignment operator -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, public_assign_cs, "$Id$") - - -// ********************************************** -// visitor for union_branch in the client stubs file generating the code for -// the copy ctor and assignment operator -// ********************************************** - -// constructor -be_visitor_union_branch_public_assign_cs::be_visitor_union_branch_public_assign_cs -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_assign_cs::~be_visitor_union_branch_public_assign_cs -(void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_assign_cs::visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - os = this->ctx_->stream (); - - // This visitor is used when we are generating the copy ctor and - // assignment operator for the union. - // Individual assignment of the members takes place inside a case - // statement because the type of member assigned is based on the value - // of the discriminant - os->indent (); - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "case " << ub->label ()->label_val ()->n () << ":" << be_nl; - *os << "{" << be_idt << "\n"; - } - else - { - *os << "case " << ub->label ()->label_val () << ":" << be_nl; - *os << "{" << be_idt << "\n"; - } - - // first generate the type information - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - *os << "}" << be_nl; - *os << "break;\n"; - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_public_assign_cs::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_array - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a deep copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "_dup (u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_enum (be_enum *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_enum - " - "bad context information\n" - ), -1); - } - - TAO_OutStream *os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl - << "this->u_." << ub->local_name () << "_ = u.u_." - << ub->local_name () << "_;" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "::_duplicate (u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_interface_fwd - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "::_duplicate (u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_predefined_type - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "::_duplicate (u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - break; - case AST_PredefinedType::PT_any: - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (*u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - break; - case AST_PredefinedType::PT_void: - break; - default: - *os << "// set the value" << be_nl - << "this->u_." << ub->local_name () << "_ = u.u_." - << ub->local_name () << "_;" << be_uidt_nl; - break; - } - - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_array - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (*u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_array - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << "CORBA::String_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a deep copy" << be_nl; - *os << ub->local_name () << "_var = CORBA::string_dup (u.u_." - << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_array - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - if (bt->size_type () == be_type::VARIABLE) - { - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (*u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - *os << "// set the value" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = u.u_." - << ub->local_name () << "_;" << be_uidt_nl; - } - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_public_assign_cs::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_assign_cs::" - "visit_array - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (*u.u_." << ub->local_name () << "_);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp deleted file mode 100644 index c49a05b00c1..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp +++ /dev/null @@ -1,620 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_ch.cpp -// -// = DESCRIPTION -// Visitor generating code for Union_branch in the public part. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, public_ch, "$Id$") - - -// ********************************************** -// visitor for union_branch in the client header file -// ********************************************** - -// constructor -be_visitor_union_branch_public_ch::be_visitor_union_branch_public_ch -(be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_ch::~be_visitor_union_branch_public_ch (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_ch::visit_union_branch (be_union_branch *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -// visit array type -int -be_visitor_union_branch_public_ch::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch member - be_decl *bu = this->ctx_->scope (); // get the enclosing union node - be_type *bt; - - // check if we are visiting this via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_array - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // this is the case of an anonymous array inside a union - - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the array declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // now use this array as a "type" for the subsequent declarator - os->indent (); // start from current indentation - // the set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" - << be_nl; - // the get method - *os << bt->nested_type_name (bu, "_slice *") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - - return 0; -} - -// visit enum type -int -be_visitor_union_branch_public_ch::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch member - be_decl *bu = this->ctx_->scope (); // get the enclosing union node - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_enum - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ENUM_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // now use this enum as a "type" for the subsequent declarator - os->indent (); // start from current indentation - // the set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" - << be_nl; - // the get method - *os << bt->nested_type_name (bu) << " " << ub->local_name () - << " (void) const; // get method\n\n"; - - return 0; -} - -// visit interface type -int -be_visitor_union_branch_public_ch::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_interface - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu, "_ptr") - << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - return 0; -} - -// visit interface forward type -int -be_visitor_union_branch_public_ch::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_interface_fwd - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu, "_ptr") - << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - return 0; -} - -// visit predefined type -int -be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_predefined_type - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); // start from current indentation - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu, "_ptr") << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const; // get method\n\n"; - break; - case AST_PredefinedType::PT_any: - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" << be_nl; - // get method (read-only) - *os << "const " << bt->nested_type_name (bu) << " " - << ub->local_name () << " (void) const; // get method\n\n"; - // get method (read/write) - *os << bt->nested_type_name (bu) << " " - << ub->local_name () << " (void); // get method\n\n"; - break; - case AST_PredefinedType::PT_void: - break; - default: - // set method - *os << "void " << ub->local_name () << " (" - << bt->nested_type_name (bu) << ");// set" << be_nl; - // get method - *os << bt->nested_type_name (bu) << " " << ub->local_name () - << " (void) const; // get method\n\n"; - } - return 0; -} - -// visit sequence type -int -be_visitor_union_branch_public_ch::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_SEQUENCE_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_sequence - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_sequence - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - os->indent (); - // set method - *os << "void " << ub->local_name () << " (const " - << bt->nested_type_name (bu) << " &);// set" << be_nl; - // read-only - *os << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const; // get method (read only)" - << be_nl; - // read/write - *os << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void); // get method (read/write only)\n\n"; - - return 0; -} - -// visit string type -int -be_visitor_union_branch_public_ch::visit_string (be_string *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_string - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - os->indent (); - // three methods to set the string value - *os << "void " << ub->local_name () << " (char *); // set" << be_nl; - *os << "void " << ub->local_name () << " (const char *); // set" - << be_nl; - *os << "void " << ub->local_name () << " (const CORBA::String_var&); // set" - << be_nl; - //get method - *os << "const char *" << ub->local_name () - << " (void) const; // get method\n\n"; - return 0; -} - -// visit structure type -int -be_visitor_union_branch_public_ch::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_structure - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_structure - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_structure - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - os->indent (); - // set method - *os << "void " << ub->local_name () << " (const " - << bt->nested_type_name (bu) << " &);// set" << be_nl - // read-only - << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const; // get method (read only)" - << be_nl - // read/write - << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void); // get method (read/write only)\n\n"; - - return 0; -} - -// visit typedefed type -int -be_visitor_union_branch_public_ch::visit_typedef (be_typedef *node) -{ - TAO_OutStream *os; // output stream - - os = this->ctx_->stream (); - os->indent (); // start from current indentation level - this->ctx_->alias (node); // save the node for use in code generation and - // indicate that the union_branch of the union_branch node - // is a typedefed quantity - - // make a decision based on the primitive base type - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_spec_ch::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - this->ctx_->alias (0); - return 0; -} - -// visit union type -int -be_visitor_union_branch_public_ch::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_decl *ub = this->ctx_->node (); // get union branch - be_decl *bu = this->ctx_->scope (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union - " - "bad context information\n" - ), -1); - } - - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the sequence declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CH); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ch::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - os->indent (); - // set method - *os << "void " << ub->local_name () << " (const " - << bt->nested_type_name (bu) << " &);// set" << be_nl - // read-only - << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const; // get method (read only)" - << be_nl - // read/write - << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void); // get method (read/write only)\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp deleted file mode 100644 index 92586787559..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp +++ /dev/null @@ -1,1100 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_ci.cpp -// -// = DESCRIPTION -// Visitor generating code for Union Branch in the client inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, public_ci, "$Id$") - - -// ***************************************************** -// visitor for union_branch in the client inline file -// ***************************************************** - -// constructor -be_visitor_union_branch_public_ci:: -be_visitor_union_branch_public_ci (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_ci:: -~be_visitor_union_branch_public_ci (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_ci:: -visit_union_branch (be_union_branch *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_public_ci::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_enum - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_ARRAY_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_array - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_array - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << " val)// set" << be_nl - << "{" << be_idt_nl; - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old and make a deep copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "_dup (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_slice *" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl; - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_enum (be_enum *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_enum - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << " val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "this->u_." << ub->local_name () << "_ = val;\n"; - } - else - { - // default label - // XXXASG - TODO - } - os->decr_indent (); - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->u_." << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_interface (be_interface *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << "_ptr val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old storage and make a copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "::_duplicate (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_ptr " << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->u_." << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name () - << "_ptr val)// set" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old storage and make a copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "::_duplicate (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_ptr " << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{\n"; - os->incr_indent (); - *os << "return this->u_." << ub->local_name () << "_;\n"; - os->decr_indent (); - *os << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_predefined_type (be_predefined_type *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_interface - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // set method - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (" << bt->name (); - if (node->pt () == AST_PredefinedType::PT_pseudo) - *os << "_ptr"; - *os << " val) // set" << be_nl - << "{" << be_idt_nl; - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old storage and make a copy" << be_nl; - *os << ub->local_name () << "_var = " << bt->name () - << "::_duplicate (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - break; - case AST_PredefinedType::PT_any: - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old and make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - break; - case AST_PredefinedType::PT_void: - break; - default: - *os << "// set the value" << be_nl - << "this->u_." << ub->local_name () << "_ = val;" << be_uidt_nl; - } - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << "_ptr" << be_nl; - *os << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl - << "{" << be_idt_nl - << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - break; - case AST_PredefinedType::PT_any: - // get method with read-only access - *os << "// retrieve the member" << be_nl - << "ACE_INLINE const " << bt->name () << be_nl; - *os << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl - << "{" << be_idt_nl - << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}" << be_nl; - - // get method with read/write access - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << be_nl; - *os << bu->name () << "::" << ub->local_name () - << " (void)" << be_nl - << "{" << be_idt_nl - << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - break; - case AST_PredefinedType::PT_void: - break; - default: - // get method - *os << "// retrieve the member" << be_nl - << "ACE_INLINE " << bt->name () << be_nl; - *os << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl - << "{" << be_idt_nl - << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - } - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - // (1) set from a const - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const " << bt->name () << " &val)" << be_nl - << "{" << be_idt_nl; - - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" - << be_nl; - } - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old and make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // readonly get method - *os << "// readonly get method " << be_nl - << "ACE_INLINE const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl - << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}" << be_nl; - - // read/write get method - *os << "// read/write get method " << be_nl - << "ACE_INLINE " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl - << "{" << be_idt_nl - << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_string (be_string *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_string - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - - // three methods to set the string value - - // (1) set method from char* - os->indent (); // start from current indentation - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () << " (char *val)" - << be_nl - << "{" << be_idt_nl; - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << "CORBA::String_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old and make a deep copy" << be_nl; - *os << ub->local_name () << "_var = CORBA::string_dup (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // (2) set method from const char * - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const char *val)" << be_nl - << "{\n"; - os->incr_indent (); - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "CORBA::String_var " << ub->local_name () - << "_var (val);" << be_nl - << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - - *os << "}" << be_nl; - - // (3) set from const String_var& - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const CORBA::String_var &val)" << be_nl - << "{" << be_idt_nl; - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl - << "CORBA::String_var " << ub->local_name () - << "_var = val;" << be_nl - << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // get method - *os << "ACE_INLINE const char *" << be_nl - << bu->name () << "::" << ub->local_name () - << " (void) const // get method" << be_nl - << "{" << be_idt_nl - << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_structure - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_STRUCT_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_structure - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_structure - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // (1) set from a const - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const " << bt->name () << " &val)" << be_nl - << "{" << be_idt_nl; - - // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" - << be_nl; - } - if (bt->size_type () == be_type::VARIABLE) - { - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old and make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - *os << "this->u_." << ub->local_name () << "_ = val;" << be_uidt_nl; - } - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // readonly get method - *os << "// readonly get method " << be_nl - << "ACE_INLINE const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl; - if (bt->size_type () == be_type::VARIABLE) - *os << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl; - else - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - *os << "}" << be_nl; - - // read/write get method - *os << "// read/write get method " << be_nl - << "ACE_INLINE " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl - << "{" << be_idt_nl; - if (bt->size_type () == be_type::VARIABLE) - *os << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl; - else - *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; - *os << "}\n\n"; - - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_public_ci::visit_union (be_union *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_union - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - - if (bt->node_type () != AST_Decl::NT_typedef // not a typedef - && bt->is_child (bu)) // bt is defined inside the union - { - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope - // is still the same - - // first generate the enum declaration - ctx.state (TAO_CodeGen::TAO_UNION_CI); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_ci::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - } - - // (1) set from a const - *os << "// accessor to set the member" << be_nl - << "ACE_INLINE void" << be_nl - << bu->name () << "::" << ub->local_name () - << " (const " << bt->name () << " &val)" << be_nl - << "{" << be_idt_nl; - os->incr_indent (); // set the discriminant to the appropriate label - if (ub->label ()->label_kind () == AST_UnionLabel::UL_label) - { - // valid label - *os << "// set the discriminant val" << be_nl; - // check if the case label is a symbol or a literal - if (ub->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "this->_reset (" << ub->label ()->label_val ()->n () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val ()->n () - << ";" << be_nl; - } - else - { - *os << "this->_reset (" << ub->label ()->label_val () - << ", 0);" << be_nl; - *os << "this->disc_ = " << ub->label ()->label_val () << ";" << - be_nl; - } - *os << "// set the value" << be_nl; - *os << "// store current val in a _var so as to free it on an assignment" - << be_nl; - *os << bt->name () << "_var " << ub->local_name () << "_var (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "// release old and make a deep copy" << be_nl; - *os << ub->local_name () << "_var = new " << bt->name () - << " (val);" << be_nl; - *os << "// the _var gives up ownership" << be_nl; - *os << "this->u_." << ub->local_name () << "_ = " - << ub->local_name () << "_var._retn ();" << be_uidt_nl; - } - else - { - // default label - // XXXASG - TODO - } - *os << "}" << be_nl; - - // readonly get method - *os << "// readonly get method " << be_nl - << "ACE_INLINE const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl - << "{" << be_idt_nl - << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}" << be_nl; - - // read/write get method - *os << "// read/write get method " << be_nl - << "ACE_INLINE " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl - << "{" << be_idt_nl - << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl - << "}\n\n"; - - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp deleted file mode 100644 index dc958fd4a70..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp +++ /dev/null @@ -1,189 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Union Branch in the client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, public_cs, "$Id$") - - -// ********************************************** -// visitor for union_branch in the client stubs file -// ********************************************** - -// constructor -be_visitor_union_branch_public_cs::be_visitor_union_branch_public_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_cs::~be_visitor_union_branch_public_cs (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_cs::visit_union_branch (be_union_branch *node) -{ - be_type *bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// visit array type -int -be_visitor_union_branch_public_cs::visit_array (be_array *node) -{ - return 0; -} - -// visit enum type -int -be_visitor_union_branch_public_cs::visit_enum (be_enum *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the typcode for enums - ctx.state (TAO_CodeGen::TAO_ENUM_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_enum - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_enum - " - "codegen failed\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit sequence type -int -be_visitor_union_branch_public_cs::visit_sequence (be_sequence *node) -{ - return 0; -} - -// visit string type -int -be_visitor_union_branch_public_cs::visit_string (be_string *node) -{ - return 0; -} - -// visit structure type -int -be_visitor_union_branch_public_cs::visit_structure (be_structure *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for structs - ctx.state (TAO_CodeGen::TAO_STRUCT_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_struct - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_struct - " - "codegen failed\n" - ), -1); - } - delete visitor; - return 0; -} - -// visit union type -int -be_visitor_union_branch_public_cs::visit_union (be_union *node) -{ - // instantiate a visitor context with a copy of our context. This info - // will be modified based on what type of node we are visiting - be_visitor_context ctx (*this->ctx_); - ctx.node (node); // set the node to be the node being visited. The scope is - // still the same - - // generate the inline code for union - ctx.state (TAO_CodeGen::TAO_UNION_CS); - be_visitor *visitor = tao_cg->make_visitor (&ctx); - if (!visitor) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union - " - "Bad visitor\n" - ), -1); - } - if (node->accept (visitor) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_cs::" - "visit_union - " - "codegen failed\n" - ), -1); - } - delete visitor; - return 0; -} diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp deleted file mode 100644 index c2655418141..00000000000 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp +++ /dev/null @@ -1,356 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_reset_cs.cpp -// -// = DESCRIPTION -// Visitor generating code for Union Branch in the client inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#include "idl.h" -#include "idl_extern.h" -#include "be.h" - -#include "be_visitor_union_branch.h" - -ACE_RCSID(be_visitor_union_branch, public_reset_cs, "$Id$") - - -// ***************************************************** -// visitor for union_branch in the client -// stubs file for the reset method -// ***************************************************** - -// constructor -be_visitor_union_branch_public_reset_cs:: -be_visitor_union_branch_public_reset_cs (be_visitor_context *ctx) - : be_visitor_decl (ctx) -{ -} - -// destructor -be_visitor_union_branch_public_reset_cs:: -~be_visitor_union_branch_public_reset_cs (void) -{ -} - -// visit the union_branch node -int -be_visitor_union_branch_public_reset_cs:: -visit_union_branch (be_union_branch *node) -{ - TAO_OutStream *os; - be_type *bt; // union_branch's type - - os = this->ctx_->stream (); - // first generate the type information - bt = be_type::narrow_from_decl (node->field_type ()); - if (!bt) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "Bad union_branch type\n" - ), -1); - } - - this->ctx_->node (node); // save the node - - if (node->label ()->label_val ()->ec () == AST_Expression::EC_symbol) - { - *os << "case " << node->label ()->label_val ()->n () << ":" << be_idt_nl; - } - else - { - *os << "case " << node->label ()->label_val () << ":" << be_idt_nl; - } - - if (bt->accept (this) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_cs::" - "visit_union_branch - " - "codegen for union_branch type failed\n" - ), -1); - } - return 0; -} - -// =visit operations on all possible data types that a union_branch can be - -int -be_visitor_union_branch_public_reset_cs::visit_array (be_array *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_enum - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - *os << bt->name () << "_free (this->u_." << ub->local_name () << "_);" << be_nl; - *os << "break;" << be_uidt_nl; - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_enum (be_enum *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_enum - " - "bad context information\n" - ), -1); - } - - TAO_OutStream *os = this->ctx_->stream (); - *os << "break;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_interface (be_interface *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - *os << "CORBA::release (this->u_." << ub->local_name () << "_);" << be_nl; - *os << "break;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_interface_fwd (be_interface_fwd *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - TAO_OutStream *os = this->ctx_->stream (); - *os << "CORBA::release (this->u_." << ub->local_name () << "_);" << be_nl; - *os << "break;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_predefined_type (be_predefined_type *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_interface - " - "bad context information\n" - ), -1); - } - - TAO_OutStream *os = this->ctx_->stream (); - - switch (node->pt ()) - { - case AST_PredefinedType::PT_pseudo: - *os << "CORBA::release (this->u_." - << ub->local_name () << "_);" << be_nl; - *os << "break;" << be_uidt_nl; - break; - case AST_PredefinedType::PT_any: - *os << "delete this->u_." - << ub->local_name () << "_;" << be_nl; - *os << "break;" << be_uidt_nl; - break; - case AST_PredefinedType::PT_void: - break; - default: - *os << "break;" << be_uidt_nl; - } - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_sequence (be_sequence *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_sequence - " - "bad context information\n" - ), -1); - } - - TAO_OutStream *os = this->ctx_->stream (); - *os << "delete this->u_." << ub->local_name () << "_;" << be_nl; - *os << "break;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_string (be_string *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_string - " - "bad context information\n" - ), -1); - } - - TAO_OutStream *os = this->ctx_->stream (); - *os << "CORBA::string_free (this->u_." << ub->local_name () << "_);" << be_nl; - *os << "break;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_structure (be_structure *node) -{ - TAO_OutStream *os; // output stream - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - be_type *bt; - - // check if we are visiting this node via a visit to a typedef node - if (this->ctx_->alias ()) - bt = this->ctx_->alias (); - else - bt = node; - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_structure - " - "bad context information\n" - ), -1); - } - os = this->ctx_->stream (); - if (bt->size_type () == be_type::VARIABLE) - { - *os << "delete this->u_." << ub->local_name () << "_;" << be_nl; - } - - *os << "break;" << be_uidt_nl; - - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_typedef (be_typedef *node) -{ - this->ctx_->alias (node); // save the typedef node for use in code generation - // as we visit the base type - - // the node to be visited in the base primitve type that gets typedefed - be_type *bt = node->primitive_base_type (); - if (!bt || (bt->accept (this) == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_typedef - " - "Bad primitive type\n" - ), -1); - } - - this->ctx_->alias (0); - return 0; -} - -int -be_visitor_union_branch_public_reset_cs::visit_union (be_union *node) -{ - be_union_branch *ub = - this->ctx_->be_node_as_union_branch (); // get union branch - be_union *bu = - this->ctx_->be_scope_as_union (); // get the enclosing union backend - - if (!ub || !bu) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_union_branch_public_reset_cs::" - "visit_union - " - "bad context information\n" - ), -1); - } - - TAO_OutStream *os = this->ctx_->stream (); - *os << "delete this->u_." << ub->local_name () << "_;" << be_nl; - *os << "break;" << be_uidt_nl; - - return 0; -} diff --git a/TAO/TAO_IDL/be_include/be.h b/TAO/TAO_IDL/be_include/be.h deleted file mode 100644 index 149f38760a9..00000000000 --- a/TAO/TAO_IDL/be_include/be.h +++ /dev/null @@ -1,126 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_BE_HH -#define _BE_BE_HH - -// be.h -// - -#if defined (ACE_WIN32) -#pragma warning(disable:4250) -#endif /* ACE_WIN32 */ - -// ACE includes - -#include "ace/ACE.h" -#include "ace/OS.h" -#include "ace/Singleton.h" -#include "ace/Synch.h" -#include "ace/Log_Msg.h" -#include "ace/Containers.h" -#include "ace/Process.h" - -/* - * BE includes - */ - -#include "be_decl.h" // class BE_Decl -#include "be_scope.h" // class BE_Scope -#include "be_generator.h" // BE generator class -#include "be_type.h" -#include "be_predefined_type.h" // class BE_PredefinedType -#include "be_module.h" // class BE_Module -#include "be_interface.h" // class BE_Interface -#include "be_interface_fwd.h" // class BE_InterfaceFwd -#include "be_structure.h" // class BE_Structure -#include "be_exception.h" // class BE_Exception -#include "be_expression.h" // class BE_Expr_val -#include "be_enum.h" // class BE_Enum -#include "be_operation.h" // class BE_Operation -#include "be_field.h" // class BE_Field -#include "be_argument.h" // class BE_Argument -#include "be_attribute.h" // class BE_Attribute -#include "be_union.h" // class BE_Union -#include "be_union_branch.h" // class BE_UnionBranch -#include "be_union_label.h" // class BE_UnionLabel -#include "be_constant.h" // class BE_Constant -#include "be_enum_val.h" // class BE_EnumVal -#include "be_array.h" // class BE_Array -#include "be_sequence.h" // class BE_Sequence -#include "be_string.h" // class BE_String -#include "be_typedef.h" // class BE_Typedef -#include "be_root.h" // class BE_Root -#include "be_native.h" // class BE_Native - -#include "be_helper.h" // helper functions -#include "be_codegen.h" // code generator -#include "be_factory.h" // factory - -#include "be_visitor.h" // abstract visitor -#include "be_visitor_context.h" // visitor context - -#endif // _BE_BE_HH diff --git a/TAO/TAO_IDL/be_include/be_argument.h b/TAO/TAO_IDL/be_include/be_argument.h deleted file mode 100644 index cbf2e30f249..00000000000 --- a/TAO/TAO_IDL/be_include/be_argument.h +++ /dev/null @@ -1,49 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_argument.h -// -// = DESCRIPTION -// Extension of class AST_Argument that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ARGUMENT_H) -#define BE_ARGUMENT_H - -/* - * BE_Argument - */ -class be_argument : public virtual AST_Argument, - public virtual be_decl -{ -public: - // =Operations - - be_argument (void); - // default constructor - - be_argument (AST_Argument::Direction d, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_argument, AST_Argument, be_decl); - DEF_NARROW_FROM_DECL (be_argument); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_array.h b/TAO/TAO_IDL/be_include/be_array.h deleted file mode 100644 index b2e9dec8d73..00000000000 --- a/TAO/TAO_IDL/be_include/be_array.h +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_array.h -// -// = DESCRIPTION -// Extension of class AST_Array that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ARRAY_H) -#define BE_ARRAY_H - -class TAO_OutStream; - -/* - * BE_Array - */ -class be_array : public virtual AST_Array, - public virtual be_type -{ -public: - // =Operations - - be_array (void); - // default constructor - - be_array (UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims); - // constructor - - ~be_array (void); - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_forany_defn (void); - // the forany class - - virtual int gen_forany_impl (void); - // the forany impl - - virtual int gen_dimensions (TAO_OutStream *os, unsigned short slice=0); - // generate dimensions. If slice == 1, generate dimensions for the slice - // definition - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_array, AST_Array, be_type); - DEF_NARROW_FROM_DECL (be_array); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - - virtual int create_name (void); - // create a name for us - - const char* tao_name (void); - -private: - char* tao_name_; - // We need a name to generate typecodes and other objects, but it - // must be different from the typedef name.... -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_attribute.h b/TAO/TAO_IDL/be_include/be_attribute.h deleted file mode 100644 index 93f7d111279..00000000000 --- a/TAO/TAO_IDL/be_include/be_attribute.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_attribute.h -// -// = DESCRIPTION -// Extension of class AST_Attribute that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ATTRIBUTE_H) -#define BE_ATTRIBUTE_H - -/* - * BE_Attribute - */ -class be_attribute : public virtual AST_Attribute, - public virtual be_decl -{ -public: - // =Operations - - be_attribute (void); - // default constructor - - be_attribute (idl_bool ro, AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_attribute, AST_Attribute, be_decl); - DEF_NARROW_FROM_DECL (be_attribute); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h deleted file mode 100644 index 89c6aa41683..00000000000 --- a/TAO/TAO_IDL/be_include/be_codegen.h +++ /dev/null @@ -1,584 +0,0 @@ -// $Id$ -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_codegen.h -// -// = DESCRIPTION -// The Code generator class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_CODEGEN_H) -#define TAO_BE_CODEGEN_H - -#define NAMEBUFSIZE 1024 -// maximum length of static buffers used to store names - -class TAO_Visitor_Factory; -class be_visitor_context; - -class TAO_CodeGen -{ - // = TITLE - // TAO_CodeGen - // - // = DESCRIPTION - // Holds global parameters for the Back End and generates the C++ mapping - // -public: - - // define all the code generation states. The first letter C/S of the suffix stands - // for client/server-side and the second letter H/I/S stands for - // header/inline/impl file. These are used to denote the state or the context - // of code generation we are in and serves to produce the right kind of - // visitor for us - - enum CG_STATE - { - // initial state - TAO_INITIAL, - - // rest of the state in alphabetical order of the types - - // emitting code for arguments of an operation. No distinction between - // headers, inlines, stubs. - TAO_ARGUMENT_CH, // in client header - TAO_ARGUMENT_CI, // in client inline - TAO_ARGUMENT_CS, // in client stubs - TAO_ARGUMENT_SH, // in server header - TAO_ARGUMENT_SI, // in server inline - TAO_ARGUMENT_SS, // in server skeleton - TAO_ARGUMENT_ARGLIST_CH, // argument in op signature of - // ... client header - TAO_ARGUMENT_ARGLIST_OTHERS, // ... in other cases - TAO_ARGUMENT_PRE_DOCALL_CS, // preprocessing of argument - // variable before passing to - // do_static_call (in stub) - TAO_ARGUMENT_DOCALL_CS, // passing argument variable to do_static_call - TAO_ARGUMENT_POST_DOCALL_CS, // postprocessing of argument - // variable after do_static_call - TAO_ARGUMENT_VARDECL_SS, // declaration of argument - // variable in skeleton (server) - TAO_ARGUMENT_MARSHAL_SS, // passing argument node to the - TAO_ARGUMENT_DEMARSHAL_SS, // demarshal and marshal - // operations - TAO_ARGUMENT_POST_MARSHAL_SS, - TAO_ARGUMENT_PRE_UPCALL_SS, // preprocessing of argument - // variable before upcall - TAO_ARGUMENT_UPCALL_SS, // passing argument variable to upcall - TAO_ARGUMENT_COLLOCATED_UPCALL_SS, // passing argument - // variable to upcall - TAO_ARGUMENT_POST_UPCALL_SS, // postprocessing of argument - // variable after upcall - - // emitting code for attributes. - TAO_ATTRIBUTE_CH, // in client header - TAO_ATTRIBUTE_CS, // in client stubs - TAO_ATTRIBUTE_SH, // in server header - TAO_ATTRIBUTE_SS, // in server skeletons - TAO_ATTRIBUTE_COLLOCATED_SH, // in server header for collocated - TAO_ATTRIBUTE_COLLOCATED_SS, // in server skeletons for - // collocated - - TAO_ATTRIBUTE_RETVAL_DECL_SS, - TAO_ATTRIBUTE_RETVAL_ASSIGN_SS, - TAO_ATTRIBUTE_RETURN_TYPE_CH, - TAO_ATTRIBUTE_INPARAM_TYPE_CH, - TAO_ATTRIBUTE_RETURN_TYPE_CS, - TAO_ATTRIBUTE_RETVAL_DECL_CS, - TAO_ATTRIBUTE_RETVAL_EXCEPTION_CS, - TAO_ATTRIBUTE_RETVAL_RETURN_CS, - TAO_ATTRIBUTE_INPARAM_TYPE_CS, - TAO_ATTRIBUTE_PRE_DOCALL_CS, - TAO_ATTRIBUTE_DOCALL_CS, - TAO_ATTRIBUTE_POST_DOCALL_CS, - TAO_ATTRIBUTE_RETURN_TYPE_SH, - TAO_ATTRIBUTE_INPARAM_TYPE_SH, - TAO_ATTRIBUTE_RESULT_SS, - TAO_ATTRIBUTE_INPARAM_TYPE_SS, - TAO_ATTRIBUTE_PRE_UPCALL_SS, - TAO_ATTRIBUTE_UPCALL_SS, - TAO_ATTRIBUTE_POST_UPCALL_SS, - TAO_ATTRIBUTE_TIE_SH, - TAO_ATTRIBUTE_TIE_SI, - - // emitting code for array defn - TAO_ARRAY_CH, - TAO_ARRAY_CI, - TAO_ARRAY_CS, - - TAO_ARRAY_DEFN_CH, - TAO_ARRAY_DEFN_CI, - TAO_ARRAY_DEFN_CS, - TAO_ARRAY_DEFN_SH, - TAO_ARRAY_DEFN_SI, - TAO_ARRAY_DEFN_SS, - TAO_ARRAY_ANY_OP_CH, - TAO_ARRAY_ANY_OP_CS, - TAO_ARRAY_CDR_OP_CH, - TAO_ARRAY_CDR_OP_CS, - - // emitting code for rest of the array decl - TAO_ARRAY_OTHER_CH, - TAO_ARRAY_OTHER_CI, - TAO_ARRAY_OTHER_CS, - TAO_ARRAY_OTHER_SH, - TAO_ARRAY_OTHER_SI, - TAO_ARRAY_OTHER_SS, - - // emitting code for the constants - TAO_CONSTANT_CH, // in client header - TAO_CONSTANT_CI, // XXXASG rm? - TAO_CONSTANT_CS, // in client stub - - // emitting code for enums - TAO_ENUM_CH, // in client header - TAO_ENUM_CI, // XXXASG rm? - TAO_ENUM_CS, // in client stubs - TAO_ENUM_SH, // XXXASG rm? all 3 - TAO_ENUM_SI, - TAO_ENUM_SS, - TAO_ENUM_ANY_OP_CH, - TAO_ENUM_ANY_OP_CS, - TAO_ENUM_CDR_OP_CH, - TAO_ENUM_CDR_OP_CS, - - // emitting code for exceptions - TAO_EXCEPTION_CH, - TAO_EXCEPTION_CTOR_CH, - TAO_EXCEPTION_CI, - TAO_EXCEPTION_CS, - TAO_EXCEPTION_CTOR_CS, - TAO_EXCEPTION_CTOR_ASSIGN_CS, - TAO_EXCEPTION_SH, - TAO_EXCEPTION_SI, - TAO_EXCEPTION_SS, - TAO_EXCEPTION_ANY_OP_CH, - TAO_EXCEPTION_ANY_OP_CS, - TAO_EXCEPTION_CDR_OP_CH, - TAO_EXCEPTION_CDR_OP_CS, - - // emitting fields i.e., struct members - TAO_FIELD_CH, - TAO_FIELD_CI, - TAO_FIELD_CS, - TAO_FIELD_CDR_OP_CH, - TAO_FIELD_CDR_OP_CS, - - // emitting code for the interface - TAO_INTERFACE_CH, - TAO_INTERFACE_CI, - TAO_INTERFACE_CS, - TAO_INTERFACE_SH, - TAO_INTERFACE_SI, - TAO_INTERFACE_SS, - TAO_INTERFACE_COLLOCATED_SH, - TAO_INTERFACE_COLLOCATED_SS, - TAO_INTERFACE_ANY_OP_CH, - TAO_INTERFACE_ANY_OP_CS, - TAO_INTERFACE_CDR_OP_CH, - TAO_INTERFACE_CDR_OP_CS, - TAO_INTERFACE_TIE_SH, - TAO_INTERFACE_TIE_SI, - - // emitting code for the interface forward declaration - TAO_INTERFACE_FWD_CH, - TAO_INTERFACE_FWD_CI, - - // emitting code for the module - TAO_MODULE_CH, - TAO_MODULE_CI, - TAO_MODULE_CS, - TAO_MODULE_SH, - TAO_MODULE_SI, - TAO_MODULE_SS, - TAO_MODULE_ANY_OP_CH, - TAO_MODULE_ANY_OP_CS, - TAO_MODULE_CDR_OP_CH, - TAO_MODULE_CDR_OP_CS, - - // emitting code for an operation. - TAO_OPERATION_CH, // in client header - TAO_OPERATION_CI, // XXXASG rm? - TAO_OPERATION_CS, // in client stubs - TAO_OPERATION_SH, // in server header - TAO_OPERATION_SI, // XXXASG rm? - TAO_OPERATION_SS, // in server skeletons - TAO_OPERATION_COLLOCATED_SH, // in collocated server header - TAO_OPERATION_COLLOCATED_SS, // in collocated server skel - TAO_OPERATION_RETTYPE_CH, // return type in client header op - // signature - TAO_OPERATION_RETTYPE_OTHERS, // ... in other cases - TAO_OPERATION_RETURN_TYPE_CS, // - TAO_OPERATION_ARGLIST_CH, // parameter list in op signature - // ... for client header - TAO_OPERATION_ARGLIST_SH, // ... for server header - TAO_OPERATION_ARGLIST_COLLOCATED_SH, // ... for collocated server - TAO_OPERATION_ARGLIST_OTHERS, // ... for all other cases - TAO_OPERATION_RETVAL_DECL_CS, // return value variable declaration - TAO_OPERATION_RETVAL_EXCEPTION_CS, // return value on exception (error) - TAO_OPERATION_RETVAL_PRE_DOCALL_CS, // preprocessing for return value - // before sending over the wire - TAO_OPERATION_ARG_PRE_DOCALL_CS, // preprocessing of arguments - // before do_static_call - TAO_OPERATION_RETVAL_DOCALL_CS, // passing the return type - // variable to do_static_call - TAO_OPERATION_ARG_DOCALL_CS, // passing argument variable to do_static_call - TAO_OPERATION_RETVAL_POST_DOCALL_CS, // processing of return type - // after do_static_call - TAO_OPERATION_ARG_POST_DOCALL_CS, // processing of arg after do_static_call - TAO_OPERATION_RETVAL_RETURN_CS, // returning the return type - // variable - TAO_OPERATION_EXCEPTLIST_CS, // generating the exception list - TAO_OPERATION_RETVAL_DECL_SS, // return type decl in skeleton - TAO_OPERATION_ARG_DECL_SS, // argument decl in skeleton - TAO_OPERATION_RETVAL_DEMARSHAL_SS, // passing return type variable - TAO_OPERATION_ARG_DEMARSHAL_SS, // and argument variables to the - TAO_OPERATION_RETVAL_MARSHAL_SS, // marshal and demarshal operations - TAO_OPERATION_ARG_MARSHAL_SS, - TAO_OPERATION_ARG_POST_MARSHAL_SS, - TAO_OPERATION_RETVAL_ASSIGN_SS, // assigning to return type - // variable - TAO_OPERATION_ARG_PRE_UPCALL_SS, // pre upcall processing - TAO_OPERATION_RETVAL_UPCALL_SS, // passing return type var and argument - TAO_OPERATION_ARG_UPCALL_SS, // variables to upcall - TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS, // variables to upcall for - // collocated op - TAO_OPERATION_RETVAL_POST_UPCALL_SS, // post upcall processing for - TAO_OPERATION_ARG_POST_UPCALL_SS, // return and argument variables - TAO_OPERATION_RESULT_SS, // XXXASG rm? - TAO_OPERATION_TIE_SH, - TAO_OPERATION_TIE_SI, - - // for predefined type - TAO_PREDEFINED_TYPE_CH, - TAO_PREDEFINED_TYPE_CI, - TAO_PREDEFINED_TYPE_CS, - - // emitting code for root - TAO_ROOT_CH, - TAO_ROOT_CI, - TAO_ROOT_CS, - TAO_ROOT_SH, - TAO_ROOT_SI, - TAO_ROOT_SS, - TAO_ROOT_ANY_OP_CH, - TAO_ROOT_ANY_OP_CS, - TAO_ROOT_CDR_OP_CH, - TAO_ROOT_CDR_OP_CS, - - // emitting sequences - TAO_SEQUENCE_CH, - TAO_SEQUENCE_CI, - TAO_SEQUENCE_CS, - TAO_SEQUENCE_ANY_OP_CH, - TAO_SEQUENCE_ANY_OP_CS, - TAO_SEQUENCE_CDR_OP_CH, - TAO_SEQUENCE_CDR_OP_CS, - - // emitting code for sequence base type - TAO_SEQUENCE_BASE_CH, - TAO_SEQUENCE_BASE_CI, - TAO_SEQUENCE_BASE_CS, - TAO_SEQUENCE_BASE_SH, - TAO_SEQUENCE_BASE_SI, - TAO_SEQUENCE_BASE_SS, - - // emitting code for sequence body - TAO_SEQUENCE_BODY_CH, - TAO_SEQUENCE_BODY_CI, - TAO_SEQUENCE_BODY_CS, - TAO_SEQUENCE_BODY_SH, - TAO_SEQUENCE_BODY_SI, - TAO_SEQUENCE_BODY_SS, - - // for special sequnce elements - TAO_SEQELEM_RETTYPE_CH, - TAO_SEQELEM_RETTYPE_CI, - TAO_SEQELEM_RETTYPE_CS, - - // for sequence buffer types - TAO_SEQUENCE_BUFFER_TYPE_CH, - TAO_SEQUENCE_BUFFER_TYPE_CI, - TAO_SEQUENCE_BUFFER_TYPE_CS, - - // emitting code for strings - TAO_STRING_CH, - TAO_STRING_CI, - TAO_STRING_CS, - TAO_STRING_SH, - TAO_STRING_SI, - TAO_STRING_SS, - - // emitting code for struct and its members - TAO_STRUCT_CH, - TAO_STRUCT_CI, - TAO_STRUCT_CS, - TAO_STRUCT_ANY_OP_CH, - TAO_STRUCT_ANY_OP_CS, - TAO_STRUCT_CDR_OP_CH, - TAO_STRUCT_CDR_OP_CS, - - // emitting code for typedefs - TAO_TYPEDEF_CH, - TAO_TYPEDEF_CI, - TAO_TYPEDEF_CS, - TAO_TYPEDEF_SH, - TAO_TYPEDEF_SI, - TAO_TYPEDEF_SS, - TAO_TYPEDEF_ANY_OP_CH, - TAO_TYPEDEF_ANY_OP_CS, - TAO_TYPEDEF_CDR_OP_CH, - TAO_TYPEDEF_CDR_OP_CS, - - // emitting code for unions - TAO_UNION_CH, - TAO_UNION_CI, - TAO_UNION_CS, - TAO_UNION_ANY_OP_CH, - TAO_UNION_ANY_OP_CS, - TAO_UNION_CDR_OP_CH, - TAO_UNION_CDR_OP_CS, - - // emitting code for the discriminant - TAO_UNION_DISCTYPEDEFN_CH, - TAO_UNION_DISCTYPEDEFN_CI, - TAO_UNION_DISCTYPEDEFN_CS, - TAO_UNION_DISCTYPEDEFN_SH, - TAO_UNION_DISCTYPEDEFN_SI, - TAO_UNION_DISCTYPEDEFN_SS, - - // emitting code for the public members of the union - TAO_UNION_PUBLIC_CH, - TAO_UNION_PUBLIC_CI, - TAO_UNION_PUBLIC_CS, - TAO_UNION_PUBLIC_ASSIGN_CS, - TAO_UNION_PUBLIC_RESET_CS, - TAO_UNION_PUBLIC_ACCESS_CS, - TAO_UNION_PUBLIC_SH, - TAO_UNION_PUBLIC_SI, - TAO_UNION_PUBLIC_SS, - - // emitting code for private members of the union - TAO_UNION_PRIVATE_CH, - TAO_UNION_PRIVATE_CI, - TAO_UNION_PRIVATE_CS, - TAO_UNION_PRIVATE_SH, - TAO_UNION_PRIVATE_SI, - TAO_UNION_PRIVATE_SS, - - // emitting code for CDR operators for types defined inside unions - TAO_UNION_BRANCH_CDR_OP_CH, - TAO_UNION_BRANCH_CDR_OP_CS, - - // emitting code for typecodes - TAO_TYPECODE_DECL, - TAO_TYPECODE_DEFN, - - // Always must be last - TAO_UNKNOWN - }; - - enum LOOKUP_STRATEGY - { - // various lookup strategies - TAO_LINEAR, - TAO_DYNAMIC_HASH, - TAO_PERFECT_HASH, - TAO_ACTIVE_DEMUX, - TAO_USER_DEFINED - }; - - enum CG_SUB_STATE - { - // sub states - TAO_CDR_INPUT, - TAO_CDR_OUTPUT, - TAO_CDR_SCOPE, - - TAO_SUB_STATE_UNKNOWN - }; - - TAO_CodeGen (void); - // Constructor - - ~TAO_CodeGen (void); - // destructor - - be_visitor *make_visitor (be_visitor_context *); - // Factory that makes the right visitor based on the contex. This - // delegates the task to its factory data member - - int gen_cplusplus_mapping (void); - // generate the C++ mapping for CORBA IDL - - int start_client_header (const char *fname); - // set the client header stream - - int start_client_inline (const char *fname); - // set the client inline stream - - int start_client_stubs (const char *fname); - // set the client stub stream - - int start_server_header (const char *fname); - // set the server header stream - - int start_server_template_header (const char *fname); - // set the server template header stream - - int start_server_inline (const char *fname); - // set the server inline stream - - int start_server_template_inline (const char *fname); - // set the server template inline stream - - int start_server_skeletons (const char *fname); - // set the server skeletons stream - - int start_server_template_skeletons (const char *fname); - // set the server template skeletons stream - - int end_client_header (void); - // generate code at the end such as the <<= and >>= operators alongwith the - // ending #endif statement - - int end_server_header (void); - // put a last #endif in the server header - - int end_server_template_header (void); - // put a last #endif in the server template header - - int end_server_template_skeletons (void); - // put a last #endif in the server skeletons - - TAO_OutStream *client_header (void); - // get the client header stream - - TAO_OutStream *client_stubs (void); - // get the client stubs stream - - TAO_OutStream *client_inline (void); - // get the client inline stream - - TAO_OutStream *server_header (void); - // get the server header stream - - TAO_OutStream *server_template_header (void); - // get the server header template stream - - TAO_OutStream *server_skeletons (void); - // Get the server skeletons stream. - - TAO_OutStream *server_template_skeletons (void); - // get the server template skeletons stream - - TAO_OutStream *server_inline (void); - // get the server inline stream - - TAO_OutStream *server_template_inline (void); - // get the server template inline stream - - void gperf_input_stream (TAO_OutStream *gperf_input); - // Set the gperf input file stream. - - TAO_OutStream *gperf_input_stream (void); - // Retrieve the gperf input stream being used. - - void gperf_input_filename (char *filename); - // Set the gperf input file name. - - char *gperf_input_filename (void); - // Retrieve the gperf input file name being used. - // Name of the temp file used to collect the input for gperf - // program. This is needed coz I do ACE_OS::open on this when I need - // ACE_HANDLE for the file instead FILE*. - - void outstream (TAO_OutStream *os); - // set current out stream - - TAO_OutStream *outstream (void); - // retrieve current out stream being used - - void visitor_factory (TAO_Visitor_Factory *); - // set the visitor factory object - - void node (be_decl *n); - // pass info - - be_decl *node (void); - // retrieve passed info - - const char *upcase (const char *str); - // convert input string to all upcase - - void lookup_strategy (LOOKUP_STRATEGY s); - // Set the lookup strategy. - - TAO_CodeGen::LOOKUP_STRATEGY lookup_strategy (void) const; - // Return the enumerated value for the lookup strategy. Default is - // Dynamic Hashing. - -private: - TAO_OutStream *client_header_; - // client header stream - - TAO_OutStream *client_stubs_; - // client stub file stream - - TAO_OutStream *client_inline_; - // client side inline definitions - - TAO_OutStream *server_header_; - // server header stream - - TAO_OutStream *server_template_header_; - // server header template stream - - TAO_OutStream *server_skeletons_; - // server skeleton stream. - - TAO_OutStream *server_template_skeletons_; - // server skeleton template stream - - TAO_OutStream *server_inline_; - // server side inline file - - TAO_OutStream *server_template_inline_; - // server side template inline file. - - TAO_OutStream *gperf_input_stream_; - // TAO_OutStream to collect the input for gperf program. - - char *gperf_input_filename_; - // Name of the temp file used to collect the input for gperf - // program. This is needed coz I do ACE_OS::open on this when I need - // ACE_HANDLE for the file instead FILE*. - - TAO_OutStream *curr_os_; - // currently used out stream. - - be_decl *node_; - // save current node in this. - - TAO_Visitor_Factory *visitor_factory_; - // visitor factory object. - - LOOKUP_STRATEGY strategy_; - // The enumerated value indicating the lookup strategy. -}; - -typedef ACE_Singleton TAO_CODEGEN; -// Singleton instance of the BE code generator - -extern TAO_CodeGen *tao_cg; // code generator instance which is used everywhere - -#endif /* if !defined */ diff --git a/TAO/TAO_IDL/be_include/be_constant.h b/TAO/TAO_IDL/be_include/be_constant.h deleted file mode 100644 index 75a503e3e19..00000000000 --- a/TAO/TAO_IDL/be_include/be_constant.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_constant.h -// -// = DESCRIPTION -// Extension of class AST_Constant that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_CONSTANT_H) -#define BE_CONSTANT_H - -/* - * BE_Constant - */ -class be_constant : public virtual AST_Constant , public virtual be_decl -{ -public: - // Operations - - be_constant (void); - // constructor - - be_constant (AST_Expression::ExprType et, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - // = helper - char *exprtype_to_string (void); - // returns the appropriate type - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_constant, AST_Constant, be_decl); - DEF_NARROW_FROM_DECL (be_constant); - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_decl.h b/TAO/TAO_IDL/be_include/be_decl.h deleted file mode 100644 index dd534af3940..00000000000 --- a/TAO/TAO_IDL/be_include/be_decl.h +++ /dev/null @@ -1,184 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_decl.h -// -// = DESCRIPTION -// Extension of the AST_Decl class. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_DECL_H) -#define TAO_BE_DECL_H - -class be_scope; -class be_visitor; - -/* - * BE_Decl - */ -class be_decl : public virtual AST_Decl -{ - // = TITLE - // be_decl - // = DESCRIPTION - // The back end extension of the AST_Decl class. Provides an abstract - // interface - // -public: - enum SIZE_TYPE - { - SIZE_UNKNOWN, - FIXED, - VARIABLE - }; - // indicates if we are fixed size or variable. Most useful for structs, - // unions, and arrays. - - // =Operations - - be_decl (void); - // Default constructor - - be_decl (AST_Decl::NodeType type, UTL_ScopedName *n, UTL_StrList *pragmas); - // constructor that sets the node type - - ~be_decl (void); - // destructor - - virtual void size_type (SIZE_TYPE); - // set the size type - - virtual SIZE_TYPE size_type (void); - // return our size type - - const char *fullname (void); - // return the stringified full name - - const char *flatname (void); - // return the flattened full scoped name - - const char *repoID (void); - // retrieve the repository ID - - const char* prefix (void); - // retrive the repository ID prefix - - virtual idl_bool is_nested (void); - // determines if we are inside of a nested scope or not - - virtual int gen_encapsulation (void); - // encapsulation of parameters - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual be_scope *scope (void); - // return the scope created by this node (if one exists) - - // Visiting - virtual int accept (be_visitor *visitor); - - // boolean methods to test if code was already generated - idl_bool cli_hdr_gen (void); - idl_bool cli_stub_gen (void); - idl_bool cli_inline_gen (void); - idl_bool srv_hdr_gen (void); - idl_bool srv_skel_gen (void); - idl_bool srv_inline_gen (void); - idl_bool cli_hdr_any_op_gen (void); - idl_bool cli_stub_any_op_gen (void); - idl_bool cli_hdr_cdr_op_gen (void); - idl_bool cli_stub_cdr_op_gen (void); - - // set the flag indicating that code generation is done - void cli_hdr_gen (idl_bool); - void cli_stub_gen (idl_bool); - void cli_inline_gen (idl_bool); - void srv_hdr_gen (idl_bool); - void srv_skel_gen (idl_bool); - void srv_inline_gen (idl_bool); - void cli_hdr_any_op_gen (idl_bool); - void cli_stub_any_op_gen (idl_bool); - void cli_hdr_cdr_op_gen (idl_bool); - void cli_stub_cdr_op_gen (idl_bool); - - idl_bool is_child (be_decl *node); - // am I a direct child of node? - - // Narrowing - DEF_NARROW_METHODS1 (be_decl, AST_Decl); - DEF_NARROW_FROM_DECL (be_decl); - -protected: - // =helper - - virtual int compute_size_type (void); - // determine our size type and set it if it is unknown - - virtual void compute_fullname (void); - // computes the fully scoped name - - virtual void compute_flatname (void); - // compute the flattened fully scoped name - - virtual void compute_repoID (void); - // computes the repoID - - virtual void compute_prefix (void); - // computes the prefix for the repoID - - virtual int tc_name2long (const char *name, long *&, long &); - // name represented as a padded array of longs - - virtual long repoID_encap_len (void); - // return encapsulation length required to hold repository ID - - virtual long name_encap_len (void); - // return encapsulation length required to hold IDL name - - // variables that indicate if the code generation for that node is already - // been done. This way we avoid regenerating same code. - idl_bool cli_hdr_gen_; - idl_bool cli_stub_gen_; - idl_bool cli_inline_gen_; - idl_bool srv_hdr_gen_; - idl_bool srv_skel_gen_; - idl_bool srv_inline_gen_; - idl_bool cli_hdr_any_op_gen_; - idl_bool cli_stub_any_op_gen_; - idl_bool cli_hdr_cdr_op_gen_; - idl_bool cli_stub_cdr_op_gen_; - - char *fullname_; - // our full scoped name - - char *flatname_; - // flattened fully scoped name - - char *repoID_; - // repository ID - - char *prefix_; - // The repository ID prefix - - SIZE_TYPE size_type_; - // whether we are fixed or variable size (by default fixed) - - long encap_len_; - // encapsulation length - required for typecodes - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_enum.h b/TAO/TAO_IDL/be_include/be_enum.h deleted file mode 100644 index 345f99620c1..00000000000 --- a/TAO/TAO_IDL/be_include/be_enum.h +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum.h -// -// = DESCRIPTION -// Extension of class AST_Enum that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ENUM_H) -#define BE_ENUM_H - -/* - * BE_Enum - */ -class be_enum : public virtual AST_Enum, - public virtual be_scope, - public virtual be_type -{ -public: - // Operations - - be_enum (void); - // default constructor - - be_enum (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_enum, AST_Enum, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_enum); - DEF_NARROW_FROM_SCOPE (be_enum); - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_enum_val.h b/TAO/TAO_IDL/be_include/be_enum_val.h deleted file mode 100644 index 45815eef998..00000000000 --- a/TAO/TAO_IDL/be_include/be_enum_val.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_enum_val.h -// -// = DESCRIPTION -// Extension of class AST_EnumVal that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_ENUM_VAL_H) -#define BE_ENUM_VAL_H - -/* - * BE_EnumVal - */ -class be_enum_val : public virtual AST_EnumVal, - public virtual be_decl -{ -public: - // =Operations - - be_enum_val (void); - // default constructor - - be_enum_val (unsigned long v, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_encapsulation (void); - // generate the typecode - - virtual long tc_encap_len (void); - // return length of encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_enum_val, AST_EnumVal, be_decl); - DEF_NARROW_FROM_DECL (be_enum_val); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_exception.h b/TAO/TAO_IDL/be_include/be_exception.h deleted file mode 100644 index 118272d4065..00000000000 --- a/TAO/TAO_IDL/be_include/be_exception.h +++ /dev/null @@ -1,57 +0,0 @@ -// $Id$ - -#if !defined (BE_EXCEPTION_H) -#define BE_EXCEPTION_H - -/* - * BE_Exception - */ -class be_exception : public virtual AST_Exception, - public virtual be_scope, - public virtual be_type - -{ -public: - // Operations - be_exception (void); - // default constructor - - be_exception (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // =code generation - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_exception, AST_Exception, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_exception); - DEF_NARROW_FROM_SCOPE (be_exception); - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif // end of if !defined (...) diff --git a/TAO/TAO_IDL/be_include/be_expression.h b/TAO/TAO_IDL/be_include/be_expression.h deleted file mode 100644 index 01829d9b3bf..00000000000 --- a/TAO/TAO_IDL/be_include/be_expression.h +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_expression.h -// -// = DESCRIPTION -// Extension of class AST_Expression that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_EXPRESSION_H) -#define BE_EXPRESSION_H - -/* - * BE_Expression - */ -class be_expression : public virtual AST_Expression -{ -public: - // Operations - be_expression (UTL_ScopedName *n); - be_expression (AST_Expression *b, AST_Expression::ExprType t); - be_expression (AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - be_expression (long l); - be_expression (long l, AST_Expression::ExprType t); - be_expression (unsigned long l); - be_expression (String *s); - be_expression (char c); - be_expression (double d); - - // Visiting - virtual int accept (be_visitor *visitor); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_factory.h b/TAO/TAO_IDL/be_include/be_factory.h deleted file mode 100644 index bbbcf47f3d9..00000000000 --- a/TAO/TAO_IDL/be_include/be_factory.h +++ /dev/null @@ -1,72 +0,0 @@ -// $Id$ - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_factory.h -// -// = DESCRIPTION -// Defines a factory that returns a specialized output stream object that -// understands a specific Front End -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_FACTORY_H) -#define TAO_BE_FACTORY_H - -class TAO_Visitor_Factory -{ - // =TITLE - // TAO_Visitor_Factory - // - // =DESCRIPTION - // Abstract factory that creates visitors -public: - virtual ~TAO_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *) = 0; - // create the right visitor - -}; - -class TAO_OutStream_Factory -{ - // =TITLE - // TAO_OutStream_Factory - // =DESCRIPTION - // factory to produce specialized instances of the output stream objects -public: - enum TAO_OutStream_Type - { - TAO_SUNSOFT, - TAO_FLICK - }; - - TAO_OutStream_Factory (void); - // constructor - - ~TAO_OutStream_Factory (void); - // destructor - - TAO_OutStream *make_outstream (void); - // make the specialized out stream class - - int set_stream_type (TAO_OutStream_Type t); - // set the stream type - -private: - TAO_OutStream_Type strm_type_; -}; - -typedef ACE_Singleton TAO_OUTSTREAM_FACTORY; -// Singleton instance of the OutStream factory - -#endif /* if !defined _TAO_BE_FACTORY_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_field.h b/TAO/TAO_IDL/be_include/be_field.h deleted file mode 100644 index b5802574bad..00000000000 --- a/TAO/TAO_IDL/be_include/be_field.h +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_field.h -// -// = DESCRIPTION -// Extension of class AST_Field that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_FIELD_H) -#define BE_FIELD_H - -/* - * BE_Field - */ -class be_field : public virtual AST_Field, - public virtual be_decl -{ -public: - // =Operations - - be_field (void); - // default constructor - - be_field (AST_Type *ft, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_encapsulation (void); - // generate the typecode - - virtual long tc_encap_len (void); - // return the total byte length of ourselves represented as an encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_field, AST_Field, be_decl); - DEF_NARROW_FROM_DECL (be_field); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_generator.h b/TAO/TAO_IDL/be_include/be_generator.h deleted file mode 100644 index a4d6d22f636..00000000000 --- a/TAO/TAO_IDL/be_include/be_generator.h +++ /dev/null @@ -1,166 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_GENERATOR_BE_GENERATOR_HH -#define _BE_GENERATOR_BE_GENERATOR_HH - -// be_generator.hh -// -// Defines BE class for generator -// -// This defines the same protocol as the AST_Generator class but actually -// is implemented to create nodes of AST classes subclassed in this BE - -/* -** DEPENDENCIES: AST_Generator.h -** -** USE: Included from be.h -*/ - -class be_generator : public AST_Generator { -public: - virtual AST_Root *create_root(UTL_ScopedName *n, - UTL_StrList *p); - // Create a node representing a module which is the root of an AST made up of - // BE nodes - - // Operations - virtual AST_PredefinedType - *create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - - virtual AST_Module *create_module(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Interface *create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - virtual AST_InterfaceFwd *create_interface_fwd(UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Exception *create_exception(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Structure *create_structure(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Enum *create_enum(UTL_ScopedName *n, UTL_StrList *p); - virtual AST_Operation *create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Field *create_field(AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Argument *create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Attribute *create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Union *create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_UnionBranch *create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_UnionLabel *create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv); - virtual AST_Constant *create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p); - - virtual AST_Expression *create_expr(UTL_ScopedName *n); - virtual AST_Expression *create_expr(AST_Expression *v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - virtual AST_Expression *create_expr(long v); - virtual AST_Expression *create_expr(long v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(unsigned long v); - virtual AST_Expression *create_expr(String *s); - virtual AST_Expression *create_expr(char c); - virtual AST_Expression *create_expr(double d); - - virtual AST_EnumVal *create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p); - virtual AST_Array *create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims); - virtual AST_Sequence *create_sequence(AST_Expression *v, AST_Type *bt); - virtual AST_String *create_string(AST_Expression *v); - virtual AST_String *create_wstring(AST_Expression *v); - virtual AST_Typedef *create_typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p); - // Create a node representing a native - virtual AST_Native *create_native (UTL_ScopedName *n, - UTL_StrList *p); - -}; - -#endif // _BE_GENERATOR_BE_GENERATOR_HH diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h deleted file mode 100644 index 1042e5d8ef6..00000000000 --- a/TAO/TAO_IDL/be_include/be_helper.h +++ /dev/null @@ -1,194 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_helper.h -// -// = DESCRIPTION -// Defines the abstract class for outputting the C++ mapping. This is a -// helper class to the singleton TAO_CodeGen class -// -// = AUTHOR -// Aniruddha Gokhale -// -// Improvements by Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_OUTSTRM_H) -#define TAO_BE_OUTSTRM_H - -// a dummy structure to inform TAO_OutStream's << operator to put a newline -// and use the current indentation for the succeeding line -struct TAO_NL -{ -public: - TAO_NL (void); -}; - -struct TAO_INDENT -{ - // = TITLE - // Operates like a manipulator, increasing the indentation level. - // - // = DESCRIPTION - // Increase the indentation level, if the "do_now" parameter is - // not zero then the method is called on the stream. - // - TAO_INDENT (int do_now = 0); - - const int do_now_; -}; - -struct TAO_UNINDENT -{ - // = TITLE - // Operates like a manipulator, decreasing the indentation level. - // - // = DESCRIPTION - // Decrease the indentation level, if the "do_now" parameter is - // not zero then the method is called on the stream. - // - TAO_UNINDENT (int do_now = 0); - - const int do_now_; -}; - -extern const TAO_NL be_nl; -extern const TAO_INDENT be_idt; -extern const TAO_INDENT be_idt_nl; -extern const TAO_UNINDENT be_uidt; -extern const TAO_UNINDENT be_uidt_nl; - -class TAO_OutStream -{ - // =TITLE - // TAO_OutStream - // - // =DESCRIPTION - // Defines an interface by which the backend code generator can - // print its output to the underlying I/O handle. This is a - // helper class that will be used by the TAO_CodeGen - // class. However, this is an abstract class and classes that - // understand specific front ends must derive from this class. -public: - - // Enumerated type to indicate the stream type - enum STREAM_TYPE - { - TAO_CLI_HDR, - TAO_CLI_INL, - TAO_CLI_IMPL, - TAO_SVR_HDR, - TAO_SVR_TMPL_HDR, - TAO_SVR_INL, - TAO_SVR_TMPL_INL, - TAO_SVR_IMPL, - TAO_SVR_TMPL_IMPL, - TAO_GPERF_INPUT - }; - - TAO_OutStream (void); - // constructor. - - virtual ~TAO_OutStream (void); - // destructor. - - int open (const char *fname, - TAO_OutStream::STREAM_TYPE st=TAO_OutStream::TAO_CLI_HDR); - // open the underlying low-level handle for output. - - void stream_type (TAO_OutStream::STREAM_TYPE); - // set the stream type - - TAO_OutStream::STREAM_TYPE stream_type (void); - // return the stream type - - FILE *file (void); - // Return the underlying lowlevel file pointer. - - int incr_indent (unsigned short flag=1); - // increment the indentation level and by default actually indent the output - // accordingly - - int decr_indent (unsigned short flag=1); - // decrease the indentation level and by default actually indent the output - // accordingly - - int reset (void); - // reset indentation level to 0 - - int indent (void); - // indent starting next line - - int nl (void); - // put a newline and indent on the next line - - int print (const char *format, ...); - // "printf" style variable argument print - - int gen_ifdef_macro (const char *flatname, const char *suffix=0); - // generate a #if !defined, #defined macro - - int gen_endif (void); - // generate an endif statement - - int gen_ifdef_AHETI (void); - // generate the ACE_HAS_EXPLICIT... ifdef - - int gen_else_AHETI (void); - // generate the ACE_HAS_EXPLICIT... else - - int gen_endif_AHETI (void); - // generate the ACE_HAS_EXPLICIT... endif - - // =overloaded operators - - TAO_OutStream &operator<< (const char *str); - // output the char string and return a reference to ourselves - - TAO_OutStream &operator<< (const long num); - // output the integer and return a reference to ourselves - - // = MANIPULATORS - - TAO_OutStream &operator<< (const TAO_NL& nl); - TAO_OutStream &operator<< (const TAO_INDENT& i); - TAO_OutStream &operator<< (const TAO_UNINDENT& i); - - // The following will be provided by specialized classes - - TAO_OutStream &operator<< (Identifier *id); - // output an Identifier node - - TAO_OutStream &operator<< (UTL_IdList *idl); - // output a scoped name - - TAO_OutStream &operator<< (AST_Expression *expr); - // output an AST_Expression node - - // provided by specialized classes - virtual TAO_OutStream &print (Identifier *id) = 0; - - virtual TAO_OutStream &print (UTL_IdList *idl) = 0; - - virtual TAO_OutStream &print (AST_Expression *idl) = 0; - -protected: - FILE *fp_; - // the underlying low-level I/O handle - - TAO_OutStream::STREAM_TYPE st_; - // stream type - - int indent_level_; - // indentation level - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h deleted file mode 100644 index cb9f7bf5971..00000000000 --- a/TAO/TAO_IDL/be_include/be_interface.h +++ /dev/null @@ -1,227 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_INTERFACE_H) -#define TAO_BE_INTERFACE_H - -class TAO_OutStream; - -/* - * BE_Interface - */ -class be_interface : public virtual AST_Interface, - public virtual be_scope, - public virtual be_type -{ - // = TITLE - // The back end extension of the AST_Interface class - // - // = DESCRIPTION - // -public: - - // used to pass functions to the template method - typedef int (*tao_code_emitter) (be_interface *, be_interface *, TAO_OutStream *); - - // Operations - be_interface (void); - // Default constructor - - be_interface (UTL_ScopedName *n, AST_Interface **ih, long nih, - UTL_StrList *p); - // Constructor that sets its scoped name , a list of inherited interfaces - // , the number of inherited interfaces , and any prgmas

- - ~be_interface (void); - // dtor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - const char *full_skel_name (void); - // retrieve the fully scoped skel class name - - // - // Each interface (to fix names "T") also defines two help classes, - // the "collocated" class inherits from T, but delegates on the - // skeleton for T (usually POA_T or POA_ModuleName::T), in other - // words it is a Bridge from T to its implementation. - // The class is nested inside the skeleton class. - // - // The "stub" is a class defined on the client scope, it actually - // defines the stubs (all operations in T are pure virtual). - // @@ TODO currently the stub class is not implemented. - // - const char *full_coll_name (void); - // retrieve the fully qualified collocated class name - - const char *local_coll_name (void) const; - // retrieve the fully qualified collocated class name - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int traverse_inheritance_graph (tao_code_emitter gen, - TAO_OutStream *os); - // template method using breadth first traversal of inheritance graph - - const char *relative_skel_name (const char *other_class_name); - // relative skeleton name - - const char *relative_coll_name (const char *other_class_name); - // relative name for collocated class. - - int in_mult_inheritance (void); - // am I in some form of multiple inheritance - // -1 => error - // 0 => no - // 1 => yes - - void in_mult_inheritance (int mi); - // set a new value - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_interface, AST_Interface, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_interface); - DEF_NARROW_FROM_SCOPE (be_interface); - - static int is_a_helper (be_interface *, be_interface *, TAO_OutStream *os); - // helper method passed to the template method that generates code for the - // is_a method - - static int downcast_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method that generates code for the - // downcast. - - static int gen_optable_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to generate code for the - // operation table - - static int gen_skel_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to generate code for the - // skeletons in the inline file - - static int collocated_ctor_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to invoke ctors of all the - // base classes. - - static int copy_ctor_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method passed to the template method to invoke ctors of all the - // base classes. - - static int in_mult_inheritance_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method to determine if the interface node is involved in some kind - // of multiple inheritance or not. Required on the skeleton side - - void compute_fullskelname (void); - // compute the fully scoped skel class name - - int gen_operation_table (void); - // generate the operation table including entries for inherited interfaces - - static const char *relative_name (const char* our_name, - const char *other_class_name); - // relative name for collocated class. - - int gen_optable_entries (be_interface *); - // generate the operation table entries. - - void compute_coll_name (void); - // compute the fully qualified collocated class name. - -private: - void gen_gperf_input_header (TAO_OutStream *ss); - // Output the header (type declaration and %%) to the gperf's input - // file. - - int gen_perfect_hash_optable (void); - // Generate the perfect hash table code by running the gperf - // program. Returns 0 on sucess, -1 on error. - - void gen_perfect_hash_class_definition (void); - // Outputs the class definition for the perfect hashing. This class - // will inherit from the TAO_Perfect_Hash_OpTable. - - int gen_perfect_hash_methods (void); - // This calls the GPERF program and gets the perfect hashing methods - // from it. - - void gen_perfect_hash_instance (); - // Create an instance of this perfect hash table. - -#if 0 - void cleanup_gperf_temp_file (); - // Delete the stream and filename for this temp file and also remove - // the temperary gperf's input file from the disk. -#endif /* 0 */ - - char *full_skel_name_; - // Fully scoped skeleton name. - - int skel_count_; - // Number of static skeletons in the operation table. - - char *full_coll_name_; - // full collocated name - - char *local_coll_name_; - // local collocated name - - int in_mult_inheritance_; - // am I directly or indirectly involved in a multiple inheritance. If the - // value is -1 => not computed yet. -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interface_fwd.h b/TAO/TAO_IDL/be_include/be_interface_fwd.h deleted file mode 100644 index db325a152bf..00000000000 --- a/TAO/TAO_IDL/be_include/be_interface_fwd.h +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_interface.h -// -// = DESCRIPTION -// Extension of class AST_Interface_Fwd that provides additional means for C++ -// mapping of an interface. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_INTERFACE_FWD_H) -#define BE_INTERFACE_FWD_H - -/* - * BE_InterfaceFwd - */ -class be_interface_fwd : public virtual AST_InterfaceFwd, - public virtual be_type -{ - // =TITLE - // be_interface_fwd - // =DESCRIPTION - // Extensions to the AST_Interface_Fwd class -public: - // Operations - - be_interface_fwd (void); - // default constructor - - be_interface_fwd (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void); - // generate the typecode - - virtual long tc_size (void); - // return typecode size - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_interface_fwd, AST_InterfaceFwd, be_type); - DEF_NARROW_FROM_DECL (be_interface_fwd); - -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_interpretive.h b/TAO/TAO_IDL/be_include/be_interpretive.h deleted file mode 100644 index e6312b8d2cd..00000000000 --- a/TAO/TAO_IDL/be_include/be_interpretive.h +++ /dev/null @@ -1,40 +0,0 @@ -// $Id$ - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL Backend -// -// = FILENAME -// be_interpretive_visitor.h -// -// = DESCRIPTION -// Defines a factory that returns a specialized visitor object based on the -// code generation state. The visitors returned by this factory generate -// stubs and skeletons that use interpretive form of marshaling -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -class TAO_Interpretive_Visitor_Factory: public TAO_Visitor_Factory -{ - // =TITLE - // TAO_Visitor_Factory - // - // =DESCRIPTION - // Factory that creates visitors that generate stubs/skeletons for - // interpretive form of marshaling -public: - TAO_Interpretive_Visitor_Factory (void); - // constructor - - virtual ~TAO_Interpretive_Visitor_Factory (void); - // destructor - - virtual be_visitor *make_visitor (be_visitor_context *); - // create the right visitor - -}; diff --git a/TAO/TAO_IDL/be_include/be_module.h b/TAO/TAO_IDL/be_include/be_module.h deleted file mode 100644 index 68190f9406b..00000000000 --- a/TAO/TAO_IDL/be_include/be_module.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_module.h -// -// = DESCRIPTION -// Extension of class AST_Module that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_MODULE_H) -#define _BE_MODULE_H - -/* - * BE_Module - */ - -class be_module : public virtual AST_Module, - public virtual be_scope, - public virtual be_decl -{ -public: - // =Operations - - be_module (void); - // default constructor - - be_module (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_module, AST_Module, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_module); - DEF_NARROW_FROM_SCOPE (be_module); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_native.h b/TAO/TAO_IDL/be_include/be_native.h deleted file mode 100644 index e049c3d308c..00000000000 --- a/TAO/TAO_IDL/be_include/be_native.h +++ /dev/null @@ -1,55 +0,0 @@ -// $Id$ - -// Id -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_native.h -// -// = DESCRIPTION -// The native IDL type -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - - -#if !defined (BE_NATIVE_H) -#define BE_NATIVE_H - -// Representation of "native" IDL type added by the POA spec - -class be_native : public virtual AST_Native, public virtual be_type -{ -public: - // =Operations - - // Constructor(s) - be_native (void); - // default constructor - - be_native(UTL_ScopedName *n, UTL_StrList *p); - // constructor that initializes its scoped name - - virtual ~be_native (void) {} - // destructor - - virtual int gen_typecode (void); - // generate the typecode description - - virtual long tc_size (void); - // return typecode size - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2(be_native, AST_Native, be_type); - DEF_NARROW_FROM_DECL(be_native); -}; - -#endif /* BE_NATIVE_H */ diff --git a/TAO/TAO_IDL/be_include/be_operation.h b/TAO/TAO_IDL/be_include/be_operation.h deleted file mode 100644 index 21859abdd96..00000000000 --- a/TAO/TAO_IDL/be_include/be_operation.h +++ /dev/null @@ -1,78 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_operation.h -// -// = DESCRIPTION -// Extension of class AST_Operation that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_OPERATION_H) -#define BE_OPERATION_H - -class be_argument; - -/* - * BE_Operation - */ -class be_operation : public virtual AST_Operation, - public virtual be_scope, - public virtual be_decl -{ -public: - // =Operations - - be_operation (void); - // default constructor - - be_operation (AST_Type *rt, AST_Operation::Flags fl, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int argument_count (void); - // return the count of members - - virtual int has_native (void); - // Any of the arguments or the return value is a type. - // This is important because in that case no code should be - // generated for the stubs. - - be_argument *add_argument_to_scope (be_argument *arg); - // add an argument to the scope - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_operation, AST_Operation, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_operation); - DEF_NARROW_FROM_SCOPE (be_operation); - -protected: - //=helper - int compute_size_type (void); - // compute the size type if it is unknown - - int compute_argument_attr (void); - // count the number of arguments - - int argument_count_; - // number of arguments - - int has_native_; - // Is any argument of type native. -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_predefined_type.h b/TAO/TAO_IDL/be_include/be_predefined_type.h deleted file mode 100644 index 76cc10680e2..00000000000 --- a/TAO/TAO_IDL/be_include/be_predefined_type.h +++ /dev/null @@ -1,79 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_predefined_type.h -// -// = DESCRIPTION -// Extension of class AST_PredefinedType that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_PREDEFINED_TYPE_H) -#define _BE_PREDEFINED_TYPE_H - -// be_classes.hh -// -// Defines all classes for dummy BE - -/* - * BE_PredefinedType - */ -class be_predefined_type : public virtual AST_PredefinedType, - public virtual be_type -{ -public: - // =Operations - - be_predefined_type (void); - // default constructor - - be_predefined_type (AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int gen_typecode (void); - // generate the typecode - - virtual long tc_size (void); - // return typecode size - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_encap_len (void); - // return length of encapsulation - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_predefined_type, AST_PredefinedType, be_type); - DEF_NARROW_FROM_DECL (be_predefined_type); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - - virtual void compute_tc_name (void); - // overridden method - - virtual void compute_repoID (void); - // The object and TypeCode repository IDs have a mandatory omg.org - // prefix, but the default compute_repoID() uses the #pragma's to - // obtain preffixes. -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_root.h b/TAO/TAO_IDL/be_include/be_root.h deleted file mode 100644 index d0d1221b7f2..00000000000 --- a/TAO/TAO_IDL/be_include/be_root.h +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_root.h -// -// = DESCRIPTION -// Extension of class AST_Root that provides the backend -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_ROOT_H) -#define TAO_BE_ROOT_H - -class be_root : public virtual AST_Root, - public virtual be_scope, - public virtual be_decl -{ - // = TITLE - // The back end extension of the AST_Root class - // - // = DESCRIPTION - // -public: - // Operations - be_root (void); - // Default constructor - - be_root (UTL_ScopedName *n, UTL_StrList *p); - // Constructor that sets its scoped name , and any pragmas

- - // =Scope management functions that override the AST scope management methods - // since the AST methods set the names of the sequences, strings, and arrays - // to a fixed value which interferes with our back-end code generation - AST_Sequence *fe_add_sequence (AST_Sequence *); - AST_String *fe_add_string (AST_String *); - AST_Array *fe_add_array (AST_Array *); - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_root, AST_Root, be_scope, be_decl); - DEF_NARROW_FROM_DECL (be_root); - DEF_NARROW_FROM_SCOPE (be_root); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_scope.h b/TAO/TAO_IDL/be_include/be_scope.h deleted file mode 100644 index 0378a5dec80..00000000000 --- a/TAO/TAO_IDL/be_include/be_scope.h +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_scope.h -// -// = DESCRIPTION -// Extension of the UTL_Scope CFE class -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_SCOPE_H) -#define TAO_BE_SCOPE_H - -class be_decl; - -/* - * BE_Scope - */ -class be_scope : public virtual UTL_Scope -{ - // = TITLE - // be_scope - // = DESCRIPTION - // The back end extension of the UTL_Scope class - // -public: - // Operations - - be_scope (void); - // Default constructor - - be_scope (AST_Decl::NodeType nt); - // constructor that sets the node type - - virtual ~be_scope (void); - // destructor - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual void comma (unsigned short set); - // set the comma producing state - - int comma (void) const; - // get the comma producing state - - virtual be_decl *decl (void); - // return the be_decl node corresponding to this scope node - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS1 (be_scope, UTL_Scope); - DEF_NARROW_FROM_SCOPE (be_scope); - -private: - unsigned short comma_; - // if set, generate a comma after every element is handled -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h deleted file mode 100644 index 3bd5ac71433..00000000000 --- a/TAO/TAO_IDL/be_include/be_sequence.h +++ /dev/null @@ -1,111 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sequence.h -// -// = DESCRIPTION -// Extension of class AST_Sequence that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_SEQUENCE_H) -#define BE_SEQUENCE_H - -/* - * BE_Sequence - */ - -class be_typedef; - -// A sequence in OMG IDL does not define a scoping construct just as a struct -// or union or an interface do. However, in the C++ mapping, a sequence becomes -// a class. If the base type of a sequence is another anonymous sequence, then -// the base type is defined in the scope of this sequence. Hence we define -// be_sequence to possess the additional characteristics of a scope -class be_sequence : public virtual AST_Sequence, - public virtual be_scope, - public virtual be_type -{ -public: - enum MANAGED_TYPE - { - MNG_UNKNOWN , - MNG_NONE, - MNG_STRING, - MNG_OBJREF, - MNG_PSEUDO - }; - - // =Operations - - be_sequence (void); - // default constructor - - be_sequence (AST_Expression *v, AST_Type *bt); - // constructor - - virtual int create_name (be_typedef *node=0); - // create a name for ourselves. If we are typedefed, then we get the name of - // the typedef node, else we generate a name for ourselves - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual MANAGED_TYPE managed_type (void); - // return the managed type - - virtual idl_bool unbounded (void) const; - // is this sequence bounded or not - - // =Scope management functions - virtual AST_Sequence *fe_add_sequence (AST_Sequence *); - - virtual be_decl *decl (void); - // overridden method on the be_scope class - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_sequence, AST_Sequence, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_sequence); - - const char *instance_name (); - // report the instance name for instantiation - - const char *object_manager_name (); - // report the object manager name for the sequence of objects - -protected: - virtual char *gen_name (void); - // helper to create_name - -private: - idl_bool unbounded_; - // whether we are bounded or unbounded - - MANAGED_TYPE mt_; - // our managed type -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_state.h b/TAO/TAO_IDL/be_include/be_state.h deleted file mode 100644 index 48284bd7813..00000000000 --- a/TAO/TAO_IDL/be_include/be_state.h +++ /dev/null @@ -1,296 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_state.h -// -// = DESCRIPTION -// The Code generator state class and its subclasses -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_STATE_H) -#define TAO_BE_STATE_H - -class be_state -{ - // =TITLE - // be_state - // =DESCRIPTION - // Emits code based on current state. This is an abstract base class. The - // task of code generation is handled by subclasses. -public: - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0) = 0; - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef - - virtual ~be_state (void); - // destructor - -protected: - be_state (void); - // constructor -}; - -// ============== subclasses ==================== - -class be_state_struct : public be_state -{ - // =TITLE - // be_state_struct - // =DESCRIPTION - // struct generation -public: - - be_state_struct (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton TAO_BE_STATE_STRUCT; - -class be_state_union_disctypedefn_ch: public be_state -{ - // =TITLE - // be_state_union_disctypedefn_ch - // =DESCRIPTION - // union discriminant defn generation in client header -public: - - be_state_union_disctypedefn_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_DISCTYPEDEFN_CH; - -class be_state_union_disctypedefn_ci: public be_state -{ - // =TITLE - // be_state_union_disctypedefn_ci - // =DESCRIPTION - // union discriminant defn generation in client inline file -public: - - be_state_union_disctypedefn_ci (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_DISCTYPEDEFN_CI; - -class be_state_union_public_ch: public be_state -{ - // =TITLE - // be_state_union_public_ch - // =DESCRIPTION - // union discriminant defn generation in client header file -public: - - be_state_union_public_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PUBLIC_CH; - -class be_state_union_public_ci: public be_state -{ - // =TITLE - // be_state_union_public_ci - // =DESCRIPTION - // union discriminant defn generation in client inline file -public: - - be_state_union_public_ci (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PUBLIC_CI; - -class be_state_union_private_ch: public be_state -{ - // =TITLE - // be_state_union_private_ch - // =DESCRIPTION - // union discriminant defn generation in client header file -public: - - be_state_union_private_ch (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PRIVATE_CH; - -class be_state_union_public_cs: public be_state -{ - // =TITLE - // be_state_union_public_cs - // =DESCRIPTION - // union discriminant defn generation in client stubs file -public: - - be_state_union_public_cs (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_UNION_PUBLIC_CS; - -class be_state_operation: public be_state -{ - // =TITLE - // be_state_operation - // =DESCRIPTION - // operation return type -public: - - be_state_operation (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_OPERATION; - -class be_state_argument: public be_state -{ - // =TITLE - // be_state_argument - // =DESCRIPTION - // argument return type -public: - - be_state_argument (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_ARGUMENT; - -class be_state_typedef: public be_state -{ - // =TITLE - // be_state_typedef - // =DESCRIPTION - // typedef code generation -public: - - be_state_typedef (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_TYPEDEF; - -class be_state_array: public be_state -{ - // =TITLE - // be_state_array - // =DESCRIPTION - // array code generation -public: - - be_state_array (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_ARRAY; - -class be_state_sequence: public be_state -{ - // =TITLE - // be_state_sequence - // =DESCRIPTION - // sequence code generation -public: - - be_state_sequence (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third parameter is - // used for recursive invocation involving a typedef -}; -typedef ACE_Singleton - TAO_BE_STATE_SEQUENCE; - -class be_state_attribute : public be_state -{ - // =TITLE - // be_state_attribute - // =DESCRIPTION - // attribute code generation -public: - be_state_attribute (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third - // parameter is used for recursive invocation involving a typedef -}; - -typedef ACE_Singleton - TAO_BE_STATE_ATTRIBUTE; - -class be_state_exception : public be_state -{ - // =TITLE - // be_state_exception - // =DESCRIPTION - // exception code generation -public: - be_state_exception (void); - // constructor - - virtual int gen_code (be_type *bt, be_decl *d, be_type *type=0); - // code generation for node "d" whose type is "bt". The third - // parameter is used for recursive invocation involving a typedef -}; - -typedef ACE_Singleton - TAO_BE_STATE_EXCEPTION; - -#endif /* end of be_state */ diff --git a/TAO/TAO_IDL/be_include/be_string.h b/TAO/TAO_IDL/be_include/be_string.h deleted file mode 100644 index 7d1067d8d5c..00000000000 --- a/TAO/TAO_IDL/be_include/be_string.h +++ /dev/null @@ -1,67 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_string.h -// -// = DESCRIPTION -// Extension of class AST_String that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_STRING_H) -#define BE_STRING_H - -/* - * BE_String - */ -class be_string : public virtual AST_String, - public virtual be_type -{ -public: - // Operations - - be_string (void); - // default constructor - - be_string (AST_Expression *v); - // constructor - - be_string (AST_Expression *v, long wide); - // constructor - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_string, AST_String, be_type); - DEF_NARROW_FROM_DECL (be_string); - -protected: - virtual void compute_tc_name (void); - // overridden method to compute typecode name -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_structure.h b/TAO/TAO_IDL/be_include/be_structure.h deleted file mode 100644 index 06d7ea5af1f..00000000000 --- a/TAO/TAO_IDL/be_include/be_structure.h +++ /dev/null @@ -1,91 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_structure.h -// -// = DESCRIPTION -// Extension of class AST_Structure that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_STRUCTURE_H) -#define BE_STRUCTURE_H - -/* - * BE_Structure - */ -class be_structure : public virtual AST_Structure, - public virtual be_scope, - public virtual be_type -{ -public: - // =Operations - - be_structure (void); - // default constructor - - be_structure (UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_structure, AST_Structure, be_scope, be_type); - DEF_NARROW_FROM_DECL (be_structure); - DEF_NARROW_FROM_SCOPE (be_structure); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int member_count_; - // number of members -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_sunsoft.h b/TAO/TAO_IDL/be_include/be_sunsoft.h deleted file mode 100644 index 15b9b9a2568..00000000000 --- a/TAO/TAO_IDL/be_include/be_sunsoft.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- c++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_sunsoft.h -// -// = DESCRIPTION -// SunSoft specific backend output generation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_HELPER_H) -#define TAO_BE_HELPER_H - -class TAO_SunSoft_OutStream : public TAO_OutStream -{ - // =TITLE - // TAO_SunSoft_OutStream - // =DESCRIPTION - // Backend specific to SunSoft AST nodes -public: - TAO_SunSoft_OutStream (void); - // constructor - - ~TAO_SunSoft_OutStream (void); - // destuctor - - virtual TAO_OutStream &print (Identifier *id); - // output the SunSoft IDL Identifier Node - - virtual TAO_OutStream &print (UTL_IdList *idl); - // output the SunSoft IDL UTL_IdList Node which is usually used to maintain a - // scoped name - - virtual TAO_OutStream &print (AST_Expression *expr); - // output the contents of the AST_Expression node -}; - -#endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_type.h b/TAO/TAO_IDL/be_include/be_type.h deleted file mode 100644 index 20caba78b32..00000000000 --- a/TAO/TAO_IDL/be_include/be_type.h +++ /dev/null @@ -1,95 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_type.h -// -// = DESCRIPTION -// Extension of class AST_Type that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_TYPE_H) -#define BE_TYPE_H - -class TAO_OutStream; - -/* - * BE_Type - */ -class be_type : public virtual AST_Type, - public virtual be_decl -{ -public: - // =Operations - - be_type (void); - // default constructor - - be_type (AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual ~be_type (void); - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void) = 0; - // generate the typecode description - - virtual long tc_size (void) = 0; - // return typecode size - - UTL_ScopedName *tc_name (void); - // return the typecode name - - virtual const char *nested_type_name (be_decl *d, const char *suffix = 0); - // type name of a node used when generating declarations - - virtual AST_Decl::NodeType base_node_type (void) const; - // Typedefs are tricky to handle, in many points their mapping - // depend on base type they are aliasing. Since typedefs can be - // recursive simply using "base_type->node_type()" will not work, so - // the most "unaliased" type is needed. - - // Visiting - virtual int accept (be_visitor* visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_type, AST_Type, be_decl); - DEF_NARROW_FROM_DECL (be_type); - -protected: - virtual void compute_tc_name (void); - // computes the fully scoped typecode name - - UTL_ScopedName *tc_name_; - // typecode name - - char *type_name_; - // type name (this uses the ACE NESTED macro) - - char *nested_type_name_; - // for the corresponding method. -}; - -#endif // end of if !defined diff --git a/TAO/TAO_IDL/be_include/be_typedef.h b/TAO/TAO_IDL/be_include/be_typedef.h deleted file mode 100644 index 83fcfd79160..00000000000 --- a/TAO/TAO_IDL/be_include/be_typedef.h +++ /dev/null @@ -1,73 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_typedef.h -// -// = DESCRIPTION -// Extension of class AST_typedef that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_TYPEDEF_H) -#define BE_TYPEDEF_H - -/* - * BE_Typedef - */ -class be_typedef : public virtual AST_Typedef, - public virtual be_type -{ -public: - // =Operations - - be_typedef (void); - // default constructor - - be_typedef (AST_Type *bt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - be_type *primitive_base_type (void); - // return the most primitive base type by traversing the chain of typedefed - // base types - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual AST_Decl::NodeType base_node_type (void) const; - // Return the most "unaliased" type node for the base type (see - // be_type.h). - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_typedef, AST_Typedef, be_type); - DEF_NARROW_FROM_DECL (be_typedef); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h deleted file mode 100644 index 332c92d44a0..00000000000 --- a/TAO/TAO_IDL/be_include/be_union.h +++ /dev/null @@ -1,99 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union.h -// -// = DESCRIPTION -// Extension of class AST_Union that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_UNION_H) -#define BE_UNION_H - -/* - * BE_Union - */ -class be_union : public virtual AST_Union, - public virtual be_scope, - public virtual be_type -{ -public: - // =Operations - - be_union (void); - // default constructor - - be_union(AST_ConcreteType *dt, UTL_ScopedName *n, UTL_StrList *p); - // constructor - - virtual int gen_var_defn (void); - // generate the _var class definition - - virtual int gen_var_impl (void); - // generate the implementation for the _var class - - virtual int gen_out_defn (void); - // generate the _out class definition - - virtual int gen_out_impl (void); - // generate the _out implementation - - virtual int gen_typecode (void); - // generate the typecode - - virtual int gen_encapsulation (void); - // encapsulation for parameters - - virtual long tc_size (void); - // return typecode size - - virtual long tc_encap_len (void); - // return length of encapsulation - - virtual int member_count (void); - // return the count of members - - virtual int default_index (void); - // return the default index used - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS3 (be_union, AST_Union, be_scope, be_type); - DEF_NARROW_FROM_DECL(be_union); - DEF_NARROW_FROM_SCOPE(be_union); - -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -private: - //=helper - - int compute_member_count (void); - // count the number of members - - int compute_default_index (void); - // count the default index - - int member_count_; - // number of members - - int default_index_; - // default label index (zero based indexing) -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union_branch.h b/TAO/TAO_IDL/be_include/be_union_branch.h deleted file mode 100644 index 349db9ff58f..00000000000 --- a/TAO/TAO_IDL/be_include/be_union_branch.h +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_union_branch.h -// -// = DESCRIPTION -// Extension of class AST_UnionBranch that provides additional means for C++ -// mapping. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (BE_UNION_BRANCH_H) -#define BE_UNION_BRANCH_H - -/* - * BE_UnionBranch - */ -class be_union_branch : public virtual AST_UnionBranch, - public virtual be_decl -{ -public: - // Operations - be_union_branch (void); - // default constructor - - be_union_branch (AST_UnionLabel *lab, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - // constructor - - virtual int gen_encapsulation (void); - // generate the encapsulation - - virtual long tc_encap_len (void); - // return the total byte length of ourselves represented as an encapsulation - - // Visiting - virtual int accept (be_visitor *visitor); - - // Narrowing - DEF_NARROW_METHODS2 (be_union_branch, AST_UnionBranch, be_decl); - DEF_NARROW_FROM_DECL (be_union_branch); -protected: - virtual int compute_size_type (void); - // compute the size type if it is unknown - -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_union_label.h b/TAO/TAO_IDL/be_include/be_union_label.h deleted file mode 100644 index 311e6b94dc9..00000000000 --- a/TAO/TAO_IDL/be_include/be_union_label.h +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ - -#if !defined(BE_UNION_LABEL_H) -#define BE_UNION_LABEL_H - -/* - * BE_UnionLabel - */ -class be_union_label : public virtual AST_UnionLabel { -public: - // Operations - be_union_label(); - be_union_label(AST_UnionLabel::UnionLabel ul, AST_Expression *v); - - // Visiting - virtual int accept (be_visitor *visitor); -}; - -#endif diff --git a/TAO/TAO_IDL/be_include/be_visitor.h b/TAO/TAO_IDL/be_include/be_visitor.h deleted file mode 100644 index 4f8f6d9844b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor.h +++ /dev/null @@ -1,157 +0,0 @@ -// -// $Id$ -// - -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor.h -// -// = DESCRIPTION -// The abstract visitor class. The concrete classes are responsible for code -// generation. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems, Inc. -// and -// Carlos O'Ryan, Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_H) -#define TAO_BE_VISITOR_H - -class be_decl; -class be_scope; -class be_type; -class be_predefined_type; -class be_module; -class be_interface; -class be_interface_fwd; -class be_structure; -class be_exception; -class be_expression; -class be_enum; -class be_operation; -class be_field; -class be_argument; -class be_attribute; -class be_union; -class be_union_branch; -class be_union_label; -class be_constant; -class be_enum_val; -class be_array; -class be_sequence; -class be_string; -class be_typedef; -class be_root; -class be_native; - -class be_visitor_context; -class TAO_OutStream; - -class be_visitor -{ - // - // = TITLE - // Base class for visitors. - // - // = DESCRIPTION - // To implement code generation we use the "Visitor Pattern", this - // is the abstract "Visitor". - // The "visit" methods are not pure virtual to facilitate the - // implementation of simple visitors that only override a few. - // -public: - virtual ~be_visitor (void); - - virtual int visit_decl (be_decl *d); - // visit a decl node - - virtual int visit_scope (be_scope *node); - // visit the scope - - virtual int visit_type (be_type *node); - // visit the type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit the predefined type - - virtual int visit_module (be_module *node); - // visit module - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_expression (be_expression *node); - // visit expression - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_operation (be_operation *node); - // visit an operation - - virtual int visit_field (be_field *node); - // visit a field - - virtual int visit_argument (be_argument *node); - // visit argument - - virtual int visit_attribute (be_attribute *node); - // visit an attribute - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union branch - - virtual int visit_union_label (be_union_label *node); - // visit union label - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum_val (be_enum_val *node); - // visit enum val - - virtual int visit_array (be_array *node); - // visit an array - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_string (be_string *node); - // visit a string - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_root (be_root *node); - // visit a root - - virtual int visit_native (be_native *node); - // visit a native - -protected: - be_visitor (void); - // constructor is protected - -}; - -#endif // TAO_BE_VISITOR_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument.h deleted file mode 100644 index 6b4a6c0ed63..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument.h +++ /dev/null @@ -1,38 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_args.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. These are used for the -// interpretive styled stubs and skeletons -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O' Ryan -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_H) -#define _BE_VISITOR_ARGUMENT_H - -#include "be_visitor_decl.h" -#include "be_visitor_argument/argument.h" -#include "be_visitor_argument/arglist.h" -#include "be_visitor_argument/pre_docall_cs.h" -#include "be_visitor_argument/docall_cs.h" -#include "be_visitor_argument/post_docall_cs.h" -#include "be_visitor_argument/vardecl_ss.h" -#include "be_visitor_argument/pre_upcall_ss.h" -#include "be_visitor_argument/upcall_ss.h" -#include "be_visitor_argument/post_upcall_ss.h" -#include "be_visitor_argument/marshal_ss.h" -#include "be_visitor_argument/post_marshal_ss.h" - -#endif /* _BE_VISITOR_ARGUMENT_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h deleted file mode 100644 index 7042280a22e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h +++ /dev/null @@ -1,88 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments as parameter lists in the -// operation signature -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_ARGLIST_H_) -#define _BE_VISITOR_ARGUMENT_ARGLIST_H_ - -class be_visitor_args_arglist : public be_visitor_args -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements the declaration output, in other words, - // it outputs both the arguments and their types. - // -public: - be_visitor_args_arglist (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_arglist (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_native (be_native *node); - // visit native node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h deleted file mode 100644 index 537811f8b94..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h +++ /dev/null @@ -1,59 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_ARGUMENT_H_) -#define _BE_VISITOR_ARGUMENT_ARGUMENT_H_ - -class be_visitor_args : public be_visitor_decl -{ - // - // = TITLE - // Generates the code for arguments output. - // - // = DESCRIPTION - // At several stages in the code generation a node of type - // "be_operation" is visited, and the code for its arguments must - // be generated. - // Sometimes the argument declarations must be generated (such as - // in the class declaration), other the arguments names (such as - // in method invocations). - // This class implements some common functionality required across all - // argument visitors - // -public: - be_visitor_args (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args (void); - // destructor - - //= helper - virtual const char *type_name (be_type *type, const char *suffix=0); - // helper that produces either a nested name for header files or full name - // for others - - virtual AST_Argument::Direction direction (void); - // return the direction of the argument node - - virtual int visit_argument (be_argument *node); - // must be overridden by derived classes -}; - -#endif /* _BE_VISITOR_ARGUMENT_ARGUMENT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h deleted file mode 100644 index 0b876370660..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for passing the arguments -// to the docall in the client side stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_DOCALL_CS_H_) -#define _BE_VISITOR_ARGUMENT_DOCALL_CS_H_ - -// ************************************************************ -// class be_visitor_args_docall_cs -// ************************************************************ -class be_visitor_args_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_docall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h deleted file mode 100644 index ea26a66fde3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// marshal_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// code to pass the arguments to the call to the marshaler/demarshaler -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_MARSHAL_SS_H_) -#define _BE_VISITOR_ARGUMENT_MARSHAL_SS_H_ - -// ************************************************************ -// class be_visitor_args_marshal_ss -// ************************************************************ -class be_visitor_args_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_marshal_ss - // - // = DESCRIPTION - // Visitor for passing argument to the marshaling/demarshaling routine - // -public: - be_visitor_args_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_MARSHAL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h deleted file mode 100644 index e292de4fa0a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_docall_cs.h +++ /dev/null @@ -1,59 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for docall post processing -// in the client side stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_) -#define _BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_ - -// ************************************************************ -// class be_visitor_args_post_docall_cs -// ************************************************************ -class be_visitor_args_post_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_docall_cs - // - // = DESCRIPTION - // Code to be generated after the do_static_call is done - // -public: - be_visitor_args_post_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_docall_cs (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h deleted file mode 100644 index 4988ff66ad2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_marshal_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// code that does post-marshal processing (cleaning up) for arguments -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H_) -#define _BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H_ - -// ************************************************************ -// class be_visitor_args_post_marshal_ss -// ************************************************************ -class be_visitor_args_post_marshal_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_marshal_ss - // - // = DESCRIPTION - // Visitor for post processing after marshal - // -public: - be_visitor_args_post_marshal_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_marshal_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h deleted file mode 100644 index 7b87ba9bf35..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/post_upcall_ss.h +++ /dev/null @@ -1,82 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// post_upcall_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// code for post upcall processing of the arguments -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - - -#if !defined (_BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_) -#define _BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_ - -// ************************************************************ -// class be_visitor_args_post_upcall_ss -// ************************************************************ -class be_visitor_args_post_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_post_upcall_ss - // - // = DESCRIPTION - // Visitor for post processing after upcall - // -public: - be_visitor_args_post_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_post_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h deleted file mode 100644 index f5238423590..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_docall_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_docall_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments for pre docall processing -// in client side stub that uses interpretive marshaling. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_) -#define _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ - -// ************************************************************ -// class be_visitor_args_pre_docall_cs -// ************************************************************ -class be_visitor_args_pre_docall_cs : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_docall_cs - // - // = DESCRIPTION - // Code to be generated when making the do_static_call - // -public: - be_visitor_args_pre_docall_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_docall_cs (void); - // destructor - - virtual int void_return_type (void); - // return true if the operation return type is void - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h deleted file mode 100644 index 24bf3e88054..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_upcall_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// pre_upcall_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// pre upcall processing of arguments in the server-side skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_) -#define _BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_ - -// ************************************************************ -// class be_visitor_args_pre_upcall_ss -// ************************************************************ -class be_visitor_args_pre_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_upcall_ss - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_pre_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_pre_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h deleted file mode 100644 index 5bd504fcded..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// upcall_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// passing of arguments to the upcall. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_UPCALL_SS_H_) -#define _BE_VISITOR_ARGUMENT_UPCALL_SS_H_ - -// ************************************************************ -// class be_visitor_args_upcall_ss -// ************************************************************ -class be_visitor_args_upcall_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_upcall_ss - // - // = DESCRIPTION - // Visitor for passing argument to the upcall - // -public: - be_visitor_args_upcall_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_upcall_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h deleted file mode 100644 index 40018f1f0e2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// vardecl_ss.h -// -// = DESCRIPTION -// Visitors for generation of code for Arguments. This generates the -// variable declartion for the argument in the server-sde skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARGUMENT_VARDECL_SS_H_) -#define _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ - -// ************************************************************ -// class be_visitor_args_vardecl_ss -// ************************************************************ -class be_visitor_args_vardecl_ss : public be_visitor_args -{ - // - // = TITLE - // be_visitor_args_vardecl_ss - // - // = DESCRIPTION - // Visitor for variable declaration for argument - // -public: - be_visitor_args_vardecl_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_args_vardecl_ss (void); - // destructor - - virtual int visit_argument (be_argument *node); - // visit the argument node - - // =visit all the nodes that can be the types for the argument - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array.h b/TAO/TAO_IDL/be_include/be_visitor_array.h deleted file mode 100644 index 506bde6b54b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_array.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ARRAY_H) -#define TAO_BE_VISITOR_ARRAY_H - -#include "be_visitor_decl.h" -// generic visitor -#include "be_visitor_array/array.h" -// concrete visitors -#include "be_visitor_array/array_ch.h" -#include "be_visitor_array/array_ci.h" -#include "be_visitor_array/array_cs.h" -#include "be_visitor_array/any_op_ch.h" -#include "be_visitor_array/any_op_cs.h" -#include "be_visitor_array/cdr_op_ch.h" -#include "be_visitor_array/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_ARRAY_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h deleted file mode 100644 index dffce321f77..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client header. This one -// generates the Any operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_ANY_OP_CH_H_) -#define _BE_VISITOR_ARRAY_ANY_OP_CH_H_ - -// ************************************************************ -// class be_visitor_array_any_op_ch -// ************************************************************ - -class be_visitor_array_any_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the Any operator - // declarations - // - -public: - be_visitor_array_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_any_op_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif /* _BE_VISITOR_ARRAY_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h deleted file mode 100644 index fc3c814c0d6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client stubs. This one -// generates the Any operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_ANY_OP_CS_H_) -#define _BE_VISITOR_ARRAY_ANY_OP_CS_H_ - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_any_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the Any operator - // implementations - // - -public: - be_visitor_array_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_any_op_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif /* _BE_VISITOR_ARRAY_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array.h b/TAO/TAO_IDL/be_include/be_visitor_array/array.h deleted file mode 100644 index 0a9510ce383..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array.h +++ /dev/null @@ -1,84 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_ARRAY_H_) -#define _BE_VISITOR_ARRAY_ARRAY_H_ - -// ************************************************************ -// class be_visitor_array -// ************************************************************ - -class be_visitor_array : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array - // - // = DESCRIPTION - // This is a generic visitor for arrays - // - // -public: - be_visitor_array (be_visitor_context *ctx); - // Constructor - - ~be_visitor_array (void); - // destructor - - virtual int visit_array (be_array *); - // visit the array node - - // = Visitor methods on array types - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface forward node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_sequence (be_sequence *node); - // visit sequence - - virtual int visit_string (be_string *node); - // visit string - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - virtual int visit_union (be_union *node); - // visit union - -protected: - - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_ARRAY_ARRAY_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h deleted file mode 100644 index 7a859d85527..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_ch.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_CH_H_) -#define _BE_VISITOR_ARRAY_CH_H_ - -// ************************************************************ -// class be_visitor_array_ch -// ************************************************************ - -class be_visitor_array_ch : public be_visitor_array -{ - // - // = TITLE - // be_visitor_array_ch - // - // = DESCRIPTION - // Code to be generated for arrays in the client header file - // -public: - be_visitor_array_ch (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -#endif /* _BE_VISITOR_ARRAY_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h deleted file mode 100644 index 3cb5f06cb6d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_ci.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_CI_H_) -#define _BE_VISITOR_ARRAY_CI_H_ - -// ************************************************************ -// class be_visitor_array_ci -// ************************************************************ - -class be_visitor_array_ci : public be_visitor_array -{ - // - // = TITLE - // be_visitor_array_ci - // - // = DESCRIPTION - // Code to be generated for arrays in the client inline file - // -public: - be_visitor_array_ci (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_ci (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -#endif /* _BE_VISITOR_ARRAY_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h deleted file mode 100644 index 101ce40ce31..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// array_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_CS_H_) -#define _BE_VISITOR_ARRAY_CS_H_ - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_cs : public be_visitor_array -{ - // - // = TITLE - // be_visitor_array_cs - // - // = DESCRIPTION - // Code to be generated for arrays in the client stub file - // -public: - be_visitor_array_cs (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_array_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit the array node - -}; - -#endif /* _BE_VISITOR_ARRAY_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h deleted file mode 100644 index 53766d3be77..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client header. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_CDR_OP_CH_H_) -#define _BE_VISITOR_ARRAY_CDR_OP_CH_H_ - -// ************************************************************ -// class be_visitor_array_cdr_op_ch -// ************************************************************ - -class be_visitor_array_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the CDR operator - // declarations - // - -public: - be_visitor_array_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_cdr_op_ch (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - -}; - -#endif /* _BE_VISITOR_ARRAY_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h deleted file mode 100644 index c02c51112f5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Arrays in client stubs. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ARRAY_CDR_OP_CS_H_) -#define _BE_VISITOR_ARRAY_CDR_OP_CS_H_ - -// ************************************************************ -// class be_visitor_array_cs -// ************************************************************ - -class be_visitor_array_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_array_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for array that generates the CDR operator - // implementations - // - -public: - be_visitor_array_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_array_cdr_op_cs (void); - // destructor - - virtual int visit_array (be_array *node); - // visit array - - // = Visitor methods on array types - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface forward node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_sequence (be_sequence *node); - // visit sequence - - virtual int visit_string (be_string *node); - // visit string - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - virtual int visit_union (be_union *node); - // visit union - -protected: - - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_ARRAY_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute.h deleted file mode 100644 index 0e9fb275ae6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute.h +++ /dev/null @@ -1,29 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_attribute.h -// -// = DESCRIPTION -// Concrete visitor for the Attribute class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ATTRIBUTE_H) -#define TAO_BE_VISITOR_ATTRIBUTE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_attribute/attribute.h" - -#endif diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h deleted file mode 100644 index c330de69537..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// attribute.h -// -// = DESCRIPTION -// Visitor for the Attribute class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H) -#define _BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H - -// ************************************************************ -// Attribute visitor -// ************************************************************ - -class be_visitor_attribute : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_attribute - // - // = DESCRIPTION - // This is a concrete visitor to generate code for attributes. We have one - // class for mapping into the client and server. - // - // -public: - be_visitor_attribute (be_visitor_context *ctx); - // constructor - - ~be_visitor_attribute (void); - // destructor - - virtual int visit_attribute (be_attribute *node); - // visit attribute. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant.h b/TAO/TAO_IDL/be_include/be_visitor_constant.h deleted file mode 100644 index 4bd864c7aa3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant.h +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_constant.h -// -// = DESCRIPTION -// Concrete visitor for the constant class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_CONSTANT_H) -#define TAO_BE_VISITOR_CONSTANT_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_constant/constant_ch.h" -#include "be_visitor_constant/constant_cs.h" - -#endif // TAO_BE_VISITOR_CONSTANT_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h deleted file mode 100644 index 3d6113ddbd6..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// constant_ch.h -// -// = DESCRIPTION -// Concrete visitor for the constant class generating code in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_CONSTANT_CONSTANT_CH_H_) -#define _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ - -class be_visitor_constant_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_constant_ch - // - // = DESCRIPTION - // This is the visitor for constant for the header file - // - // -public: - be_visitor_constant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_constant_ch (void); - // destructor - - virtual int visit_constant (be_constant *node); - // visit constant. - -}; - -#endif /* _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h deleted file mode 100644 index 104614536a1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// constant_cs.h -// -// = DESCRIPTION -// Concrete visitor for the constant class generating code in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_CONSTANT_CONSTANT_CS_H_) -#define _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ - -class be_visitor_constant_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_constant_cs - // - // = DESCRIPTION - // This is the visitor for constant for the impl file - // - // -public: - be_visitor_constant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_constant_cs (void); - // destructor - - virtual int visit_constant (be_constant *node); - // visit constant - - // = special methods - - virtual int gen_nested_namespace_begin (be_module *node); - // generate the nested namespace begins - - virtual int gen_nested_namespace_end (be_module *node); - // generate the nested namespace ends -}; - -#endif /* _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_context.h b/TAO/TAO_IDL/be_include/be_visitor_context.h deleted file mode 100644 index 02e07dda533..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_context.h +++ /dev/null @@ -1,249 +0,0 @@ -// -// $Id$ -// - -/* -*- C++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_context.h -// -// = DESCRIPTION -// This class serves to provide all the necessary context information to the -// visitor as it generates code. This may include the scope inside which the -// code is generated, the output file that is being used, and others. This -// context information will be passed to the abstract/concrete visitor -// factory which in turn will use it to construct the right visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_CONTEXT_H) -#define TAO_BE_VISITOR_CONTEXT_H - -class be_visitor_context -{ -public: - be_visitor_context (void); - // default constructor - - be_visitor_context (const be_visitor_context &ctx); - // default constructor - - ~be_visitor_context (void); - // destructor - - be_visitor_context &operator= (const be_visitor_context &ctx); - // assignment operator - - // =helpers - - void reset (void); - // reset the context - - void stream (TAO_OutStream *os); - // set the output stream - - TAO_OutStream *stream (void); - // get the stream - - void scope (be_decl *scope); - // set the scope - - be_decl *scope (void); - // get the scope in which code will be generated - - void node (be_decl *node); - // current node being visited - - be_decl *node (void); - // node being visited - - void state (TAO_CodeGen::CG_STATE); - // code generation state - - TAO_CodeGen::CG_STATE state (void); - // return the code generation state - - void sub_state (TAO_CodeGen::CG_SUB_STATE); - // code generation state - - TAO_CodeGen::CG_SUB_STATE sub_state (void); - // return the code generation state - - void alias (be_typedef *node); - // set the alias node (if any) - - be_typedef *alias (void); - // return the aliased node (if any) - - void tdef (be_typedef *node); - // set the typedef node (if any) - - be_typedef *tdef (void); - // return the typedef node (if any) - - void attribute (be_attribute *attr); - // set the attribute node if any - - be_attribute *attribute (void); - // get the attribute node - - void exception (idl_bool); - // is it the special ctor for exceptions? - - idl_bool exception (void); - // is it the special ctor for exceptions? - - void comma (idl_bool); - // scope supoorts generation of comma after each element - - idl_bool comma (void); - // are we supposed to generate a comma? - - be_interface* interface (void) const; - void interface (be_interface*); - // In some cases we need to generate the objects of one interface as - // members of a derived visitor (the TIE classes are a good - // example). This field is use to hold the interface where we are - // *generating* code, as opposed to the interfaces where the methods - // or structures are defined. - - // = helpers - - // visitors may need the actual type of the node stored in this context. We - // could have kept separate nodes but that would have increased the size of - // the context class by a large extent. So we will rely on the - // "narrow_from_decl" approach - - // two types of helpers are provided here. One of them returns the node as - // the desired actual type. The other returns the scope as the desired type. - - be_argument *be_node_as_argument (void); - // return the node as argument if possible - - be_array *be_node_as_array (void); - // return the node as array if possible - - be_attribute *be_node_as_attribute (void); - // return the node as attribute if possible - - be_constant *be_node_as_constant (void); - // return the node as constant if possible - - be_enum *be_node_as_enum (void); - // return the node as enum if possible - - be_enum_val *be_node_as_enum_val (void); - // return the node as enum_val if possible - - be_exception *be_node_as_exception (void); - // return the node as exception if possible - - be_field *be_node_as_field (void); - // return the node as field if possible - - be_interface *be_node_as_interface (void); - // return the node as interface if possible - - be_interface_fwd *be_node_as_interface_fwd (void); - // return the node as interface_fwd if possible - - be_module *be_node_as_module (void); - // return the node as module if possible - - be_operation *be_node_as_operation (void); - // return the node as operation if possible - - be_predefined_type *be_node_as_predefined_type (void); - // return the node as predefined_type if possible - - be_root *be_node_as_root (void); - // return the node as root if possible - - be_sequence *be_node_as_sequence (void); - // return the node as sequence if possible - - be_string *be_node_as_string (void); - // return the node as string if possible - - be_structure *be_node_as_structure (void); - // return the node as structure if possible - - be_typedef *be_node_as_typedef (void); - // return the node as typedef if possible - - be_union *be_node_as_union (void); - // return the node as union if possible - - be_union_branch *be_node_as_union_branch (void); - // return the node as union_branch if possible - - // for scope - - be_enum *be_scope_as_enum (void); - // return the scope as enum if possible - - be_exception *be_scope_as_exception (void); - // return the scope as exception if possible - - be_interface *be_scope_as_interface (void); - // return the scope as interface if possible - - be_module *be_scope_as_module (void); - // return the scope as module if possible - - be_operation *be_scope_as_operation (void); - // return the scope as operation if possible - - be_root *be_scope_as_root (void); - // return the scope as root if possible - - be_structure *be_scope_as_structure (void); - // return the scope as structure if possible - - be_union *be_scope_as_union (void); - // return the scope as union if possible - -private: - TAO_CodeGen::CG_STATE state_; - // code generation state - - TAO_CodeGen::CG_SUB_STATE sub_state_; - // code generation state - - TAO_OutStream *os_; - // current output stream - - be_decl *scope_; - // current scope in which code is generated - - be_decl *node_; - // current node - - be_typedef *alias_; - // aliased node used as a scoped name to define IDL types. - - be_typedef *tdef_; - // typedef node - - be_attribute *attr_; - // attribute node stored here while generating its code - - idl_bool exception_; - // is it the special ctor for exceptions? - - idl_bool comma_; - // whether scope should generate a comma after every element - - be_interface* interface_; - // See the method declaration above. -}; - - -#endif /* BE_VISITOR_CONTEXT_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_decl.h b/TAO/TAO_IDL/be_include/be_visitor_decl.h deleted file mode 100644 index 4c8f575cacd..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_decl.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_decl.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Decl" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_DECL_H) -#define TAO_BE_VISITOR_DECL_H - -#include "be_visitor.h" - -class be_visitor_decl : public be_visitor -{ - // - // = TITLE - // be_visitor_decl - // - // = DESCRIPTION - // This is a concrete visitor for the be_decl node. Its only purpose is to - // maintain state information for the derived visitor - // -public: - be_visitor_decl (be_visitor_context *ctx); - // constructor - - ~be_visitor_decl (void); - // destructor - -protected: - // using a protected mechanism will allow derived visitors to access this - // information - - be_visitor_context *ctx_; - // any context information required by the visitor -}; - - -#endif // TAO_BE_VISITOR_DECL_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum.h b/TAO/TAO_IDL/be_include/be_visitor_enum.h deleted file mode 100644 index a195680786f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_enum.h -// -// = DESCRIPTION -// Concrete visitor for the enum class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ENUM_H) -#define TAO_BE_VISITOR_ENUM_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_enum/enum_ch.h" -#include "be_visitor_enum/enum_cs.h" -#include "be_visitor_enum/any_op_ch.h" -#include "be_visitor_enum/any_op_cs.h" -#include "be_visitor_enum/cdr_op_ch.h" -#include "be_visitor_enum/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_ENUM_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h deleted file mode 100644 index 469e661bb2c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ENUM_ANY_OP_CH_H_) -#define _BE_VISITOR_ENUM_ANY_OP_CH_H_ - -class be_visitor_enum_any_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the Any operator - // declarations - // - -public: - be_visitor_enum_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_any_op_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h deleted file mode 100644 index aab50eb6305..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ENUM_ANY_OP_CS_H_) -#define _BE_VISITOR_ENUM_ANY_OP_CS_H_ - -class be_visitor_enum_any_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the Any operator - // implementations - // - -public: - be_visitor_enum_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_any_op_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h deleted file mode 100644 index 883b226c9f1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the CDR operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ENUM_CDR_OP_CH_H_) -#define _BE_VISITOR_ENUM_CDR_OP_CH_H_ - -class be_visitor_enum_cdr_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the CDR operator - // declarations - // - -public: - be_visitor_enum_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_cdr_op_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h deleted file mode 100644 index 5e995f7a117..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code for the CDR operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ENUM_CDR_OP_CS_H_) -#define _BE_VISITOR_ENUM_CDR_OP_CS_H_ - -class be_visitor_enum_cdr_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for enum that generates the CDR operator - // implementations - // - -public: - be_visitor_enum_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_enum_cdr_op_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit enum -}; - -#endif /* _BE_VISITOR_ENUM_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h deleted file mode 100644 index bd1effe5e0e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// enum_ch.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ENUM_ENUM_CH_H_) -#define _BE_VISITOR_ENUM_ENUM_CH_H_ - -class be_visitor_enum_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_ch - // - // = DESCRIPTION - // This is the base visitor for enum for the header file - // - // -public: - be_visitor_enum_ch (be_visitor_context *ctx); - // conenumor - - ~be_visitor_enum_ch (void); - // deenumor - - virtual int visit_enum (be_enum *node); - // visit enum. - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_enum_val (be_enum_val *node); - // visit enum_val - - // = helper - - virtual int post_process (void); - // generate a comma after each element is processed -}; - -#endif /* _BE_VISITOR_ENUM_ENUM_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h deleted file mode 100644 index f1684ff1d01..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// enum_cs.h -// -// = DESCRIPTION -// Concrete visitor for Enums generating code in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ENUM_ENUM_CS_H_) -#define _BE_VISITOR_ENUM_ENUM_CS_H_ - -class be_visitor_enum_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_enum_cs - // - // = DESCRIPTION - // This is the visitor for enum for the impl file - // - // -public: - be_visitor_enum_cs (be_visitor_context *ctx); - // conenumor - - ~be_visitor_enum_cs (void); - // deenumor - - virtual int visit_enum (be_enum *node); - // visit enum and generate the typecode - -}; - -#endif /* _BE_VISITOR_ENUM_ENUM_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception.h deleted file mode 100644 index 30ae6f06733..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception.h +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_exception.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_EXCEPTION_H) -#define TAO_BE_VISITOR_EXCEPTION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_exception/exception.h" -#include "be_visitor_exception/exception_ch.h" -#include "be_visitor_exception/exception_ci.h" -#include "be_visitor_exception/exception_cs.h" -#include "be_visitor_exception/ctor.h" -#include "be_visitor_exception/ctor_assign.h" -#include "be_visitor_exception/any_op_ch.h" -#include "be_visitor_exception/any_op_cs.h" -#include "be_visitor_exception/cdr_op_ch.h" -#include "be_visitor_exception/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_EXCEPTION_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h deleted file mode 100644 index 6ad35719449..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation of Any operator in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_ANY_OP_CH_H_) -#define _BE_VISITOR_EXCEPTION_ANY_OP_CH_H_ - -class be_visitor_exception_any_op_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the Any operator - // declarations - // - -public: - be_visitor_exception_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_any_op_ch (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_EXCEPTION_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h deleted file mode 100644 index dc96479b918..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation of Any operator in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_ANY_OP_CS_H_) -#define _BE_VISITOR_EXCEPTION_ANY_OP_CS_H_ - -class be_visitor_exception_any_op_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the Any operator - // implementations - // - -public: - be_visitor_exception_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_any_op_cs (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_EXCEPTION_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h deleted file mode 100644 index e24b4299deb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// This one provides code generation for the CDR operators for the exception -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_CDR_OP_CH_H_) -#define _BE_VISITOR_EXCEPTION_CDR_OP_CH_H_ - -class be_visitor_exception_cdr_op_ch : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the CDR operator - // declarations - // - -public: - be_visitor_exception_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_cdr_op_ch (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - -}; - -#endif /* _BE_VISITOR_EXCEPTION_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h deleted file mode 100644 index 2551da2f769..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Exception class -// This one provides code generation for the CDR operators for the exception -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_CDR_OP_CS_H_) -#define _BE_VISITOR_EXCEPTION_CDR_OP_CS_H_ - -class be_visitor_exception_cdr_op_cs : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for exception that generates the CDR operator - // implementations - // - -public: - be_visitor_exception_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_exception_cdr_op_cs (void); - // destructor - - virtual int visit_exception (be_exception *node); - // visit exception - - virtual int post_process (void); - // any post processing that needs to be done after a scope element is handled -}; - -#endif /* _BE_VISITOR_EXCEPTION_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h deleted file mode 100644 index ac774c1388e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ctor.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation for the special constructor for exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_CTOR_H_) -#define _BE_VISITOR_EXCEPTION_CTOR_H_ - -class be_visitor_exception_ctor : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor - // - // =DESCRIPTION - // generation of the special constructor -public: - be_visitor_exception_ctor (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor (void); - // dtor - - virtual int post_process (void); - // post processing after each element - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - virtual int visit_field (be_field *node); - // visit the argument node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_EXCEPTION_CTOR_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h deleted file mode 100644 index e40610ac2fb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// ctor_assign.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation for the special constructor and assignment operator -// for exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_) -#define _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ - -class be_visitor_exception_ctor_assign : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor_assign - // - // =DESCRIPTION - // generation of the assignment statements in -public: - be_visitor_exception_ctor_assign (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor_assign (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h deleted file mode 100644 index f7e4bab2d26..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// This is the generic (common) visitor for all exceptions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_H_) -#define _BE_VISITOR_EXCEPTION_EXCEPTION_H_ - -class be_visitor_exception : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_exception - // - // = DESCRIPTION - // This is the base visitor for exception - // - // -public: - be_visitor_exception (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h deleted file mode 100644 index 9211782a96e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ch.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_) -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ - -class be_visitor_exception_ch : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for exception - // - // -public: - be_visitor_exception_ch (be_visitor_context *ctx); - // constructureor - - ~be_visitor_exception_ch (void); - // destructureor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h deleted file mode 100644 index 67ca3e1c449..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ci.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation in client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_) -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ - -class be_visitor_exception_ci : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for exception - // - // -public: - be_visitor_exception_ci (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ci (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h deleted file mode 100644 index 0b1edd4cc6c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_cs.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation in client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_) -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ - -class be_visitor_exception_cs : public be_visitor_exception -{ - // - // = TITLE - // be_visitor_exception_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for exception - // - // -public: - be_visitor_exception_cs (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_cs (void); - // dtor - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h deleted file mode 100644 index 94ad9534889..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exception_ctor.h -// -// = DESCRIPTION -// Visitor for Exceptions. -// For code generation for the special constructor for exceptions -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_) -#define _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ - -class be_visitor_exception_ctor : public be_visitor_scope -{ - // =TITLE - // be_visitor_exception_ctor - // - // =DESCRIPTION - // generation of the special constructor -public: - be_visitor_exception_ctor (be_visitor_context *ctx); - // ctor - - ~be_visitor_exception_ctor (void); - // dtor - - virtual int post_process (void); - // post processing after each element - - virtual int visit_exception (be_exception *node); - // visit exception. We provide code for this method in the derived class - - virtual int visit_field (be_field *node); - // visit the argument node - - // =visit all the nodes that can be the types for the field - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit the enum node - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - - virtual int visit_typedef (be_typedef *node); - // visit the typedef type - -}; - -#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field.h b/TAO/TAO_IDL/be_include/be_visitor_field.h deleted file mode 100644 index 2aac718e368..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_field.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_FIELD_H) -#define TAO_BE_VISITOR_FIELD_H - -#include "be_visitor_decl.h" - -#include "be_visitor_field/field_ch.h" -#include "be_visitor_field/field_ci.h" -#include "be_visitor_field/field_cs.h" -#include "be_visitor_field/cdr_op_ch.h" -#include "be_visitor_field/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_FIELD_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h deleted file mode 100644 index e9fb3139e6a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_FIELD_CDR_OP_CH_H_) -#define _BE_VISITOR_FIELD_CDR_OP_CH_H_ - -class be_visitor_field_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cdr_op_ch (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h deleted file mode 100644 index 7b4ac51064d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h +++ /dev/null @@ -1,78 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_FIELD_CDR_OP_CS_H_) -#define _BE_VISITOR_FIELD_CDR_OP_CS_H_ - -class be_visitor_field_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cdr_op_cs (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h deleted file mode 100644 index aa72105c520..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h +++ /dev/null @@ -1,78 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_FIELD_CH_H_) -#define _BE_VISITOR_FIELD_CH_H_ - -class be_visitor_field_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client header. - // -public: - be_visitor_field_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_ch (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h deleted file mode 100644 index 0e2c3797a5e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h +++ /dev/null @@ -1,65 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_ci.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_FIELD_CI_H_) -#define _BE_VISITOR_FIELD_CI_H_ - -class be_visitor_field_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_ci - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client inline - // file - // -public: - be_visitor_field_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_ci (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be and for - // which inline code must be generated - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h deleted file mode 100644 index 7edaae3b4c2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h +++ /dev/null @@ -1,68 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// field_cs.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Field" node -// This generates code for structure members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_FIELD_CS_H_) -#define _BE_VISITOR_FIELD_CS_H_ - -class be_visitor_field_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_field_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_field node for the client stubs - // file - // -public: - be_visitor_field_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_field_cs (void); - // destructor - - virtual int visit_field (be_field *node); - // visit the field node - - // =visit operations on all possible data types that a field can be and impl - // code must be generated - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_FIELD_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface.h deleted file mode 100644 index 622bda773c9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface.h +++ /dev/null @@ -1,42 +0,0 @@ - -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// -// = AUTHOR -// Carlos O'Ryan and Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_INTERFACE_H) -#define TAO_BE_VISITOR_INTERFACE_H - -#include "be_visitor_scope.h" - -#include "be_visitor_interface/interface.h" -#include "be_visitor_interface/interface_ch.h" -#include "be_visitor_interface/interface_ci.h" -#include "be_visitor_interface/interface_cs.h" -#include "be_visitor_interface/interface_sh.h" -#include "be_visitor_interface/interface_si.h" -#include "be_visitor_interface/interface_ss.h" -#include "be_visitor_interface/collocated_sh.h" -#include "be_visitor_interface/collocated_ss.h" -#include "be_visitor_interface/any_op_ch.h" -#include "be_visitor_interface/any_op_cs.h" -#include "be_visitor_interface/cdr_op_ch.h" -#include "be_visitor_interface/cdr_op_cs.h" -#include "be_visitor_interface/tie_sh.h" -#include "be_visitor_interface/tie_si.h" - -#endif /* _BE_VISITOR_INTERFACE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h deleted file mode 100644 index 4e635bfd8a3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_ANY_OP_CH_H_) -#define _BE_INTERFACE_ANY_OP_CH_H_ - -class be_visitor_interface_any_op_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the Any operator - // declarations - // - -public: - be_visitor_interface_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_any_op_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface -}; - -#endif /* _BE_INTERFACE_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h deleted file mode 100644 index 012aca9d3f8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for the Any operators -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_ANY_OP_CS_H_) -#define _BE_INTERFACE_ANY_OP_CS_H_ - -class be_visitor_interface_any_op_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the Any operator - // implementations - // - -public: - be_visitor_interface_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_any_op_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface -}; - -#endif /* _BE_INTERFACE_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h deleted file mode 100644 index e8b3777cfe0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// This one provides code generation for the CDR operators for the interface -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_INTERFACE_CDR_OP_CH_H_) -#define _BE_VISITOR_INTERFACE_CDR_OP_CH_H_ - -class be_visitor_interface_cdr_op_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // declarations - // - -public: - be_visitor_interface_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cdr_op_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -#endif /* _BE_VISITOR_INTERFACE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h deleted file mode 100644 index e83f6546892..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface class -// This one provides code generation for the CDR operators for the interface -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_INTERFACE_CDR_OP_CS_H_) -#define _BE_VISITOR_INTERFACE_CDR_OP_CS_H_ - -class be_visitor_interface_cdr_op_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for interface that generates the CDR operator - // implementations - // - -public: - be_visitor_interface_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cdr_op_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -#endif /* _BE_VISITOR_INTERFACE_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_sh.h deleted file mode 100644 index a96c5a6701d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_sh.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for collocated classes in server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_COLLOCATED_SH_H_) -#define _BE_INTERFACE_COLLOCATED_SH_H_ - -class be_visitor_interface_collocated_sh : public be_visitor_interface -{ - // = TITLE - // Generate the "collocated" class declaration. - -public: - be_visitor_interface_collocated_sh (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_collocated_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit an interface - -}; - -#endif /* _BE_INTERFACE_COLLOCATED_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ss.h deleted file mode 100644 index ad49cbb1448..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ss.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides code generation for collocated classes in server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_COLLOCATED_SS_H_) -#define _BE_INTERFACE_COLLOCATED_SS_H_ - -class be_visitor_interface_collocated_ss : public be_visitor_interface -{ - // = TITLE - // Generate the "collocated" class declaration. - -public: - be_visitor_interface_collocated_ss (be_visitor_context *ctx); - // constructor - - virtual ~be_visitor_interface_collocated_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit interface - -}; - -#endif /* _BE_INTERFACE_COLLOCATED_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h deleted file mode 100644 index 086c8f1b56b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h +++ /dev/null @@ -1,91 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides the generic visitor for interfaces from which others -// will inherit. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_H_) -#define _BE_INTERFACE_INTERFACE_H_ - -// = DESCRIPTION -// Interface code generation is complex, the client stubs require -// two different class and the server also require other two. -// Only one of them includes whatever nested typedefs, exceptions -// and or structures are defined in the interface. -// To break this complexity a different visitor is used for each -// case. -// -// = NOTE -// Visitors were added recently into the compiler, so some -// code is still generated using the old "state oriented" approach; -// notably only the _collocated class is actually generated using -// the visitor, in the other cases (the interface class and the -// skeleton class) we still call back the old code generation -// methods. -// - -class be_visitor_interface : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_interface - // - // = DESCRIPTION - // This is a concrete visitor for interface that abstracts all common tasks - // - -public: - be_visitor_interface (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface (void); - // destructor - - virtual int visit_interface (be_interface *node); - // visit the interface node - - // =visit methods on all elements syntactically valid in a Interface scope - - virtual int visit_attribute (be_attribute *node); - // visit attribute - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_operation (be_operation *node); - // visit operation - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - -}; - -#endif /* _BE_INTERFACE_INTERFACE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h deleted file mode 100644 index 7dc997f7f15..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_CH_H_) -#define _BE_INTERFACE_INTERFACE_CH_H_ - -// we need derived interface visitors for the client and server header files. For -// the others, they use the default interface visitor - -class be_visitor_interface_ch : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for interface - // - // -public: - be_visitor_interface_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ch (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - -}; - -#endif /* _BE_INTERFACE_INTERFACE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h deleted file mode 100644 index 4eff86b2099..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_CI_H_) -#define _BE_INTERFACE_INTERFACE_CI_H_ - -class be_visitor_interface_ci : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for interface - // - // -public: - be_visitor_interface_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ci (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - -}; - -#endif /* _BE_INTERFACE_INTERFACE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h deleted file mode 100644 index 7acede89420..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides code generation for interfaces in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_CS_H_) -#define _BE_INTERFACE_INTERFACE_CS_H_ - -class be_visitor_interface_cs : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for interface - // - // -public: - be_visitor_interface_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_cs (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h deleted file mode 100644 index a2f09833147..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_SH_H_) -#define _BE_INTERFACE_INTERFACE_SH_H_ - -class be_visitor_interface_sh : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for interface - // - // -public: - be_visitor_interface_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h deleted file mode 100644 index e8c7bae245c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_si.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server inline -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_SI_H_) -#define _BE_INTERFACE_INTERFACE_SI_H_ - -class be_visitor_interface_si : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for interface - // - // -public: - be_visitor_interface_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_si (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h deleted file mode 100644 index 78c5d48cbab..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This provides for code generation in the server skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_SS_H_) -#define _BE_INTERFACE_INTERFACE_SS_H_ - -class be_visitor_interface_ss : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for interface - // - // -public: - be_visitor_interface_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_ss (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor -}; - -#endif /* _BE_INTERFACE_INTERFACE_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h deleted file mode 100644 index 7516337310e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides the code generation for TIE classes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_TIE_SH_H_) -#define _BE_INTERFACE_TIE_SH_H_ - -class be_visitor_interface_tie_sh : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_tie_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for the TIE class - // - // -public: - be_visitor_interface_tie_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_tie_sh (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - - static int method_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method to generate method declaration in the TIE classes. -}; - -#endif /* _BE_INTERFACE_TIE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h deleted file mode 100644 index fe3fb0ac09b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_si.h -// -// = DESCRIPTION -// Concrete visitor for the Interface node. -// This one provides the code generation for TIE classes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_TIE_SI_H_) -#define _BE_INTERFACE_TIE_SI_H_ - -class be_visitor_interface_tie_si : public be_visitor_interface -{ - // - // = TITLE - // be_visitor_interface_tie_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for operations - // of the TIE class - // - // -public: - be_visitor_interface_tie_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_tie_si (void); - // destructor - - virtual int visit_interface (be_interface *node); - // set the right context and make a visitor - - static int method_helper (be_interface *, - be_interface *, - TAO_OutStream *os); - // helper method to generate method declaration in the TIE classes. -}; - -#endif /* _BE_INTERFACE_TIE_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h deleted file mode 100644 index e139af36707..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- C++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_interface_fwd.h -// -// = DESCRIPTION -// Concrete visitor for the interface_fwd class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_INTERFACE_FWD_H) -#define TAO_BE_VISITOR_INTERFACE_FWD_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_interface_fwd/interface_fwd_ch.h" -#include "be_visitor_interface_fwd/interface_fwd_ci.h" - -#endif /* TAO_BE_VISITOR_INTERFACE_FWD_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h deleted file mode 100644 index 788faa611db..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for interface forward node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_FWD_CH_H_) -#define _BE_INTERFACE_INTERFACE_FWD_CH_H_ - -class be_visitor_interface_fwd_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_ch - // - // = DESCRIPTION - // This is the visitor for interface_fwd for the header file - // - // -public: - be_visitor_interface_fwd_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_ch (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd. - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h deleted file mode 100644 index a53bd7d7a05..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ci.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// interface_fwd_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Interface Forward node. -// This one provides code generation for interface forward node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_INTERFACE_INTERFACE_FWD_CI_H_) -#define _BE_INTERFACE_INTERFACE_FWD_CI_H_ - -class be_visitor_interface_fwd_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_interface_fwd_ci - // - // = DESCRIPTION - // This is the visitor for interface_fwd for the inline file - // - // -public: - be_visitor_interface_fwd_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_interface_fwd_ci (void); - // destructor - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface_fwd - -}; - -#endif /* _BE_INTERFACE_INTERFACE_FWD_CH_I_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module.h b/TAO/TAO_IDL/be_include/be_visitor_module.h deleted file mode 100644 index e118aa98a0a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_module.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_MODULE_H) -#define TAO_BE_VISITOR_MODULE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_module/module.h" -// we need derived module visitors for the client and server header files. For -// the others, they use the default module visitor -#include "be_visitor_module/module_ch.h" -#include "be_visitor_module/module_sh.h" -#include "be_visitor_module/any_op.h" -#include "be_visitor_module/cdr_op.h" - -#endif // TAO_BE_VISITOR_MODULE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h deleted file mode 100644 index ab941bc345b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This one provides visitors to generate the Any operators for elements in -// the Module's scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_MODULE_ANY_OP_H_) -#define _BE_VISITOR_MODULE_ANY_OP_H_ - -class be_visitor_module_any_op : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_any_op - // - // = DESCRIPTION - // This is a concrete visitor for module that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_module_any_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_any_op (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module -}; - -#endif /* _BE_VISITOR_MODULE_ANY_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h deleted file mode 100644 index 71aef9e34a4..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This one provides visitors to generate the CDR operators for elements in -// the Module's scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_MODULE_CDR_OP_H_) -#define _BE_VISITOR_MODULE_CDR_OP_H_ - -class be_visitor_module_cdr_op : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_cdr_op - // - // = DESCRIPTION - // This is a concrete visitor for module that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_module_cdr_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_cdr_op (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module -}; - -#endif /* _BE_VISITOR_MODULE_CDR_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module.h b/TAO/TAO_IDL/be_include/be_visitor_module/module.h deleted file mode 100644 index 58c4f951cb8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This one provides the generic visitor for the Module node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_MODULE_MODULE_H_) -#define _BE_VISITOR_MODULE_MODULE_H_ - -class be_visitor_module : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_module - // - // = DESCRIPTION - // This is a concrete visitor for module that abstracts all common tasks - // - -public: - be_visitor_module (be_visitor_context *ctx); - // constructor - - ~be_visitor_module (void); - // destructor - - // =visit methods on all elements syntactically valid in a Module scope - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface - - virtual int visit_module (be_module *node); - // visit a module - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h deleted file mode 100644 index f001d3e4900..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This provides code generation for the module in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_MODULE_MODULE_CH_H_) -#define _BE_VISITOR_MODULE_MODULE_CH_H_ - -class be_visitor_module_ch : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for module - // - // -public: - be_visitor_module_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_ch (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h deleted file mode 100644 index 0ee2c25379c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// module_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Module class -// This provides code generation for the module in the server header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_MODULE_MODULE_SH_H_) -#define _BE_VISITOR_MODULE_MODULE_SH_H_ - -class be_visitor_module_sh : public be_visitor_module -{ - // - // = TITLE - // be_visitor_module_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for module - // - // -public: - be_visitor_module_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_module_sh (void); - // destructor - - virtual int visit_module (be_module *node); - // visit module. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_MODULE_MODULE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation.h deleted file mode 100644 index 0fdcd877f9e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_operation.h -// -// = DESCRIPTION -// Concrete visitor for the Operation class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_OPERATION_H) -#define TAO_BE_VISITOR_OPERATION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" -#include "be_visitor_operation/operation_ch.h" -#include "be_visitor_operation/operation_cs.h" -#include "be_visitor_operation/operation_sh.h" -#include "be_visitor_operation/operation_ss.h" -#include "be_visitor_operation/tie_sh.h" -#include "be_visitor_operation/tie_si.h" -#include "be_visitor_operation/collocated_sh.h" -#include "be_visitor_operation/collocated_ss.h" -#include "be_visitor_operation/arglist.h" -#include "be_visitor_operation/rettype.h" -#include "be_visitor_operation/rettype_vardecl_cs.h" -#include "be_visitor_operation/rettype_pre_docall_cs.h" -#include "be_visitor_operation/rettype_pre_docall_cs.h" -#include "be_visitor_operation/rettype_docall_cs.h" -#include "be_visitor_operation/rettype_post_docall_cs.h" -#include "be_visitor_operation/rettype_return_cs.h" -#include "be_visitor_operation/exceptlist_cs.h" -#include "be_visitor_operation/argument.h" -#include "be_visitor_operation/rettype_vardecl_ss.h" -#include "be_visitor_operation/rettype_assign_ss.h" -#include "be_visitor_operation/rettype_post_upcall_ss.h" -#include "be_visitor_operation/rettype_marshal_ss.h" - -#endif // TAO_BE_VISITOR_OPERATION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h deleted file mode 100644 index 42f418a97ed..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h +++ /dev/null @@ -1,54 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// arglist.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the -// operation signature. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_ARGLIST_H_) -#define _BE_VISITOR_OPERATION_ARGLIST_H_ - -// ****************************************************************************** -// Operation visitor for argument list - generates parameters in the signature -// ****************************************************************************** - -class be_visitor_operation_arglist : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operaion_arglist - // - // = DESCRIPTION - // This is a visitor to generate operation argument list - // - // -public: - be_visitor_operation_arglist (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_arglist (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - - int visit_argument (be_argument *node); - // visit each argument - -}; - -#endif /* _BE_VISITOR_OPERATION_ARGLIST_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h deleted file mode 100644 index 6fc51da3ca7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// argument.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This is a generic visitor -// that calls visitors for the Argument class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_ARGUMENT_H_) -#define _BE_VISITOR_OPERATION_ARGUMENT_H_ - -// ************************************************************ -// generic operation visitor for docall, upcall, pre/post -// ************************************************************ - -class be_visitor_operation_argument : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_argument - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_argument (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_argument (void); - // destructor - - int post_process (void); - // stuff to o/p after each element of the scope is handled - - int visit_operation (be_operation *node); - // visit the operation - - int visit_argument (be_argument *node); - // visit argument - -}; - -#endif /* _BE_VISITOR_OPERATION_ARGUMENT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_sh.h deleted file mode 100644 index dc31959e345..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_sh.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_ch.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the collocated case -// inside of the servant header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_COLLOCATED_SH_H_) -#define _BE_VISITOR_OPERATION_COLLOCATED_SH_H_ - -// ************************************************************ -// Operation visitor for server header in the collocated class -// ************************************************************ - -class be_visitor_operation_collocated_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_collocated_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // in the collocated class - // - // -public: - be_visitor_operation_collocated_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_collocated_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - -}; - -#endif /* _BE_VISITOR_OPERATION_COLLOCATED_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_ss.h deleted file mode 100644 index 48b7966e9aa..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_ss.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// collocated_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the collocated case -// inside of the servant skeleton -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_COLLOCATED_SS_H_) -#define _BE_VISITOR_OPERATION_COLLOCATED_SS_H_ - -// ***************************************************************** -// Operation visitor for server skeletons for the collocated class -// ***************************************************************** - -class be_visitor_operation_collocated_ss : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for - // operation in the collocated class - // - // -public: - be_visitor_operation_collocated_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_collocated_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation node. - -}; - -#endif /* _BE_VISITOR_OPERATION_COLLOCATED_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h deleted file mode 100644 index 32c9e1c3d22..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// exceptlist_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the tables -// for the exceptions used by the stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_) -#define _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ - -// ****************************************************************************** -// Visitor for generating the exception list -// ****************************************************************************** - -class be_visitor_operation_exceptlist_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operaion_exceptlist_cs - // - // = DESCRIPTION - // This is a visitor to generate operation exception list to be provided to - // the do_static_call - // - // -public: - be_visitor_operation_exceptlist_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_exceptlist_cs (void); - // destructor - - int visit_operation (be_operation *node); - // visit the operation - -}; - -#endif /* _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h deleted file mode 100644 index e039623dd5d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ch.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_OPERATION_CH_H_) -#define _BE_VISITOR_OPERATION_OPERATION_CH_H_ - -// ************************************************************ -// Operation visitor for client header -// ************************************************************ - -class be_visitor_operation_ch : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for operation - // - // -public: - be_visitor_operation_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ch (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h deleted file mode 100644 index 1228b684e21..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h +++ /dev/null @@ -1,55 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in client stubs -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_OPERATION_CS_H_) -#define _BE_VISITOR_OPERATION_OPERATION_CS_H_ - -// ************************************************************ -// Operation visitor for client stubs -// ************************************************************ - -class be_visitor_operation_cs : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for operation - // - // -public: - be_visitor_operation_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_cs (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - virtual int post_process (void); - // stuff to output after every member of the scope is handled -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h deleted file mode 100644 index 702a0dc2251..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_sh.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_OPERATION_SH_H_) -#define _BE_VISITOR_OPERATION_OPERATION_SH_H_ - -// ************************************************************ -// Operation visitor for server header -// ************************************************************ - -class be_visitor_operation_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for operation - // - // -public: - be_visitor_operation_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h deleted file mode 100644 index 14cf41e7863..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h +++ /dev/null @@ -1,55 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// operation_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations in server skeletons -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_OPERATION_SS_H_) -#define _BE_VISITOR_OPERATION_OPERATION_SS_H_ - -// ************************************************************ -// Operation visitor for server skeletons -// ************************************************************ - -class be_visitor_operation_ss : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for operation - // - // -public: - be_visitor_operation_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_ss (void); - // destructor - - virtual int visit_operation (be_operation *node); - // visit operation. We provide code for this method in the derived class - - virtual int visit_argument (be_argument *node); - // visit argument to generate ParamData entries - - virtual int post_process (void); - // stuff to output after every member of the scope is handled -}; - -#endif /* _BE_VISITOR_OPERATION_OPERATION_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h deleted file mode 100644 index 9a4fc0a8ac3..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type of the operation -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_H_ - -// *********************************************************************** -// Operation visitor for return types in the signature of the operation -// *********************************************************************** - -class be_visitor_operation_rettype : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate operation return types - // - // -public: - be_visitor_operation_rettype (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_native (be_native *node); - // visit native type - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h deleted file mode 100644 index ff35c744e62..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h +++ /dev/null @@ -1,80 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_assign_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the -// assignment of the return value of the upcall to the return type variabel -// inside the server-skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_ - -// *********************************************************************** -// Operation visitor for assignment to return types in an upcall -// *********************************************************************** - -class be_visitor_operation_rettype_assign_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_ch - // - // = DESCRIPTION - // This is a visitor to generate code that assigns to the return type - // variable in the upcall - // - // -public: - be_visitor_operation_rettype_assign_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_assign_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h deleted file mode 100644 index eb3b287ce9c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_docall_cs.h +++ /dev/null @@ -1,79 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_docall_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for passing the return type variable to the docall -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_ - -// ************************************************************ -// Operation visitor for passing return variable to do_static_call -// ************************************************************ - -class be_visitor_operation_rettype_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_docall_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h deleted file mode 100644 index b3f95579a6a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h +++ /dev/null @@ -1,79 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_marshal_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for passing the return type variable to the marshaler. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SSH_ - -// *********************************************************************** -// Operation visitor for passing return type to the marshal/demarshal routine -// inside the server skeleton -// *********************************************************************** - -class be_visitor_operation_rettype_marshal_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_marshal_ss - // - // = DESCRIPTION - // This is a visitor to pass return type to the marshal/demarshal routines - // - // -public: - be_visitor_operation_rettype_marshal_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_marshal_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SSH_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h deleted file mode 100644 index e2299617a35..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_docall_cs.h +++ /dev/null @@ -1,54 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_post_docall_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for post processing of the return type variable after the docall is -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_ - -// ************************************************************ -// Operation visitor for postprocessing after do_static_call is invoked -// ************************************************************ - -class be_visitor_operation_rettype_post_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_psot_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate any post processing after the do_static_call is - // made - // -public: - be_visitor_operation_rettype_post_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_post_docall_cs (void); - // destructor - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h deleted file mode 100644 index 6cfbd7566ed..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h +++ /dev/null @@ -1,79 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_post_upcall_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for post processing of the return type variable after the upcall is -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_ - -// *********************************************************************** -// Operation visitor for post upcall processing of return types -// *********************************************************************** - -class be_visitor_operation_rettype_post_upcall_ss : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_post_upcall_ss - // - // = DESCRIPTION - // This is a visitor for post processing after an upcall - // - // -public: - be_visitor_operation_rettype_post_upcall_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_post_upcall_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h deleted file mode 100644 index acb296f6ac9..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_docall_cs.h +++ /dev/null @@ -1,73 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_pre_docall_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the code -// for pre processing of the return type variable before the docall is -// made. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ - -// ************************************************************ -// Operation visitor for preprocessing before do_static_call is invoked -// ************************************************************ - -class be_visitor_operation_rettype_pre_docall_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_pre_docall_cs - // - // = DESCRIPTION - // This is a visitor to generate any pre processing before the do_static_call is - // made - // -public: - be_visitor_operation_rettype_pre_docall_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_pre_docall_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h deleted file mode 100644 index ec9b8383342..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h +++ /dev/null @@ -1,78 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_return_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// statement for returning the return type variable in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_RETURN_CS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_CS_H_ - -// ************************************************************ -// Operation visitor for returning the return val -// ************************************************************ - -class be_visitor_operation_rettype_return_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_return_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_return_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_return_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_RETURN_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h deleted file mode 100644 index ca9b7ba99e7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h +++ /dev/null @@ -1,78 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_vardecl_cs.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type variable declaration in the client side stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_ - -// ************************************************************ -// Operation visitor for return type variable declaration -// ************************************************************ - -class be_visitor_operation_rettype_vardecl_cs :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_vardecl_cs - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type - // -public: - be_visitor_operation_rettype_vardecl_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_vardecl_cs (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h deleted file mode 100644 index 57678e6371b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h +++ /dev/null @@ -1,79 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// rettype_vardecl_ss.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations. This generates the return -// type variable declaration in the server side skeleton. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_) -#define _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ - -// ************************************************************ -// Operation visitor for return type variable declaration in the server -// skeleton -// ************************************************************ - -class be_visitor_operation_rettype_vardecl_ss :public be_visitor_decl -{ - // - // = TITLE - // be_visitor_operation_rettype_vardecl_ss - // - // = DESCRIPTION - // This is a visitor to generate a variable declaration ofr an operation - // return type in the server skeleton - // -public: - be_visitor_operation_rettype_vardecl_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_rettype_vardecl_ss (void); - // destructor - - int visit_array (be_array *node); - // visit an array node - - int visit_enum (be_enum *node); - // visit an enum node - - int visit_interface (be_interface *node); - // visit an interface node - - int visit_interface_fwd (be_interface_fwd *node); - // visit an interface node - - int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - int visit_sequence (be_sequence *node); - // visit a sequence node - - int visit_string (be_string *node); - // visit a sequence node - - int visit_structure (be_structure *node); - // visit a structure node - - int visit_typedef (be_typedef *node); - // visit a typedef node - - int visit_union (be_union *node); - // visit a union node - -}; - -#endif /* _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h deleted file mode 100644 index f5329bfe963..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_sh.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the TIE class inside -// the server header -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_TIE_SH_H_) -#define _BE_VISITOR_OPERATION_TIE_SH_H_ - -// *********************************************************************** -// Operation visitor for operation declaration inside the TIE class -// *********************************************************************** - -class be_visitor_operation_tie_sh : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_tie_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the operaton inside a TIE class - // - // -public: - be_visitor_operation_tie_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_tie_sh (void); - // destructor - - virtual int visit_operation (be_operation *node); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_OPERATION_TIE_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h deleted file mode 100644 index f6168878069..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// tie_si.h -// -// = DESCRIPTION -// Visitor for generating code for IDL operations for the TIE class inside -// the server inline -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_OPERATION_TIE_SI_H_) -#define _BE_VISITOR_OPERATION_TIE_SI_H_ - -// *********************************************************************** -// Operation visitor for operation declaration inside the TIE class -// *********************************************************************** - -class be_visitor_operation_tie_si : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_operation_tie_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the operaton inside a TIE class - // - // -public: - be_visitor_operation_tie_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_operation_tie_si (void); - // destructor - - virtual int visit_operation (be_operation *node); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_OPERATION_TIE_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root.h b/TAO/TAO_IDL/be_include/be_visitor_root.h deleted file mode 100644 index 0bc0434cfe8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root.h +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_root.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_ROOT_H) -#define TAO_BE_VISITOR_ROOT_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -#include "be_visitor_root/root.h" -#include "be_visitor_root/root_ch.h" -#include "be_visitor_root/root_ci.h" -#include "be_visitor_root/root_cs.h" -#include "be_visitor_root/root_sh.h" -#include "be_visitor_root/root_si.h" -#include "be_visitor_root/root_ss.h" -#include "be_visitor_root/any_op.h" -#include "be_visitor_root/cdr_op.h" - -#endif // TAO_BE_VISITOR_ROOT_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h deleted file mode 100644 index 55bea266f7b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for the Any operators for elements of -// the Root scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ANY_OP_H_) -#define _BE_VISITOR_ROOT_ANY_OP_H_ - -class be_visitor_root_any_op : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_any_op - // - // = DESCRIPTION - // This is a concrete visitor for root that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_root_any_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_any_op (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root -}; - -#endif /* _BE_VISITOR_ROOT_ANY_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h b/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h deleted file mode 100644 index 2c6675c0206..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for the CDR operators for elements of -// the Root scope. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_CDR_OP_H_) -#define _BE_VISITOR_ROOT_CDR_OP_H_ - -class be_visitor_root_cdr_op : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_cdr_op - // - // = DESCRIPTION - // This is a concrete visitor for root that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_root_cdr_op (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_cdr_op (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root -}; - -#endif /* _BE_VISITOR_ROOT_CDR_OP_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root.h b/TAO/TAO_IDL/be_include/be_visitor_root/root.h deleted file mode 100644 index 106bf26355d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides the generic visitor for the Root node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_H_) -#define _BE_VISITOR_ROOT_ROOT_H_ - -class be_visitor_root : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_root - // - // = DESCRIPTION - // This is a concrete visitor for root that abstracts all common tasks - // - -public: - be_visitor_root (be_visitor_context *ctx); - // constructor - - ~be_visitor_root (void); - // destructor - - virtual int visit_root (be_root *node); - // visit root - - // =visit methods on all elements syntactically valid in a Root scope - - virtual int visit_constant (be_constant *node); - // visit a constant - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an exception - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface - - virtual int visit_module (be_module *node); - // visit a module - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - - virtual int visit_typedef (be_typedef *node); - // visit the typedef node - - // =helper. This is used by derived clases to set the right context - - virtual int init (void); - // will be overridden by derived classes that set the appropriate context -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h deleted file mode 100644 index 47dd1f09b56..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_CH_H_) -#define _BE_VISITOR_ROOT_ROOT_CH_H_ - -class be_visitor_root_ch : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for root - // - // -public: - be_visitor_root_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ch (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h deleted file mode 100644 index 1362397511b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_CI_H_) -#define _BE_VISITOR_ROOT_ROOT_CI_H_ - -class be_visitor_root_ci : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for root - // - // -public: - be_visitor_root_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ci (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h deleted file mode 100644 index e8462a0df49..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_CS_H_) -#define _BE_VISITOR_ROOT_ROOT_CS_H_ - -class be_visitor_root_cs : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for root - // - // -public: - be_visitor_root_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_cs (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h deleted file mode 100644 index 45a15201de8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_sh.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// server header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_SH_H_) -#define _BE_VISITOR_ROOT_ROOT_SH_H_ - -class be_visitor_root_sh : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for root - // - // -public: - be_visitor_root_sh (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_sh (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_SH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h deleted file mode 100644 index 5ff6648ebb8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_si.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// server inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_SI_H_) -#define _BE_VISITOR_ROOT_ROOT_SI_H_ - -class be_visitor_root_si : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_si - // - // = DESCRIPTION - // This is a concrete visitor to generate the server inline for root - // - // -public: - be_visitor_root_si (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_si (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_SI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h deleted file mode 100644 index 412f93df56b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// root_ss.h -// -// = DESCRIPTION -// Concrete visitor for the Root class -// This one provides code generation for elements of the Root node in the -// server skeletons. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_ROOT_ROOT_SS_H_) -#define _BE_VISITOR_ROOT_ROOT_SS_H_ - -class be_visitor_root_ss : public be_visitor_root -{ - // - // = TITLE - // be_visitor_root_ss - // - // = DESCRIPTION - // This is a concrete visitor to generate the server skeletons for root - // - // -public: - be_visitor_root_ss (be_visitor_context *ctx); - // constructor - - ~be_visitor_root_ss (void); - // destructor - - virtual int init (void); - // set the right context and make a visitor -}; - -#endif /* _BE_VISITOR_ROOT_ROOT_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_scope.h b/TAO/TAO_IDL/be_include/be_visitor_scope.h deleted file mode 100644 index 07796a9b0e2..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_scope.h +++ /dev/null @@ -1,53 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_scope.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Scope" node -// -// = AUTHOR -// Aniruddha Gokhale and Carlos O'Ryan -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_SCOPE_H) -#define TAO_BE_VISITOR_SCOPE_H - -#include "be_visitor.h" -#include "be_visitor_decl.h" - -class be_visitor_scope : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_scope - // - // = DESCRIPTION - // This is a concrete visitor for the be_scope node. Its only purpose is to - // iterate over the elements of the scope - // -public: - be_visitor_scope (be_visitor_context *ctx); - // constructor - - ~be_visitor_scope (void); - // destructor - - int visit_scope (be_scope *node); - // visit scope - - virtual int post_process (void); - // do any processing after every element except the last one of the scope is - // processed -}; - - -#endif // TAO_BE_VISITOR_SCOPE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence.h b/TAO/TAO_IDL/be_include/be_visitor_sequence.h deleted file mode 100644 index a2e1a502a14..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence.h +++ /dev/null @@ -1,24 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -#if !defined (TAO_BE_VISITOR_SEQUENCE_H) -#define TAO_BE_VISITOR_SEQUENCE_H - -#include "be_visitor_decl.h" - -#include "be_visitor_sequence/sequence_ch.h" -#include "be_visitor_sequence/sequence_ci.h" -#include "be_visitor_sequence/sequence_cs.h" -// =helper visitors to generate the base type and element type -#include "be_visitor_sequence/sequence_base.h" -#include "be_visitor_sequence/buffer_type.h" -#include "be_visitor_sequence/elemtype.h" -// = any operators -#include "be_visitor_sequence/any_op_ch.h" -#include "be_visitor_sequence/any_op_cs.h" -#include "be_visitor_sequence/cdr_op_ch.h" -#include "be_visitor_sequence/cdr_op_cs.h" - -#endif /* TAO_BE_VISITOR_SEQUENCE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h deleted file mode 100644 index b0b1f8a666e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Any operators for the Sequence -// node in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_ANY_OP_CH_H_) -#define _BE_VISITOR_SEQUENCE_ANY_OP_CH_H_ - -class be_visitor_sequence_any_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the Any operator - // declarations - // - -public: - be_visitor_sequence_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_any_op_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -#endif /* _BE_VISITOR_SEQUENCE_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h deleted file mode 100644 index 4252635baef..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_ANY_OP_CS_H_) -#define _BE_VISITOR_SEQUENCE_ANY_OP_CS_H_ - -class be_visitor_sequence_any_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the Any operator - // implementations - // - -public: - be_visitor_sequence_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_any_op_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence -}; - -#endif /* _BE_VISITOR_SEQUENCE_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h deleted file mode 100644 index 449e5efd482..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// buffer_type.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the buffer type of the Sequence -// node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_) -#define _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ - -class be_visitor_sequence_buffer_type : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_buffer_type - // - // = DESCRIPTION - // This is a concrete visitor to generate the buffer type - // for a TAO_*_Sequence instantiation. - // -public: - be_visitor_sequence_buffer_type (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_buffer_type (void); - // destructor - - // = Visitor methods. - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_string (be_string *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h deleted file mode 100644 index 8503f16471f..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the CDR operators for the sequence -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_CDR_OP_CH_H_) -#define _BE_VISITOR_SEQUENCE_CDR_OP_CH_H_ - -class be_visitor_sequence_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the CDR operator - // declarations - // - -public: - be_visitor_sequence_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cdr_op_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence - -}; - -#endif /* _BE_VISITOR_SEQUENCE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h deleted file mode 100644 index 4015f388910..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Visitors for generation of code for Sequences in client stubs. This one -// generates the CDR operators. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_CDR_OP_CS_H_) -#define _BE_VISITOR_SEQUENCE_CDR_OP_CS_H_ - -// ************************************************************ -// class be_visitor_sequence_cs -// ************************************************************ - -class be_visitor_sequence_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for sequence that generates the CDR operator - // implementations - // - -public: - be_visitor_sequence_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cdr_op_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence - - // = Visitor methods on sequence types - - virtual int visit_array (be_array *node); - // visit sequence - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit an interface forward node - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type node - - virtual int visit_string (be_string *node); - // visit string - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - virtual int visit_union (be_union *node); - // visit union - -protected: - - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h deleted file mode 100644 index 88212e3ac0e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// elemtype.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the element type returned by the [] -// operators for the Sequence node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_ELEMTYPE_H_) -#define _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ - -class be_visitor_sequence_elemtype : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_elemtype - // - // = DESCRIPTION - // This is a concrete visitor to generate the return type for the - // [] operators - // - // = NOTES - // This class may eventually go away when the _var and _out classes are - // generated using templates -public: - be_visitor_sequence_elemtype (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_elemtype (void); - // destructor - - // = Visitors - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - virtual int visit_string (be_string *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h deleted file mode 100644 index 71673e2c230..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_base.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the base typ of the Sequence node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_) -#define _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ - -class be_visitor_sequence_base : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_base - // - // = DESCRIPTION - // This is a concrete visitor to generate the template parameters - // for a TAO_*_Sequence instantiation. - // - // = BUGS - // The class name is misleading, eventually this class could be - // used to generate code in other files, not only the client - // header. - // The visitor factory should provide a factory method that builds - // this class on the fly. - // -public: - be_visitor_sequence_base (be_visitor_context *ctx); - // Constructor - - ~be_visitor_sequence_base (void); - // destructor - - // = Visitor methods. - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); - virtual int visit_interface_fwd (be_interface_fwd *node); - virtual int visit_structure (be_structure *node); - virtual int visit_enum (be_enum *node); - virtual int visit_exception (be_exception *node); - virtual int visit_union (be_union *node); - virtual int visit_array (be_array *node); - virtual int visit_string (be_string *node); - virtual int visit_sequence (be_sequence *node); - virtual int visit_typedef (be_typedef *node); - -protected: - int visit_node (be_type *); - // helper that does the common job - -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h deleted file mode 100644 index 412b9c6ad57..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_) -#define _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ - -class be_visitor_sequence_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for - // sequences - // -public: - be_visitor_sequence_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_ch (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_unbounded_sequence (be_sequence *node); - // generate a instance of the unbounded sequence - - virtual int gen_bounded_sequence (be_sequence *node); - // generate a instance of the bounded sequence - - virtual int gen_unbounded_obj_sequence (be_sequence *node); - // generate a instance of the unbounded object sequence - - virtual int gen_bounded_obj_sequence (be_sequence *node); - // generate a instance of the bounded object sequence - - virtual int gen_bounded_str_sequence (be_sequence *node); - // generate a instance of the bounded string sequence - - virtual int instantiate_sequence (be_sequence *node); - // determine which sequence to instantiate - - virtual int gen_object_manager (be_sequence *node); - // generate a instance of the object manager - - virtual int gen_base_sequence_class (be_sequence *node); - // generate the base sequence class - - virtual int gen_var_defn (be_sequence *node); - // generate the var defn - - virtual int gen_out_defn (be_sequence *node); - // generate the out defn -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h deleted file mode 100644 index fbe8890c7c8..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_) -#define _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ - -class be_visitor_sequence_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for - // sequences. The only purpose is to generate the implementation for the - // _var and _out classes - // -public: - be_visitor_sequence_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_ci (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_var_impl (be_sequence *node); - // generate the var impl - - virtual int gen_out_impl (be_sequence *node); - // generate the out impl -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h deleted file mode 100644 index c159491108d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// sequence_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Sequence class -// This one provides code generation for the Sequence node in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_) -#define _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ - -class be_visitor_sequence_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_sequence_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for - // sequences - // -public: - be_visitor_sequence_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_sequence_cs (void); - // destructor - - virtual int visit_sequence (be_sequence *node); - // visit sequence node - - virtual int gen_base_sequence_class (be_sequence *node); - // generate the base sequence class -}; - -#endif /* _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure.h deleted file mode 100644 index c4c69c57013..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_structure.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_STRUCTURE_H) -#define TAO_BE_VISITOR_STRUCTURE_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// generic visitor -#include "be_visitor_structure/structure.h" -// concrete visitors -#include "be_visitor_structure/structure_ch.h" -#include "be_visitor_structure/structure_ci.h" -#include "be_visitor_structure/structure_cs.h" -#include "be_visitor_structure/any_op_ch.h" -#include "be_visitor_structure/any_op_cs.h" -#include "be_visitor_structure/cdr_op_ch.h" -#include "be_visitor_structure/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_STRUCTURE_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h deleted file mode 100644 index 1bd7384f191..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the Any operators for the structure -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_ANY_OP_CH_H_) -#define _BE_VISITOR_STRUCTURE_ANY_OP_CH_H_ - -class be_visitor_structure_any_op_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the Any operator - // declarations - // - -public: - be_visitor_structure_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_any_op_ch (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_STRUCTURE_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h deleted file mode 100644 index 1ee098a905a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the Any operators for the structure -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_ANY_OP_CS_H_) -#define _BE_VISITOR_STRUCTURE_ANY_OP_CS_H_ - -class be_visitor_structure_any_op_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the Any operator - // implementations - // - -public: - be_visitor_structure_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_any_op_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_STRUCTURE_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h deleted file mode 100644 index 029c6ef3a51..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the CDR operators for the structure -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_CDR_OP_CH_H_) -#define _BE_VISITOR_STRUCTURE_CDR_OP_CH_H_ - -class be_visitor_structure_cdr_op_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the CDR operator - // declarations - // - -public: - be_visitor_structure_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cdr_op_ch (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - -}; - -#endif /* _BE_VISITOR_STRUCTURE_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h deleted file mode 100644 index 7f64453bc86..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the CDR operators for the structure -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_CDR_OP_CS_H_) -#define _BE_VISITOR_STRUCTURE_CDR_OP_CS_H_ - -class be_visitor_structure_cdr_op_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for structure that generates the CDR operator - // implementations - // - -public: - be_visitor_structure_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cdr_op_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure - - virtual int post_process (void); - // any post processing that needs to be done after a scope element is handled - -}; - -#endif /* _BE_VISITOR_STRUCTURE_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h deleted file mode 100644 index a10531ccf9c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure.h -// -// = DESCRIPTION -// Concrete visitor for the STRUCTURE class -// This one provides the generic visitor for the Structure node. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_H_) -#define _BE_VISITOR_STRUCTURE_STRUCTURE_H_ - -class be_visitor_structure : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_structure - // - // = DESCRIPTION - // This is the base visitor for structure - // - // -public: - be_visitor_structure (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_field (be_field *node); - // visit field -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h deleted file mode 100644 index f946d033288..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the structure in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_) -#define _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ - -class be_visitor_structure_ch : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for structure - // - // -public: - be_visitor_structure_ch (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_ch (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h deleted file mode 100644 index ac47118f00d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the structure in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_) -#define _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ - -class be_visitor_structure_ci : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for structure - // - // -public: - be_visitor_structure_ci (be_visitor_context *ctx); - // constructureor - - ~be_visitor_structure_ci (void); - // destructureor - - virtual int visit_structure (be_structure *node); - // visit structure. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h deleted file mode 100644 index a2fb142c02e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// structure_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Structure class -// This one provides code generation for the structure in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_) -#define _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ - -class be_visitor_structure_cs : public be_visitor_structure -{ - // - // = TITLE - // be_visitor_structure_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for structure - // - // -public: - be_visitor_structure_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_structure_cs (void); - // destructor - - virtual int visit_structure (be_structure *node); - // visit structure. - -}; - -#endif /* _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode.h b/TAO/TAO_IDL/be_include/be_visitor_typecode.h deleted file mode 100644 index cbd083c4fb7..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode.h +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typecode.h -// -// = DESCRIPTION -// Concrete visitor to generate code for TypeCodes -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_TYPECODE_H) -#define TAO_BE_VISITOR_TYPECODE_H - -#include "be_visitor_decl.h" - -#include "be_visitor_typecode/typecode_decl.h" -#include "be_visitor_typecode/typecode_defn.h" - - -#endif /* TAO_BE_VISITOR_TYPECODE_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h deleted file mode 100644 index c6f67b4fc4a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typecode_decl.h -// -// = DESCRIPTION -// Concrete visitor for the generation of TypeCodes. -// This one generates the declaration. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPECODE_TYPECODE_DECL_H_) -#define _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ - -class be_visitor_typecode_decl : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typecode_decl - // - // = DESCRIPTION - // This is a concrete visitor for generating TypeCode declarations - // - -public: - be_visitor_typecode_decl (be_visitor_context *ctx); - // constructor - - ~be_visitor_typecode_decl (void); - // destructor - - virtual int visit_type (be_type *node); - // visit a generic be_type node - - // =visit methods on all types. They call the generic visit_type - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h deleted file mode 100644 index b87b57dfa05..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typecode_defn.h -// -// = DESCRIPTION -// Concrete visitor for the generation of TypeCodes. -// This one generates the definitions. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_) -#define _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ - -class be_visitor_typecode_defn : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typecode_defn - // - // = DESCRIPTION - // This is a concrete visitor for generating TypeCode definitions - // - -public: - be_visitor_typecode_defn (be_visitor_context *ctx); - // constructor - - ~be_visitor_typecode_defn (void); - // destructor - - virtual int visit_type (be_type *node); - // visit a generic be_type node - - // =visit methods on all types. They call the generic visit_type - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_exception (be_exception *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit interface - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_typedef (be_typedef *node); - // visit a typedef - - virtual int visit_union (be_union *node); - // visit a union - - - // = special methods - - virtual int gen_nested_namespace_begin (be_module *node); - // generate the nested namespace begins - - virtual int gen_nested_namespace_end (be_module *node); - // generate the nested namespace ends -}; - -#endif /* _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef.h deleted file mode 100644 index 26a89412edd..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_typedef.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_TYPEDEF_H) -#define TAO_BE_VISITOR_TYPEDEF_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// generic visitor -#include "be_visitor_typedef/typedef.h" -// concrete visitors -#include "be_visitor_typedef/typedef_ch.h" -#include "be_visitor_typedef/typedef_ci.h" -#include "be_visitor_typedef/typedef_cs.h" -#include "be_visitor_typedef/any_op_ch.h" -#include "be_visitor_typedef/any_op_cs.h" -#include "be_visitor_typedef/cdr_op_ch.h" -#include "be_visitor_typedef/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_TYPEDEF_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h deleted file mode 100644 index 915465ed1fb..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Any operators of the Typedef -// class in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_ANY_OP_CH_H_) -#define _BE_VISITOR_TYPEDEF_ANY_OP_CH_H_ - -class be_visitor_typedef_any_op_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_typedef_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_any_op_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_ANY_OP_CH_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h deleted file mode 100644 index 9014b277d1d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Any operators of the Typedef -// class in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_ANY_OP_CS_H_) -#define _BE_VISITOR_TYPEDEF_ANY_OP_CS_H_ - -class be_visitor_typedef_any_op_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the Any operator - // declarations and implementations - // - -public: - be_visitor_typedef_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_any_op_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_ANY_OP_CS_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h deleted file mode 100644 index 82f72053396..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the CDR operators of the Typedef -// class in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_CDR_OP_CH_H_) -#define _BE_VISITOR_TYPEDEF_CDR_OP_CH_H_ - -class be_visitor_typedef_cdr_op_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_typedef_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cdr_op_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_CDR_OP_CH_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h deleted file mode 100644 index 2301ba617a5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the CDR operators of the Typedef -// class in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_CDR_OP_CS_H_) -#define _BE_VISITOR_TYPEDEF_CDR_OP_CS_H_ - -class be_visitor_typedef_cdr_op_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for typedef that generates the CDR operator - // declarations and implementations - // - -public: - be_visitor_typedef_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cdr_op_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_CDR_OP_CS_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h deleted file mode 100644 index 4b9f9f48507..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the generic visitors for the Typedef class. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_H_) -#define _BE_VISITOR_TYPEDEF_TYPEDEF_H_ - -class be_visitor_typedef : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_typedef - // - // = DESCRIPTION - // This is a concrete visitor for typedef that abstracts all common tasks - // - -public: - be_visitor_typedef (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // must be overridden - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type node - - virtual int visit_string (be_string *node); - // visit a typedef - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h deleted file mode 100644 index a18b580d489..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Typedef class in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_) -#define _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ - -class be_visitor_typedef_ch : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for typedef - // - // -public: - be_visitor_typedef_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_ch (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_interface (be_interface *node); - // visit an interface; - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type node - - virtual int visit_string (be_string *node); - // visit a typedef - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h deleted file mode 100644 index 38c0276c33a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h +++ /dev/null @@ -1,65 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_ci.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Typedef class in the client -// inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_) -#define _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_ - -class be_visitor_typedef_ci : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_sh - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for typedef - // - // -public: - be_visitor_typedef_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_ci (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - - // =visit methods on all elements syntactically valid as types that can be - // typedefed. - - virtual int visit_array (be_array *node); - // visit a array - - virtual int visit_sequence (be_sequence *node); - // visit a sequence - - virtual int visit_structure (be_structure *node); - // visit a structure - - virtual int visit_union (be_union *node); - // visit a union - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h deleted file mode 100644 index 091ac01e22c..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h +++ /dev/null @@ -1,50 +0,0 @@ - -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// typedef_cs.h -// -// = DESCRIPTION -// Concrete visitor for the Typedef class -// This provides the code generation for the Typedef class in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_) -#define _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_ - -class be_visitor_typedef_cs : public be_visitor_typedef -{ - // - // = TITLE - // be_visitor_typedef_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the server header for typedef - // - // -public: - be_visitor_typedef_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_typedef_cs (void); - // destructor - - virtual int visit_typedef (be_typedef *node); - // visit typedef. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_*/ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union.h b/TAO/TAO_IDL/be_include/be_visitor_union.h deleted file mode 100644 index 6677a26284d..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_UNION_H) -#define TAO_BE_VISITOR_UNION_H - -#include "be_visitor.h" -#include "be_visitor_scope.h" - -// generic visitor -#include "be_visitor_union/union.h" -// concrete visitors -#include "be_visitor_union/union_ch.h" -#include "be_visitor_union/union_ci.h" -#include "be_visitor_union/union_cs.h" -#include "be_visitor_union/discriminant_ch.h" -#include "be_visitor_union/discriminant_ci.h" -#include "be_visitor_union/discriminant_cs.h" -#include "be_visitor_union/any_op_ch.h" -#include "be_visitor_union/any_op_cs.h" -#include "be_visitor_union/cdr_op_ch.h" -#include "be_visitor_union/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_UNION_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h deleted file mode 100644 index 2f045164396..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the Any operators for the Union in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_ANY_OP_CH_H_) -#define _BE_VISITOR_UNION_ANY_OP_CH_H_ - -class be_visitor_union_any_op_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_any_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any operator - // declarations - // - -public: - be_visitor_union_any_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_any_op_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -#endif /* _BE_VISITOR_UNION_ANY_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h deleted file mode 100644 index 95bf8baaa82..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// any_op_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the Any operators for the Union in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_ANY_OP_CS_H_) -#define _BE_VISITOR_UNION_ANY_OP_CS_H_ - -class be_visitor_union_any_op_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_any_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the Any operator - // implementations - // - -public: - be_visitor_union_any_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_any_op_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -#endif /* _BE_VISITOR_UNION_ANY_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h deleted file mode 100644 index 3f92aefd860..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// This one provides code generation for the CDR operators for the union -// in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_CDR_OP_CH_H_) -#define _BE_VISITOR_UNION_CDR_OP_CH_H_ - -class be_visitor_union_cdr_op_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the CDR operator - // declarations - // - -public: - be_visitor_union_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cdr_op_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - -}; - -#endif /* _BE_VISITOR_UNION_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h deleted file mode 100644 index c45a758d024..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the Union class -// This one provides code generation for the CDR operators for the union -// in the client stub. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_CDR_OP_CS_H_) -#define _BE_VISITOR_UNION_CDR_OP_CS_H_ - -class be_visitor_union_cdr_op_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for union that generates the CDR operator - // implementations - // - -public: - be_visitor_union_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cdr_op_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union - - virtual int post_process (void); - // any post processing that needs to be done after a scope element is handled - -}; - -#endif /* _BE_VISITOR_UNION_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h deleted file mode 100644 index 5c46ba2cd58..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the discriminant of the Union in the client -// header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CH_H_) -#define _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ - -class be_visitor_union_discriminant_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for union - // discriminant - // - // -public: - be_visitor_union_discriminant_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_ch (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node -}; - -#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h deleted file mode 100644 index bb44c2f12ee..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_ci.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the discriminant of the Union in the client -// inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CI_H_) -#define _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ - -class be_visitor_union_discriminant_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for union - // discriminant - // - // -public: - be_visitor_union_discriminant_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_ci (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum - - virtual int visit_predefined_type (be_predefined_type *node); - // visit a predefined type - - virtual int visit_typedef (be_typedef *node); - // visit a typedef node -}; - -#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h deleted file mode 100644 index 23cbe129a22..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// discriminant_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the discriminant of the Union in the client -// stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CS_H_) -#define _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ - -class be_visitor_union_discriminant_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_discriminant_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for union - // discriminant - // - // -public: - be_visitor_union_discriminant_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_discriminant_cs (void); - // destructor - - virtual int visit_enum (be_enum *node); - // visit an enum. Required to generate the typecode for an enum definition - // appearing side the union - -}; - -#endif /* _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union.h b/TAO/TAO_IDL/be_include/be_visitor_union/union.h deleted file mode 100644 index 568f32b6d8b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one is a generic visitor. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_UNION_H_) -#define _BE_VISITOR_UNION_UNION_H_ - -class be_visitor_union : public be_visitor_scope -{ - // - // = TITLE - // be_visitor_union - // - // = DESCRIPTION - // This is the base visitor for union - // - // -public: - be_visitor_union (be_visitor_context *ctx); - // constructor - - ~be_visitor_union (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - - // =visit operations on syntactically valid elements in our scope - - virtual int visit_union_branch (be_union_branch *node); - // visit union_branch -}; - -#endif /* _BE_VISITOR_UNION_UNION_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h deleted file mode 100644 index 5d2f389fb5e..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_UNION_CH_H_) -#define _BE_VISITOR_UNION_UNION_CH_H_ - -class be_visitor_union_ch : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_ch - // - // = DESCRIPTION - // This is a concrete visitor to generate the client header for union - // - // -public: - be_visitor_union_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_ch (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_UNION_UNION_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h deleted file mode 100644 index b0a2c52afe5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_ci.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code in the client inline file. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_UNION_CI_H_) -#define _BE_VISITOR_UNION_UNION_CI_H_ - -class be_visitor_union_ci : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_ci - // - // = DESCRIPTION - // This is a concrete visitor to generate the client inline for union - // - // -public: - be_visitor_union_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_ci (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_UNION_UNION_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h deleted file mode 100644 index 3a6ef0322aa..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// union_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_UNION_CS_H_) -#define _BE_VISITOR_UNION_UNION_CS_H_ - -class be_visitor_union_cs : public be_visitor_union -{ - // - // = TITLE - // be_visitor_union_cs - // - // = DESCRIPTION - // This is a concrete visitor to generate the client stubs for union - // - // -public: - be_visitor_union_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_cs (void); - // destructor - - virtual int visit_union (be_union *node); - // visit union. We provide code for this method in the derived class - -}; - -#endif /* _BE_VISITOR_UNION_UNION_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch.h deleted file mode 100644 index 970addf09a5..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// be_visitor_union_branch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_BE_VISITOR_UNION_BRANCH_H) -#define TAO_BE_VISITOR_UNION_BRANCH_H - -#include "be_visitor_decl.h" - -#include "be_visitor_union_branch/public_ch.h" -#include "be_visitor_union_branch/public_ci.h" -#include "be_visitor_union_branch/public_cs.h" -#include "be_visitor_union_branch/public_assign_cs.h" -#include "be_visitor_union_branch/public_reset_cs.h" -#include "be_visitor_union_branch/public_access_cs.h" -#include "be_visitor_union_branch/private_ch.h" -#include "be_visitor_union_branch/cdr_op_ch.h" -#include "be_visitor_union_branch/cdr_op_cs.h" - -#endif // TAO_BE_VISITOR_UNION_BRANCH_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h deleted file mode 100644 index 09ccb3bf744..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_ch.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_) -#define _BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_ - -class be_visitor_union_branch_cdr_op_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_cdr_op_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client header. - // -public: - be_visitor_union_branch_cdr_op_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_cdr_op_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h deleted file mode 100644 index c679327e1e0..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h +++ /dev/null @@ -1,78 +0,0 @@ -// -// $Id$ -// -/* -*- c++ -*- */ -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// cdr_op_cs.h -// -// = DESCRIPTION -// Concrete visitor for the base "BE_Union_Branch" node -// This generates code for structure members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_) -#define _BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_ - -class be_visitor_union_branch_cdr_op_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_cdr_op_cs - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client header. - // -public: - be_visitor_union_branch_cdr_op_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_cdr_op_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h deleted file mode 100644 index 5037fb586ea..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// private_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for private part of the union class for the union -// members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_) -#define _BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_ - -class be_visitor_union_branch_private_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_private_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client - // header. This generates the code for the private section of the "union" - // class - // -public: - be_visitor_union_branch_private_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_private_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h deleted file mode 100644 index 39a2085dd8b..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_access_cs.h +++ /dev/null @@ -1,80 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_access_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the access method of the union class -// for the union members. This is primarily used by the marshaling engine. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_) -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_ - -class be_visitor_union_branch_public_access_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_access_cs - // - // = DESCRIPTION - // This is used to generate the body of the access method - // -public: - be_visitor_union_branch_public_access_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_access_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h deleted file mode 100644 index 8bf78d57eb1..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_assign_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the assignment operator of the union class -// for the union members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_) -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_ - -class be_visitor_union_branch_public_assign_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_assign_cs - // - // = DESCRIPTION - // This is used to generate the body of the assignment operator and the - // copy constructor of the union class - // -public: - be_visitor_union_branch_public_assign_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_assign_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h deleted file mode 100644 index 43387f44cfa..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_ch.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for public part of the union class for the union -// members in the client header. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_) -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_ - -class be_visitor_union_branch_public_ch : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_ch - // - // = DESCRIPTION - // This is a concrete visitor for the be_union_branch node for the client - // header. This generates the code for the public section of the "union" - // class - // -public: - be_visitor_union_branch_public_ch (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_ch (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h deleted file mode 100644 index 7462bdfe3de..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_ci.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for public part of the union class for the union -// members in the client inline. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_) -#define _BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_ - -class be_visitor_union_branch_public_ci : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_ci - // - // = DESCRIPTION - // This visitor is used to generate the accessors for the members of the - // union - // -public: - be_visitor_union_branch_public_ci (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_ci (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h deleted file mode 100644 index f727b019644..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for public part of the union class for the union -// members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_) -#define _BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_ - -class be_visitor_union_branch_public_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_cs - // - // = DESCRIPTION - // This visitor is used to generate implementation such as typecodes for - // constructed types - // -public: - be_visitor_union_branch_public_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h deleted file mode 100644 index 6e92074db2a..00000000000 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- c++ -*- */ -// -// $Id$ -// - -// ============================================================================ -// -// = LIBRARY -// TAO IDL -// -// = FILENAME -// public_reset_cs.h -// -// = DESCRIPTION -// Visitor for the Union class. -// This one generates code for the reset method of the union class -// for the union members in the client stubs. -// -// = AUTHOR -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_) -#define _BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_ - -class be_visitor_union_branch_public_reset_cs : public be_visitor_decl -{ - // - // = TITLE - // be_visitor_union_branch_public_reset_cs - // - // = DESCRIPTION - // This is used to generate the body of the resetment operator and the - // copy constructor of the union class - // -public: - be_visitor_union_branch_public_reset_cs (be_visitor_context *ctx); - // constructor - - ~be_visitor_union_branch_public_reset_cs (void); - // destructor - - virtual int visit_union_branch (be_union_branch *node); - // visit the union_branch node - - // =visit operations on all possible data types that a union_branch can be - - virtual int visit_array (be_array *node); - // visit array type - - virtual int visit_enum (be_enum *node); - // visit enum type - - virtual int visit_interface (be_interface *node); - // visit interface type - - virtual int visit_interface_fwd (be_interface_fwd *node); - // visit interface forward type - - virtual int visit_predefined_type (be_predefined_type *node); - // visit predefined type - - virtual int visit_sequence (be_sequence *node); - // visit sequence type - - virtual int visit_string (be_string *node); - // visit string type - - virtual int visit_structure (be_structure *node); - // visit structure type - - virtual int visit_typedef (be_typedef *node); - // visit typedefed type - - virtual int visit_union (be_union *node); - // visit union type - -}; - -#endif /* _BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_ */ diff --git a/TAO/TAO_IDL/docs/ANNOUNCEMENT b/TAO/TAO_IDL/docs/ANNOUNCEMENT deleted file mode 100644 index 870db6f6006..00000000000 --- a/TAO/TAO_IDL/docs/ANNOUNCEMENT +++ /dev/null @@ -1,131 +0,0 @@ -WHAT: - -SunSoft, Inc., Mountain View, California, has placed the source code to -Project DOE's Interface Definition Language (IDL) compiler front end -(CFE) on OMG's file server, making the implementation publicly -available. This release is identified by the version number 1.3. - -Project DOE is SunSoft's corporate-wide development effort to integrate -distributed object technology into the Solaris O/S. OMG (Object Management -Group) is the industry wide body formed to create specifications for -distributed object technology. It currently has more than 370 members. OMG -IDL is part of OMG's CORBA 1.1 specification and provides a standardized -way for defining object interfaces. OMG IDL forms the basis for distributed -object interactionin Project DOE. - -The SunSoft OMG IDL CFE provides a complete framework for building -CORBA 1.1-compliant preprocessors for OMG IDL. By using this standard -implementation, developers of OMG IDL compilers will save many months -of work and enhance the portability and interoperability of OMG -IDL-interfaced objects. - -The SunSoft OMG IDL CFE allows convenient and fast integration of new back -ends to the compiler. The release consists of a front end which converts -OMG IDL to an intermediate format, a compiler framework driver, an example -implementation of a compiler back end, and a set of protocols for -interaction between the front and back ends. The SunSoft OMG IDL CFE -parser uses components generated by yacc and lex. - -The SunSoft OMG IDL CFE is designed to allow easy extension of OMG IDL -without impacting existing back-end implementations. As the CORBA -specification evolves, any new updates to the IDE CFE will be placed -by SunSoft on the OMG server. - -This release provides a directory with many examples of OMG IDL -specifications to allow users to become familiar with the process of -writing OMG IDL code. - -For more information send email to idl-cfe@sun.com. - -HOW: - -The SunSoft OMG IDL CFE is available at no charge through anonymous FTP -in source form on the OMG file server, omg.org. Please retrieve the -file OMG_IDL_CFE_1.3.tar.Z from the directory pub/OMG_IDL_CFE_1.3. Please -let us know who you are if you retrieve the compiler front end using this -method, by sending email to idl-cfe@sun.com. - -You can also retrieve the software by using the OMG mail server program. -Send email with the subject 'help' to omg_idl@omg.org, and the mail server -will respond with instructions on how to retrieve the software. - -WHEN: - -The SunSoft OMG IDL CFE is available now. - -CONTACT: - -Please let us know who you are if you decide to use this software, and how -you use it. Please send email to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -We ask that if you make extensions or modifications to this source release, -please make these extensions available to others using the OMG IDL compiler -front end, by sending the modified sources to the above email address. This -will help us evaluate your extensions for inclusion in a future version. It -also ensures your investment in these extensions when new versions of the -CFE are released. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/docs/BUG_REPORT b/TAO/TAO_IDL/docs/BUG_REPORT deleted file mode 100644 index 28c34ae141d..00000000000 --- a/TAO/TAO_IDL/docs/BUG_REPORT +++ /dev/null @@ -1,144 +0,0 @@ -OMG IDL COMPILER FRONT END PROBLEM REPORT FORM --============================================- - -Checklist: Did you: -- include configuration information? -- include compiler version number (use -V to obtain)? -- include script of run? -- include IDL file causing problem? -- make any changes to the CFE? If so, did you include a diff against - original version? - -PLEASE SEND THE COMPLETED BUG REPORT TO: idl-cfe@sun.com. - -THANK YOU FOR REPORTING THIS PROBLEM! THROUGH YOUR COLLABORATION, SUNSOFT -WILL BE ABLE TO IMPROVE THE FUNCTIONALITY OF THIS PRODUCT. RECEIPT OF BUG -REPORTS WILL BE ACKNOWLEDGED BUT NO OBLIGATION IS UNDERTAKEN BY SUNSOFT TO -CORRECT THE REPORTED PROBLEM. SEE YOUR COPYRIGHT AND LICENSE INFORMATION. - - -CONFIGURATION INFORMATION (describe your hardware platform, operating -system and which compilers you used to compile the CFE): - - - - - - -COMPILER VERSION INFORMATION (include output from idl -V here): - - - - - - - -PROBLEM DESCRIPTION (describe problem, include script if available): - - - - - - - - -IDL INPUT CAUSING PROBLEM (include IDL input causing problem): - - - - - - - - - -DID YOU MAKE ANY CHANGES TO THE CFE? [Y] _ [N] _ -IF YES, INCLUDE A DIF OF YOUR VERSION AGAINST ORIGINAL VERSION: - - - - - - - - - -PROPOSED FIX (if you believe you know the cause of the problem, please -include a proposed change to the software to correct it): - - - - - - - - -ANY OTHER RELEVANT INPUT (include here any other information you believe -may be relevant to the resolution of the problem you described): - - - - - - -PLEASE SEND THIS PROBLEM REPORT TO idl-cfe@sun.com. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/docs/CHANGES b/TAO/TAO_IDL/docs/CHANGES deleted file mode 100644 index ae6fca7bcea..00000000000 --- a/TAO/TAO_IDL/docs/CHANGES +++ /dev/null @@ -1,122 +0,0 @@ -CHANGES WHICH AFFECT BE WRITERS --=============================- - -INTRODUCTION - -This file describes changes that affect BE writers. It contains IMPORTANT -INFORMATION for BE writers who wish to migrate a BE written to operate with -release 1.2 to operate with release 1.3. It is likely that not following -these instructions will result in a compilable but malfunctioning compiler. - -AST INHERITANCE CHANGES - -The AST has been reorganized so that AST_Union and AST_Exception now -inherit from AST_Structure. This means that constructors of BE classes -which inherit from AST_Union or AST_Exception now need to explicitly call -an initializer for AST_Structure in their init section. - -We repeat below the information given in the file WRITING_A_BE, in the -section entitled "WRITING A BE". - -AST_EXCEPTION - -The signature for constructors of classes inheriting from AST_Exception -should now be: - - BE_Exception::BE_Exception(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_except, n, p), - AST_Structure(AST_Decl::NT_except, n, p), - UTL_Scope(AST_Decl::NT_except) - -AST_UNION - -The signature for constructors of classes inheriting from AST_Union should -now be: - - BE_Union::BE_Union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Union(dt, n, p), - AST_Structure(AST_Decl::NT_union, n, p), - AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) - -IDL_BOOL TYPE - -To increase portability and reduce dependency of the sources on POSIX -compliance in targets of ports, IDL now provides its own boolean type which -is named idl_bool. It provides two truth values, I_TRUE and I_FALSE. - -UTL_SCOPEDNAME TYPE - -The UTL_ScopedName type is now a list of Identifier nodes; in previous -releases it used to be a list of String nodes. If your BE constructs scoped -names this change will prevent recompilation until you modify your -constructor calls to invoke constructors for Identifier instead of for -String. The signature of the constructor is: - - Identifier::Identifier(char *, long x=1, long y=0, long z=I_FALSE) - -The additional arguments which can be defaulted to the values indicated are -included for future use. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/CLI b/TAO/TAO_IDL/docs/CLI deleted file mode 100644 index a61c2bae365..00000000000 --- a/TAO/TAO_IDL/docs/CLI +++ /dev/null @@ -1,187 +0,0 @@ -OMG INTERFACE DEFINITION LANGUAGE COMPILER FRONT END: COMMAND LINE INTERFACE --==========================================================================- - -INTRODUCTION - -This document describes general OMG Interface Definition Language compiler -command line options. Options that are specific to a given back end, object -adapter or language are not described here. These should be described in a -document detailing the interface implemented by each specific back end. - -OMG INTERFACE DEFINITION LANGUAGE COMMAND LINE OPTIONS - -OMG Interface Definition Language compiler options are described below. -Unless otherwise noted, only one occurrence of each option is allowed. -The following conventions are used - -- Text in '[..]' is optional. -- Text followed by '*' can be repeated zero or more times. -- Text followed by '+' can be repeated once or more times. -- '{' and '}' are used to group text to cause '+' or '*' to apply to - the entire grouped text. -- 'aa|bb' means either 'aa' or 'bb'. - -COMMAND LINE SUMMARY - - idl [flag | file-name]* - -Flags are command line words that start with a '-'. All other command line -words are assumed to be file names. If no file names are given, input is -taken from stdin. - -COMMAND LINE FLAGS - --A[xyz] A local escape. This can be used to specify additional options that - are specific to a given implementation. More than one -A option is - allowed - --Dname[=value] - Defines name and an optional value to be passed to a compliant C++ - preprocessor, as if by #define. White space between the -D option - and the name is optional. More than one -D option is allowed. - --d If no parse errors were found, prints out a representation of the - IDL input to stderr. - --E Runs the C++ preprocessor on the OMG Interface Definition Language - input and sends the result to the standard output. - --Idirectory - Causes directory to be added to the search path for include files. - More than one -I option is allowed. This option is processed by a - compliant C++ preprocessor. - --Uname Undefines name, as if by #undef. White space between the -U option - and the name is optional. More than one -U option is allowed. - --V Causes the version information of the CFE to be displayed. No other - work is done, regardless of any other options. - --W[b|p][,arg]+ - Hands off the arguments supplied to a specific portion of the OMG - Interface Definition Language compiler: - - - -Wb arguments are handed to the loaded back end - - -Wp arguments are handed to a compliant C++ preprocessor - --Yp,pathname - Specifies an alternate path for finding a C++ compliant - preprocessor. Specifiers other than 'p' may be defined in future - versions of the CFE. More than one -Y option may appear. The last - one specifying each component takes effect. - - This option exists but currently does nothing. Instead, we use the - preprocessing facilities provided by invoking CC -E always. - --bback_end - Causes the CFE to use a different compiler back end than the - default one (if dynamic loading is supported). Legal values for - this option and the default value are implementation specific. - --u Prints a usage message from the CFE. All possible options are - shown. No other work is done regardless of any other options. - --v Causes the CFE to produce informational output as the various - phases of the compiler execute. - --w Suppresses IDL compiler warning messages. - - -WHITESPACE - -All option arguments may be separated from their option letter by -whitespace. For example, -D FOO is equivalent to -DFOO. - -UNKNOWN OPTIONS - -If an unknown option is passed to the CFE, the offending option is -displayed to the user together with a usage message, and no compilation is -performed. - -PASSING OPTIONS TO COMPILER PHASES - -The order in which options appear on the command line is preserved when -they are passed to various compiler phases. - -MUTUALLY EXCLUSIVE OPTION COMBINATIONS - -Mutually exclusive or ambiguous option combinations are resolved by using -the option that appears later on the command line. For example, - - -DFOO -UFOO - -has no effect and leaves FOO undefined for the preprocessor. - -OPTION SCOPE - -All options are in effect for the entire IDL compilation run. If multiple -IDL source file names are given on the command line, all options apply to -each file. If different IDL source files require different sets of options -for successfull compilation, they must be compiled separately. - -EXIT STATUS - -IDL Compilers exit with status equal to zero for successfull compilations. -If errors were found by the CFE, the exit status is a count of the errors. -The exit status for unsuccessfull compilations aborted by BEs is defined by -each BE. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/docs/COPYRIGHT b/TAO/TAO_IDL/docs/COPYRIGHT deleted file mode 100644 index 461ad949518..00000000000 --- a/TAO/TAO_IDL/docs/COPYRIGHT +++ /dev/null @@ -1,57 +0,0 @@ -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/INSTALL b/TAO/TAO_IDL/docs/INSTALL deleted file mode 100644 index 6fcaa710042..00000000000 --- a/TAO/TAO_IDL/docs/INSTALL +++ /dev/null @@ -1,229 +0,0 @@ -INTERFACE DEFINITION LANGUAGE INSTALLATION GUIDE --==============================================- - -INTRODUCTION - -This file describes the installation process for OMG_IDL_CFE version 1.3. -This file explains how to: - -- install the source code -- modify the sources to customize them for different configurations -- modify the sources to implement your own back end - -TESTED CONFIGURATIONS - -This release has been tested and is believed to operate correctly on: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -This is the first release of OMG IDL CFE which is preconfigured to compile -correctly for Solaris 2.x and with SunPro SparcWorks compilers. - -CUSTOMIZATION - -The release contains a file idl_make_vars in the current directory, which -is included in each Makefile. This file defines all the customizable -variables for the CFE. - -OSV should be set to a string denoting the operating system upon which you -wish to build the CFE. The CFE as shipped is preconfigured to compile -correctly on Solaris 2.x (OSV=SOLARIS2), and has also been tested on SunOS -4.1.x (OSV=SUNOS4). It contains code donated by HP which enables it to be -compiled on Apollo Domain systems (OSV=apollo) and HPUX systems (OSV=hpux), -but these two configurations have not been tested. - -C++ and CCC should be set to identify the C++ compiler you will use to -compile this release. Their values should be identical. Both are set to -address differences between various make programs - some predefine CCC, -others use C++ to denote the C++ compiler. The possible values are CC -(which uses the Sparcworks compilers on SunOS 4.1 and Solaris 2.3) and g++, -which uses the installed version of GNU C++. - -CCFLAGS should be set to a list of flags to pass to the C++ compiler. As -shipped, this list is -g. NOTE: We have not extensively tested the release -with optimization turned on. - -CPP_FLAGS should be set to a list of flags to pass to the C++ preprocessor. -Use this variable to enable or disable specific customizations you make to -the BE or CFE sources. - -YFLAGS should be set to a list of flags to pass to the Yacc program. As -shipped, the list is -d -t, which causes Yacc to generate y.tab.h and -y.tab.c files. - -LEXFLAGS should be set to a list of flags to pass to the Lex program. As -shipped, the list -t. - -RANLIB should be set to the location of the ranlib program on your system. -As shipped this is ranlib. If your system has no ranlib you can set this -variable to ':' or /bin/true. As shipped the variable is preset to -/bin/true since Solaris 2.x does not use ranlib. - -AR should be set to the location of the ar program on your system. As -shipped this is ar. If your system has a different mechanism for creating -libraries, you should modify the value of this variable accordingly. - -ARFLAGS should be set to the flags to be passed to the ar program. As -shipped this is 'crv'. - -INSTALLATION - -a. Disk space requirements - -This distribution requires approximately 350 KBytes when compressed. When -uncompressed, untarred and compiled, approximately 10 MBytes of disk space -are consumed on a Sun 4. - -b. Getting the software - -Use anonymous FTP to omg.org and supply your e-mail address as password. -Change directories to pub/OMG_IDL_CFE_1.3, set bin and get the compressed -tar file OMG_IDL_CFE_1.3.tar.Z. - -The distribution may, in the future, be made available from other archives -on the Internet. However, omg.org will always have the most up-to-date -version of this software. - -After transferring this file, uncompress it and untar it in a directory of -your choice. - -c. Compiling it - -If you are using a Sparcstation running Solaris 2.x and have the SunPro -Sparcworks compilers installed, you may directly install the software. If -your hardware or operating system configurations are different, read and -follow the instructions in the previous section first. - -At the root directory of the release, issue - - % make - -or - - % make all - -This will compile the provided sources and the sources found in the be -directory. Executing this make target causes 'make all' to be invoked in -each subdirectory, resulting in building the libraries for each component -and finally a link step producing an executable IDL compiler. - -In order to make only the compiler front end components, without compiling -the sources found in the be directory and without building an executable, -issue - - % make libs - -This will build the libraries in the ast, fe, util, driver and narrow -directories. To build only the be, issue - - % make be - -To build all libraries without creating an executable, issue - - % make all_libs - -To remove all files created by the build process, issue - - % make clean - -This will not remove any files created by Yacc and Lex, because you may be -using the ones provided in the distribution (see below). - -d. Yacc and Lex - -Some installations may not have a C++ aware Yacc and Lex processor. For -these installations, we have included the output of yacc and lex in the -release. If you need to use these files to build the release because you -don't have access to a C++ capable Yacc or Lex, go to the "fe" directory, -issue the command: - - % touch lex.yy.cc y.tab.cc y.tab.hh - -This will ensure that the processed files appear to be newer than the -source files they were produced from and will cause "make" to skip their -production. - -NOTE: The files provided in the distribution have been produced on Solaris -2.3 and may contain OS-specific #include directives. If you intend to use -these files, you may have to edit them to make them work in your -environment. The provided files are known to compile cleanly without -modification with both SunPro Sparcworks compilers and GNU C++ on both -SunOS 4.1 and Solaris 2.3. We have not tested the grammar and lexer input -files with bison or flex. - -IMPLEMENTING A BACK END - -To implement your own back end, you can start with the provided sources in -the be directory and modify them. The Makefile understands the 'make all' -target and will generate libbe.a in the demo_be directory. As set up, the -variable CPP_FLAGS allows you to place include files either in the current -directory or in the include directory. Alternatively, you can place your -include files in a new directory and modify CPP_FLAGS to cause the C++ -preprocessor to search this new directory for referenced include files, by -adding a new -I directive. - -Additional detail on the structure and function of back ends, and on the -protocol which a back end must implement, are found in the document -entitled WRITING_A_BE. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/PROBLEMS b/TAO/TAO_IDL/docs/PROBLEMS deleted file mode 100644 index 65cfb6a1893..00000000000 --- a/TAO/TAO_IDL/docs/PROBLEMS +++ /dev/null @@ -1,132 +0,0 @@ -OMG INTERFACE DEFINITION LANGUAGE COMPILER FRONT END: KNOWN PROBLEMS --==================================================================- - -INTRODUCTION - -This file describes what configurations are known to work correctly with -this release, and what are the known problems with this release as shipped. -Comments about future possible enhancements do not imply a commitment on -the part of Sun or any of its subsidiaries to produce these enhancements. - -TESTED CONFIGURATIONS - -This release has been tested and is known to operate correctly on: - -- Sparcstation 2 running SunOS 4.1.2, when compiled with SparcWorks 3.0 -- Sparcstation 10 running Solaris 2.3, when compiled with SparcWorks 3.0.1 -- Sparcstation 10 running Solaris 2.3, when compiled with SparcWorks 4.0 - -We are aware of a bug in GNU C++ (the latest version we tested was 2.5) -which causes up-casting (changing the type of an instance from a base class -to a more derived class, also known as "narrowing") to fail or cause a -program crash. - -PROBLEMS: - -This is a list of known problems with the current version of the CFE: - -- The following syntax, although legal, is not accepted by the CFE: - - .. sequence > .. - - This causes a parse error. The cause of this problem is that the '>>' is - read as a right shif operater and not as two '>'s. You can avoid this - problem by instead writing - - .. sequence > .. - -- The following syntax, although legal, is not accepted by the CFE: - - const string foo = "abc" " and" " another" " string"; - - Instead, write: - - const string foo = "abc and another string"; - -- The printout produced by the -d option for dumping the AST is not always - perfect. Specifically, dumping of sequences and arrays is deficient. - -POSSIBLE FUTURE ENHANCEMENTS: - -This is a list of areas in which the code of the CFE may change in future -releases: - -- The current release is restricted in its use of C++ because it must - be possible to compile it using C++ 2.1. However, we have also provided - files that depend on features which are only present in C++ 3.0, such as - templates. If your compiler supports templates and you wish to use them, - copy the files in include/utl_tmpl to include, and copy the files in - util/utl_tmpl to util. You will also need to make compiler dependent - modifications to Makefiles throughout the CFE directory hierarchy to - enable the use of templates. - - The code using templates was donated by Steve Vinoski of HP. - - In a future release of the CFE only the template code may be included, - and hence users will need to use a C++ 3.0 or higher compiler. - -- The UTL_list classes defined in the util directory are rudimentary. More - features may be added to make the functionality richer. - -- The UTL_String class may be rewritten or replaced by a standard ANSI C++ - String implementation. Applications will be shielded from this change. - -COPYRIGHT: - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/README b/TAO/TAO_IDL/docs/README deleted file mode 100644 index 6d73554acce..00000000000 --- a/TAO/TAO_IDL/docs/README +++ /dev/null @@ -1,233 +0,0 @@ -INTERFACE DEFINITION LANGUAGE COMPILER FRONT END --==============================================- - -INTRODUCTION - -Welcome to the publicly available source release of SunSoft's -implementation of the compiler front end (CFE) for OMG Interface Definition -Language! This is Release 1.3 of the CFE. - -The Interface Definition Language (IDL) implementation is divided into -three parts: - -- A main program for driving the compilation process -- A parser and attendant utilities -- One or more back ends (BEs) for taking the processed input and producing - output in a target language and target format - -WARNINGS - -This is a preliminary version. This software is made available AS IS and -WITH NO GUARANTEES. Please read the copyright notice attached at the -bottom of this file. - -IMPORTANT NOTICE FOR USERS OF OMG IDL CFE VERSION 1.2. - -Please carefully read the file CHANGES to obtain IMPORTANT INFORMATION on -changes in that may affect the manner in which a BE is constructed. You -must follow instructions contained in the file CHANGES to obtain a -functional BE if you are migrating an existing BE from OMG IDL CFE v. 1.2. - -TARGET AUDIENCE - -Who should use this release? - -- You can use this source release to create a stand alone parser for OMG - Interface Definition Language. This may be useful to verify the legality - of IDL input. -- Developers of OMG Interface Definition Language compilers should use this - release as a basis for writing their back ends, to obtain a common - framework for their compiler and to provide portable and uniform - parsing of IDL input. - -HOW TO OBTAIN THIS SOFTWARE - -Please use anonymous FTP to omg.org and supply your e-mail address as the -password. Then change directories to pub/OMG_IDL_CFE_1.3, set binary transfer -and get the file OMG_IDL_CFE_1.3.TAR.Z. This file includes copies of all -individual documentation files in the directory. - -Precompiled binaries constructed from the sources in this release will be -made available shortly, in the directory pub/OMG_IDL_CFE_1.3/bin. These -binaries are useful for parsing IDL source and for learning about the -language. Precompiled binaries for Solaris 2.x and for SunOS 4.x will be -provided. - -You can also use the mail server program to retrieve this software. Send -email with the subject 'help' to omg_idl@omg.org, and the mail server will -respond with instructions on how to retrieve the software. - -Copies of this software may be made available from archives other than -omg.org. New versions made available by Sun will be placed on omg.org and a -message will be sent to this newsgroup announcing its availability. - -Finally, the SunSoft OMG IDL CFE is also available on magnetic tape for a -nominal media charge directly from SunSoft. Please refer to part number -DIDL-100-STP when ordering. - -CONTACT POINT - -Please let us know who you are if you decide to use this software, and how -you use it. Please send e-mail to: - - idl-cfe@sun.com - -This address can also be used to report problems, bugs, suggestions and -send general comments. - -WHAT IS PROVIDED IN THE RELEASE - -Provided in this release are: - -- A main program for driving an Interface Definition Language compiler -- A parser for the Interface Definition Language grammar which builds an - internal representation of the input parsed. This internal - representation, named an Abstract Syntax Tree (AST), is used as input to - a back end -- Some utility functions used by the parser -- A demonstration back end (BE) which exercises the front end but produces - no translated output -- Documentation of the public interfaces and of the contract between - the compiler front end and a back end - -OPERATION - -A complete compiler operates in two passes: - -- The first pass, provided in this release, parses the IDL input and - produces an internal representation, called an Abstract Syntax Tree (AST). - This pass also does a complete syntax and semantics check of the input - provided to ensure that exactly legal IDL input is accepted. If a syntax - or semantic error is discovered, the second pass is not invoked. -- The second pass, provided by compiler developers, takes the AST and - produces output in the language and format of choice. A demonstration - back end is provided in the release. - -HOW TO USE THIS SOFTWARE - -To create a complete compiler from OMG Interface Definition Language to a -target language, compiler developers will: - -- Write a back end (BE) to take the internal representation of the input - parsed and translate it to the target language and format. You will - probably want to replace the BE directory in this source tree with your - own BE directory -- Link the BE with the sources provided here to produce a complete - compiler. - -DOCUMENTATION - -The OMG Interface Definition Language is fully described in the CORBA -documentation, Chapter 4. This document may be obtained from OMG. - -This release also provides the following documents: - -- This README file, describing the release -- INSTALL, describing installation of the software -- WRITING_A_BE contains all the information needed to start writing a back - end for this distribution -- CHANGES_IN_AST describes changes that affect migration of BEs written - against version 1.2 to version 1.3. -- CLI, describing the command line interface to the CFE -- ROADMAP, describing the directory structure for the source code. This - file will assist a developer in understanding the structure of the code - and navigating it -- PROBLEMS, describing a list of issues that may be addressed in future - releases -- BUG_REPORT, containing a form for use in reporting bugs and problems - with the IDL CFE - -ENVIRONMENT - -The INSTALL file explains how to customize the software for specific -platforms. The source distribution expects the following environment: - -- Sparcstation 1, 2, or 10 hardware -- SunPro SparcWorks 3.x or 4.0 - -As preconfigured, it compiles on Solaris 2.x. It can be reconfigured to -compile on SunOS 4.x, HPUX or Apollo Domain OS. As far as is known, no use -is made of Sun Make-specific features, and the Makefiles should be usable -with other make programs. - -This release has been tested and is believed to operate correctly with: -- SunPro Sparcworks 2.x and 3.0 on SunOS 4.1.x -- SunPro Sparcworks 2.x and 3.0 on Solaris 2.3 -- g++ 2.5.8 on SunOS 4.1.x -- g++ 2.5.8 on Solaris 2.3 - -INSTALLATION - -This release is targetted for Sun workstations running Solaris 2.x. The -process of installing this software is described in detail in the file -INSTALL in this directory. The INSTALL file also describes how to customize -the release for your own environment if it is different. - -KNOWN PROBLEMS - -A list of known deficiencies is provided in the file PROBLEMS in this -directory. If you find a problem which is not mentioned in it, please -report it as described below. Please read this file now to be apprised of -the problems found so far with this release. - -COPYRIGHT - -This copyright notice appears on all files. Please read it! - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/ROADMAP b/TAO/TAO_IDL/docs/ROADMAP deleted file mode 100644 index 5da0d83823c..00000000000 --- a/TAO/TAO_IDL/docs/ROADMAP +++ /dev/null @@ -1,126 +0,0 @@ -INTERFACE DEFINITION LANGUAGE SOURCE TREE ROADMAP --===============================================- - -INTRODUCTION - -This file provides an overview of the directory structure of the sources -for the compiler front end for OMG Interface Definition Language. This will -be of use in understanding the source structure and will aid developers of -BEs. - -DIRECTORIES - -The following directories are present: - -- idl_specs: Contains many examples of IDL specifications, including the - IDL specifications of several Object Services, and several - files that somewhat exhaustively test features of the IDL - language -- include: Contains all include (".hh") files -- ast: Contains implementations for all classes comprising - the AST internal representation of the input parsed -- fe: Contains the Yacc grammar and Lex specification for - the OMG Interface Definition Language, and some utilities -- driver: Contains the main program which drives the compilation - process -- util: Contains utility classes used throughout the CFE. These - classes may also be of use in writing a BE -- narrow: Contains an implementation of a narrowing mechanism used - in the CFE. Since C++ does not provide compiler support - for narrowing, this is provided as an explicit service -- demo_be: Contains a demonstration back end which subclasses all - the AST classes but adds no functionality - -NAMING CONVENTIONS - -The file names start with two or three characters identifying the component -to which they belong: - -- idl_: This is the prefix for all files which contain global - elements of the CFE -- ast_: This is the prefix for all files containing implementations - or definitions of the AST -- fe_: This is the prefix for all files belonging to the parser -- drv_: This is the prefix for all files belonging to the compiler - driver -- utl_: This prefix is used to identify files belonging to the set of - utlities provided with the CFE -- nr_: This prefix identifies files belonging to the narrowing mechanim -- be_: This is the prefix for all files belonging to the back end - -All C++ files use the ".cc" extension, and all include files have the ".hh" -extension. All make files are named Makefile. Each directory contains a -make file. Lex input files have the ".ll" extension, and Yacc input files -use the ".yy" extension. All files containing IDL specifications have a -name ending with the ".idl" suffix. - -INCLUDE FILE HIERARCHY - -There are two main include files which must be included in all source -files. These are idl.hh and idl_extern.hh. The idl.hh file includes the -definitions for all the facilities provided by the CFE. The idl_extern.hh -file declares globally accessible data and exported application programmer -interface entry points. - -Each component has an include file for its own. Back end writers will want -to modify be.hh and possibly be_extern.hh. - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. diff --git a/TAO/TAO_IDL/docs/WRITING_A_BE b/TAO/TAO_IDL/docs/WRITING_A_BE deleted file mode 100644 index 5c3c069f7a1..00000000000 --- a/TAO/TAO_IDL/docs/WRITING_A_BE +++ /dev/null @@ -1,1350 +0,0 @@ -OMG INTERFACE DEFINITION LANGUAGE COMPILER FRONT END PROTOCOLS -============================================================== - -INTRODUCTION ------------- - -Welcome to the publicly available source release of SunSoft's -implementation of the compiler front end (CFE) for OMG Interface Definition -Language! - -This document explains how to use the release to create a fully functional -OMG Interface Definition Language to target language compiler for your -selected target system configuration. The section OVERVIEW explains this -document's structure. - -CONTEXT -------- - -The implementation has three parts: - -1. A main program driving the compilation process -2. A parser and attendant utilities for converting the IDL input into - an internal form -3. One or more back ends which take as input the internal form representing - the IDL input, and which produce output in a target language and target - format - -The release contains components 1 and 2, and a demonstration implementation -of component 3. To use this release, you - -- write a back end which takes the internal representation of the parsed input - and translates it to the target language and format. You may replace or - modify the demonstration back end provided. -- link the back end with the provided main program and parser sources - to produce a complete compiler. - -OVERVIEW --------- - -This document does not explain IDL nor does it introduce IDL features. -For this information, refer to the OMG CORBA specification, available by -anonymous FTP from omg.org. - -This document does not explain C++, except to demonstrate how it is -used to construct the CFE. The ARM by Stroustrup and Ellis provides a -thorough explanation of C++. - -This document consists of two independent parts. The first part -s all CFE supported protocols and the required -application programmer's interface entry points that a conformant -BE must provide. The second part steps through the process of -constructing a working BE. - -The first part describes: - -- The compilation process -- The Abstract Syntax Tree (AST) internal representation of parsed IDL - input -- How access to member data fields is managed -- How the AST is generated from the IDL input (Generator protocol) -- How definition scopes are nested and how name lookup works -- The narrowing mechanism -- How definition scopes are managed and how nodes are added to scopes -- How BEs get control during the AST construction process (Add protocol) -- The inheritance scheme used by the AST and how it affects BEs -- How errors are handled and reported -- How the CFE is initialized -- How the command line arguments are parsed -- What global variables and functions are provided -- What API is required to be supported by a BE in order to link - with the CFE -- What files must be included in each BE file - -The second part describes - -- The API to be supplied by each BE -- How to subclass from the AST to add BE specific functionality -- How to subclass from the Generator protocol to create BE specific - extended AST nodes -- How to write constructors for the derived BE classes -- How to use the Add protocol to store BE specific information -- How to maintain BE specific information which applies to the entire - AST generated from the IDL input -- How to use data members in your BE -- How to build a complete compiler - -PART I. FEATURES OF THE CFE --=========================- - -THE COMPILATION PROCESS ------------------------ - -The OMG IDL compiler operates as follows: - -- Parses command line arguments. If an option is directed at a - BE, an appropriate operation provided by the BE is invoked to process - the option. -- Performs global initialization. -- Forks a copy of the compiler for each file specified as input. -- An ANSI-compatible preprocessor preprocesses the IDL input. -- Parses the file using the CFE parser, and constructs an AST describing the - IDL input. -- Prints the AST for verification, if requested. -- Invokes the BE to process the AST and produce the output - characteristic of that BE. - -ABSTRACT SYNTAX TREE --------------------- - -The AST (Abstract Syntax Tree) is the primary mechanism for communication -between a BE and the CFE. It consists of a tree of instances of classes -defined in the CFE or refinements of those classes as defined in a BE. -The class hierarchy of the AST closely resembles the structure of the IDL -syntax. Most AST classes have direct equivalents in IDL constructs. - -The UTL_Scope class defines common functionality for definition scope -management and name lookup. This is explained in a following section. -UTL_Scope is defined in include/utl_scope.hh and implemented in -util/utl_scope.cc. - -The AST provides the following classes: - -AST_Decl Base of the AST class hierarchy. Each class in the AST - inherits from AST_Decl. Defined in include/ast_decl.hh - and implemented in ast/ast_decl.cc - -AST_Type Common base class for all classes which represent IDL - type constructs. Defined in include/ast_type.hh and - implemented in ast/ast_type.cc. Inherits from AST_Decl. - -AST_ConcreteType Common base class for all classes which represent IDL - types other than interfaces. Defined in the file - include/ast_concrete_type.hh and implemented in - ast/ast_concrete_type.cc. Inherits from AST_Type. - -AST_PredefinedType Instances of this class represent all predefined types - such as long, char and so forth. Defined in the file - include/ast_predefined_type.hh and implemented in - ast/ast_predefined_type.cc. Inherits from - AST_ConcreteType. - -AST_Module Represents the IDL module construct. Defined in the - file include/ast_module.hh and implemented in - ast/ast_module.cc. Inherits from AST_Decl and - UTL_Scope. - -AST_Root Represents the root of the abstract syntax tree being - constructed. Is a subclass of AST_Module. Can be - subclassed in BEs to store information associated with - the entire AST. Defined in the file include/ast_root.hh - and implemented in ast/ast_root.cc. Inherits from - AST_Module. - -AST_Interface Represents the IDL interface construct. Defined in - include/ast_interface.hh and implemented in the file - ast/ast_interface.cc. Inherits from AST_Type and - UTL_Scope. - -AST_InterfaceFwd Represents a forward declaration of an IDL interface. - Defined in include/ast_interface_fwd.hh and implemented - in ast/ast_interface_fwd.cc. Inherits from AST_Decl. - -AST_Attribute Represents an IDL attribute construct. Defined in - include/ast_attribute.hh and implemented in the file - ast/ast_attribute.cc. Inherits from AST_Decl. - -AST_Exception Represents an IDL exception construct. Defined in - include/ast_exception.hh and implemented in the file - ast/ast_exception.cc. Inherits from AST_Decl. - -AST_Structure Represents an IDL struct construct. Defined in the file - include/ast_structure.hh and implemented in the file - ast/ast_structure.cc. Inherits from AST_ConcreteType - and UTL_Scope. - -AST_Field Represents a field in an IDL struct or exception - construct. Defined in include/ast_field.hh and - implemented in ast/ast_field.cc. Inherits from - AST_Decl. - -AST_Operation Represents an IDL operation construct. Defined in the - file include/ast_operation.hh and implemented in - ast/ast_operation.cc. Inherits from AST_Decl and - UTL_Scope. - -AST_Argument Represents an argument to an IDL operation construct. - Defined in include/ast_argument.hh and implemented in - ast/ast_argument.cc. Inherits from AST_Field. - -AST_Union Represents an IDL union construct. Defined in - include/ast_union.hh and implemented in - ast/ast_union.cc. Inherits from AST_ConcreteType and - from UTL_Scope. - -AST_UnionBranch Represents an individual branch in an IDL union - construct. Defined in include/ast_union_branch.hh and - implemented in ast/ast_union_branch.cc. Inherits from - AST_Field. - -AST_UnionLabel Represents the label of an individual branch in an IDL - union construct. Defined in include/ast_union_label.hh - and implemented in ast/ast_union_label.cc - -AST_Constant Represents an IDL constant construct. Defined in - include/ast_constant.hh and implemented in the file - ast/ast_constant.cc. Inherits from AST_Decl. - -AST_Enum Represents an IDL enum construct. Defined in the file - include/ast_enum.hh and implemented in ast/ast_enum.cc. - Inherits from AST_ConcreteType and UTL_Scope. - -AST_EnumVal Represents an enumerator in an IDL enum construct. - Defined in include/ast_enum_val.hh and implemented in - ast/ast_enum_val.cc. Inherits from AST_Constant. - -AST_Sequence Represents an IDL sequence construct. Defined in - include/ast_sequence.hh and implemented in - ast/ast_sequence.cc. Inherits from AST_Decl. - -AST_String Represents an IDL string construct. Defined in the file - include/ast_string.hh and implemented in - ast/ast_string.cc. Inherits from AST_Decl. - -AST_Array Represents an array modifier to the type of an IDL - field or typedef declaration. Defined in the file - include/ast_array.hh and implemented in - ast/ast_array.cc. Inherits from AST_Decl. - -AST_Typedef Represents an IDL typedef construct. Defined in the file - include/ast_typedef.hh and implemented in - ast/ast_typedef.cc. Inherits from AST_Decl. - -AST_Expression Represents an IDL expression. Defined in the file - include/ast_expression.hh and implemented in - ast/ast_expression.cc. - -AST_Root A subclass of AST_Module, an instance of this class - is used to represent the distinguished root node of - the AST. Defined in include/ast_root.hh and implemented - in ast/ast_root.cc. Inherits from AST_Module. - - -USING INSTANCE DATA -------------------- - -The AST classes define member data fields in addition to defining -operations on instances. These member data fields are all private, to allow -only the instance in which they are stored direct access. Other objects -(including other instances of the same class) can obtain access to the -member data fields of an instance through accessor functions. These -accessor functions allow retrieval of the data, and in some cases update -functions are also provided to store new values. - -There are several reasons why this approach is taken. First, it hides the -actual implementation of the member data fields from outside the class. For -example, a Thermometer class would not expose whether its temperature -reading is stored in Farenheit or Celsius units, and it could allow access -through either unit method. - -Second, protecting access to member data in this manner restricts the -ability to update it to the instance itself, save where update functions -are explicitly provided. This makes for more reliable implementations, -since the manipulation of the data is isolated in the class implementation -itself. - -Third, wrapping a function call around access to member data allows such -access and update operations to be protected in a multithreaded -environment. While the CFE itself is not multithreaded and the access -operations as currently defined do no special work to protect against -mutliple conflicting access operations, this may be changed in a future -version. Moving the CFE to a multithreaded environment without protecting -access to member data in this manner would be extremely difficult. - -The protocol defined in the CFE is that member data fields are all private -and have names which start with the prefix "pd_" (denoting Private Data). -The access functions have names which are the same as the name of the field -sans the prefix. For example, AST_Decl has a field pd_defined_in and an -access function defined_in(). - -The update functions have names starting with "set_" followed by the name -of the corresponding access function. Thus, AST_Decl defines a function -set_in_main_file(boolean) which sets the pd_in_main_file data member's -value to the boolean provided. - -GENERATION OF THE AST ---------------------- - -The CFE generates the abstract syntax tree after parsing IDL -input. The nodes of the AST are defined by classes introduced in the -previous section, or by subclasses thereof as defined by each BE. In -writing the CFE, we were faced with the following problem: how to generate -the AST containing nodes of the derived classes as defined in each BE -without knowledge of the types and conventions of these BE classes. - -One alternative was to define a naming scheme which predetermines the names -of each subclass a BE can define. The AST would then be generated by -calling an appropriate constructor on the BE derived class. This scheme -suffers from some shortcomings: - -- It breaks the modularity of the compiler and imports knowledge about - types defined in a BE into the CFE, where this information does not belong. -- It restricts a compiler to having only one BE loaded at a time because the - names of these classes can be in use in only one BE at a time. -- It requires a BE to provide derived classes for all AST classes, even for - those classes where the BE adds no functionality. - -The mechanism we chose is different. We define the AST_Generator class -which has an operation for each constructor defined on each AST class. The -operation takes arguments appropriate to the constructor, invokes it and -returns the created AST node, using the type known to the CFE. All such -operations on the generator are declared virtual. The names of all -operations start with "create_" and contain the name of the construct. -Thus, an operation which invokes a constructor of an AST_Module is named -create_module. AST_Generator is defined in include/ast_generator.hh and -implemented in ast/ast_generator.cc. - -If a BE derives from any AST class, it must also derive from the -AST_Generator class and redefine the relevant operations to invoke -constructors of the BE provided class instead of the AST provided class. -For example, if BE_Module is a subclass of AST_Module in a BE, the BE would -also define BE_Generator and redefine create_module to call the constructor -of BE_Module instead of that provided by AST_Module. - -During initialization, the CFE causes an instance of the BE derived -generator to be created and saved. This is explained in the section on -REQUIRED ENTRY POINTS SUPPLIED BY A BE. During parsing, actions in the Yacc -grammar invoke operations on the saved instance to create new nodes for the -AST as it is being built. These operations invoke constructors for BE -derived classes or for AST provided classes if they were not overridden. - -DEFINITION SCOPES ------------------ - -IDL is a nested scoped language. The scoping rules are defined by the CORBA -spec and closely follow those of C++. - -Scope management is implemented in two classes provided in the utilities -library, UTL_Scope and UTL_Stack. UTL_Scope manages associations between -names and AST nodes, and UTL_Stack manages scope nesting and entry and exit -from definition scopes as the parse is proceeding. UTL_Scope is defined in -include/utl_scope.hh and implemented in util/utl_scope.cc. UTL_Stack is -defined in include/utl_stack.hh and implemented in util/utl_stack.cc. - -During initialization, the CFE creates an instance of UTL_Stack and saves -it. During parsing, as definition scopes are entered and exited, AST nodes -are pushed onto, or popped from, the stack represented by the saved -instances. Nodes on the stack are stored as instances of UTL_Scope. Section -THE NARROWING MECHANISM explains how to obtain the real type of a node -retrieved from the stack. - -All definition scopes are linked in a tree rooted in the distinguished AST -root node. This linkage is implemented by UTL_Scope and AST_Decl. The -linkage is a permanent record of the scope nesting while the stack is a -dynamic record which at each instant represents the current state of the -parse. - -The nesting information is used to do name lookup. IDL uses scoped names -which are concatenations of definition scope names ending with individual -construct names. For example, in - - interface a { - struct b { - long c; - }; - const long k = 23; - struct s { - long ar[k]; - }; - }; - -the name a::b::c represents the long field in the struct b inside the -interface a. - -Lookup is performed by searching down the linkage chain for the first component -of the name, then, when found, recursively resolving the remaining -components in the scope defined by the first component. Lookup is relative -to the scope of use; in the above example, k could also have been referred to -as a::k within the struct s. - -Nodes are stored in a definition scope as instances of AST_Decl. Thus, name -lookup returns instances of AST_Decl. The next section, THE NARROWING -MECHANISM, explains how to obtain the real type of a node retrieved from a -definition scope. - -THE NARROWING MECHANISM ------------------------ - -Here we give only a cursory explanation of how narrowing works. We -concentrate on defining the problem and showing how to use our narrowing -mechanism. The narrowing mechanism is defined in include/idl_narrow.hh. - -As explained above, nodes are stored on the scope stack as instances of -UTL_Scope, and inside definition scopes as instances of AST_Decl. Also, -nodes are linked in a nesting tree as instances of AST_Decl. Given a node -retrieved from the stack or a definition scope, one is faced with the task -of obtaining its real class. C++ does not currently provide an implicit -mechanism for narrowing to a derived class, so the CFE defines its own -mechanism. This mechanism requires some work on your part as BE implementor -and requires some explicit code to be written when it is to be used. - -The class AST_Decl defines an enum whose members encode specific AST node -classes. AST_Decl provides an accessor function, node_type(), which -retrieves a member of the enum representing the AST type of the node. Thus, -if an instance of AST_Decl really is an instance of AST_Module, the -node_type() accessor returns AST_Decl::NT_module. - -The class UTL_Scope also provides an accessor function, scope_node_type(), -which returns a member of the enum encoding the actual type of the node. -Thus, given an UTL_Scope instance which is really an instance of -AST_Operation, scope_node_type() would return AST_Decl::NT_op. - -Perusing the header files for classes provided by the AST, you will note -the use of some macros defined in include/idl_narrow.hh. These macros -define the explicit narrowing mechanism: - -DEF_NARROW_METHODSx(,) for x equal to 0,1,2 or 3, -defines a narrowing method for the specified class which has 0,1,2 or 3 -immediate base classes from which it inherits. For example, ast_module.hh -which defines AST_Module contains the following line: - - DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) - -This is because AST_Module inherits directly from AST_Decl and UTL_Scope. - -DEF_NARROW_FROM_DECL() appears in class definitions for classes -which are derived from AST_Decl and which can be stored in a definition -scope. This macro declares a static operation narrow_from_decl(AST_Decl *) -on the class in which it appears. The operation returns the provided -instance as an instance of if it can be narrowed, or NULL. - -DEF_NARROW_FROM_SCOPE() appears in class definitions of classes -which are derived from UTL_Scope and which can be stored on the scope -stack. This macro declares a static operation narrow_from_scope(UTL_Scope *) -on the class in which it appears. The operation returns the provided -instance as an instance of if it can be narrowed, or NULL. - -Now look in the files implementing these classes. You will note occurrences -of the following macros: - -IMPL_NARROW_METHODSx(,) for x equal to 0,1,2 or 3, -implements a narrowing method for the specified class which has 0,1,2 or 3 -immediate base classes from which it inherits. For example, ast_module.cc -which implements AST_Module contains the following line: - - IMPL_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) - -IMPL_NARROW_FROM_DECL() implements a method to narrow from an -instance of AST_Decl to an instance of as defined above. - -IMPL_NARROW_FROM_SCOPE() implements a method to narrow from an -instance of UTL_Scope to an instance of as defined above. - -To put it all together: In the file ast_module.hh, you will find: - - // Narrowing - DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Module); - DEF_NARROW_FROM_SCOPE(AST_Module); - -In the file ast_module.cc, you will see: - -/* - * Narrowing methods - */ -IMPL_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope) -IMPL_NARROW_FROM_DECL(AST_Module) -IMPL_NARROW_FROM_SCOPE(AST_Module) - -The CFE uses narrowing internally to obtain the correct type of nodes in -the AST. The CFE contains many code fragments such as the following: - - AST_Decl *d = get_an_AST_Decl_from_somewhere(); - AST_Module *m; - ... - if (d->node_type() == AST_Decl::NT_module) { - m = AST_Module::narrow(d); - if (m == NULL) { // Narrow failed - ... - } else { // Success, do normal processing - ... - } - } - ... - -Similar code implements narrowing instances of UTL_Scope to their actual -types. - -In your BE classes which derive from UTL_Scope you must include a line -defining how to narrow from a scope, so: - - DEF_NARROW_FROM_SCOPE() - -and similarly for your BE classes which derive from AST_Decl. - -The narrowing mechanism is defined only for narrowing from AST_Decl and -UTL_Scope. If your BE class inherits directly from one or more classes -which themselves are derived from AST_Decl and/or UTL_Scope, you must -include a line - - DEF_NARROW_METHODSx(,,) - -To make this concrete, here is what you'd write in a definition of BE_union -which inherits from AST_Union: - - DEF_NARROW_METHODS1(BE_Union, AST_Union); - DEF_NARROW_FROM_DECL(BE_Union); - DEF_NARROW_FROM_SCOPE(BE_Union); - -and in the implementation file of BE_Union: - -/* - * Narrowing methods: - */ -IMPL_NARROW_METHODS1(BE_Union, AST_Union) -IMPL_NARROW_FROM_DECL(BE_Union) -IMPL_NARROW_FROM_SCOPE(BE_Union) - -Then, in BE code which expects to see an instance of your derived BE_Union -class, you will write: - - AST_Decl *d = get_an_AST_Decl_from_somewhere(); - BE_Union *u; - ... - if (d->node_type() == AST_Decl::NT_union) { - u = BE_Union::narrow_from_decl(d); - if (u == NULL) { // Narrow failed - ... - } else { // Success, do normal processing - ... - } - } - ... - - -SCOPE MANAGEMENT ----------------- - -Instances of classes which are derived from UTL_Scope implement definition -scopes. A definition scope can contain any kind of AST node as long as it -is derived from AST_Decl. However, specific kinds of definition scopes such -as interfaces and unions can contain only a restricted subset of all AST -node types. - -UTL_Scope provides operations to add instances of each AST provided class -to a definition scope. The names of these operations are constructed by -prepending the string "add_" to the name of the IDL construct. So, to add -an interface to a definition scope, invoke the operation add_interface. -The operations are all defined virtual and are intended to be overridden in -classes derived from UTL_Scope. - -If the node was successfully added to the definition scope, the node is -returned as the result. Otherwise the node is not added to the definition -scope and NULL is returned. - -All add operation implementations in UTL_Scope return NULL. Thus, -only the operations which implement legal additions to a specific kind of -definition scope must be overridden in the implementation of that -definition scope. For example, in AST_Module the add_interface operation is -overridden to add the provided instance of AST_Interface to the scope and -to return the provided instance if the addition was successful. Operations -which were not overridden return NULL to indicate that the addition is -illegal in this context. For example, in AST_Operation the definition of -add_interface is not overridden since it is illegal to store an interface -inside an operation definition scope. - -The add operations are invoked in the actions in the Yacc grammar. The -following fragment is a representative example of code using the add -operations: - - AST_Constant *d = construct_a_new_constant(); - ... - if (current_scope->add_constant(d) == NULL) { // Failed - ... - } else { // Succeeded - ... - } - -BE INTERACTION DURING THE PARSING PROCESS ------------------------------------------ - -The add operations can be overridden in BE derived classes to let the BE -perform additional house-keeping work during the process of constructing -the AST. For example, a BE could keep separate lists of interfaces as they -are being added to a module. - -If you override an add operation in your BE, you must invoke the overridden -operation in the superclass of your derived class to allow the CFE to -perform its own house-keeping tasks. A good rule is to invoke the operation -on the superclass before you do your own processing; then, if the -superclass operation returns NULL, this indicates that the addition failed -and your own code should immediately return NULL. An example explains this: - -AST_Interface * -BE_Module::add_interface(AST_Interface *i) -{ - if (AST_Module::add_interface(i) == NULL) // Failed, bail out! - return NULL; - ... // Do your own work here - return i; // Return success indication -} - -We strongly advise you to only define add operations that override add -operations provided by the AST classes. Add operations which -do not override equivalent operations in the AST in effect -extend the semantics of the language accepted by the compiler. For -example, the CFE does not have an add_interface operation on -AST_Operation. If you were to define one in your BE_Operation class, -the resulting compiler would allow an interface to be -stored in an operation definition scope. The current CORBA specification -does not allow this. - -AST INHERITANCE SCHEME ----------------------- - -The AST classes all use public virtual inheritance to construct the -inheritance tree. This ensures that a class may appear several times in the -inheritance tree through different paths and the derived class's instances -will have only one copy of the inherited class's data. - -The use of public virtual inheritance has several important effects on how -a BE is constructed. We explain those effects below. - -First, you must define a default constructor for your BE class, since -your class may be used as a virtual base class of some other class. In this -case the compiler may want to call a default constructor for your class. It -is a good idea to have a default constructor anyway, even if you do not -plan to subclass your BE class, since for most C++ compilers this causes -the code to be smaller. Your default constructor should initialize all -constant data members. Additionally, it may initialize any non-constant -data member whose value must be set before the first time the instance is -used. - -Second, the constructor of your BE derived class must explicitly call all -constructors of virtual base classes which perform useful work. For -example, if a class in the AST from which your BE class inherits has an -initializer for a data member, you must call that constructor. This rule is -discussed in detail in the C++ ARM. An example may help here. - -Suppose you define a class BE_attribute which inherits from AST_Attribute. -Its constructor should be as follows: - - BE_Attribute::BE_Attribute(boolean ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Attribute(ro, ft, n, p), - AST_Field(ft, n, p), - AST_Decl(AST_Decl::NT_attr, n, p) - { - } - -The calls to the constructors of AST_Attribute, AST_Field and AST_Decl are -needed because these constructors do useful initializations on their -classes. - -Note that there is some redundancy in the data passed to these -constructors. We chose to preserve this redundancy since it should be -possible to create BEs which subclass only some of the classes supplied by -the AST. This means that the constructors on each class provided by the AST -should take arguments which are sufficient to construct the instance if -the AST class is the most derived one. - -The code supplied with this release contains a demonstration BE which -subclasses all the AST provided classes. The constructors for each class -provided by the BE are found in the file be/be_classes.cc. - -INITIALIZATION --------------- - -The following steps take place at initialization: - -- The global data instance is created, stored in idl_global and filled with - default values (in driver/drv_init.cc). -- The command line arguments are parsed (in driver/drv_args.cc). -- For each IDL input file, a copy of the compiler process is forked (in - driver/drv_fork.cc). -- The IDL input is preprocessed (in driver/drv_preproc.cc). -- FE initialization stage 1 is done: the scopes stack is created and stored - in the global data variable idl_global->scopes() field (in fe/fe_init.cc). -- BE_init is called to create the generator instance and the returned - instance is stored in the global data variable idl_global->gen() field. -- FE initialization stage 2 is done: the global scope is created, pushed on - the scopes stack and populated with predefined types (in fe/fe_init.cc). - -GLOBAL STATE AND ENTRY POINTS ------------------------------ - -The CFE has one global variable named idl_global, which stores an instance -of a class IDL_GlobalData as explained below: - -The CFE defines a class IDL_GlobalData which defines the global -information used in a specific run of the compiler. IDL_GlobalData is -defined in include/idl_global.hh and implemented in the file -util/utl_global.cc. - -Initialization creates an instance of this class and stores it in the value -of the global variable idl_global. Thus, the individual pieces of -information stored in the instance are accessible everywhere. - -ERROR HANDLING --------------- - -All error handling is defined by a class provided by the CFE, UTL_Error. -This class is defined in include/utl_error.hh and implemented in the file -util/utl_error.cc. The class provides several methods for reporting -specific errors as well as generic error reporting methods taking zero to -three arguments. - -The CFE instantiates the class and stores the instance as part of the -global state, accessible as idl_global->err(). Thus, to cause an error -report, you would write code similar to the following: - - if (error condition found) - idl_global->err()->specific_error_message(arg1, ..); - -or - - if (error condition found) - idl_global->err()->generic_error_message(flag, arg1, ..); - -The flag argument is one of the predefined error conditions found in the -enum at the head of the UTL_Error class definition. The arguments to the -specific error message routine are defined by the signature of that -routine. The arguments to a generic error message routine are always -instances of AST_Decl. - -The running count of errors is accessible as idl_global->err_count(). If -the value returned by this operation is non-zero after the IDL input has -been parsed, the BE is not invoked. - -HANDLING OF COMMAND LINE ARGUMENTS ----------------------------------- - -Defined command line arguments are specified in the document CLI, in this -directory. The CFE calls the required BE API entry point BE_prep_arg to -process arguments passed within a -Wb flag. - -REQUIRED ENTRY POINTS SUPPLIED BY A BE --------------------------------------- - -The following API entry points must be supplied by a BE in order to -successfully link with the CFE: - -extern "C" AST_Generator *BE_init(); - - Creates an instance of the generator object and returns it. Note - that the global scope is not yet set up and the scopes stack is - empty when this routine is called. - -extern "C" void BE_produce(); - - Called by the compiler main program after the IDL input has been - successfully parsed and processed. The job of this routine is to - carry out the specific function of the BE. The AST is accessible as - the value of idl_global->root(). - -extern "C" void BE_prep_arg(char *, idl_bool); - - Called to process an argument passed in with a -Wb flag. The boolean - will always be FALSE. - -extern "C" void BE_abort(); - - Called when the CFE decides to abort the compilation. Can be used in - a BE to clean up after itself, e.g. remove temporary files or - directories it created while the parse was in progress. - -extern "C" void BE_version(); - - Called when a -V argument is processed. This should produce a - message for the user identifying the BE that is loaded and its - version information. - -PART II. WRITING A BACK END --=========================- - -REQUIRED API THAT EACH BE MUST SUPPORT --------------------------------------- - -Below are the API entry points that each BE must supply in order to use the -CFE framework. This is a repeat of the BE API section: - -extern "C" AST_Generator *BE_init(); - - Creates an instance of the generator object and returns it. Note - that the scopes stack is still not set up at the time this routine - is called. - -extern "C" void BE_produce(); - - Called by the compiler main program after the IDL input has been - successfully parsed and processed. The job of this routine is to - carry out the specific function of the BE. The AST is accessible as - the value of idl_global->root(). - -extern "C" void BE_prep_arg(char *, boolean); - - Called to process an argument passed in with a -Wb flag. The boolean - will always be FALSE. - -extern "C" void BE_abort(); - - Called when the CFE decides to abort the compilation. Can be used in - a BE to clean up after itself, e.g. remove temporary files or - directories it created while the parse was in progress. - -extern "C" void BE_version(); - - Called when a -V argument is processed. This should produce a - message for the user identifying the BE that is loaded and its - version information. - -WHAT FILES TO INCLUDE ---------------------- - -To use the CFE, each implementation file of your BE must include the -following two header files: - -#include -#include - -Following this, you can include any header files needed by your BE. - -HOW TO SUBCLASS THE AST ------------------------ - -Your BE may subclass from any of the classes provided by the AST. Your -class should use public virtual inheritance to ensure that only one copy of -the class's data members is present in each instance. Read the section on -HOW TO WRITE CONSTRUCTORS to learn about additional considerations that you -must take into account when writing constructors for your BE classes. - -HOW TO SUBCLASS THE GENERATOR TO CREATE BE ENHANCED AST NODES -------------------------------------------------------------- - -Your BE subclasses from classes provided by the AST. To ensure that -instances of these classes are constructed when the AST is built, you must -also subclass AST_Generator and return an instance of your subclass from -the call to BE_init. - -The AST_Generator class provides operations to create instances of all -classes defined in the AST. For example, the operation to create an -AST_Attribute node is as follows: - - AST_Attribute * - AST_Generator::create_attribute(...) - { - return new AST_Attribute(...); - } - -In your BE_Generator subclass of AST_Generator, you will override methods -for creation of nodes of all AST classes which you have subclassed. Thus, -if your BE has a class BE_Attribute which is a subclass of AST_Attribute, -your BE_Generator class definition has to override the create_attribute -method to ensure that instances of BE_Attribute are created. - -The definition of the overriden operations should call the constructor of -the derived class and return the new node as an instance of the inherited -class. Thus, the implementation of create_attribute is as follows: - - AST_Attribute * - BE_Generator::create_attribute(...) - { - return new BE_Attribute(...); - } - -The Yacc grammar actions call create_xxx operations on the generator -instance stored in the global variable idl_global->gen() field. By storing -an instance of your derived generator class BE_Generator you ensure that -instances of the BE classes you defined will be created. - -HOW TO WRITE CONSTRUCTORS FOR BE CLASSES ----------------------------------------- - -As mentioned above, the AST uses public virtual inheritance to derive the -AST class hierarchy. This has two important effects on how you write a BE, -specifically how you write constructors for derived BE classes. - -First, you must define a default constructor for your BE class, since -your class may be used as a virtual base class of some other class. In that -case the compiler may want to call a default constructor for your class. It -is a good idea to have a default constructor anyway, even if you do not -plan to subclass your BE class, since for most C++ compilers this causes -the code to be smaller. Your default constructor should initialize all -constant data members. Additionally, it may initialize any non-constant -data member whose value must be set before the first time the instance is -used. - -Second, the constructor for your BE class must explicitly call all -constructors of virtual base classes which do some useful work. For -example, if a class in the AST from which your BE class inherits, directly -or indirectly, has an initializer for a data member, your BE class's -constructor must call the AST class's constructor. This is discussed -extensively in the C++ ARM. - -Below is a list showing how to write constructors for subclasses of each -class provided by the BE. For each AST class we show a definition of a -constructor for a derived class which calls all neccessary constructors on -AST classes: - -AST_Argument: - - BE_Argument::BE_Argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Argument(d, ft, n, p), - AST_Field(AST_Decl::NT_argument, ft, n, p), - AST_Decl(AST_Decl::NT_argument, n, p) - { - } - -AST_Array: - - BE_Array::BE_Array(UTL_ScopedName *n, - unsigned long nd, - UTL_ExprList *ds) - : AST_Array(n, nd, ds), - AST_Decl(AST_Decl::NT_array, n, NULL) - - { - } - -AST_Attribute: - - BE_Attribute::BE_Attribute(boolean ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Attribute(ro, ft, n, p), - AST_Field(AST_Decl::NT_attr, ft, n, p), - AST_Decl(AST_Decl::NT_attr, n, p) - { - } - -AST_ConcreteType: - - BE_ConcreteType::BE_ConcreteType(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) - { - } - -AST_Constant: - - BE_Constant::BE_Constant(AST_Expression::ExprType t, - AST_Expression *v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Constant(t, v, n, p), - AST_Decl(AST_Decl::NT_const, n, p) - { - } - -AST_Decl: - - BE_Decl::BE_Decl(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) - { - } - -AST_Enum: - - BE_Enum::BE_Enum(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Enum(n, p), - AST_Decl(AST_Decl::NT_enum, n, p), - UTL_Scope(AST_Decl::NT_enum) - { - } - -AST_EnumVal: - - BE_EnumVal::BE_EnumVal(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_EnumVal(v, n, p), - AST_Constant(AST_Expression::EV_ulong, - AST_Decl::NT_enum_val, - new AST_Expression(v), - n, - p), - AST_Decl(AST_Decl::NT_enum_val, n, p) - { - } - -AST_Exception: - - BE_Exception::BE_Exception(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_except, n, p), - AST_Structure(AST_Decl::NT_except, n, p), - UTL_Scope(AST_Decl::NT_except) - { - } - -AST_Field: - - BE_Field::BE_Field(AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Field(ft, n, p), - AST_Decl(AST_Decl::NT_field, n, p) - { - } - -AST_Interface: - - BE_Interface::BE_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p) - : AST_Interface(n, ih, nih, p), - AST_Decl(AST_Decl::NT_interface, n, p), - UTL_Scope(AST_Decl::NT_interface) - { - } - -AST_InterfaceFwd: - - BE_InterfaceFwd::BE_InterfaceFwd(UTL_ScopedName *n, - UTL_StrList *p) - : AST_InterfaceFwd(n, p), - AST_Decl(AST_Decl::NT_interface_fwd, n, p) - { - } - -AST_Module: - - BE_Module::BE_Module(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) - { - } - -AST_Operation: - - BE_Operation::BE_Operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Operation(rt, fl, n, p), - AST_Decl(AST_Decl::NT_op, n, p), - UTL_Scope(AST_Decl::NT_op) - { - } - -AST_PredefinedType: - - BE_PredefinedType::BE_PredefinedType( - AST_PredefinedType::PredefinedType *pt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_PredefinedType(pt, n, p), - AST_Decl(AST_Decl::NT_pre_defined, n, p) - { - } - -AST_Root: - - BE_Root::BE_Root(UTL_ScopedName *n, UTL_StrList *p) - : AST_Module(n, p), - AST_Decl(AST_Decl::NT_module, n, p), - UTL_Scope(AST_Decl::NT_module) - { - } - - -AST_Sequence: - - BE_Sequence::BE_Sequence(AST_Expression *ms, AST_Type *bt) - : AST_Sequence(ms, bt), - AST_Decl(AST_Decl::NT_sequence, - new UTL_ScopedName(new String("sequence"), NULL), - NULL) - { - } - -AST_String: - - BE_String::BE_String(AST_Expression *ms) - : AST_String(ms), - AST_Decl(AST_Decl::NT_string, - new UTL_ScopedName(new String("string"), NULL), - NULL) - { - } - -AST_Structure: - - BE_Structure::BE_Structure(UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(AST_Decl::NT_struct, n, p), - UTL_Scope(AST_Decl::NT_struct) - { - } - -AST_Type: - - BE_Type::BE_Type(AST_Decl::NodeType nt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Decl(nt, n, p) - { - } - -AST_Typedef: - - BE_Typedef::BE_Typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Typedef(bt, n, p), - AST_Decl(AST_Decl::NT_typedef, n, p) - { - } - -AST_Union: - - BE_Union::BE_Union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_Union(dt, n, p), - AST_Structure(AST_Decl::NT_union, n, p), - AST_Decl(AST_Decl::NT_union, n, p), - UTL_Scope(AST_Decl::NT_union) - { - } - -AST_UnionBranch: - - BE_UnionBranch::BE_UnionBranch(AST_UnionLabel *fl, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p) - : AST_UnionBranch(fl, ft, n, p), - AST_Field(ft, n, p), - AST_Decl(AST_Decl::NT_union_branch, n, p) - { - } - -AST_UnionLabel: - - BE_UnionLabel::BE_UnionLabel(AST_UnionLabel::UnionLabel lk, - AST_Expression *lv) - : AST_UnionLabel(lk, lv) - { - } - -HOW TO USE THE ADD PROTOCOL ---------------------------- - -As explained the section SCOPE MANAGEMENT, the CFE manages scopes by -calling type-specific functions to add new nodes to the scope to be -augmented. These functions can be overridden in your BE classes to do work -specific to your BE class. For example, in a BE_module class, you might -override add_interface to do additional work. - -The protocol defined by the "add_" functions is that they return NULL to -indicate failure. They return the node that was added (and which was given -as an argument) if the operation succeeded. Your functions in your BE class -should follow the same protocol. - -The "add_" functions defined in the BE must call the overridden function in -the base class defind in the CFE in order for the CFE scope management -mechanism to work. Otherwise, the CFE does not get an opportunity to -augment its scopes with the new node to be added. It is good practice to -call the overridden "add_" function as the first action in your BE -function, because the success or failure of the CFE operation indicates -whether your function should complete its task or abort early. - -Here is an example. Suppose you have defined a class BE_module which -inherits from AST_Module. You may wish to override the add_interface -function as follows: - - class BE_Module : public virtual AST_Module - { - .... - /* - * ADD protocol - */ - virtual AST_Interface *add_interface(AST_Interface *); - ... - }; - -The implementation of this function would look something like the following: - - AST_Interface * - BE_Module::add_interface(AST_Interface *new_in) - { - /* - * Check that the CFE operation succeeds. If it returns - * NULL, stop any further work - */ - if (AST_Module::add_interface(new_in) == NULL) - return NULL; - /* - * OK, non-NULL, this means the BE can do its own work here - */ - ... - /* - * Finally, don't forget to return the argument to indicate - * success - */ - return new_in; - } - -HOW TO MAINTAIN BE SPECIFIC INFORMATION ---------------------------------------- - -The CFE provides a special class AST_Root, a subclass of AST_Module. An -instance of the AST_Root class is used as the distinguished root of the -abstract syntax tree built during a parse. - -Your BE can subclass BE_Root from AST_Root and override the create_root -operation in your BE_Generator class derived from AST_Generator. This will -cause the CFE to create an instance of your BE_Root class as the root of -the tree being constructed. - -You can use the instance of the BE_Root class as a convenient place to -store information specific to an individual tree. For example, you could -add operations on the BE_Root class to count how many nodes of each class -are created. - -HOW TO USE MEMBER DATA ----------------------- - -As explained above, the AST classes provide access and update functions for -manipulating data members. Your BE classes must use these functions when -they require access to data members defined in the AST classes, since the -data members themselves are private. - -It is good practice to follow the same scheme in your BE classes. Make all -data members private. Prepend the names of all such fields with "pd_". -Define access functions with names equal to the name of the field without the -prefix. Define update functions according to need by prepending the name of -the access function with the prefix "set_". - -Using these techniques will allow your BE to enjoy the same benefits that -are imparted onto the CFE. Your BE will be easier to move to a -multithreaded environment and its data members will be better protected and -hidden. - -HOW TO BUILD A COMPLETE COMPILER --------------------------------- - -We now have all information needed to write a BE and to link it in with the -CFE, to produce a complete IDL compiler. - -The following assumes that your BE will be stored in the "be" directory -under the "release" directory. See the document ROADMAP for an explanation -of the directory structure of the source release. If you decide to use a -different directory to store your BE, you may have to modify the CPP_FLAGS in -"idl_make_vars" in the top-level directory to allow your BE to find the -include files it needs. You will also need to modify several targets in -the Makefile in the top-level directory to correctly compile your BE into a -library and to correctly link it in with the CFE to produce a complete -compiler. - -You can get started quickly on writing your BE by modifying the sources -found in the "demo_be" directory. The Makefile supports all the the targets -that are needed to build a complete system and the maintenance target -"clean" which assists in keeping the files and directories tidy. The files -provided in the "demo_be" directory also provide all the API entry points -that are mandated by this document. - -To build a complete compiler, invoke "make" or "make all" in the top-level -directory. This will compile your BE and all the CFE sources, if this is -the first invocation. On subsequent invocations this will recompile only -the modified files. You will rarely if at all modify the CFE sources, so -the overhead of compiling the CFE is incurred only the first time. To build -just your BE, you can invoke "make all" or "make" in the "demo_be" -directory. You can also, from the top-level directory, invoke "make -demo_be/libbe.a". - -HOW TO OBTAIN ASSISTANCE ------------------------- - -First, read all the documents provided. If you have unanswered questions, -mail them to - - idl-cfe@sun.com - -Sun does not promise to support the IDL CFE source release in any manner. -However, we will attempt to answer questions and correct problems as time -allows. - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - -COPYRIGHT NOTICE ----------------- - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 diff --git a/TAO/TAO_IDL/driver/drv_args.cpp b/TAO/TAO_IDL/driver/drv_args.cpp deleted file mode 100644 index e499be3fe7d..00000000000 --- a/TAO/TAO_IDL/driver/drv_args.cpp +++ /dev/null @@ -1,551 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// drv_args.c - Argument parsing for IDL compiler main driver - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -#include "be.h" -#include - -ACE_RCSID(driver, drv_args, "$Id$") - - /* - * Push a file into the list of files to be processed - */ - static void -DRV_push_file(char *s) -{ - DRV_files[DRV_nfiles++] = s; -} - -/* - * Prepare a CPP argument - */ -static void -DRV_prep_cpp_arg(char *s) -{ - char *newarg = new char[512]; - char *farg; - - newarg[0] = '\0'; - for (farg = strtok(s, ","); farg != NULL; farg = strtok(NULL, ",")) - strcat(newarg,farg); - DRV_cpp_putarg(newarg); -} - -/* - * Print a usage message and exit - */ -void -DRV_usage() -{ - cerr << idl_global->prog_name() - << GTDEVEL(": usage: ") - << idl_global->prog_name() - << GTDEVEL (" [flag | file]*\n"); - cerr << GTDEVEL ("Legal flags:\n"); - cerr << GTDEVEL (" -A...\t\t\tlocal implementation-specific escape\n"); - cerr << GTDEVEL (" -cs\t\t\tClient stub's file name ending. Default is C.cpp\n"); - cerr << GTDEVEL (" -ci\t\t\tClient inline file name ending. Default is C.i\n"); - cerr << GTDEVEL (" -Dname[=value]\t\tdefines name for preprocessor\n"); - cerr << GTDEVEL (" -E\t\t\truns preprocessor only, prints on stdout\n"); - cerr << GTDEVEL (" -Idir\t\t\tincludes dir in search path for preprocessor\n"); - cerr << GTDEVEL (" -g \tPath for the GPERF program. Default is $ACE_ROOT/bin/gperf\n"); - cerr << GTDEVEL (" -hc\t\t\tClient's header file name ending. Default is C.h\n"); - cerr << GTDEVEL (" -hs\t\t\tServer's header file name ending. Default is S.h\n"); - cerr << GTDEVEL (" -hT\t\t\tServer's template hdr file name ending. Default is S_T.h\n"); - cerr << GTDEVEL (" -H dynamic\t\tTo force dynamic-hashed operation lookup strategy. Default is perfect hashing\n"); - cerr << GTDEVEL (" -o \tOutput directory for the generated files. Default is current directory\n"); - cerr << GTDEVEL (" -ss\t\t\tServer's skeleton file name ending. Default is S.cpp\n"); - cerr << GTDEVEL (" -sT\t\t\tServer's template skeleton file name ending. Default is S_T.cpp\n"); - cerr << GTDEVEL (" -si\t\t\tServer's inline file name ending. Default is S.i\n"); - cerr << GTDEVEL (" -st\t\t\tServer's template inline file name ending. Default S_T.i\n"); - cerr << GTDEVEL(" -Uname\t\t\tundefines name for preprocessor\n"); - cerr << GTDEVEL(" -V\t\t\tprints version info then exits\n"); - cerr << GTDEVEL(" -W[p|b],arg1,argn\tpasses args to preprocessor or BE\n"); - cerr << GTDEVEL(" -Yp,path\t\tdefines location of preprocessor\n"); - cerr << GTDEVEL(" -bback_end\t\tcauses specified back end to be used\n"); - cerr << GTDEVEL(" -u\t\t\tprints usage message and exits\n"); - cerr << GTDEVEL(" -v\t\t\ttraces compilation stages\n"); - cerr << GTDEVEL(" -w\t\t\tsuppresses IDL compiler warning messages\n"); -} - -/* - * Parse arguments on command line - */ -void -DRV_parse_args(long ac, char **av) -{ - char *buffer; - char *s; - long i; - - // Retrieve the singleton instance of the code generator. - TAO_CodeGen *cg = TAO_CODEGEN::instance (); - - DRV_cpp_init(); - idl_global->set_prog_name(av[0]); - for (i = 1; i < ac; i++) - { - if (av[i][0] == '-') { - switch (av[i][1]) { - case 0: - DRV_push_file("standard input"); - break; - case 'A': - if (av[i][2] == '\0') - { - if (i < ac - 1) { - i++; - s = av[i]; - } else - exit(99); - } else - s = av[i] + 2; - strcat(idl_global->local_escapes(), s); - strcat(idl_global->local_escapes(), " "); - break; - - // = File name endings for all the IDL generated header files, - // stub files, skeleton files and inline files. - - // = Various 'h'eader_file_name_endings. - case 'h': - - // <-hc Client's header file name ending> - // Default is "C.h". - // <-hs Server's header file name ending> - // Default is "S.h". - // <-hT Server's template hdr file name ending> - // Default is "S_T.h". - - if (av[i][2] == 'c') - { - // Client stub's header file ending. - // @@ No error handling done here. - idl_global->client_hdr_ending (av[i+1]); - i++; - } - else if (av[i][2] == 's') - { - // Server skeleton's header file. - idl_global->server_hdr_ending (av[i+1]); - i++; - } - else if (av[i][2] == 'T') - { - // Server Template header ending. - idl_global->server_template_hdr_ending (av[i+1]); - i++; - } - else - { - // I expect 'c' or 's' or 'T' after this. - cerr << GTDEVEL("Incomplete Flag : ") - << av[i]; - exit(99); - } - break; - - // = Various 'c'lient side stub file_name_endings. - case 'c': - // <-cs Client stub's file name ending> - // Default is "C.cpp". - // <-ci Client inline file name ending> - // Default is "C.i". - - if (av[i][2] == 's') - { - idl_global->client_stub_ending (av[i+1]); - i++; - } - else if (av[i][2] == 'i') - { - idl_global->client_inline_ending (av[i+1]); - i++; - } - else - { - // I expect 's' or 'i' after 'c'. - cerr << GTDEVEL("Incomplete Flag : ") - << av[i]; - exit(99); - } - break; - - // = Various 's'erver side skeleton file name endings. - case 's': - // <-ss Server's skeleton file name ending> - // Default is "S.cpp". - // <-sT Server's template skeleton file name ending> - // Default is "S_T.cpp". - // <-si Server's inline file name ending> - // Default is "S.i". - // <-st Server's template inline file name ending> - // Default is "S_T.i". - - if (av[i][2] == 's') - { - idl_global->server_skeleton_ending (av[i+1]); - i++; - } - else if (av[i][2] == 'T') - { - idl_global->server_template_skeleton_ending (av[i+1]); - i++; - } - else if (av[i][2] == 'i') - { - idl_global->server_inline_ending (av[i+1]); - i++; - } - else if (av[i][2] == 't') - { - idl_global->server_template_inline_ending (av[i+1]); - i++; - } - else - { - // I expect 's' or 'T' or 'i' or 't' after 's'. - cerr << GTDEVEL("Incomplete Flag : ") - << av[i]; - exit(99); - } - break; - - // Operation lookup strategy. - // or - // Default is perfect. - case 'H': - if (ACE_OS::strcmp (av[i+1], "dynamic") == 0) - cg->lookup_strategy (TAO_CodeGen::TAO_DYNAMIC_HASH); - // else Perfect Hash, the default strategy. - i++; - break; - - // Path for the perfect hash generator(gperf) program. Default - // is $ACE_ROOT/bin/gperf. - case 'g': - idl_global->perfect_hasher (av[i+1]); - i++; - break; - - // Directory where all the IDL-Compiler-Generated files are to - // be kept. Default is the current directory from which the - // is called. - case 'o': - idl_global->output_dir (av [i+1]); - i++; - break; - - case 'D': - case 'U': - case 'I': - if (av[i][2] == '\0') - { - if (i < ac - 1) - { - buffer = new char[strlen(av[i]) + strlen(av[i + 1]) + 2]; - sprintf(buffer, "%s%s", av[i], av[i+1]); - DRV_cpp_putarg(buffer); - i++; - } - else - { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } - else - DRV_cpp_putarg(av[i]); - break; - case 'E': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_ONLY_PREPROC); - break; - case 'V': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_VERSION); - break; - case 'W': - if (av[i][2] == '\0') - { - if (i < ac - 1) - { - i++; - s = av[i]; - } - else - { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } - else - s = av[i] + 2; - switch (*s) - { - default: - cerr << GTDEVEL("IDL: -W must be followed by 'p' or 'b'\n"); - exit(99); - case 'p': - if (*(s + 1) == ',') - DRV_prep_cpp_arg(s + 2); - break; - case 'b': - if (*(s + 1) == ',') - (*DRV_BE_prep_arg)(s + 2, I_TRUE); - break; - } - break; - case 'Y': - if (av[i][2] == '\0') { - if (i < ac - 1) { - i++; - s = av[i]; - } else { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } else - s = av[i] + 2; - switch (*s) { - case 'p': - if (*(s + 1) == ',') { - idl_global->set_cpp_location(s + 2); - DRV_cpp_new_location(s + 2); - } - break; - default: - break; - } - break; - case 'b': - if (av[i][2] == '\0') { - if (i < ac - 1) { - i++; - s = av[i]; - } else { - cerr << GTDEVEL("IDL: missing argument after '") - << av[i] - << GTDEVEL("' flag\n"); - exit(99); - } - } else - s = av[i] + 2; - idl_global->set_be(s); - break; - case 'd': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_DUMP_AST); - break; - case 'u': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_ONLY_USAGE); - break; - case 'v': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_INFORMATIVE); - break; - case 'w': - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_NOWARNINGS); - break; - default: - cerr << GTDEVEL("IDL: Illegal option '") << av[i] << "'\n"; - idl_global->set_compile_flags(idl_global->compile_flags() | - IDL_CF_ONLY_USAGE); - break; - } - } else - DRV_push_file(av[i]); - } - - // Let us try to use Perfect Hashing Operation Lookup Strategy. Let - // us check whether things are fine with GPERF. -#if defined (ACE_HAS_GPERF) - // If Perfect Hashing Strategy has been selected, let us make sure - // that it exists and will work. - if (cg->lookup_strategy () == TAO_CodeGen::TAO_PERFECT_HASH) - { - // Testing whether GPERF works or no. - int return_value = DRV_check_gperf (); - if (return_value == -1) - { - // If perfect_hasher is an absolute path, try to call this - // again with - ACE_DEBUG ((LM_DEBUG, - "TAO_IDL: warning, gperf could not be executed, using Dynamic Hash OpLookup instead of Perfect Hashing\n" - "To use Perfect Hashing\n" - "\t-Build gperf at $ACE_ROOT/apps/gperf/src\n" - "\t-Set the environment variable $ACE_ROOT appropriately or add $ACE_ROOT/bin to the PATH\n" - "\t-Refer to Operation Lookup section in the TAO IDL User Guide ($TAO_ROOT/docs/compiler.html) for more details\n")); - - // Switching over to Dynamic Hashing. - cg->lookup_strategy (TAO_CodeGen::TAO_DYNAMIC_HASH); - } - } -#else /* Not ACE_HAS_GPERF */ - // If GPERF is not there, we cannot use PERFECT_HASH strategy. Let - // us go for DYNAMIC_HASH. - if (cg->lookup_strategy () == TAO_CodeGen::TAO_PERFECT_HASH) - cg->lookup_strategy (TAO_CodeGen::TAO_DYNAMIC_HASH); -#endif /* ACE_HAS_GPERF */ -} - -// Return 0 on success, -1 failure. The corresponding to the -// error that caused the GPERF execution is also set. -int -DRV_check_gperf (void) -{ - // If absolute path is not specified yet, let us call just - // "gperf". Hopefully PATH is set up correctly to locate the gperf. - if (idl_global->perfect_hasher () == 0) - idl_global->perfect_hasher ("gperf"); - - // If we have absolute path for the rather than just the - // executable name , make sure the file exists - // firsts. Otherwise just call . Probably PATH is set - // correctly to take care of this. - if (ACE_OS::strcmp (idl_global->perfect_hasher (), "gperf") != 0) - { - // It is absolute path. Check the existance, permissions and - // the modes. - if (ACE_OS::access (idl_global->perfect_hasher (), - F_OK | X_OK) == -1) - // Problem with the file. No point in having the absolute - // path. Swith to "gperf". - idl_global->perfect_hasher ("gperf"); - } - - // Just call gperf in silent mode. It will come and immly exit. - - // Using ACE_Process. - ACE_Process process_manager; - ACE_Process_Options process_options; - - // Set the command line for the gperf program. - process_options.command_line ("%s" - " " - "-V", - idl_global->perfect_hasher ()); - - // Spawn a process for gperf. - if (process_manager.spawn (process_options) == -1) - return -1; - -#if defined (ACE_WIN32) - // No wait or anything in Win32. - return 0; -#endif /* ACE_WIN32 */ - - // Wait for gperf to complete. - int wait_status = 0; - if (process_manager.wait (&wait_status) == -1) - return -1; - else - { - // Wait is sucessful, we will check the exit code from the - // spawned process. - if (WIFEXITED (wait_status)) - { - // Normal exit. - - // Check the exit value of the spawned process. ACE_Process - // exits with as exit code, if it is not able to - // exec gperf program, so get the exit code now and set that - // to again, so that it can be used to print error - // messages. - errno = WEXITSTATUS (wait_status); - if (errno) - // has failed. - return -1; - else - // Everything was alright. - return 0; - } - else - // Not a normal exit. No might be set. - return -1; - } -} - - - - - - diff --git a/TAO/TAO_IDL/driver/drv_fork.cpp b/TAO/TAO_IDL/driver/drv_fork.cpp deleted file mode 100644 index db5fb4ab976..00000000000 --- a/TAO/TAO_IDL/driver/drv_fork.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * DRV_fork.cc - Fork a process for each file to be processed, wait for - * status from the child process - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" - -#include "ace/Process_Manager.h" - -ACE_RCSID(driver, drv_fork, "$Id$") - -/* - * Fork off a process, wait for it to die - */ -void -DRV_fork() -{ - // This will not work on NT, but I can hardly think of some way to - // make it work. - // The idea is to make it compile, and always use the compiler with - // just one file, that works because then there is no fork - // involved. - for (DRV_file_index = 0; - DRV_file_index < DRV_nfiles; - ++DRV_file_index) - { - ACE_Process_Options options; - options.creation_flags (ACE_Process_Options::NO_EXEC); - - ACE_Process_Manager manager; - pid_t child_pid = manager.spawn (options); - if (child_pid == 0) - { - /* - * OK, do it to this file (in the child) - */ - DRV_drive(DRV_files[DRV_file_index]); - ACE_OS::exit(0); - } - - if (child_pid == -1) - { - cerr << GTDEVEL("IDL: spawn failed\n"); - ACE_OS::exit (99); - /*NOTREACHED*/ - } - - // child_pid is the process id of something at this point. - if (manager.wait () == -1) - { - cerr << GTDEVEL("IDL: wait failed\n"); - ACE_OS::exit (99); - /*NOTREACHED*/ - } - } - /* - * Now the parent process can exit - */ - exit(0); -} diff --git a/TAO/TAO_IDL/driver/drv_init.cpp b/TAO/TAO_IDL/driver/drv_init.cpp deleted file mode 100644 index 1c5cdea6b9c..00000000000 --- a/TAO/TAO_IDL/driver/drv_init.cpp +++ /dev/null @@ -1,123 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// DRV_init.cc - Initialization for IDL compiler driver program - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -ACE_RCSID(driver, drv_init, "$Id$") - -void -DRV_init() -{ - // Initialize global data - - idl_global = new IDL_GlobalData(); - - idl_global->set_scopes(NULL); - idl_global->set_root(NULL); - idl_global->set_gen(NULL); - idl_global->set_err((*DRV_FE_new_UTL_Error)()); - idl_global->set_err_count(0); - idl_global->set_indent((*DRV_FE_new_UTL_Indenter)()); - - idl_global->set_filename(NULL); - idl_global->set_main_filename(NULL); - idl_global->set_real_filename(NULL); - idl_global->set_stripped_filename(NULL); - idl_global->set_import(I_TRUE); - idl_global->set_in_main_file(I_FALSE); - idl_global->set_lineno(-1); - - idl_global->set_prog_name(NULL); - - idl_global->set_cpp_location(CPP_LOCATION); - - idl_global->set_be(""); - - idl_global->set_local_escapes(new char[1024]); - - idl_global->set_pragmas(NULL); - - idl_global->set_compile_flags(0); - - idl_global->set_read_from_stdin(I_FALSE); - - idl_global->set_include_file_names(NULL); - idl_global->set_n_include_file_names(0); - - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - - // Initialize driver private data - - DRV_nfiles = 0; - DRV_file_index = 0; -} - diff --git a/TAO/TAO_IDL/driver/drv_link.cpp b/TAO/TAO_IDL/driver/drv_link.cpp deleted file mode 100644 index b678587b1d1..00000000000 --- a/TAO/TAO_IDL/driver/drv_link.cpp +++ /dev/null @@ -1,140 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* -** drv_link.cc - routines for programatic linking -** -** This file is set up so that you can easily convert the CFE to do -** dynamic loading of either the front end (parser) or BEs. Since no -** portable dynamic loading mechanism exists, we have removed the specific -** one which is in Sunsoft\'s version and which uses Solaris dlopen. -*/ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -ACE_RCSID(driver, drv_link, "$Id$") - -DRV_PF_FE_init_stage1 DRV_FE_init_stage1; -DRV_PF_FE_init_stage2 DRV_FE_init_stage2; -DRV_PF_FE_yyparse DRV_FE_yyparse; -DRV_PF_FE_set_yyin DRV_FE_set_yyin; -DRV_PF_FE_new_UTL_Error DRV_FE_new_UTL_Error; -DRV_PF_FE_new_UTL_Indenter DRV_FE_new_UTL_Indenter; -DRV_PF_FE_new_UTL_String DRV_FE_new_UTL_String; - -DRV_PF_BE_init DRV_BE_init; -DRV_PF_BE_produce DRV_BE_produce; -DRV_PF_BE_abort DRV_BE_abort; -DRV_PF_BE_prep_arg DRV_BE_prep_arg; -DRV_PF_BE_version DRV_BE_version; - -void -DRV_FE_open() -{ - DRV_FE_init_stage1 = &FE_init_stage1; - DRV_FE_init_stage2 = &FE_init_stage2; - DRV_FE_yyparse = &FE_yyparse; - DRV_FE_set_yyin = &FE_set_yyin; - DRV_FE_new_UTL_Error = &FE_new_UTL_Error; - DRV_FE_new_UTL_Indenter = &FE_new_UTL_Indenter; - DRV_FE_new_UTL_String = &FE_new_UTL_String; -} - -void -DRV_FE_close() -{ - DRV_FE_init_stage1 = 0; - DRV_FE_init_stage2 = 0; - DRV_FE_yyparse = 0; - DRV_FE_set_yyin = 0; - DRV_FE_new_UTL_Error = 0; - DRV_FE_new_UTL_Indenter = 0; - DRV_FE_new_UTL_String = 0; -} - -void -DRV_BE_open() -{ - DRV_BE_init = &BE_init; - DRV_BE_produce = &BE_produce; - DRV_BE_abort = &BE_abort; - DRV_BE_prep_arg = &BE_prep_arg; - DRV_BE_version = &BE_version; -} - -void -DRV_BE_close() -{ - DRV_BE_init = 0; - DRV_BE_produce = 0; - DRV_BE_abort = 0; - DRV_BE_prep_arg = 0; - DRV_BE_version = 0; -} diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp deleted file mode 100644 index 489a214fd07..00000000000 --- a/TAO/TAO_IDL/driver/drv_preproc.cpp +++ /dev/null @@ -1,479 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * DRV_pre_proc.cc - pass an IDL file through the C preprocessor - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -#include "ace/Process_Manager.h" -#include "ace/Env_Value_T.h" - -ACE_RCSID(driver, drv_preproc, "$Id$") - -#undef MAX_ARGLIST -#define MAX_ARGLIST 128 - -static char *arglist[MAX_ARGLIST]; -static long argcount = 0; - -/* - * Push the new CPP location if we got a -Yp argument - */ -void -DRV_cpp_new_location(char *new_loc) -{ - arglist[0] = new_loc; -} - -/* - * Push an argument into the arglist - */ -void -DRV_cpp_putarg(char *str) -{ - if (argcount >= MAX_ARGLIST) { - cerr << idl_global->prog_name() - << GTDEVEL(": More than ") - << MAX_ARGLIST - << GTDEVEL(" arguments to preprocessor\n"); - exit (99); - } - arglist[argcount++] = str; -} - -/* - * Initialize the cpp argument list - */ -void -DRV_cpp_init() -{ - - char *cpp_loc; - - // DRV_cpp_putarg("\\cygnus\\H-i386-cygwin32\\bin\\echo"); - ACE_Env_Value cpp_path ("CPP_LOCATION", (char *) 0); - - if (cpp_path != 0) - cpp_loc = cpp_path; - else - cpp_loc = idl_global->cpp_location(); - DRV_cpp_putarg(cpp_loc); - DRV_cpp_putarg("-E"); - DRV_cpp_putarg("-DIDL"); - DRV_cpp_putarg("-I."); -} - -/* - * lines can be 1024 chars long - */ -#define LINEBUF_SIZE 1024 -static char drv_line[LINEBUF_SIZE + 1]; - -/* - * Get a line from stdin - */ -static long -DRV_get_line(FILE *f) -{ - char *l = fgets(drv_line, LINEBUF_SIZE, f); - long i; - - if (l == NULL) - return I_FALSE; - if (*l == '\0' && feof(f)) - return I_FALSE; - if (*l == '\0') - return I_TRUE; - i = strlen(l) - 1; - if (l[i] == '\n') - l[i] = '\0'; - return I_TRUE; -} - -/* - * Copy from stdin to a file - */ -static void -DRV_copy_input(FILE *fin, char *fn, const char *orig_filename) -{ - FILE *f = fopen(fn, "w"); - - if (f == NULL) { - cerr << idl_global->prog_name() - << GTDEVEL(": cannot open temp file ") - << fn - << GTDEVEL(" for writing\n"); - exit(99); - } - if (fin == NULL) { - cerr << idl_global->prog_name() - << GTDEVEL(": cannot open input file\n"); - exit(99); - } -#if !defined (ACE_WIN32) - fprintf (f, "#line 1 \"%s\"\n", orig_filename); -#else - // Convert single \ into double \ otherwise MSVC++ pre-processor - // gets awfully confused. - char buf[2*MAXPATHLEN]; - char *d = buf; - for (const char *s = orig_filename; *s != 0; ++s) - { - if (*s == '\\') - { - *d = '\\'; - d++; - } - *d = *s; - d++; - } - *d = 0; - fprintf (f, "#line 1 \"%s\"\n", buf); -#endif /* ! ACE_WIN32 */ - - while (DRV_get_line(fin)) - { - // We really need to know whether this line is a "#include - // ...". If so, we would like to separate the "file name" and - // keep that in the idl_global. We need them to produce - // "#include's in the stubs and skeletons. - DRV_check_for_include (drv_line); - - // Print the line to the temp file. - fprintf (f, "%s\n", drv_line); - } - - // Close the temp file. - fclose(f); -} - -/* - * Strip down a name to the last component, i.e. everything after the last - * '/' character - */ -static char * -DRV_stripped_name(char *fn) -{ - char *n = fn; - long l; - - if (n == NULL) - return NULL; - l = strlen(n); - for (n += l; l > 0 && *n != '/'; l--, n--); - if (*n == '/') n++; - return n; -} - -/* - * File names - */ -static char tmp_file[128]; -static char tmp_ifile[128]; - -/* - * Pass input through preprocessor - */ -void -DRV_pre_proc(char *myfile) -{ - long readfromstdin = I_FALSE; - char catbuf[512]; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (readfromstdin); - - const char* tmpdir = getenv("TMP"); - if (tmpdir != 0) - { - ACE_OS::strcpy (tmp_file, tmpdir); - ACE_OS::strcpy (tmp_ifile, tmpdir); - } - else - { - ACE_OS::strcpy (tmp_file, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_file, "tmp"); - ACE_OS::strcpy (tmp_ifile, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_ifile, "tmp"); - } - - ACE_OS::strcat (tmp_file, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_file, "idlf_XXXXXX"); - - ACE_OS::strcat (tmp_ifile, ACE_DIRECTORY_SEPARATOR_STR_A); - ACE_OS::strcat (tmp_ifile, "idli_XXXXXX"); - - (void) ACE_OS::mktemp (tmp_file); ACE_OS::strcat (tmp_file, ".cc"); - (void) ACE_OS::mktemp (tmp_ifile); ACE_OS::strcat (tmp_ifile, ".cc"); - if (strcmp(myfile, "standard input") == 0) - { - idl_global->set_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - idl_global->set_main_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - idl_global->set_stripped_filename((*DRV_FE_new_UTL_String)(DRV_stripped_name(tmp_ifile))); - idl_global->set_real_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - DRV_copy_input(stdin, tmp_ifile, "standard input"); - idl_global->set_read_from_stdin(I_TRUE); - } - else - { - FILE *fd = fopen(myfile, "r"); - DRV_copy_input(fd, tmp_ifile, myfile); - fclose(fd); - idl_global->set_read_from_stdin(I_FALSE); - idl_global->set_filename((*DRV_FE_new_UTL_String)(myfile)); - idl_global->set_main_filename((*DRV_FE_new_UTL_String)(myfile)); - idl_global->set_stripped_filename((*DRV_FE_new_UTL_String)(DRV_stripped_name(myfile))); - idl_global->set_real_filename((*DRV_FE_new_UTL_String)(tmp_ifile)); - } - - // We use ACE instead of the (low level) fork facilities, this also - // work on NT. - ACE_Process manager; - ACE_Process_Options cpp_options; - DRV_cpp_putarg (tmp_ifile); - DRV_cpp_putarg (0); // Null terminate the arglist. - cpp_options.command_line (arglist); - ACE_HANDLE fd = ACE_OS::open(tmp_file, O_WRONLY | O_CREAT | O_TRUNC, 0777); - if (fd == ACE_INVALID_HANDLE) { - cerr << idl_global->prog_name() - << GTDEVEL(": cannot open temp file ") - << tmp_file << " for writing\n"; - return; - } - cpp_options.set_handles (ACE_INVALID_HANDLE, fd); - if (manager.spawn (cpp_options) == -1) - { - cerr << idl_global->prog_name() - << GTDEVEL(": spawn of ") - << arglist[0] - << GTDEVEL(" failed\n"); - return; - } - - // Close the output file on the parent process. - if (ACE_OS::close (fd) == -1) - { - cerr << idl_global->prog_name () - << GTDEVEL(": cannot close temp file") - << tmp_file << " on parent\n"; - return; - } - - // Remove the null termination and the input file from the arglist, - // the next file will the previous args. - argcount -= 2; - - int status = 0; - if (manager.wait (&status) == -1) - { - cerr << idl_global->prog_name () - << GTDEVEL(": wait for child process failed\n"); - return; - } - if (status != 0) - { - cerr << idl_global->prog_name() - << GTDEVEL(": preprocessor ") - << arglist[0] - << GTDEVEL(" returned with an error\n"); - return; - } - // TODO: Manage problems in the pre-processor, in the previous - // version the current process would exit if the pre-processor - // returned with error. - - - FILE * yyin = fopen(tmp_file, "r"); - if (yyin == NULL) { - cerr << idl_global->prog_name() - << GTDEVEL(": Could not open cpp output file ") - << tmp_file - << "\n"; - exit(99); - } - (*DRV_FE_set_yyin)(ACE_reinterpret_cast(File *, yyin)); - - // @@ TODO: This is not portable, cat(1) is a UNIX tool. - if (idl_global->compile_flags() & IDL_CF_ONLY_PREPROC) { - sprintf(catbuf, "cat < %s", tmp_file); - system(catbuf); - } - - if (ACE_OS::unlink(tmp_ifile) == -1) { - cerr << idl_global->prog_name() - << GTDEVEL(": Could not remove cpp input file ") - << tmp_ifile - << "\n"; - exit(99); - } - -#if !defined (ACE_WIN32) - // TODO: This unlink fails every time under NT, it seems that you - // cannot remove an open file under that OS? - if (ACE_OS::unlink(tmp_file) == -1) { - cerr << idl_global->prog_name() - << GTDEVEL(": Could not remove cpp output file ") - << tmp_file - << "\n"; - exit(99); - } -#endif /* !ACE_WIN32 */ - if (idl_global->compile_flags() & IDL_CF_ONLY_PREPROC) - exit(0); -} - -// We really need to know whether this line is a "#include ...". If -// so, we would like to separate the "file name" and keep that in the -// idl_global. We need them to produce "#include's in the stubs and -// skeletons. -void -DRV_check_for_include (const char* buf) -{ - const char* r = buf; - const char* h; - - // Skip initial '#'. - if (*r != '#') - return; - else - r++; - - // Skip the tabs and spaces. - while (*r == ' ' || *r == '\t') - r++; - - // Probably we are at the word `include`. If not return. - if (*r != 'i') - return; - - // Check whether this word is `include` or no. - char* include_str = "include"; - for (size_t ii = 0; ii < strlen ("include") && *r != '\0' && *r != ' ' && *r != '\t'; r++, ii++) - // Return if it doesn't match. - if (include_str [ii] != *r) - return; - - // Next thing is finding the file that has been `#include'd. Skip - // all the blanks and tabs and reach the startng " character. - for (; *r != '"'; r++) - if (*r == '\n' || *r == '\0') - return; - - // Skip this ". - r++; - - // Store this position. - h = r; - - // Found this in idl.ll. Decides the file to be standard input. - if (*h == '\0') - return; - - // Find the closing " character. - for (; *r != '"'; r++) - continue; - - // Make a new string for this file name. - char* file_name = 0; - ACE_NEW (file_name, - char [r - h + 1]); - - // Copy the char's. - size_t fi = 0; - for (; h != r; fi++, h++) - file_name [fi] = *h; - - // Terminate the string. - file_name [fi] = '\0'; - - // Put Microsoft-style pathnames into a canonical form. - size_t i = 0; - for (size_t j = 0; file_name [j] != '\0'; i++, j++) - { - if (file_name [j] == '\\' && file_name [j + 1] == '\\') - j++; - - file_name [i] = file_name [j]; - } - - // Terminate this string. - file_name [i] = '\0'; - - // Store in the idl_global. - idl_global->add_to_included_idl_files (file_name); -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - template class ACE_Env_Value; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate ACE_Env_Value -#endif diff --git a/TAO/TAO_IDL/driver/drv_private.cpp b/TAO/TAO_IDL/driver/drv_private.cpp deleted file mode 100644 index 2ed8bc61179..00000000000 --- a/TAO/TAO_IDL/driver/drv_private.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// drv_global.cc - Global variables for IDL compiler driver program - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" - -ACE_RCSID(driver, drv_private, "$Id$") - -// Storage for file names - -#define NFILES 1024 - -char *DRV_files[NFILES]; -long DRV_nfiles = 0; -long DRV_file_index = -1; -IDL_GlobalData *idl_global = NULL; diff --git a/TAO/TAO_IDL/fe/fe_declarator.cpp b/TAO/TAO_IDL/fe/fe_declarator.cpp deleted file mode 100644 index 400dbe1b29f..00000000000 --- a/TAO/TAO_IDL/fe/fe_declarator.cpp +++ /dev/null @@ -1,161 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_declarator.cc - Implementation of FE private declaration - * statement class - * - * The FE_Declarator class is used to hold together complex declarations - * until all the components are parsed and before they are composed into - * an AST_Type node. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -ACE_RCSID(fe, fe_declarator, "$Id$") - -/* - * Constructor(s) and destructor - */ - -FE_Declarator::FE_Declarator(UTL_ScopedName *n, DeclaratorType dt, - AST_Decl *cp) - : pd_complex_part(cp), - pd_name(n), - pd_decl_type(dt) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Compose the type of the complex declarator (if any) with the base -// type supplied in ct -AST_Type * -FE_Declarator::compose(AST_Decl *d) -{ - AST_Array *arr; - AST_Type *ct; - - ct = AST_Type::narrow_from_decl(d); - if (ct == NULL) { - idl_global->err()->not_a_type(d); - return NULL; - } - if (ct->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type(d); - return NULL; - } - if (pd_decl_type == FD_simple || pd_complex_part == NULL) { - return ct; - } - if (pd_complex_part->node_type() == AST_Decl::NT_array) { - arr = AST_Array::narrow_from_decl(pd_complex_part); - arr->set_base_type(ct); - - /* - * Add the new array to the types defined in the global scope - */ - idl_global->root()->fe_add_array(arr); - - return arr; - } - return NULL; // return through this statement should not happen -} - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -AST_Decl * -FE_Declarator::complex_part() -{ - return pd_complex_part; -} - -UTL_ScopedName * -FE_Declarator::name() -{ - return pd_name; -} - -FE_Declarator::DeclaratorType -FE_Declarator::decl_type() -{ - return pd_decl_type; -} diff --git a/TAO/TAO_IDL/fe/fe_extern.cpp b/TAO/TAO_IDL/fe/fe_extern.cpp deleted file mode 100644 index ee87e7c1da4..00000000000 --- a/TAO/TAO_IDL/fe/fe_extern.cpp +++ /dev/null @@ -1,126 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_extern.cc - export FE interfaces to driver - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -#include "utl_error.h" -#include "utl_indenter.h" -#include "utl_string.h" - -ACE_RCSID(fe, fe_extern, "$Id$") - -/* - * yacc parser interface - */ - -extern int tao_yyparse(); -extern FILE * tao_yyin; - -int -FE_yyparse() -{ - int result = tao_yyparse(); - if (idl_global->err_count() == 0) { - idl_global->root()->call_add(); - } - return result; -} - -void -FE_set_yyin(File * f) -{ - tao_yyin = ACE_reinterpret_cast(FILE*,f); -} - -/* - * constructor interfaces - */ - -UTL_Error * -FE_new_UTL_Error() -{ - return new UTL_Error(); -} - -UTL_Indenter * -FE_new_UTL_Indenter() -{ - return new UTL_Indenter(); -} - -UTL_String * -FE_new_UTL_String(char * str) -{ - return new UTL_String(str); -} diff --git a/TAO/TAO_IDL/fe/fe_init.cpp b/TAO/TAO_IDL/fe/fe_init.cpp deleted file mode 100644 index e7c39af95e0..00000000000 --- a/TAO/TAO_IDL/fe/fe_init.cpp +++ /dev/null @@ -1,371 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_init.cc - Initialize the FE - * - * The FE initialization is carried out in two stages, with the BE - * initialization protocol sandwiched between the two stages. - * - * The first stage is responsible for creating the scopes stack. - * The second stage is run after the BE initialization has created - * and returned an instance of AST_Generator (or a subclass). This - * instance is used to create the root node for the AST, and to - * populate it with AST_PredefinedType nodes which represent the - * predefined IDL types. This AST root is then pushed on the scopes - * stack as the outermost scope. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -ACE_RCSID(fe, fe_init, "$Id$") - -/* - * Create a scoped name - */ -static UTL_ScopedName * -create_scoped_name(char *s) -{ - return new UTL_ScopedName(new Identifier(s, 1, 0, I_FALSE), NULL); -} - -/* - * Populate the global scope with all predefined entities - */ -void -fe_populate(AST_Module *m) -{ - AST_PredefinedType *pdt; - - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_long, - create_scoped_name("long"), - NULL); - m->fe_add_predefined_type(pdt); - - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_ulong, - create_scoped_name("unsigned long"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_longlong, - create_scoped_name("long long"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_ulonglong, - create_scoped_name("unsigned long long"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_short, - create_scoped_name("short"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_ushort, - create_scoped_name("unsigned short"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_float, - create_scoped_name("float"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_double, - create_scoped_name("double"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_longdouble, - create_scoped_name("long double"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_char, - create_scoped_name("char"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_wchar, - create_scoped_name("wchar"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_octet, - create_scoped_name("octet"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_any, - create_scoped_name("any"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = - idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_boolean, - create_scoped_name("boolean"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen()->create_predefined_type(AST_PredefinedType::PT_void, - create_scoped_name("void"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("Object"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("TypeCode"), - NULL); - m->fe_add_predefined_type(pdt); - - /* - * Add these to make all keywords protected even in different spellings - */ - - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("attribute"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("case"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("const"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("context"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("default"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("enum"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("exception"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("in"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("out"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("inout"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("interface"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("module"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("oneway"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("raises"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("readonly"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("sequence"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("string"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("wstring"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("struct"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("switch"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("typedef"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("union"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("unsigned"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("TRUE"), - NULL); - m->fe_add_predefined_type(pdt); - pdt = idl_global->gen() - ->create_predefined_type(AST_PredefinedType::PT_pseudo, - create_scoped_name("FALSE"), - NULL); - m->fe_add_predefined_type(pdt); -} - -/* - * Initialization stage 1: create global scopes stack - */ -void -FE_init_stage1() -{ - idl_global->set_scopes(new UTL_ScopeStack()); - if (idl_global->scopes() == NULL) { - cerr << GTDEVEL("IDL: FE init failed to create scope stack, exiting\n"); - exit(99); - } -} - -/* - * Initialization stage 2: create global scope and populate it - */ -void -FE_init_stage2() -{ - AST_Root *r; - - /* - * Check that the BE init created a generator object - */ - if (idl_global->gen() == NULL) { - cerr << GTDEVEL("IDL: BE did not initialize idl_global->gen(), exiting\n"); - exit(99); - } - /* - * Create a global root for the AST. Note that the AST root has no - * name - */ - r = idl_global->gen()->create_root(create_scoped_name(""), NULL); - idl_global->set_root(r); - if (r == NULL) { - cerr << GTDEVEL("IDL: FE init failed to create AST root, exiting\n"); - exit(99); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(idl_global->root()); - /* - * Populate it with nodes for predefined types - */ - fe_populate(idl_global->root()); - /* - * Set flag to indicate we are processing the main file now - */ - idl_global->set_in_main_file(I_TRUE); -} diff --git a/TAO/TAO_IDL/fe/fe_interface_header.cpp b/TAO/TAO_IDL/fe/fe_interface_header.cpp deleted file mode 100644 index e1b70fb99aa..00000000000 --- a/TAO/TAO_IDL/fe/fe_interface_header.cpp +++ /dev/null @@ -1,284 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_interface_header.cc - Implements the FE private class FE_InterfaceHeader - * - * FE_InterfaceHeader instances are used to store information about an - * interface header as the interface is being parsed and before the - * AST_Interface node used to represent this interface is created. - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -ACE_RCSID(fe, fe_interface_header, "$Id$") - -/* - * Constructor(s) and destructor - */ - -FE_InterfaceHeader::FE_InterfaceHeader(UTL_ScopedName *n, UTL_NameList *nl) - : pd_interface_name(n) -{ - compile_inheritance(nl); -} - -/* - * Private operations - */ - -// Compute flattened, non-repeating list of inherited interfaces - -#undef INCREMENT -#define INCREMENT 512 - -/* - * Private storage used to store interfaces seen already in the - * computation of the unique, flattened inheritance list - */ -static AST_Interface **iseen = NULL; -static long iallocated = 0; -static long iused = 0; - -/* - * Add an interface to an inheritance spec - */ -static void -add_inheritance(AST_Interface *i) -{ - long k; - AST_Interface **oiseen; - - /* - * Make sure there's space for one more - */ - if (iallocated == iused) { - if (iallocated == 0) { - iallocated = INCREMENT; - iseen = new AST_Interface *[iallocated]; - } else { - oiseen = iseen; - iallocated += INCREMENT; - iseen = new AST_Interface *[iallocated]; - for (k = 0; k < iused; k++) - iseen[k] = oiseen[k]; - delete oiseen; - } - } - /* - * OK, now insert it - */ - iseen[iused] = i; - iused++; -} - -/* - * Have we already seen this interface? - */ -static long -already_seen(AST_Interface *ip) -{ - long i; - - for (i = 0; i < iused; i++) { - if (iseen[i] == ip) - return I_TRUE; - } - return I_FALSE; -} - -/* - * Add this interface to the list of inherited if not already there - */ -void -FE_InterfaceHeader::compile_one_inheritance(AST_Interface *i) -{ - /* - * Check for badly formed interface - */ - if (i == NULL) - return; - /* - * If we've seen it already then don't expand again - */ - if (already_seen(i)) - return; - /* - * OK, add i to the list of inherited interfaces - */ - add_inheritance(i); -} - -/* - * Compute the list of top-level interfaces this one inherits from - */ -void -FE_InterfaceHeader::compile_inheritance(UTL_NameList *nl) -{ - UTL_NamelistActiveIterator *l = new UTL_NamelistActiveIterator(nl); - AST_Decl *d; - AST_Interface *i; - long k; - - iused = 0; - /* - * Compute expanded flattened non-repeating list of interfaces - * which this one inherits from - */ - while (!(l->is_done())) { - /* - * Check that scope stack is valid - */ - if (idl_global->scopes()->top() == NULL) { - idl_global->err()->lookup_error(l->item()); - return; - } - /* - * Look it up - */ - d = idl_global->scopes()->top()->lookup_by_name(l->item(), I_TRUE); - /* - * Not found? - */ - if (d == NULL) { - idl_global->err()->lookup_error(l->item()); - return; - } - /* - * Not an interface? - */ - while(d->node_type() == AST_Decl::NT_typedef) - d = AST_Typedef::narrow_from_decl(d)->base_type(); - if (d->node_type() != AST_Decl::NT_interface) { - idl_global->err()->inheritance_error(pd_interface_name, d); - return; - } - /* - * OK, cast to an interface - */ - i = AST_Interface::narrow_from_decl(d); - if (i == NULL) - idl_global->err()->inheritance_error(pd_interface_name, d); - /* - * Forward declared interface? - */ - if (!i->is_defined()) { - idl_global->err()->inheritance_fwd_error(pd_interface_name, i); - return; - } - /* - * OK, see if we have to add this to the list of interfaces - * inherited from - */ - compile_one_inheritance(i); - - /* - * Next element in header list - */ - l->next(); - } - delete l; - /* - * OK, install in interface header - */ - pd_inherits = new AST_Interface *[iused]; - for (k = 0; k < iused; k++) - pd_inherits[k] = iseen[k]; - pd_n_inherits = iused; -} - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -/* - * Data accessors - */ - -UTL_ScopedName * -FE_InterfaceHeader::interface_name() -{ - return pd_interface_name; -} - -AST_Interface ** -FE_InterfaceHeader::inherits() -{ - return pd_inherits; -} - -long -FE_InterfaceHeader::n_inherits() -{ - return pd_n_inherits; -} diff --git a/TAO/TAO_IDL/fe/fe_lookup.cpp b/TAO/TAO_IDL/fe/fe_lookup.cpp deleted file mode 100644 index 6c47aee8776..00000000000 --- a/TAO/TAO_IDL/fe/fe_lookup.cpp +++ /dev/null @@ -1,166 +0,0 @@ -// $Id$ -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -/* starting time is 18:04:44 */ -/* C++ code produced by gperf version 2.6 (GNU C++ version) */ -/* Command-line: /home/gokhale/research/projects/ACE_wrappers/bin/gperf -M -J -c -C -D -E -T -f 0 -a -o -t -p -K keyword_ -L C++ -Z TAO_IDL_CPP_Keyword_Table -N lookup fe/keywords.dat */ -unsigned int -TAO_IDL_CPP_Keyword_Table::hash (const char *str, int len) -{ - static const unsigned char asso_values[] = - { - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, - 125, 125, 125, 125, 125, 125, 125, 45, 70, 30, - 15, 5, 45, 60, 65, 0, 125, 15, 10, 60, - 75, 60, 20, 20, 0, 25, 0, 0, 40, 5, - 85, 25, 125, 125, 125, 125, 125, 125, - }; - return len + asso_values[str[len - 1]] + asso_values[str[0]]; -} - -const struct TAO_IDL_CPP_Keyword_Entry * -TAO_IDL_CPP_Keyword_Table::lookup (const char *str, int len) -{ - enum - { - TOTAL_KEYWORDS = 73, - MIN_WORD_LENGTH = 2, - MAX_WORD_LENGTH = 16, - MIN_HASH_VALUE = 3, - MAX_HASH_VALUE = 124, - HASH_VALUE_RANGE = 122, - DUPLICATES = 4 - }; - - static const struct TAO_IDL_CPP_Keyword_Entry wordlist[] = - { - {"",}, {"",}, {"",}, - {"int", "_cxx_int"}, - {"register", "_cxx_register"}, - {"true", "_cxx_true"}, - {"throw", "_cxx_throw"}, - {"inline", "_cxx_inline"}, - {"wchar_t", "_cxx_wchar_t"}, - {"explicit", "_cxx_explicit"}, - {"typename", "_cxx_typename"}, - {"template", "_cxx_template"}, - {"else", "_cxx_else"}, - {"while", "_cxx_while"}, - {"reinterpret_cast", "_cxx_reinterpret_cast"}, - {"typeid", "_cxx_typeid"}, - {"default", "_cxx_default"}, - {"unsigned", "_cxx_unsigned"}, - {"delete", "_cxx_delete"}, - {"double", "_cxx_double"}, - {"dynamic_cast", "_cxx_dynamic_cast"}, - {"try", "_cxx_try"}, - {"this", "_cxx_this"}, - {"short", "_cxx_short"}, - {"struct", "_cxx_struct"}, - {"private", "_cxx_private"}, - {"char", "_cxx_char"}, - {"const", "_cxx_const"}, - {"static_cast", "_cxx_static_cast"}, - {"case", "_cxx_case"}, - {"const_cast", "_cxx_const_cast"}, - {"continue", "_cxx_continue"}, - {"protected", "_cxx_protected"}, - {"compl", "_cxx_compl"}, - {"signed", "_cxx_signed"}, - {"if", "_cxx_if"}, - {"for", "_cxx_for"}, - {"float", "_cxx_float"}, - {"typedef", "_cxx_typedef"}, - {"volatile", "_cxx_volatile"}, - {"false", "_cxx_false"}, - {"public", "_cxx_public"}, - {"virtual", "_cxx_virtual"}, - {"void", "_cxx_void"}, - {"class", "_cxx_class"}, - {"static", "_cxx_static"}, - {"or", "_cxx_or"}, - {"and", "_cxx_and"}, - {"using", "_cxx_using"}, - {"friend", "_cxx_friend"}, - {"operator", "_cxx_operator"}, - {"enum", "_cxx_enum"}, - {"and_eq", "_cxx_and_eq"}, - {"mutable", "_cxx_mutable"}, - {"long", "_cxx_long"}, - {"bitor", "_cxx_bitor"}, - {"sizeof", "_cxx_sizeof"}, - {"do", "_cxx_do"}, - {"not", "_cxx_not"}, - {"union", "_cxx_union"}, - {"return", "_cxx_return"}, - {"new", "_cxx_new"}, - {"bool", "_cxx_bool"}, - {"or_eq", "_cxx_or_eq"}, - {"extern", "_cxx_extern"}, - {"xor", "_cxx_xor"}, - {"namespace", "_cxx_namespace"}, - {"break", "_cxx_break"}, - {"bitand", "_cxx_bitand"}, - {"switch", "_cxx_switch"}, - {"catch", "_cxx_catch"}, - {"not_eq", "_cxx_not_eq"}, - {"asm", "_cxx_asm"}, - {"auto", "_cxx_auto"}, - {"xor_eq", "_cxx_xor_eq"}, - {"goto", "_cxx_goto"}, - }; - - static const short lookup[] = - { - -1, -1, -1, 3, -1, -1, -1, -1, 4, 5, 6, 7, 8, 128, - 12, 13, 14, -9, -3, -1, -1, 15, 16, 17, -1, -1, 135, 20, - 21, 22, 23, 24, 25, -1, 26, 27, 28, -18, -2, 29, 30, -1, - -1, 31, 32, 33, 34, 35, 36, -1, 37, -1, 38, 39, -1, 40, - 41, 42, -1, 43, 44, 45, 46, 47, -1, 48, 49, -1, 50, 51, - -1, 52, 53, -1, 54, 55, 56, 57, 58, -1, 59, 60, -1, 61, - 62, 63, 64, -1, 65, 66, 67, 68, -1, -1, -1, -1, 69, -1, - -1, -1, 70, 71, -1, -1, -1, -1, -1, -1, 72, 73, -1, 74, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 75, - }; - - if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) - { - int key = hash (str, len); - - if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE) - { - int index = lookup[key]; - - if (index >= 0 && index < MAX_HASH_VALUE) - { - const char *s = wordlist[index].keyword_; - - if (*str == *s && !strncmp (str + 1, s + 1, len - 1)) - return &wordlist[index]; - } - else if (index < 0 && index >= -MAX_HASH_VALUE) - return 0; - else - { - int offset = key + index + (index > 0 ? -MAX_HASH_VALUE : MAX_HASH_VALUE); - const struct TAO_IDL_CPP_Keyword_Entry *base = &wordlist[-lookup[offset]]; - const struct TAO_IDL_CPP_Keyword_Entry *ptr = base + -lookup[offset + 1]; - - while (--ptr >= base) - if (*str == *ptr->keyword_ && !strncmp (str + 1, ptr->keyword_ + 1, len - 1)) - return ptr; - } - } - } - return 0; -} -/* ending time is 18:04:44 */ diff --git a/TAO/TAO_IDL/fe/fe_private.cpp b/TAO/TAO_IDL/fe/fe_private.cpp deleted file mode 100644 index bec725f9a20..00000000000 --- a/TAO/TAO_IDL/fe/fe_private.cpp +++ /dev/null @@ -1,82 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * fe_private.cc - Declare global data which are private to the FE - * part - */ - -#include "idl.h" -#include "idl_extern.h" - -#include "fe_private.h" - -ACE_RCSID(fe, fe_private, "$Id$") - -/* - * List of pragmas - */ -UTL_StrList *DRV_global_pragmas = NULL; diff --git a/TAO/TAO_IDL/fe/idl.ll b/TAO/TAO_IDL/fe/idl.ll deleted file mode 100644 index 7efcf9e9392..00000000000 --- a/TAO/TAO_IDL/fe/idl.ll +++ /dev/null @@ -1,552 +0,0 @@ - -%{ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY -IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. - -IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * idl.ll - Lexical scanner for IDL 1.1 - */ - -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include "y.tab.h" - -static char idl_escape_reader(char *); -static double idl_atof(char *); -static long idl_atoi(char *, long); -static void idl_parse_line_and_file(char *); -static void idl_store_pragma(char *); - -#if 0 /* defined (HPUX) */ -// HPUX has yytext typed to unsigned char *. We make sure here that -// we'll always use char * static char* __yytext = (char*) yytext; -// NOTE: This will not work under flex(1) were yytext is not a fixed -// buffer, but a dynamically allocated one. This function should do -// the trick for us. -inline char *__yytext() -{ - return (char *) yytext; -} -#define ace_yytext __yytext() -#else -#define ace_yytext yytext -#endif /* 0 */ -%} - -%array -%option never-interactive - -%% - -any return IDL_ANY; -module return IDL_MODULE; -raises return IDL_RAISES; -readonly return IDL_READONLY; -attribute return IDL_ATTRIBUTE; -exception return IDL_EXCEPTION; -context return IDL_CONTEXT; -interface return IDL_INTERFACE; -const return IDL_CONST; -typedef return IDL_TYPEDEF; -struct return IDL_STRUCT; -enum return IDL_ENUM; -string return IDL_STRING; -wstring return IDL_WSTRING; -sequence return IDL_SEQUENCE; -union return IDL_UNION; -switch return IDL_SWITCH; -case return IDL_CASE; -default return IDL_DEFAULT; -float return IDL_FLOAT; -double return IDL_DOUBLE; -long return IDL_LONG; -short return IDL_SHORT; -unsigned return IDL_UNSIGNED; -char return IDL_CHAR; -wchar return IDL_WCHAR; -boolean return IDL_BOOLEAN; -octet return IDL_OCTET; -void return IDL_VOID; -native return IDL_NATIVE; - -TRUE return IDL_TRUETOK; -FALSE return IDL_FALSETOK; - -inout return IDL_INOUT; -in return IDL_IN; -out return IDL_OUT; -oneway return IDL_ONEWAY; - -\<\< return IDL_LEFT_SHIFT; -\>\> return IDL_RIGHT_SHIFT; -\:\: { - yylval.strval = "::"; - return IDL_SCOPE_DELIMITOR; - } - -[a-zA-Z][a-zA-Z0-9_]* { - /* make sure that this identifier is not a C++ keyword. If it is, - prepend it with a _cxx_. Lookup in the perfect hash table for - C++ keyword and grab the mapping*/ - - TAO_IDL_CPP_Keyword_Table cpp_key_tbl; - const TAO_IDL_CPP_Keyword_Entry *entry = - cpp_key_tbl.lookup (ace_yytext, - ACE_OS::strlen (ace_yytext)); - if (entry) - { - yylval.strval = ACE_OS::strdup (entry->mapping_); - } - else - { - yylval.strval = ACE_OS::strdup (ace_yytext); - } - return IDENTIFIER; -} - --?[0-9]+"."[0-9]*([eE][+-]?[0-9]+)?[lLfF]? { - yylval.dval = idl_atof(ace_yytext); - return IDL_FLOATING_PT_LITERAL; - } --?[0-9]+[eE][+-]?[0-9]+[lLfF]? { - yylval.dval = idl_atof(ace_yytext); - return IDL_FLOATING_PT_LITERAL; - } - --?[1-9][0-9]* { - yylval.ival = idl_atoi(ace_yytext, 10); - return IDL_INTEGER_LITERAL; - } --?0[xX][a-fA-F0-9]+ { - yylval.ival = idl_atoi(ace_yytext, 16); - return IDL_INTEGER_LITERAL; - } --?0[0-7]* { - yylval.ival = idl_atoi(ace_yytext, 8); - return IDL_INTEGER_LITERAL; - } - -"\""[^\"]*"\"" { - /* Skip the quotes */ - char *tmp = ace_yytext; - tmp[strlen(tmp)-1] = '\0'; - yylval.sval = new String(tmp + 1); - return IDL_STRING_LITERAL; - } -"'"."'" { - yylval.cval = ace_yytext [1]; - return IDL_CHARACTER_LITERAL; - } -"'"\\([0-7]{1,3})"'" { - // octal character constant - yylval.cval = idl_escape_reader(ace_yytext + 1); - return IDL_CHARACTER_LITERAL; - } -"'"\\[xX]([0-9a-fA-F]{1,2})"'" { - // hexadecimal character constant - yylval.cval = idl_escape_reader(ace_yytext + 1); - return IDL_CHARACTER_LITERAL; - } -"'"\\."'" { - yylval.cval = idl_escape_reader(ace_yytext + 1); - return IDL_CHARACTER_LITERAL; - } -^#[ \t]*pragma[ \t].*\n {/* remember pragma */ - idl_global->set_lineno(idl_global->lineno() + 1); - idl_store_pragma(ace_yytext); - } -^#[ \t]*[0-9]*" ""\""[^\"]*"\""" "[0-9]*\n { - idl_parse_line_and_file(ace_yytext); - } -^#[ \t]*[0-9]*" ""\""[^\"]*"\""\n { - idl_parse_line_and_file(ace_yytext); - } -^#line[ \t]*[0-9]*" ""\""[^\"]*"\""\n { - idl_parse_line_and_file(ace_yytext); - } -^#[ \t]*[0-9]*\n { - idl_parse_line_and_file(ace_yytext); - } -^#[ \t]*ident.*\n { - /* ignore cpp ident */ - idl_global->set_lineno(idl_global->lineno() + 1); - } -\/\/.*\n { - /* ignore comments */ - idl_global->set_lineno(idl_global->lineno() + 1); - } -"/*" { - for(;;) { - char c = yyinput(); - if (c == '*') { - char next = yyinput(); - if (next == '/') - break; - else - yyunput(c, NULL); - if (c == '\n') - idl_global->set_lineno(idl_global->lineno() + 1); - } - } - } -[ \t]* ; -\n { - idl_global->set_lineno(idl_global->lineno() + 1); - } -. return ace_yytext [0]; - -%% - /* subroutines */ - -/* - * Strip down a name to the last component, i.e. everything after the last - * '/' character - */ -static char * -stripped_name(UTL_String *fn) -{ - char *n = fn->get_string(); - long l; - - if (n == NULL) - return NULL; - l = strlen(n); - for (n += l; l > 0 && *n != '/'; l--, n--); - if (*n == '/') n++; - return n; -} - -/* - * Parse a #line statement generated by the C preprocessor - */ -static void -idl_parse_line_and_file(char *buf) -{ - char *r = buf; - char *h; - UTL_String *nm; - - /* Skip initial '#' */ - if (*r != '#') - return; - else - r++; - - /* Check to see if we're running under the screwy Microsoft scheme */ - /* of putting #line num instead of #num. */ - - if (ACE_OS::strncmp (r, "line", 4) == 0) - r += 5; - - /* Find line number */ - while (*r == ' ' || *r == '\t') - r++; - h = r; - for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) - continue; - *r++ = 0; - idl_global->set_lineno(idl_atoi(h, 10)); - - /* Find file name, if present */ - for (; *r != '"'; r++) - if (*r == '\n' || *r == '\0') - return; - - h = ++r; - for (; *r != '"'; r++) - continue; - *r = 0; - if (*h == '\0') - idl_global->set_filename(new String("standard input")); - else - { - long i; - long j; - - // Put Microsoft-style pathnames into a canonical form. - for (i = 0, j = 0; h[j] != '\0'; i++, j++) - { - if (h[j] == '\\' && h[j + 1] == '\\') - j++; - - h[i] = h[j]; - } - h[i] = '\0'; - idl_global->set_filename(new String(h)); - } - int in_main_file = I_FALSE; - if (idl_global->filename()->compare(idl_global->real_filename()) - || idl_global->filename()->compare(idl_global->main_filename())) - in_main_file = I_TRUE; - idl_global->set_in_main_file(in_main_file); - /* - * If it's an import file store the stripped name for the BE to use - */ - if (!(idl_global->in_main_file()) && idl_global->import()) { - nm = new UTL_String(stripped_name(idl_global->filename())); - idl_global->store_include_file_name(nm); - } -} - -/* - * Store a #pragma line into the list of pragmas - */ -static void -idl_store_pragma(char *buf) -{ - char *sp = buf + 1; - // Remove all the blanks between the '#' and the 'pragma' - if (*sp != 'p') - { - while (*sp != 'p') - ++sp; - char *tp = buf + 1; - while (*sp != '\n') - { - *tp = *sp; - ++tp; ++sp; - } - } - - if (ACE_OS::strstr(buf + 8, "import") != 0) { - idl_global->set_import(I_TRUE); - return; - } - if (ACE_OS::strstr(buf + 8, "include") != 0) { - idl_global->set_import(I_FALSE); - return; - } - // Remove the final '\n' - while (*sp != '\n') - ++sp; - *sp = '\0'; - UTL_StrList *p = idl_global->pragmas(); - if (p == NULL) - idl_global->set_pragmas(new UTL_StrList(new String(buf), NULL)); - else { - p->nconc(new UTL_StrList(new String(buf), NULL)); - idl_global->set_pragmas(p); - } -} - -/* - * idl_atoi - Convert a string of digits into an integer according to base b - */ -static long -idl_atoi(char *s, long b) -{ - long r = 0; - long negative = 0; - - if (*s == '-') { - negative = 1; - s++; - } - if (b == 8 && *s == '0') - s++; - else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X')) - s += 2; - - for (; *s; s++) - if (*s <= '9' && *s >= '0') - r = (r * b) + (*s - '0'); - else if (b > 10 && *s <= 'f' && *s >= 'a') - r = (r * b) + (*s - 'a' + 10); - else if (b > 10 && *s <= 'F' && *s >= 'A') - r = (r * b) + (*s - 'A' + 10); - else - break; - - if (negative) - r *= -1; - - return r; -} - -/* - * Convert a string to a float; atof doesn't seem to work, always. - */ -static double -idl_atof(char *s) -{ - char *h = s; - double d = 0.0; - double f = 0.0; - double e, k; - long neg = 0, negexp = 0; - - ACE_UNUSED_ARG (f); - ACE_UNUSED_ARG (h); - - if (*s == '-') { - neg = 1; - s++; - } - while (*s >= '0' && *s <= '9') { - d = (d * 10) + *s - '0'; - s++; - } - if (*s == '.') { - s++; - e = 10; - while (*s >= '0' && *s <= '9') { - d += (*s - '0') / (e * 1.0); - e *= 10; - s++; - } - } - if (*s == 'e' || *s == 'E') { - s++; - if (*s == '-') { - negexp = 1; - s++; - } else if (*s == '+') - s++; - e = 0; - while (*s >= '0' && *s <= '9') { - e = (e * 10) + *s - '0'; - s++; - } - if (e > 0) { - for (k = 1; e > 0; k *= 10, e--); - if (negexp) - d /= k; - else - d *= k; - } - } - - if (neg) d *= -1.0; - - return d; -} - -/* - * Convert (some) escaped characters into their ascii values - */ -static char -idl_escape_reader( - char *str -) -{ - if (str[0] != '\\') { - return str[0]; - } - - switch (str[1]) { - case 'n': - return '\n'; - case 't': - return '\t'; - case 'v': - return '\v'; - case 'b': - return '\b'; - case 'r': - return '\r'; - case 'f': - return '\f'; - case 'a': - return '\a'; - case '\\': - return '\\'; - case '\?': - return '?'; - case '\'': - return '\''; - case '"': - return '"'; - case 'x': - { - int i; - // hex value - for (i = 2; str[i] != '\0' && isxdigit(str[i]); i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[2], 16); - str[i] = save; - return out; - } - break; - default: - // check for octal value - if (str[1] >= '0' && str[1] <= '7') { - int i; - for (i = 1; str[i] >= '0' && str[i] <= '7'; i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[1], 8); - str[i] = save; - return out; - } else { - return str[1] - 'a'; - } - break; - } -} diff --git a/TAO/TAO_IDL/fe/idl.yy b/TAO/TAO_IDL/fe/idl.yy deleted file mode 100644 index 0d460219df6..00000000000 --- a/TAO/TAO_IDL/fe/idl.yy +++ /dev/null @@ -1,2300 +0,0 @@ - - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY -IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. - -IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * idl.yy - YACC grammar for IDL 1.1 - */ - -/* Declarations */ - -%{ -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include - -#if (defined(apollo) || defined(hpux)) && defined(__cplusplus) -extern "C" int yywrap(); -#endif // (defined(apollo) || defined(hpux)) && defined(__cplusplus) - -void yyerror (const char *); -int yylex (void); -extern "C" int yywrap (void); -extern char yytext[]; -extern int yyleng; -#define YYDEBUG_LEXER_TEXT (yytext[yyleng] = '\0', yytext) -// Force the pretty debugging code to compile. -#define YYDEBUG 1 -%} - -/* - * Declare the type of values in the grammar - */ - -%union { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} - -/* - * Token types: These are returned by the lexer - */ - -%token IDENTIFIER - -%token IDL_CONST -%token IDL_MODULE -%token IDL_INTERFACE -%token IDL_TYPEDEF -%token IDL_LONG -%token IDL_SHORT -%token IDL_UNSIGNED -%token IDL_DOUBLE -%token IDL_FLOAT -%token IDL_CHAR -%token IDL_WCHAR -%token IDL_OCTET -%token IDL_BOOLEAN -%token IDL_ANY -%token IDL_STRUCT -%token IDL_UNION -%token IDL_SWITCH -%token IDL_ENUM -%token IDL_SEQUENCE -%token IDL_STRING -%token IDL_WSTRING -%token IDL_EXCEPTION -%token IDL_CASE -%token IDL_DEFAULT -%token IDL_READONLY -%token IDL_ATTRIBUTE -%token IDL_ONEWAY -%token IDL_IDEMPOTENT -%token IDL_VOID -%token IDL_IN -%token IDL_OUT -%token IDL_INOUT -%token IDL_RAISES -%token IDL_CONTEXT -%token IDL_NATIVE - -%token IDL_INTEGER_LITERAL -%token IDL_STRING_LITERAL -%token IDL_CHARACTER_LITERAL -%token IDL_FLOATING_PT_LITERAL -%token IDL_TRUETOK -%token IDL_FALSETOK - -%token IDL_SCOPE_DELIMITOR -%token IDL_LEFT_SHIFT -%token IDL_RIGHT_SHIFT - -/* - * These are production names: - */ - -%type type_spec simple_type_spec constructed_type_spec -%type template_type_spec sequence_type_spec string_type_spec -%type struct_type enum_type switch_type_spec union_type -%type array_declarator op_type_spec seq_head wstring_type_spec -%type param_type_spec - -%type scoped_name -%type opt_context at_least_one_string_literal -%type string_literals - -%type at_least_one_scoped_name scoped_names inheritance_spec -%type opt_raises - -%type at_least_one_array_dim array_dims - -%type at_least_one_case_label case_labels - -%type at_least_one_declarator declarators -%type at_least_one_simple_declarator simple_declarators - -%type interface_header - -%type expression const_expr or_expr xor_expr and_expr shift_expr -%type add_expr mult_expr unary_expr primary_expr literal -%type positive_int_expr array_dim - -%type case_label - -%type element_spec - -%type const_type integer_type char_type boolean_type -%type floating_pt_type any_type signed_int -%type unsigned_int base_type_spec octet_type - -%type direction - -%type opt_op_attribute - -%type declarator simple_declarator complex_declarator - -%type opt_readonly - -%type interface_decl id - -%type type_dcl -%% - -/* - * Production starts here - */ -start : definitions ; - -definitions - : definition definitions - | /* empty */ - ; - -definition - : type_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | const_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | exception - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | interface_def - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | module - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -module : IDL_MODULE - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSeen); - } - IDENTIFIER - { - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier($3, 1, 0, I_FALSE), NULL); - AST_Module *m = NULL; - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleIDSeen); - /* - * Make a new module and add it to the enclosing scope - */ - if (s != NULL) { - m = idl_global->gen()->create_module(n, p); - (void) s->fe_add_module(m); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(m); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSqSeen); - } - definitions - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleQsSeen); - /* - * Finished with this module - pop it from the scope stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Module* m = AST_Module::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } - ; - -interface_def - : interface - | forward - ; - -interface : - interface_header - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *d = NULL; - AST_Interface *fd = NULL; - - ACE_UNUSED_ARG (v); - - /* - * Make a new interface node and add it to its enclosing scope - */ - if (s != NULL && $1 != NULL) { - i = idl_global->gen()->create_interface($1->interface_name(), - $1->inherits(), - $1->n_inherits(), - p); - if (i != NULL && - (d = s->lookup_by_name(i->name(), I_FALSE)) != NULL) { - /* - * See if we're defining a forward declared interface. - */ - if (d->node_type() == AST_Decl::NT_interface) { - /* - * Narrow to an interface - */ - fd = AST_Interface::narrow_from_decl(d); - /* - * Successful? - */ - if (fd == NULL) { - /* - * Should we give an error here? - */ - } - /* - * If it is a forward declared interface.. - */ - else if (!fd->is_defined()) { - /* - * Check if redefining in same scope - */ - if (fd->defined_in() != s) { - idl_global->err() - ->error3(UTL_Error::EIDL_SCOPE_CONFLICT, - i, - fd, - ScopeAsDecl(s)); - } - /* - * All OK, do the redefinition - */ - else { - fd->set_inherits($1->inherits()); - fd->set_n_inherits($1->n_inherits()); - /* - * Update place of definition - */ - fd->set_imported(idl_global->imported()); - fd->set_in_main_file(idl_global->in_main_file()); - fd->set_line(idl_global->lineno()); - fd->set_file_name(idl_global->filename()); - fd->add_pragmas(p); - /* - * Use full definition node - */ - delete i; - i = fd; - } - } - } - } - /* - * Add the interface to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } - exports - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Interface* m = AST_Interface::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } - ; - -interface_decl: - IDL_INTERFACE - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceIDSeen); - $$ = $3; - } - ; - -interface_header : - interface_decl inheritance_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_InheritSpecSeen); - /* - * Create an AST representation of the information in the header - * part of an interface - this representation contains a computed - * list of all interfaces which this interface inherits from, - * recursively - */ - $$ = new FE_InterfaceHeader(new UTL_ScopedName($1, NULL), $2); - } - ; - -inheritance_spec - : ':' - { - idl_global->set_parse_state(IDL_GlobalData::PS_InheritColonSeen); - } - at_least_one_scoped_name - { - $$ = $3; - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -exports - : exports export - | /* EMPTY */ - ; - -export - : type_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | const_dcl - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | exception - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | attribute - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | operation - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpDeclSeen); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -at_least_one_scoped_name : - scoped_name scoped_names - { - $$ = new UTL_NameList($1, $2); - } - ; - -scoped_names - : scoped_names - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SNListCommaSeen); - } - scoped_name - { - idl_global->set_parse_state(IDL_GlobalData::PS_ScopedNameSeen); - - if ($1 == NULL) - $$ = new UTL_NameList($4, NULL); - else { - $1->nconc(new UTL_NameList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -scoped_name - : id - { - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - $$ = new UTL_IdList($1, NULL); - } - | IDL_SCOPE_DELIMITOR - { - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - $$ = new UTL_IdList(new Identifier($1, 1, 0, I_FALSE), - new UTL_IdList($3, NULL)); - } - | scoped_name - IDL_SCOPE_DELIMITOR - { - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - $1->nconc(new UTL_IdList($4, NULL)); - $$ = $1; - } - ; - -id: IDENTIFIER - { - $$ = new Identifier($1, 1, 0, I_FALSE); - } - ; - -forward : - interface_decl - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($1, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * interface. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_interface_fwd(n, p); - (void) s->fe_add_interface_fwd(f); - } - } - ; - -const_dcl : - IDL_CONST - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstSeen); - } - const_type - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstTypeSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstIDSeen); - } - '=' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ConstAssignSeen); - } - expression - { - UTL_ScopedName *n = new UTL_ScopedName($5, NULL); - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Constant *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ConstExprSeen); - /* - * Create a node representing a constant declaration. Store - * it in the enclosing scope - */ - if ($9 != NULL && s != NULL) { - if ($9->coerce($3) == NULL) - idl_global->err()->coercion_error($9, $3); - else { - c = - idl_global->gen()->create_constant($3, $9, n, p); - (void) s->fe_add_constant(c); - } - } - } - ; - -const_type - : integer_type - | char_type - | octet_type - | boolean_type - | floating_pt_type - | string_type_spec - { - $$ = AST_Expression::EV_string; - } - | wstring_type_spec - { - $$ = AST_Expression::EV_wstring; - } - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *c = NULL; - AST_Typedef *t = NULL; - - /* - * If the constant's type is a scoped name, it must resolve - * to a scalar constant type - */ - if (s != NULL && (d = s->lookup_by_name($1, I_TRUE)) != NULL) { - /* - * Look through typedefs - */ - while (d->node_type() == AST_Decl::NT_typedef) { - t = AST_Typedef::narrow_from_decl(d); - if (t == NULL) - break; - d = t->base_type(); - } - if (d == NULL) - $$ = AST_Expression::EV_any; - else if (d->node_type() == AST_Decl::NT_pre_defined) { - c = AST_PredefinedType::narrow_from_decl(d); - if (c != NULL) { - $$ = idl_global->PredefinedTypeToExprType(c->pt()); - } else { - $$ = AST_Expression::EV_any; - } - } else - $$ = AST_Expression::EV_any; - } else - $$ = AST_Expression::EV_any; - } - ; - -expression : const_expr ; - -const_expr : or_expr ; - -or_expr : xor_expr - | or_expr '|' xor_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_or, $1, $3); - } - ; - -xor_expr - : and_expr - | xor_expr '^' and_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_xor, $1, $3); - } - ; - -and_expr - : shift_expr - | and_expr '&' shift_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_and, $1, $3); - } - ; - -shift_expr - : add_expr - | shift_expr IDL_LEFT_SHIFT add_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_right,$1,$3); - } - | shift_expr IDL_RIGHT_SHIFT add_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_left,$1,$3); - } - ; - -add_expr - : mult_expr - | add_expr '+' mult_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_add, $1, $3); - } - | add_expr '-' mult_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_minus,$1,$3); - } - ; - -mult_expr - : unary_expr - | mult_expr '*' unary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_mul, $1, $3); - } - | mult_expr '/' unary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_div, $1, $3); - } - | mult_expr '%' unary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_mod, $1, $3); - } - ; - -unary_expr - : primary_expr - | '+' primary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_u_plus, - $2, - NULL); - } - | '-' primary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_u_minus, - $2, - NULL); - } - | '~' primary_expr - { - $$ = idl_global->gen()->create_expr(AST_Expression::EC_bit_neg, - $2, - NULL); - } - ; - -primary_expr - : scoped_name - { - /* - * An expression which is a scoped name is not resolved now, - * but only when it is evaluated (such as when it is assigned - * as a constant value) - */ - $$ = idl_global->gen()->create_expr($1); - } - | literal - | '(' const_expr ')' - { - $$ = $2; - } - ; - -literal - : IDL_INTEGER_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_STRING_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_CHARACTER_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_FLOATING_PT_LITERAL - { - $$ = idl_global->gen()->create_expr($1); - } - | IDL_TRUETOK - { - $$ = idl_global->gen()->create_expr((idl_bool) I_TRUE, - AST_Expression::EV_bool); - } - | IDL_FALSETOK - { - $$ = idl_global->gen()->create_expr((idl_bool) I_FALSE, - AST_Expression::EV_bool); - } - ; - -positive_int_expr : - const_expr - { - $1->evaluate(AST_Expression::EK_const); - $$ = idl_global->gen()->create_expr($1, AST_Expression::EV_ulong); - } - ; - -type_dcl - : IDL_TYPEDEF - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypedefSeen); - } - type_declarator {$$ = 0;} - | struct_type { $$ = 0;} - | union_type { $$ = 0;} - | enum_type { $$ = 0;} - | IDL_NATIVE simple_declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Native *node = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_NativeSeen); - /* - * Create a node representing a Native and add it to its - * enclosing scope - */ - if (s != NULL) { - node = idl_global->gen()->create_native ($2->name (), p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_native (node); - } - } - ; - -type_declarator : - type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_TypeSpecSeen); - } - at_least_one_declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l; - FE_Declarator *d = NULL; - AST_Typedef *t = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_DeclaratorsSeen); - /* - * Create a list of type renamings. Add them to the - * enclosing scope - */ - if (s != NULL && $1 != NULL && $3 != NULL) { - l = new UTL_DecllistActiveIterator($3); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type * tp = d->compose($1); - if (tp == NULL) - continue; - t = idl_global->gen()->create_typedef(tp, d->name(), p); - (void) s->fe_add_typedef(t); - } - delete l; - } - } - ; - -type_spec - : simple_type_spec - | constructed_type_spec - ; - -simple_type_spec - : base_type_spec - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | template_type_spec - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name($1, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error($1); - $$ = d; - } - ; - -base_type_spec - : integer_type - | floating_pt_type - | char_type - | boolean_type - | octet_type - | any_type - ; - -template_type_spec - : sequence_type_spec - | string_type_spec - | wstring_type_spec - ; - -constructed_type_spec - : struct_type - | union_type - | enum_type - ; - -at_least_one_declarator : - declarator declarators - { - $$ = new UTL_DeclList($1, $2); - } - ; - -declarators - : declarators - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } - declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if ($1 == NULL) - $$ = new UTL_DeclList($4, NULL); - else { - $1->nconc(new UTL_DeclList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -declarator - : simple_declarator - | complex_declarator - ; - -at_least_one_simple_declarator : - simple_declarator simple_declarators - { - $$ = new UTL_DeclList($1, $2); - } - ; - -simple_declarators - : simple_declarators - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } - simple_declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if ($1 == NULL) - $$ = new UTL_DeclList($4, NULL); - else { - $1->nconc(new UTL_DeclList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -simple_declarator : - id - { - $$ = new FE_Declarator(new UTL_ScopedName($1, NULL), - FE_Declarator::FD_simple, NULL); - } - ; - -complex_declarator : - array_declarator - { - $$ = new FE_Declarator(new UTL_ScopedName($1->local_name(), NULL), - FE_Declarator::FD_complex, - $1); - } - ; - -integer_type - : signed_int - | unsigned_int - ; - -signed_int - : IDL_LONG - { - $$ = AST_Expression::EV_long; - } - | IDL_LONG IDL_LONG - { - $$ = AST_Expression::EV_longlong; - } - | IDL_SHORT - { - $$ = AST_Expression::EV_short; - } - ; - -unsigned_int - : IDL_UNSIGNED IDL_LONG - { - $$ = AST_Expression::EV_ulong; - } - | IDL_UNSIGNED IDL_LONG IDL_LONG - { - $$ = AST_Expression::EV_ulonglong; - } - | IDL_UNSIGNED IDL_SHORT - { - $$ = AST_Expression::EV_ushort; - } - ; - -floating_pt_type - : IDL_DOUBLE - { - $$ = AST_Expression::EV_double; - } - | IDL_FLOAT - { - $$ = AST_Expression::EV_float; - } - | IDL_LONG IDL_DOUBLE - { - $$ = AST_Expression::EV_longdouble; - } - ; - -char_type - : IDL_CHAR - { - $$ = AST_Expression::EV_char; - } - | IDL_WCHAR - { - $$ = AST_Expression::EV_wchar; - } - ; - -octet_type - : IDL_OCTET - { - $$ = AST_Expression::EV_octet; - } - ; - -boolean_type - : IDL_BOOLEAN - { - $$ = AST_Expression::EV_bool; - } - ; - -any_type - : IDL_ANY - { - $$ = AST_Expression::EV_any; - } - ; - -struct_type : - IDL_STRUCT - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructSeen); - } - id - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Structure *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_StructIDSeen); - /* - * Create a node representing a struct declaration. Add it - * to the enclosing scope - */ - if (s != NULL) { - d = idl_global->gen()->create_structure(n, p); - (void) s->fe_add_structure(d); - } - /* - * Push the scope of the struct on the scopes stack - */ - idl_global->scopes()->push(d); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructSqSeen); - } - at_least_one_member - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StructQsSeen); - /* - * Done with this struct. Pop its scope off the scopes stack - */ - $$ = - AST_Structure::narrow_from_scope( - idl_global->scopes()->top_non_null()); - UTL_StrList *p = $$->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } - ; - -at_least_one_member : member members ; - -members - : members member - | /* EMPTY */ - ; - -member : - type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_MemberTypeSeen); - } - at_least_one_declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsSeen); - } - ';' - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - FE_Declarator *d = NULL; - AST_Field *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsCompleted); - /* - * Check for illegal recursive use of type - */ - if ($1 != NULL && AST_illegal_recursive_type($1)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, $1); - /* - * Create a node representing a struct or exception member - * Add it to the enclosing scope - */ - else if (s != NULL && $1 != NULL && $3 != NULL) { - l = new UTL_DecllistActiveIterator($3); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose($1); - if (tp == NULL) - continue; - f = idl_global->gen()->create_field(tp, d->name(), p); - (void) s->fe_add_field(f); - } - delete l; - } - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -union_type : - IDL_UNION - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSeen); - } - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionIDSeen); - } - IDL_SWITCH - { - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchSeen); - } - '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchOpenParSeen); - } - switch_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchTypeSeen); - } - ')' - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Union *u = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchCloseParSeen); - /* - * Create a node representing a union. Add it to its enclosing - * scope - */ - if ($9 != NULL && s != NULL) { - AST_ConcreteType *tp = AST_ConcreteType::narrow_from_decl($9); - if (tp == NULL) { - idl_global->err()->not_a_type($9); - } else { - u = idl_global->gen()->create_union(tp, n, p); - (void) s->fe_add_union(u); - } - } - /* - * Push the scope of the union on the scopes stack - */ - idl_global->scopes()->push(u); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSqSeen); - } - at_least_one_case_branch - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionQsSeen); - /* - * Done with this union. Pop its scope from the scopes stack - */ - $$ = - AST_Union::narrow_from_scope( - idl_global->scopes()->top_non_null()); - UTL_StrList *p = $$->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } - ; - -switch_type_spec : - integer_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | char_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | octet_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | boolean_type - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | enum_type - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *p = NULL; - AST_Typedef *t = NULL; - long found = I_FALSE; - - /* - * The discriminator is a scoped name. Try to resolve to - * one of the scalar types or to an enum. Thread through - * typedef's to arrive at the base type at the end of the - * chain - */ - if (s != NULL && (d = s->lookup_by_name($1, I_TRUE)) != NULL) { - while (!found) { - switch (d->node_type()) { - case AST_Decl::NT_enum: - $$ = d; - found = I_TRUE; - break; - case AST_Decl::NT_pre_defined: - p = AST_PredefinedType::narrow_from_decl(d); - if (p != NULL) { - switch (p->pt()) { - case AST_PredefinedType::PT_long: - case AST_PredefinedType::PT_ulong: - case AST_PredefinedType::PT_longlong: - case AST_PredefinedType::PT_ulonglong: - case AST_PredefinedType::PT_short: - case AST_PredefinedType::PT_char: - case AST_PredefinedType::PT_wchar: - case AST_PredefinedType::PT_octet: - case AST_PredefinedType::PT_boolean: - $$ = p; - found = I_TRUE; - break; - default: - $$ = NULL; - found = I_TRUE; - break; - } - } - break; - case AST_Decl::NT_typedef: - t = AST_Typedef::narrow_from_decl(d); - if (t != NULL) d = t->base_type(); - break; - default: - $$ = NULL; - found = I_TRUE; - break; - } - } - } else - $$ = NULL; - - if ($$ == NULL) - idl_global->err()->lookup_error($1); - } - ; - -at_least_one_case_branch : case_branch case_branches ; - -case_branches - : case_branches case_branch - | /* empty */ - ; - -case_branch : - at_least_one_case_label - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionLabelSeen); - } - element_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemSeen); - } - ';' - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_LabellistActiveIterator *l = NULL; - AST_UnionLabel *d = NULL; - AST_UnionBranch *b = NULL; - AST_Field *f = $3; - - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemCompleted); - /* - * Create several nodes representing branches of a union. - * Add them to the enclosing scope (the union scope) - */ - if (s != NULL && $1 != NULL && $3 != NULL) { - l = new UTL_LabellistActiveIterator($1); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - b = idl_global->gen()->create_union_branch(d, - f->field_type(), - f->name(), - f->pragmas()); - (void) s->fe_add_union_branch(b); - } - delete l; - } - } - | error - { - idl_global->err()->syntax_error(idl_global->parse_state()); - } - ';' - - { - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - yyerrok; - } - ; - -at_least_one_case_label : - case_label case_labels - { - $$ = new UTL_LabelList($1, $2); - } - ; - -case_labels - : case_labels case_label - { - if ($1 == NULL) - $$ = new UTL_LabelList($2, NULL); - else { - $1->nconc(new UTL_LabelList($2, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -case_label - : IDL_DEFAULT - { - idl_global->set_parse_state(IDL_GlobalData::PS_DefaultSeen); - } - ':' - { - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - $$ = idl_global->gen()-> - create_union_label(AST_UnionLabel::UL_default, - NULL); - } - | IDL_CASE - { - idl_global->set_parse_state(IDL_GlobalData::PS_CaseSeen); - } - const_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_LabelExprSeen); - } - ':' - { - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - $$ = idl_global->gen()->create_union_label(AST_UnionLabel::UL_label, - $3); - } - ; - -element_spec : - type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemTypeSeen); - } - declarator - { - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemDeclSeen); - /* - * Check for illegal recursive use of type - */ - if ($1 != NULL && AST_illegal_recursive_type($1)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, $1); - /* - * Create a field in a union branch - */ - else if ($1 == NULL || $3 == NULL) - $$ = NULL; - else { - AST_Type *tp = $3->compose($1); - if (tp == NULL) - $$ = NULL; - else - $$ = idl_global->gen()->create_field(tp, - $3->name(), - idl_global->pragmas()); - } - } - ; - -enum_type : - IDL_ENUM - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSeen); - } - id - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Enum *e = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_EnumIDSeen); - /* - * Create a node representing an enum and add it to its - * enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_enum(n, p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_enum(e); - } - /* - * Push the enum scope on the scopes stack - */ - idl_global->scopes()->push(e); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSqSeen); - } - at_least_one_enumerator - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumQsSeen); - /* - * Done with this enum. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - $$ = NULL; - else { - $$ = AST_Enum::narrow_from_scope(idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } - ; - -at_least_one_enumerator : enumerator enumerators ; - -enumerators - : enumerators - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_EnumCommaSeen); - } - enumerator - | /* EMPTY */ - ; - -enumerator : - IDENTIFIER - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier($1, 1, 0, I_FALSE), NULL); - AST_EnumVal *e = NULL; - AST_Enum *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - - /* - * Create a node representing one enumerator in an enum - * Add it to the enclosing scope (the enum scope) - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_enum) { - c = AST_Enum::narrow_from_scope(s); - if (c != NULL) - e = idl_global->gen()->create_enum_val(c->next_enum_val(), n, p); - (void) s->fe_add_enum_val(e); - } - } - ; - -sequence_type_spec - : seq_head - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceCommaSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceExprSeen); - } - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if ($4 == NULL || $4->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($4, AST_Expression::EV_ulong); - $$ = NULL; - } else if ($1 == NULL) { - $$ = NULL; - } else { - AST_Type *tp = AST_Type::narrow_from_decl($1); - if (tp == NULL) - $$ = NULL; - else { - $$ = idl_global->gen()->create_sequence($4, tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl($$)); - } - } - } - | seq_head - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if ($1 == NULL) - $$ = NULL; - else { - AST_Type *tp = AST_Type::narrow_from_decl($1); - if (tp == NULL) - $$ = NULL; - else { - $$ = - idl_global->gen()->create_sequence( - idl_global->gen()->create_expr((unsigned long) 0), - tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl($$)); - } - } - } - ; - -seq_head: - IDL_SEQUENCE - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSeen); - /* - * Push a sequence marker on scopes stack - */ - idl_global->scopes()->push(NULL); - } - '<' - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSqSeen); - } - simple_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceTypeSeen); - $$ = $5; - } - ; - -string_type_spec - : string_head - '<' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if ($4 == NULL || $4->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($4, AST_Expression::EV_ulong); - $$ = NULL; - } else { - $$ = idl_global->gen()->create_string($4); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - } - | string_head - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - $$ = - idl_global->gen()->create_string( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - ; - -string_head: - IDL_STRING - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } - ; - -wstring_type_spec - : wstring_head - '<' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } - '>' - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if ($4 == NULL || $4->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($4, AST_Expression::EV_ulong); - $$ = NULL; - } else { - $$ = idl_global->gen()->create_wstring($4); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - } - | wstring_head - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - $$ = - idl_global->gen()->create_wstring( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl($$)); - } - ; - -wstring_head: - IDL_WSTRING - { - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } - ; - -array_declarator : - id - { - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayIDSeen); - } - at_least_one_array_dim - { - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayCompleted); - /* - * Create a node representing an array - */ - if ($3 != NULL) { - $$ = idl_global->gen()->create_array(new UTL_ScopedName($1, NULL), - $3->length(), $3); - } - } - ; - -at_least_one_array_dim : - array_dim array_dims - { - $$ = new UTL_ExprList($1, $2); - } - ; - -array_dims - : array_dims array_dim - { - if ($1 == NULL) - $$ = new UTL_ExprList($2, NULL); - else { - $1->nconc(new UTL_ExprList($2, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -array_dim : - '[' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DimSqSeen); - } - positive_int_expr - { - idl_global->set_parse_state(IDL_GlobalData::PS_DimExprSeen); - } - ']' - { - idl_global->set_parse_state(IDL_GlobalData::PS_DimQsSeen); - /* - * Array dimensions are expressions which must be coerced to - * positive integers - */ - if ($3 == NULL || $3->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error($3, AST_Expression::EV_ulong); - $$ = NULL; - } else - $$ = $3; - } - ; - -attribute: - opt_readonly - IDL_ATTRIBUTE - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrSeen); - } - param_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrTypeSeen); - } - at_least_one_simple_declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - AST_Attribute *a = NULL; - FE_Declarator *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_AttrCompleted); - /* - * Create nodes representing attributes and add them to the - * enclosing scope - */ - if (s != NULL && $4 != NULL && $6 != NULL) { - l = new UTL_DecllistActiveIterator($6); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose($4); - if (tp == NULL) - continue; - a = idl_global->gen()->create_attribute($1, tp, d->name(), p); - /* - * Add one attribute to the enclosing scope - */ - (void) s->fe_add_attribute(a); - } - delete l; - } - } - ; - -opt_readonly - : IDL_READONLY - { - idl_global->set_parse_state(IDL_GlobalData::PS_AttrROSeen); - $$ = I_TRUE; - } - | /* EMPTY */ - { - $$ = I_FALSE; - } - ; - -exception : - IDL_EXCEPTION - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSeen); - } - id - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName($3, NULL); - AST_Exception *e = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptIDSeen); - /* - * Create a node representing an exception and add it to - * the enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_exception(n, p); - (void) s->fe_add_exception(e); - } - /* - * Push the exception scope on the scope stack - */ - idl_global->scopes()->push(e); - } - '{' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSqSeen); - } - members - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptBodySeen); - } - '}' - { - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptQsSeen); - /* - * Done with this exception. Pop its scope from the scope stack - */ - idl_global->scopes()->pop(); - } - ; - -operation : - opt_op_attribute - op_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpTypeSeen); - } - IDENTIFIER - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier($4, 1, 0, I_FALSE), NULL); - AST_Operation *o = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpIDSeen); - /* - * Create a node representing an operation on an interface - * and add it to its enclosing scope - */ - if (s != NULL && $2 != NULL) { - AST_Type *tp = AST_Type::narrow_from_decl($2); - if (tp == NULL) { - idl_global->err()->not_a_type($2); - } else if (tp->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type($2); - } else { - o = idl_global->gen()->create_operation(tp, $1, n, p); - (void) s->fe_add_operation(o); - } - } - /* - * Push the operation scope onto the scopes stack - */ - idl_global->scopes()->push(o); - } - parameter_list - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParsCompleted); - } - opt_raises - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseCompleted); - } - opt_context - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Operation *o = NULL; - - idl_global->set_parse_state(IDL_GlobalData::PS_OpCompleted); - /* - * Add exceptions and context to the operation - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_op) { - o = AST_Operation::narrow_from_scope(s); - - if ($8 != NULL && o != NULL) - (void) o->fe_add_exceptions($8); - if ($10 != NULL) - (void) o->fe_add_context($10); - } - /* - * Done with this operation. Pop its scope from the scopes stack - */ - idl_global->scopes()->pop(); - } - ; - -opt_op_attribute - : IDL_ONEWAY - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - $$ = AST_Operation::OP_oneway; - } - | IDL_IDEMPOTENT - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - $$ = AST_Operation::OP_idempotent; - } - | /* EMPTY */ - { - $$ = AST_Operation::OP_noflags; - } - ; - -op_type_spec - : param_type_spec - | IDL_VOID - { - $$ = - idl_global->scopes()->bottom() - ->lookup_primitive_type(AST_Expression::EV_void); - } - ; - -parameter_list - : '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } - | '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } - at_least_one_parameter - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } - ; - -at_least_one_parameter : parameter parameters ; - -parameters - : parameters - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParCommaSeen); - } - parameter - | /* EMPTY */ - ; - -parameter : - direction - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDirSeen); - } - param_type_spec - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpParTypeSeen); - } - declarator - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Argument *a = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDeclSeen); - /* - * Create a node representing an argument to an operation - * Add it to the enclosing scope (the operation scope) - */ - if ($3 != NULL && $5 != NULL && s != NULL) { - AST_Type *tp = $5->compose($3); - if (tp != NULL) { - a = idl_global->gen()->create_argument($1, tp, $5->name(), p); - (void) s->fe_add_argument(a); - } - } - } - ; - -param_type_spec - : base_type_spec - { - $$ = idl_global->scopes()->bottom()->lookup_primitive_type($1); - } - | string_type_spec - | scoped_name - { - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name($1, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error($1); - $$ = d; - } - ; - -direction - : IDL_IN - { - $$ = AST_Argument::dir_IN; - } - | IDL_OUT - { - $$ = AST_Argument::dir_OUT; - } - | IDL_INOUT - { - $$ = AST_Argument::dir_INOUT; - } - ; - -opt_raises - : IDL_RAISES - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSeen); - } - '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSqSeen); - } - at_least_one_scoped_name - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseQsSeen); - $$ = $5; - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -opt_context - : IDL_CONTEXT - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSeen); - } - '(' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSqSeen); - } - at_least_one_string_literal - ')' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextQsSeen); - $$ = $5; - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -at_least_one_string_literal : - IDL_STRING_LITERAL string_literals - { - $$ = new UTL_StrList($1, $2); - } - ; - -string_literals - : string_literals - ',' - { - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextCommaSeen); - } - IDL_STRING_LITERAL - { - if ($1 == NULL) - $$ = new UTL_StrList($4, NULL); - else { - $1->nconc(new UTL_StrList($4, NULL)); - $$ = $1; - } - } - | /* EMPTY */ - { - $$ = NULL; - } - ; - -%% -/* programs */ - -/* - * ??? - */ -int -yywrap() -{ - return 1; -} - -/* - * Report an error situation discovered in a production - * - * This does not do anything since we report all error situations through - * idl_global->err() operations - */ -void -yyerror(const char *) -{ -} diff --git a/TAO/TAO_IDL/fe/keywords.dat b/TAO/TAO_IDL/fe/keywords.dat deleted file mode 100644 index 5fafd81051e..00000000000 --- a/TAO/TAO_IDL/fe/keywords.dat +++ /dev/null @@ -1,75 +0,0 @@ -struct TAO_IDL_CPP_Keyword_Entry { char *keyword_ ; char *mapping_; }; -%% -and, "_cxx_and" -and_eq, "_cxx_and_eq" -asm, "_cxx_asm" -auto, "_cxx_auto" -bitand, "_cxx_bitand" -bitor, "_cxx_bitor" -bool, "_cxx_bool" -break, "_cxx_break" -case, "_cxx_case" -catch, "_cxx_catch" -char, "_cxx_char" -class, "_cxx_class" -compl, "_cxx_compl" -const, "_cxx_const" -const_cast, "_cxx_const_cast" -continue, "_cxx_continue" -default, "_cxx_default" -delete, "_cxx_delete" -do, "_cxx_do" -double, "_cxx_double" -dynamic_cast, "_cxx_dynamic_cast" -else, "_cxx_else" -enum, "_cxx_enum" -explicit, "_cxx_explicit" -extern, "_cxx_extern" -false, "_cxx_false" -float, "_cxx_float" -for, "_cxx_for" -friend, "_cxx_friend" -goto, "_cxx_goto" -if, "_cxx_if" -inline, "_cxx_inline" -int, "_cxx_int" -long, "_cxx_long" -mutable, "_cxx_mutable" -namespace, "_cxx_namespace" -new, "_cxx_new" -not, "_cxx_not" -not_eq, "_cxx_not_eq" -operator, "_cxx_operator" -or, "_cxx_or" -or_eq, "_cxx_or_eq" -private, "_cxx_private" -protected, "_cxx_protected" -public, "_cxx_public" -register, "_cxx_register" -reinterpret_cast, "_cxx_reinterpret_cast" -return, "_cxx_return" -short, "_cxx_short" -signed, "_cxx_signed" -sizeof, "_cxx_sizeof" -static, "_cxx_static" -static_cast, "_cxx_static_cast" -struct, "_cxx_struct" -switch, "_cxx_switch" -template, "_cxx_template" -this, "_cxx_this" -throw, "_cxx_throw" -true, "_cxx_true" -try, "_cxx_try" -typedef, "_cxx_typedef" -typeid, "_cxx_typeid" -typename, "_cxx_typename" -union, "_cxx_union" -unsigned, "_cxx_unsigned" -using, "_cxx_using" -virtual, "_cxx_virtual" -void, "_cxx_void" -volatile, "_cxx_volatile" -wchar_t, "_cxx_wchar_t" -while, "_cxx_while" -xor, "_cxx_xor" -xor_eq, "_cxx_xor_eq" diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp b/TAO/TAO_IDL/fe/lex.yy.cpp deleted file mode 100644 index 9afb8f22793..00000000000 --- a/TAO/TAO_IDL/fe/lex.yy.cpp +++ /dev/null @@ -1,2488 +0,0 @@ -/* A lexical scanner generated by flex */ - -/* Scanner skeleton version: - * $Id$ - */ - -#define FLEX_SCANNER -#define TAO_YY_FLEX_MAJOR_VERSION 2 -#define TAO_YY_FLEX_MINOR_VERSION 5 - - - -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ -#ifdef c_plusplus -#ifndef __cplusplus -#define __cplusplus -#endif -#endif - - -#ifdef __cplusplus - -#include "ace/OS.h" - -/* Use prototypes in function declarations. */ -#define TAO_YY_USE_PROTOS - -/* The "const" storage-class-modifier is valid. */ -#define TAO_YY_USE_CONST - -#else /* ! __cplusplus */ - -#if __STDC__ - -#define TAO_YY_USE_PROTOS -#define TAO_YY_USE_CONST - -#endif /* __STDC__ */ -#endif /* ! __cplusplus */ - -#ifdef __TURBOC__ - #pragma warn -rch - #pragma warn -use -#define TAO_YY_USE_CONST -#define TAO_YY_USE_PROTOS -#endif - -#ifdef TAO_YY_USE_CONST -#define tao_yyconst const -#else -#define tao_yyconst -#endif - - -#ifdef TAO_YY_USE_PROTOS -#define TAO_YY_PROTO(proto) proto -#else -#define TAO_YY_PROTO(proto) () -#endif - -/* Returned upon end-of-file. */ -#define TAO_YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define TAO_YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN tao_yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The TAO_YYSTATE alias is for lex - * compatibility. - */ -#define TAO_YY_START ((tao_yy_start - 1) / 2) -#define TAO_YYSTATE TAO_YY_START - -/* Action number for EOF rule of a given start state. */ -#define TAO_YY_STATE_EOF(state) (TAO_YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define TAO_YY_NEW_FILE tao_yyrestart( tao_yyin ) - -#define TAO_YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#define TAO_YY_BUF_SIZE 16384 - -typedef struct tao_yy_buffer_state *TAO_YY_BUFFER_STATE; - -extern int tao_yyleng; -extern FILE *tao_yyin, *tao_yyout; - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - -/* The funky do-while in the following #define is used to turn the definition - * int a single C statement (which needs a semi-colon terminator). This - * avoids problems with code like: - * - * if ( condition_holds ) - * tao_yyless( 5 ); - * else - * do_something_else(); - * - * Prior to using the do-while the compiler would get upset at the - * "else" because it interpreted the "if" statement as being all - * done when it reached the ';' after the tao_yyless() call. - */ - -/* Return all but the first 'n' matched characters back to the input stream. */ - -#define tao_yyless(n) \ - do \ - { \ - /* Undo effects of setting up tao_yytext. */ \ - *tao_yy_cp = tao_yy_hold_char; \ - TAO_YY_RESTORE_TAO_YY_MORE_OFFSET \ - tao_yy_c_buf_p = tao_yy_cp = tao_yy_bp + n - TAO_YY_MORE_ADJ; \ - TAO_YY_DO_BEFORE_ACTION; /* set up tao_yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) tao_yyunput( c, tao_yytext_ptr ) - -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - */ -typedef unsigned int tao_yy_size_t; - - -struct tao_yy_buffer_state - { - FILE *tao_yy_input_file; - - char *tao_yy_ch_buf; /* input buffer */ - char *tao_yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - tao_yy_size_t tao_yy_buf_size; - - /* Number of characters read into tao_yy_ch_buf, not including EOB - * characters. - */ - int tao_yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int tao_yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int tao_yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int tao_yy_at_bol; - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int tao_yy_fill_buffer; - - int tao_yy_buffer_status; -#define TAO_YY_BUFFER_NEW 0 -#define TAO_YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as TAO_YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via tao_yyrestart()), so that the user can continue scanning by - * just pointing tao_yyin at a new input file. - */ -#define TAO_YY_BUFFER_EOF_PENDING 2 - }; - -static TAO_YY_BUFFER_STATE tao_yy_current_buffer = 0; - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - */ -#define TAO_YY_CURRENT_BUFFER tao_yy_current_buffer - - -/* tao_yy_hold_char holds the character lost when tao_yytext is formed. */ -static char tao_yy_hold_char; - -static int tao_yy_n_chars; /* number of characters read into tao_yy_ch_buf */ - - -int tao_yyleng; - -/* Points to current character in buffer. */ -static char *tao_yy_c_buf_p = (char *) 0; -static int tao_yy_init = 1; /* whether we need to initialize */ -static int tao_yy_start = 0; /* start state number */ - -/* Flag which is used to allow tao_yywrap()'s to do buffer switches - * instead of setting up a fresh tao_yyin. A bit of a hack ... - */ -static int tao_yy_did_buffer_switch_on_eof; - -void tao_yyrestart TAO_YY_PROTO(( FILE *input_file )); - -void tao_yy_switch_to_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE new_buffer )); -void tao_yy_load_buffer_state TAO_YY_PROTO(( void )); -TAO_YY_BUFFER_STATE tao_yy_create_buffer TAO_YY_PROTO(( FILE *file, int size )); -void tao_yy_delete_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b )); -void tao_yy_init_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b, FILE *file )); -void tao_yy_flush_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b )); -#define TAO_YY_FLUSH_BUFFER tao_yy_flush_buffer( tao_yy_current_buffer ) - -TAO_YY_BUFFER_STATE tao_yy_scan_buffer TAO_YY_PROTO(( char *base, tao_yy_size_t size )); -TAO_YY_BUFFER_STATE tao_yy_scan_string TAO_YY_PROTO(( tao_yyconst char *tao_yy_str )); -TAO_YY_BUFFER_STATE tao_yy_scan_bytes TAO_YY_PROTO(( tao_yyconst char *bytes, int len )); - -static void *tao_yy_flex_alloc TAO_YY_PROTO(( tao_yy_size_t )); -static void *tao_yy_flex_realloc TAO_YY_PROTO(( void *, tao_yy_size_t )); -static void tao_yy_flex_free TAO_YY_PROTO(( void * )); - -#define tao_yy_new_buffer tao_yy_create_buffer - -#define tao_yy_set_interactive(is_interactive) \ - { \ - if ( ! tao_yy_current_buffer ) \ - tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); \ - tao_yy_current_buffer->tao_yy_is_interactive = is_interactive; \ - } - -#define tao_yy_set_bol(at_bol) \ - { \ - if ( ! tao_yy_current_buffer ) \ - tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); \ - tao_yy_current_buffer->tao_yy_at_bol = at_bol; \ - } - -#define TAO_YY_AT_BOL() (tao_yy_current_buffer->tao_yy_at_bol) - -typedef unsigned char TAO_YY_CHAR; -FILE *tao_yyin = (FILE *) 0, *tao_yyout = (FILE *) 0; -typedef int tao_yy_state_type; -extern char tao_yytext[]; - - -static tao_yy_state_type tao_yy_get_previous_state TAO_YY_PROTO(( void )); -static tao_yy_state_type tao_yy_try_NUL_trans TAO_YY_PROTO(( tao_yy_state_type current_state )); -static int tao_yy_get_next_buffer TAO_YY_PROTO(( void )); -static void tao_yy_fatal_error TAO_YY_PROTO(( tao_yyconst char msg[] )); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up tao_yytext. - */ -#define TAO_YY_DO_BEFORE_ACTION \ - tao_yytext_ptr = tao_yy_bp; \ - tao_yyleng = (int) (tao_yy_cp - tao_yy_bp); \ - tao_yy_hold_char = *tao_yy_cp; \ - *tao_yy_cp = '\0'; \ - if ( tao_yyleng >= TAO_YYLMAX ) \ - TAO_YY_FATAL_ERROR( "token too large, exceeds TAO_YYLMAX" ); \ - tao_yy_flex_strncpy( tao_yytext, tao_yytext_ptr, tao_yyleng + 1 ); \ - tao_yy_c_buf_p = tao_yy_cp; - -#define TAO_YY_NUM_RULES 62 -#define TAO_YY_END_OF_BUFFER 63 -static tao_yyconst short int tao_yy_accept[284] = - { 0, - 59, 59, 63, 61, 59, 60, 61, 61, 61, 61, - 45, 43, 61, 61, 61, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 61, 59, 0, 46, 0, - 0, 45, 43, 58, 0, 41, 45, 0, 0, 0, - 43, 39, 37, 38, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 34, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 0, 55, 0, 0, - 0, 0, 0, 47, 0, 47, 0, 0, 0, 57, - - 41, 0, 41, 0, 42, 44, 40, 40, 1, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 35, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 0, - 0, 0, 0, 0, 50, 48, 0, 0, 0, 41, - 42, 40, 31, 40, 40, 18, 25, 40, 40, 40, - 40, 12, 40, 40, 40, 40, 22, 40, 40, 40, - 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, - 40, 29, 40, 40, 0, 0, 0, 0, 0, 48, - 0, 49, 0, 32, 40, 40, 9, 40, 40, 40, - - 40, 20, 33, 40, 40, 40, 28, 40, 40, 40, - 40, 23, 40, 40, 40, 40, 16, 40, 26, 40, - 53, 0, 0, 0, 0, 40, 40, 40, 40, 21, - 40, 40, 2, 30, 36, 3, 40, 40, 13, 11, - 17, 40, 40, 40, 52, 0, 0, 0, 0, 0, - 0, 40, 27, 7, 19, 40, 40, 40, 40, 10, - 40, 14, 0, 56, 0, 0, 0, 40, 40, 40, - 4, 15, 24, 0, 0, 0, 5, 6, 8, 54, - 0, 51, 0 - } ; - -static tao_yyconst int tao_yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 4, 1, 5, 6, 1, 1, 1, 7, 1, - 1, 8, 9, 1, 10, 11, 12, 13, 14, 14, - 14, 14, 14, 14, 14, 15, 15, 16, 1, 17, - 1, 18, 1, 1, 19, 20, 20, 20, 21, 22, - 23, 23, 23, 23, 23, 24, 23, 23, 23, 23, - 23, 25, 26, 27, 28, 23, 23, 29, 23, 23, - 1, 30, 1, 1, 31, 1, 32, 33, 34, 35, - - 36, 37, 38, 39, 40, 23, 23, 41, 42, 43, - 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, - 54, 23, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static tao_yyconst int tao_yy_meta[55] = - { 0, - 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, - 1, 1, 4, 4, 4, 1, 1, 1, 4, 4, - 4, 4, 5, 5, 5, 5, 5, 5, 5, 1, - 5, 4, 4, 4, 4, 4, 4, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5 - } ; - -static tao_yyconst short int tao_yy_base[296] = - { 0, - 0, 457, 462, 464, 53, 464, 456, 430, 45, 53, - 53, 58, 443, 441, 439, 0, 437, 430, 13, 410, - 31, 40, 34, 412, 409, 407, 406, 417, 47, 56, - 44, 394, 404, 402, 51, 105, 96, 440, 464, 437, - 88, 100, 111, 464, 440, 141, 153, 158, 124, 0, - 170, 464, 464, 464, 0, 418, 413, 386, 390, 394, - 389, 404, 392, 397, 383, 382, 397, 386, 42, 386, - 393, 378, 377, 389, 375, 383, 390, 375, 376, 372, - 378, 372, 64, 376, 376, 365, 184, 464, 111, 145, - 378, 372, 364, 464, 403, 402, 188, 401, 404, 464, - - 0, 194, 464, 129, 197, 0, 380, 384, 0, 357, - 362, 366, 354, 79, 368, 366, 356, 361, 364, 345, - 358, 355, 342, 351, 354, 337, 0, 340, 352, 336, - 338, 90, 335, 347, 338, 341, 345, 347, 331, 372, - 371, 339, 331, 341, 464, 464, 209, 365, 200, 213, - 464, 350, 0, 330, 333, 0, 0, 319, 331, 316, - 324, 0, 319, 314, 313, 314, 0, 319, 308, 309, - 325, 320, 311, 318, 304, 309, 317, 316, 314, 305, - 309, 0, 299, 305, 339, 172, 300, 306, 303, 464, - 333, 464, 332, 0, 305, 305, 0, 283, 294, 298, - - 284, 0, 0, 295, 295, 294, 0, 275, 280, 284, - 283, 0, 287, 275, 284, 286, 0, 278, 0, 277, - 464, 217, 238, 238, 238, 220, 226, 219, 218, 0, - 221, 224, 0, 0, 0, 0, 208, 213, 0, 0, - 0, 204, 203, 198, 464, 230, 222, 244, 258, 251, - 186, 168, 0, 0, 0, 161, 166, 142, 157, 0, - 157, 0, 187, 464, 175, 165, 101, 125, 114, 115, - 0, 0, 0, 130, 128, 120, 0, 0, 0, 464, - 107, 464, 464, 273, 278, 280, 285, 290, 74, 293, - 297, 300, 304, 309, 314 - - } ; - -static tao_yyconst short int tao_yy_def[296] = - { 0, - 283, 1, 283, 283, 283, 283, 284, 285, 283, 283, - 283, 283, 283, 283, 283, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 283, 283, 284, 283, 283, - 287, 283, 283, 283, 288, 283, 283, 283, 283, 289, - 283, 283, 283, 283, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 283, 283, 36, 283, - 283, 283, 283, 283, 283, 283, 283, 290, 288, 283, - - 46, 283, 283, 283, 283, 289, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 291, - 283, 283, 283, 283, 283, 283, 283, 292, 283, 283, - 283, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 291, 283, 283, 283, 283, 283, - 283, 283, 283, 286, 286, 286, 286, 286, 286, 286, - - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 283, 283, 283, 283, 283, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 283, 283, 293, 283, 283, 283, - 283, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 293, 283, 294, 283, 283, 286, 286, 286, - 286, 286, 286, 294, 283, 295, 286, 286, 286, 283, - 295, 283, 0, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283 - - } ; - -static tao_yyconst short int tao_yy_nxt[519] = - { 0, - 4, 5, 6, 5, 7, 4, 8, 4, 4, 9, - 4, 10, 11, 12, 12, 13, 14, 15, 16, 16, - 16, 17, 16, 16, 16, 16, 18, 16, 16, 4, - 4, 19, 20, 21, 22, 23, 24, 16, 16, 25, - 26, 27, 28, 29, 16, 16, 30, 31, 32, 33, - 34, 35, 16, 16, 37, 58, 37, 42, 43, 43, - 44, 59, 61, 46, 45, 47, 47, 48, 46, 62, - 51, 51, 51, 49, 63, 64, 66, 106, 49, 78, - 73, 50, 79, 65, 85, 120, 67, 76, 49, 74, - 121, 77, 80, 49, 96, 81, 75, 37, 86, 37, - - 97, 97, 276, 135, 276, 50, 87, 88, 89, 282, - 46, 136, 47, 47, 48, 140, 98, 90, 90, 90, - 49, 46, 282, 51, 51, 51, 158, 159, 50, 176, - 280, 49, 104, 104, 275, 49, 105, 105, 105, 177, - 98, 105, 105, 105, 91, 92, 49, 88, 141, 93, - 279, 283, 50, 101, 101, 101, 278, 90, 90, 90, - 277, 102, 103, 46, 103, 47, 47, 48, 46, 265, - 48, 48, 48, 49, 221, 222, 102, 103, 49, 275, - 46, 103, 51, 51, 51, 87, 88, 89, 49, 264, - 49, 273, 272, 49, 146, 271, 90, 90, 90, 270, - - 147, 147, 149, 149, 269, 49, 150, 150, 150, 105, - 105, 105, 150, 150, 150, 190, 268, 267, 151, 245, - 151, 191, 191, 91, 264, 150, 150, 150, 93, 246, - 246, 246, 245, 151, 103, 262, 103, 151, 261, 248, - 260, 249, 246, 246, 246, 248, 259, 249, 258, 103, - 250, 250, 250, 103, 266, 257, 250, 250, 250, 248, - 256, 249, 265, 250, 250, 250, 255, 254, 253, 252, - 250, 250, 250, 38, 38, 38, 38, 38, 40, 251, - 40, 40, 40, 55, 55, 95, 247, 95, 95, 95, - 99, 99, 99, 99, 99, 148, 148, 185, 185, 185, - - 185, 185, 193, 193, 263, 263, 263, 263, 263, 274, - 274, 274, 274, 274, 281, 281, 281, 281, 281, 244, - 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, - 233, 232, 231, 230, 229, 228, 227, 226, 192, 190, - 225, 224, 223, 186, 220, 219, 218, 217, 216, 215, - 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, - 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, - 194, 192, 189, 188, 187, 140, 186, 184, 183, 182, - 181, 180, 179, 178, 175, 174, 173, 172, 171, 170, - 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, - - 157, 156, 155, 154, 153, 152, 100, 145, 145, 145, - 144, 143, 142, 139, 138, 137, 134, 133, 132, 131, - 130, 129, 128, 127, 126, 125, 124, 123, 122, 119, - 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, - 108, 107, 100, 94, 39, 84, 83, 82, 72, 71, - 70, 69, 68, 60, 57, 56, 54, 53, 52, 41, - 39, 283, 36, 3, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283 - } ; - -static tao_yyconst short int tao_yy_chk[519] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 5, 19, 5, 9, 9, 9, - 10, 19, 21, 11, 10, 11, 11, 11, 12, 21, - 12, 12, 12, 11, 21, 22, 23, 289, 12, 31, - 29, 11, 31, 22, 35, 69, 23, 30, 11, 29, - 69, 30, 31, 12, 41, 31, 29, 37, 35, 37, - - 41, 41, 267, 83, 267, 11, 36, 36, 36, 281, - 42, 83, 42, 42, 42, 89, 41, 36, 36, 36, - 42, 43, 276, 43, 43, 43, 114, 114, 42, 132, - 275, 43, 49, 49, 274, 42, 49, 49, 49, 132, - 41, 104, 104, 104, 36, 36, 43, 90, 90, 36, - 270, 89, 42, 46, 46, 46, 269, 90, 90, 90, - 268, 46, 46, 47, 46, 47, 47, 47, 48, 266, - 48, 48, 48, 47, 186, 186, 46, 46, 48, 265, - 51, 46, 51, 51, 51, 87, 87, 87, 47, 263, - 51, 261, 259, 48, 97, 258, 87, 87, 87, 257, - - 97, 97, 102, 102, 256, 51, 102, 102, 102, 105, - 105, 105, 149, 149, 149, 147, 252, 251, 105, 222, - 105, 147, 147, 87, 247, 150, 150, 150, 87, 222, - 222, 222, 246, 105, 150, 244, 150, 105, 243, 224, - 242, 224, 246, 246, 246, 248, 238, 248, 237, 150, - 224, 224, 224, 150, 250, 232, 248, 248, 248, 249, - 231, 249, 249, 250, 250, 250, 229, 228, 227, 226, - 249, 249, 249, 284, 284, 284, 284, 284, 285, 225, - 285, 285, 285, 286, 286, 287, 223, 287, 287, 287, - 288, 288, 288, 288, 288, 290, 290, 291, 291, 291, - - 291, 291, 292, 292, 293, 293, 293, 293, 293, 294, - 294, 294, 294, 294, 295, 295, 295, 295, 295, 220, - 218, 216, 215, 214, 213, 211, 210, 209, 208, 206, - 205, 204, 201, 200, 199, 198, 196, 195, 193, 191, - 189, 188, 187, 185, 184, 183, 181, 180, 179, 178, - 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, - 166, 165, 164, 163, 161, 160, 159, 158, 155, 154, - 152, 148, 144, 143, 142, 141, 140, 139, 138, 137, - 136, 135, 134, 133, 131, 130, 129, 128, 126, 125, - 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, - - 113, 112, 111, 110, 108, 107, 99, 98, 96, 95, - 93, 92, 91, 86, 85, 84, 82, 81, 80, 79, - 78, 77, 76, 75, 74, 73, 72, 71, 70, 68, - 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, - 57, 56, 45, 40, 38, 34, 33, 32, 28, 27, - 26, 25, 24, 20, 18, 17, 15, 14, 13, 8, - 7, 3, 2, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 283, 283, 283, 283, 283, 283, 283, 283 - } ; - -static tao_yy_state_type tao_yy_last_accepting_state; -static char *tao_yy_last_accepting_cpos; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define tao_yymore() tao_yymore_used_but_not_detected -#define TAO_YY_MORE_ADJ 0 -#define TAO_YY_RESTORE_TAO_YY_MORE_OFFSET -#ifndef TAO_YYLMAX -#define TAO_YYLMAX 8192 -#endif - -char tao_yytext[TAO_YYLMAX]; -char *tao_yytext_ptr; -#line 1 "fe/idl.ll" -#define INITIAL 0 -#line 3 "fe/idl.ll" -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY -IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. - -IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * idl.ll - Lexical scanner for IDL 1.1 - */ - -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include "y.tab.h" - -static char idl_escape_reader(char *); -static double idl_atof(char *); -static long idl_atoi(char *, long); -static void idl_parse_line_and_file(char *); -static void idl_store_pragma(char *); - -#if 0 /* defined (HPUX) */ -// HPUX has tao_yytext typed to unsigned char *. We make sure here that -// we'll always use char * static char* __tao_yytext = (char*) tao_yytext; -// NOTE: This will not work under flex(1) were tao_yytext is not a fixed -// buffer, but a dynamically allocated one. This function should do -// the trick for us. -inline char *__tao_yytext() -{ - return (char *) tao_yytext; -} -#define ace_tao_yytext __tao_yytext() -#else -#define ace_tao_yytext tao_yytext -#endif /* 0 */ -#define TAO_YY_NEVER_INTERACTIVE 1 - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef TAO_YY_SKIP_TAO_YYWRAP -#ifdef __cplusplus -extern "C" int tao_yywrap TAO_YY_PROTO(( void )); -#else -extern int tao_yywrap TAO_YY_PROTO(( void )); -#endif -#endif - -#ifndef TAO_YY_NO_UNPUT -static void tao_yyunput TAO_YY_PROTO(( int c, char *buf_ptr )); -#endif - -#ifndef tao_yytext_ptr -static void tao_yy_flex_strncpy TAO_YY_PROTO(( char *, tao_yyconst char *, int )); -#endif - -#ifdef TAO_YY_NEED_STRLEN -static int tao_yy_flex_strlen TAO_YY_PROTO(( tao_yyconst char * )); -#endif - -#ifndef TAO_YY_NO_INPUT -#ifdef __cplusplus -static int tao_yyinput TAO_YY_PROTO(( void )); -#else -static int input TAO_YY_PROTO(( void )); -#endif -#endif - -#if TAO_YY_STACK_USED -static int tao_yy_start_stack_ptr = 0; -static int tao_yy_start_stack_depth = 0; -static int *tao_yy_start_stack = 0; -#ifndef TAO_YY_NO_PUSH_STATE -static void tao_yy_push_state TAO_YY_PROTO(( int new_state )); -#endif -#ifndef TAO_YY_NO_POP_STATE -static void tao_yy_pop_state TAO_YY_PROTO(( void )); -#endif -#ifndef TAO_YY_NO_TOP_STATE -static int tao_yy_top_state TAO_YY_PROTO(( void )); -#endif - -#else -#define TAO_YY_NO_PUSH_STATE 1 -#define TAO_YY_NO_POP_STATE 1 -#define TAO_YY_NO_TOP_STATE 1 -#endif - -#ifdef TAO_YY_MALLOC_DECL -TAO_YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#endif -#else -/* Just try to get by without declaring the routines. This will fail - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) - * or sizeof(void*) != sizeof(int). - */ -#endif -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef TAO_YY_READ_BUF_SIZE -#define TAO_YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ - -#ifndef TAO_YY_ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define TAO_YY_ECHO (void) fwrite( tao_yytext, tao_yyleng, 1, tao_yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or TAO_YY_NULL, - * is returned in "result". - */ -#ifndef TAO_YY_INPUT -#define TAO_YY_INPUT(buf,result,max_size) \ - if ( tao_yy_current_buffer->tao_yy_is_interactive ) \ - { \ - int c = '*', n; \ - for ( n = 0; n < max_size && \ - (c = getc( tao_yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( tao_yyin ) ) \ - TAO_YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else if ( ((result = fread( buf, 1, max_size, tao_yyin )) == 0) \ - && ferror( tao_yyin ) ) \ - TAO_YY_FATAL_ERROR( "input in flex scanner failed" ); -#endif - -/* No semi-colon after return; correct usage is to write "tao_yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef tao_yyterminate -#define tao_yyterminate() return TAO_YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef TAO_YY_START_STACK_INCR -#define TAO_YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef TAO_YY_FATAL_ERROR -#define TAO_YY_FATAL_ERROR(msg) tao_yy_fatal_error( msg ) -#endif - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef TAO_YY_DECL -#define TAO_YY_DECL int tao_yylex TAO_YY_PROTO(( void )) -#endif - -/* Code executed at the beginning of each rule, after tao_yytext and tao_yyleng - * have been set up. - */ -#ifndef TAO_YY_USER_ACTION -#define TAO_YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef TAO_YY_BREAK -#define TAO_YY_BREAK break; -#endif - -#define TAO_YY_RULE_SETUP \ - if ( tao_yyleng > 0 ) \ - tao_yy_current_buffer->tao_yy_at_bol = \ - (tao_yytext[tao_yyleng - 1] == '\n'); \ - TAO_YY_USER_ACTION - -TAO_YY_DECL - { - register tao_yy_state_type tao_yy_current_state; - register char *tao_yy_cp, *tao_yy_bp; - register int tao_yy_act; - -#line 101 "fe/idl.ll" - - - - if ( tao_yy_init ) - { - tao_yy_init = 0; - -#ifdef TAO_YY_USER_INIT - TAO_YY_USER_INIT; -#endif - - if ( ! tao_yy_start ) - tao_yy_start = 1; /* first start state */ - - if ( ! tao_yyin ) - tao_yyin = stdin; - - if ( ! tao_yyout ) - tao_yyout = stdout; - - if ( ! tao_yy_current_buffer ) - tao_yy_current_buffer = - tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); - - tao_yy_load_buffer_state(); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - tao_yy_cp = tao_yy_c_buf_p; - - /* Support of tao_yytext. */ - *tao_yy_cp = tao_yy_hold_char; - - /* tao_yy_bp points to the position in tao_yy_ch_buf of the start of - * the current run. - */ - tao_yy_bp = tao_yy_cp; - - tao_yy_current_state = tao_yy_start; - tao_yy_current_state += TAO_YY_AT_BOL(); -tao_yy_match: - do - { - register TAO_YY_CHAR tao_yy_c = tao_yy_ec[TAO_YY_SC_TO_UI(*tao_yy_cp)]; - if ( tao_yy_accept[tao_yy_current_state] ) - { - tao_yy_last_accepting_state = tao_yy_current_state; - tao_yy_last_accepting_cpos = tao_yy_cp; - } - while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state ) - { - tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state]; - if ( tao_yy_current_state >= 284 ) - tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c]; - } - tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c]; - ++tao_yy_cp; - } - while ( tao_yy_base[tao_yy_current_state] != 464 ); - -tao_yy_find_action: - tao_yy_act = tao_yy_accept[tao_yy_current_state]; - if ( tao_yy_act == 0 ) - { /* have to back up */ - tao_yy_cp = tao_yy_last_accepting_cpos; - tao_yy_current_state = tao_yy_last_accepting_state; - tao_yy_act = tao_yy_accept[tao_yy_current_state]; - } - - TAO_YY_DO_BEFORE_ACTION; - - -do_action: /* This label is used only to access EOF actions. */ - - - switch ( tao_yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of TAO_YY_DO_BEFORE_ACTION */ - *tao_yy_cp = tao_yy_hold_char; - tao_yy_cp = tao_yy_last_accepting_cpos; - tao_yy_current_state = tao_yy_last_accepting_state; - goto tao_yy_find_action; - -case 1: -TAO_YY_RULE_SETUP -#line 103 "fe/idl.ll" -return IDL_ANY; - TAO_YY_BREAK -case 2: -TAO_YY_RULE_SETUP -#line 104 "fe/idl.ll" -return IDL_MODULE; - TAO_YY_BREAK -case 3: -TAO_YY_RULE_SETUP -#line 105 "fe/idl.ll" -return IDL_RAISES; - TAO_YY_BREAK -case 4: -TAO_YY_RULE_SETUP -#line 106 "fe/idl.ll" -return IDL_READONLY; - TAO_YY_BREAK -case 5: -TAO_YY_RULE_SETUP -#line 107 "fe/idl.ll" -return IDL_ATTRIBUTE; - TAO_YY_BREAK -case 6: -TAO_YY_RULE_SETUP -#line 108 "fe/idl.ll" -return IDL_EXCEPTION; - TAO_YY_BREAK -case 7: -TAO_YY_RULE_SETUP -#line 109 "fe/idl.ll" -return IDL_CONTEXT; - TAO_YY_BREAK -case 8: -TAO_YY_RULE_SETUP -#line 110 "fe/idl.ll" -return IDL_INTERFACE; - TAO_YY_BREAK -case 9: -TAO_YY_RULE_SETUP -#line 111 "fe/idl.ll" -return IDL_CONST; - TAO_YY_BREAK -case 10: -TAO_YY_RULE_SETUP -#line 112 "fe/idl.ll" -return IDL_TYPEDEF; - TAO_YY_BREAK -case 11: -TAO_YY_RULE_SETUP -#line 113 "fe/idl.ll" -return IDL_STRUCT; - TAO_YY_BREAK -case 12: -TAO_YY_RULE_SETUP -#line 114 "fe/idl.ll" -return IDL_ENUM; - TAO_YY_BREAK -case 13: -TAO_YY_RULE_SETUP -#line 115 "fe/idl.ll" -return IDL_STRING; - TAO_YY_BREAK -case 14: -TAO_YY_RULE_SETUP -#line 116 "fe/idl.ll" -return IDL_WSTRING; - TAO_YY_BREAK -case 15: -TAO_YY_RULE_SETUP -#line 117 "fe/idl.ll" -return IDL_SEQUENCE; - TAO_YY_BREAK -case 16: -TAO_YY_RULE_SETUP -#line 118 "fe/idl.ll" -return IDL_UNION; - TAO_YY_BREAK -case 17: -TAO_YY_RULE_SETUP -#line 119 "fe/idl.ll" -return IDL_SWITCH; - TAO_YY_BREAK -case 18: -TAO_YY_RULE_SETUP -#line 120 "fe/idl.ll" -return IDL_CASE; - TAO_YY_BREAK -case 19: -TAO_YY_RULE_SETUP -#line 121 "fe/idl.ll" -return IDL_DEFAULT; - TAO_YY_BREAK -case 20: -TAO_YY_RULE_SETUP -#line 122 "fe/idl.ll" -return IDL_FLOAT; - TAO_YY_BREAK -case 21: -TAO_YY_RULE_SETUP -#line 123 "fe/idl.ll" -return IDL_DOUBLE; - TAO_YY_BREAK -case 22: -TAO_YY_RULE_SETUP -#line 124 "fe/idl.ll" -return IDL_LONG; - TAO_YY_BREAK -case 23: -TAO_YY_RULE_SETUP -#line 125 "fe/idl.ll" -return IDL_SHORT; - TAO_YY_BREAK -case 24: -TAO_YY_RULE_SETUP -#line 126 "fe/idl.ll" -return IDL_UNSIGNED; - TAO_YY_BREAK -case 25: -TAO_YY_RULE_SETUP -#line 127 "fe/idl.ll" -return IDL_CHAR; - TAO_YY_BREAK -case 26: -TAO_YY_RULE_SETUP -#line 128 "fe/idl.ll" -return IDL_WCHAR; - TAO_YY_BREAK -case 27: -TAO_YY_RULE_SETUP -#line 129 "fe/idl.ll" -return IDL_BOOLEAN; - TAO_YY_BREAK -case 28: -TAO_YY_RULE_SETUP -#line 130 "fe/idl.ll" -return IDL_OCTET; - TAO_YY_BREAK -case 29: -TAO_YY_RULE_SETUP -#line 131 "fe/idl.ll" -return IDL_VOID; - TAO_YY_BREAK -case 30: -TAO_YY_RULE_SETUP -#line 132 "fe/idl.ll" -return IDL_NATIVE; - TAO_YY_BREAK -case 31: -TAO_YY_RULE_SETUP -#line 134 "fe/idl.ll" -return IDL_TRUETOK; - TAO_YY_BREAK -case 32: -TAO_YY_RULE_SETUP -#line 135 "fe/idl.ll" -return IDL_FALSETOK; - TAO_YY_BREAK -case 33: -TAO_YY_RULE_SETUP -#line 137 "fe/idl.ll" -return IDL_INOUT; - TAO_YY_BREAK -case 34: -TAO_YY_RULE_SETUP -#line 138 "fe/idl.ll" -return IDL_IN; - TAO_YY_BREAK -case 35: -TAO_YY_RULE_SETUP -#line 139 "fe/idl.ll" -return IDL_OUT; - TAO_YY_BREAK -case 36: -TAO_YY_RULE_SETUP -#line 140 "fe/idl.ll" -return IDL_ONEWAY; - TAO_YY_BREAK -case 37: -TAO_YY_RULE_SETUP -#line 142 "fe/idl.ll" -return IDL_LEFT_SHIFT; - TAO_YY_BREAK -case 38: -TAO_YY_RULE_SETUP -#line 143 "fe/idl.ll" -return IDL_RIGHT_SHIFT; - TAO_YY_BREAK -case 39: -TAO_YY_RULE_SETUP -#line 144 "fe/idl.ll" -{ - tao_yylval.strval = "::"; - return IDL_SCOPE_DELIMITOR; - } - TAO_YY_BREAK -case 40: -TAO_YY_RULE_SETUP -#line 149 "fe/idl.ll" -{ - /* make sure that this identifier is not a C++ keyword. If it is, - prepend it with a _cxx_. Lookup in the perfect hash table for - C++ keyword and grab the mapping*/ - - TAO_IDL_CPP_Keyword_Table cpp_key_tbl; - const TAO_IDL_CPP_Keyword_Entry *entry = - cpp_key_tbl.lookup (ace_tao_yytext, - ACE_OS::strlen (ace_tao_yytext)); - if (entry) - { - tao_yylval.strval = ACE_OS::strdup (entry->mapping_); - } - else - { - tao_yylval.strval = ACE_OS::strdup (ace_tao_yytext); - } - return IDENTIFIER; -} - TAO_YY_BREAK -case 41: -TAO_YY_RULE_SETUP -#line 169 "fe/idl.ll" -{ - tao_yylval.dval = idl_atof(ace_tao_yytext); - return IDL_FLOATING_PT_LITERAL; - } - TAO_YY_BREAK -case 42: -TAO_YY_RULE_SETUP -#line 173 "fe/idl.ll" -{ - tao_yylval.dval = idl_atof(ace_tao_yytext); - return IDL_FLOATING_PT_LITERAL; - } - TAO_YY_BREAK -case 43: -TAO_YY_RULE_SETUP -#line 178 "fe/idl.ll" -{ - tao_yylval.ival = idl_atoi(ace_tao_yytext, 10); - return IDL_INTEGER_LITERAL; - } - TAO_YY_BREAK -case 44: -TAO_YY_RULE_SETUP -#line 182 "fe/idl.ll" -{ - tao_yylval.ival = idl_atoi(ace_tao_yytext, 16); - return IDL_INTEGER_LITERAL; - } - TAO_YY_BREAK -case 45: -TAO_YY_RULE_SETUP -#line 186 "fe/idl.ll" -{ - tao_yylval.ival = idl_atoi(ace_tao_yytext, 8); - return IDL_INTEGER_LITERAL; - } - TAO_YY_BREAK -case 46: -TAO_YY_RULE_SETUP -#line 191 "fe/idl.ll" -{ - /* Skip the quotes */ - char *tmp = ace_tao_yytext; - tmp[strlen(tmp)-1] = '\0'; - tao_yylval.sval = new String(tmp + 1); - return IDL_STRING_LITERAL; - } - TAO_YY_BREAK -case 47: -TAO_YY_RULE_SETUP -#line 198 "fe/idl.ll" -{ - tao_yylval.cval = ace_tao_yytext [1]; - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 48: -TAO_YY_RULE_SETUP -#line 202 "fe/idl.ll" -{ - // octal character constant - tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1); - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 49: -TAO_YY_RULE_SETUP -#line 207 "fe/idl.ll" -{ - // hexadecimal character constant - tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1); - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 50: -TAO_YY_RULE_SETUP -#line 212 "fe/idl.ll" -{ - tao_yylval.cval = idl_escape_reader(ace_tao_yytext + 1); - return IDL_CHARACTER_LITERAL; - } - TAO_YY_BREAK -case 51: -TAO_YY_RULE_SETUP -#line 216 "fe/idl.ll" -{/* remember pragma */ - idl_global->set_lineno(idl_global->lineno() + 1); - idl_store_pragma(ace_tao_yytext); - } - TAO_YY_BREAK -case 52: -TAO_YY_RULE_SETUP -#line 220 "fe/idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 53: -TAO_YY_RULE_SETUP -#line 223 "fe/idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 54: -TAO_YY_RULE_SETUP -#line 226 "fe/idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 55: -TAO_YY_RULE_SETUP -#line 229 "fe/idl.ll" -{ - idl_parse_line_and_file(ace_tao_yytext); - } - TAO_YY_BREAK -case 56: -TAO_YY_RULE_SETUP -#line 232 "fe/idl.ll" -{ - /* ignore cpp ident */ - idl_global->set_lineno(idl_global->lineno() + 1); - } - TAO_YY_BREAK -case 57: -TAO_YY_RULE_SETUP -#line 236 "fe/idl.ll" -{ - /* ignore comments */ - idl_global->set_lineno(idl_global->lineno() + 1); - } - TAO_YY_BREAK -case 58: -TAO_YY_RULE_SETUP -#line 240 "fe/idl.ll" -{ - for(;;) { - char c = tao_yyinput(); - if (c == '*') { - char next = tao_yyinput(); - if (next == '/') - break; - else - tao_yyunput(c, NULL); - if (c == '\n') - idl_global->set_lineno(idl_global->lineno() + 1); - } - } - } - TAO_YY_BREAK -case 59: -TAO_YY_RULE_SETUP -#line 254 "fe/idl.ll" -; - TAO_YY_BREAK -case 60: -TAO_YY_RULE_SETUP -#line 255 "fe/idl.ll" -{ - idl_global->set_lineno(idl_global->lineno() + 1); - } - TAO_YY_BREAK -case 61: -TAO_YY_RULE_SETUP -#line 258 "fe/idl.ll" -return ace_tao_yytext [0]; - TAO_YY_BREAK -case 62: -TAO_YY_RULE_SETUP -#line 260 "fe/idl.ll" -TAO_YY_ECHO; - TAO_YY_BREAK -case TAO_YY_STATE_EOF(INITIAL): - tao_yyterminate(); - - case TAO_YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int tao_yy_amount_of_matched_text = (int) (tao_yy_cp - tao_yytext_ptr) - 1; - - /* Undo the effects of TAO_YY_DO_BEFORE_ACTION. */ - *tao_yy_cp = tao_yy_hold_char; - TAO_YY_RESTORE_TAO_YY_MORE_OFFSET - - if ( tao_yy_current_buffer->tao_yy_buffer_status == TAO_YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed tao_yyin at a new source and called - * tao_yylex(). If so, then we have to assure - * consistency between tao_yy_current_buffer and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - tao_yy_n_chars = tao_yy_current_buffer->tao_yy_n_chars; - tao_yy_current_buffer->tao_yy_input_file = tao_yyin; - tao_yy_current_buffer->tao_yy_buffer_status = TAO_YY_BUFFER_NORMAL; - } - - /* Note that here we test for tao_yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since tao_yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( tao_yy_c_buf_p <= &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] ) - { /* This was really a NUL. */ - tao_yy_state_type tao_yy_next_state; - - tao_yy_c_buf_p = tao_yytext_ptr + tao_yy_amount_of_matched_text; - - tao_yy_current_state = tao_yy_get_previous_state(); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * tao_yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - tao_yy_next_state = tao_yy_try_NUL_trans( tao_yy_current_state ); - - tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ; - - if ( tao_yy_next_state ) - { - /* Consume the NUL. */ - tao_yy_cp = ++tao_yy_c_buf_p; - tao_yy_current_state = tao_yy_next_state; - goto tao_yy_match; - } - - else - { - tao_yy_cp = tao_yy_c_buf_p; - goto tao_yy_find_action; - } - } - - else switch ( tao_yy_get_next_buffer() ) - { - case EOB_ACT_END_OF_FILE: - { - tao_yy_did_buffer_switch_on_eof = 0; - - if ( tao_yywrap() ) - { - /* Note: because we've taken care in - * tao_yy_get_next_buffer() to have set up - * tao_yytext, we can now set up - * tao_yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * TAO_YY_NULL, it'll still work - another - * TAO_YY_NULL will get returned. - */ - tao_yy_c_buf_p = tao_yytext_ptr + TAO_YY_MORE_ADJ; - - tao_yy_act = TAO_YY_STATE_EOF(TAO_YY_START); - goto do_action; - } - - else - { - if ( ! tao_yy_did_buffer_switch_on_eof ) - TAO_YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - tao_yy_c_buf_p = - tao_yytext_ptr + tao_yy_amount_of_matched_text; - - tao_yy_current_state = tao_yy_get_previous_state(); - - tao_yy_cp = tao_yy_c_buf_p; - tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ; - goto tao_yy_match; - - case EOB_ACT_LAST_MATCH: - tao_yy_c_buf_p = - &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars]; - - tao_yy_current_state = tao_yy_get_previous_state(); - - tao_yy_cp = tao_yy_c_buf_p; - tao_yy_bp = tao_yytext_ptr + TAO_YY_MORE_ADJ; - goto tao_yy_find_action; - } - break; - } - - default: - TAO_YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of tao_yylex */ - - -/* tao_yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ - -static int tao_yy_get_next_buffer() - { - register char *dest = tao_yy_current_buffer->tao_yy_ch_buf; - register char *source = tao_yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( tao_yy_c_buf_p > &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars + 1] ) - TAO_YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( tao_yy_current_buffer->tao_yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( tao_yy_c_buf_p - tao_yytext_ptr - TAO_YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (tao_yy_c_buf_p - tao_yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( tao_yy_current_buffer->tao_yy_buffer_status == TAO_YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars = 0; - - else - { - int num_to_read = - tao_yy_current_buffer->tao_yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ -#ifdef TAO_YY_USES_REJECT - TAO_YY_FATAL_ERROR( -"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); -#else - - /* just a shorter name for the current buffer */ - TAO_YY_BUFFER_STATE b = tao_yy_current_buffer; - - int tao_yy_c_buf_p_offset = - (int) (tao_yy_c_buf_p - b->tao_yy_ch_buf); - - if ( b->tao_yy_is_our_buffer ) - { - int new_size = b->tao_yy_buf_size * 2; - - if ( new_size <= 0 ) - b->tao_yy_buf_size += b->tao_yy_buf_size / 8; - else - b->tao_yy_buf_size *= 2; - - b->tao_yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - tao_yy_flex_realloc( (void *) b->tao_yy_ch_buf, - b->tao_yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->tao_yy_ch_buf = 0; - - if ( ! b->tao_yy_ch_buf ) - TAO_YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - tao_yy_c_buf_p = &b->tao_yy_ch_buf[tao_yy_c_buf_p_offset]; - - num_to_read = tao_yy_current_buffer->tao_yy_buf_size - - number_to_move - 1; -#endif - } - - if ( num_to_read > TAO_YY_READ_BUF_SIZE ) - num_to_read = TAO_YY_READ_BUF_SIZE; - - /* Read in more data. */ - TAO_YY_INPUT( (&tao_yy_current_buffer->tao_yy_ch_buf[number_to_move]), - tao_yy_n_chars, num_to_read ); - - tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars; - } - - if ( tao_yy_n_chars == 0 ) - { - if ( number_to_move == TAO_YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - tao_yyrestart( tao_yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - tao_yy_current_buffer->tao_yy_buffer_status = - TAO_YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - tao_yy_n_chars += number_to_move; - tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] = TAO_YY_END_OF_BUFFER_CHAR; - tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars + 1] = TAO_YY_END_OF_BUFFER_CHAR; - - tao_yytext_ptr = &tao_yy_current_buffer->tao_yy_ch_buf[0]; - - return ret_val; - } - - -/* tao_yy_get_previous_state - get the state just before the EOB char was reached */ - -static tao_yy_state_type tao_yy_get_previous_state() - { - register tao_yy_state_type tao_yy_current_state; - register char *tao_yy_cp; - - tao_yy_current_state = tao_yy_start; - tao_yy_current_state += TAO_YY_AT_BOL(); - - for ( tao_yy_cp = tao_yytext_ptr + TAO_YY_MORE_ADJ; tao_yy_cp < tao_yy_c_buf_p; ++tao_yy_cp ) - { - register TAO_YY_CHAR tao_yy_c = (*tao_yy_cp ? tao_yy_ec[TAO_YY_SC_TO_UI(*tao_yy_cp)] : 1); - if ( tao_yy_accept[tao_yy_current_state] ) - { - tao_yy_last_accepting_state = tao_yy_current_state; - tao_yy_last_accepting_cpos = tao_yy_cp; - } - while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state ) - { - tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state]; - if ( tao_yy_current_state >= 284 ) - tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c]; - } - tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c]; - } - - return tao_yy_current_state; - } - - -/* tao_yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = tao_yy_try_NUL_trans( current_state ); - */ - -#ifdef TAO_YY_USE_PROTOS -static tao_yy_state_type tao_yy_try_NUL_trans( tao_yy_state_type tao_yy_current_state ) -#else -static tao_yy_state_type tao_yy_try_NUL_trans( tao_yy_current_state ) -tao_yy_state_type tao_yy_current_state; -#endif - { - register int tao_yy_is_jam; - register char *tao_yy_cp = tao_yy_c_buf_p; - - register TAO_YY_CHAR tao_yy_c = 1; - if ( tao_yy_accept[tao_yy_current_state] ) - { - tao_yy_last_accepting_state = tao_yy_current_state; - tao_yy_last_accepting_cpos = tao_yy_cp; - } - while ( tao_yy_chk[tao_yy_base[tao_yy_current_state] + tao_yy_c] != tao_yy_current_state ) - { - tao_yy_current_state = (int) tao_yy_def[tao_yy_current_state]; - if ( tao_yy_current_state >= 284 ) - tao_yy_c = tao_yy_meta[(unsigned int) tao_yy_c]; - } - tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c]; - tao_yy_is_jam = (tao_yy_current_state == 283); - - return tao_yy_is_jam ? 0 : tao_yy_current_state; - } - - -#ifndef TAO_YY_NO_UNPUT -#ifdef TAO_YY_USE_PROTOS -static void tao_yyunput( int c, register char *tao_yy_bp ) -#else -static void tao_yyunput( c, tao_yy_bp ) -int c; -register char *tao_yy_bp; -#endif - { - register char *tao_yy_cp = tao_yy_c_buf_p; - - /* undo effects of setting up tao_yytext */ - *tao_yy_cp = tao_yy_hold_char; - - if ( tao_yy_cp < tao_yy_current_buffer->tao_yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = tao_yy_n_chars + 2; - register char *dest = &tao_yy_current_buffer->tao_yy_ch_buf[ - tao_yy_current_buffer->tao_yy_buf_size + 2]; - register char *source = - &tao_yy_current_buffer->tao_yy_ch_buf[number_to_move]; - - while ( source > tao_yy_current_buffer->tao_yy_ch_buf ) - *--dest = *--source; - - tao_yy_cp += (int) (dest - source); - tao_yy_bp += (int) (dest - source); - tao_yy_current_buffer->tao_yy_n_chars = - tao_yy_n_chars = tao_yy_current_buffer->tao_yy_buf_size; - - if ( tao_yy_cp < tao_yy_current_buffer->tao_yy_ch_buf + 2 ) - TAO_YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--tao_yy_cp = (char) c; - - - tao_yytext_ptr = tao_yy_bp; - tao_yy_hold_char = *tao_yy_cp; - tao_yy_c_buf_p = tao_yy_cp; - } -#endif /* ifndef TAO_YY_NO_UNPUT */ - - -#ifdef __cplusplus -static int tao_yyinput() -#else -static int input() -#endif - { - int c; - - *tao_yy_c_buf_p = tao_yy_hold_char; - - if ( *tao_yy_c_buf_p == TAO_YY_END_OF_BUFFER_CHAR ) - { - /* tao_yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( tao_yy_c_buf_p < &tao_yy_current_buffer->tao_yy_ch_buf[tao_yy_n_chars] ) - /* This was really a NUL. */ - *tao_yy_c_buf_p = '\0'; - - else - { /* need more input */ - int offset = tao_yy_c_buf_p - tao_yytext_ptr; - ++tao_yy_c_buf_p; - - switch ( tao_yy_get_next_buffer() ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because tao_yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - tao_yyrestart( tao_yyin ); - - /* fall through */ - - case EOB_ACT_END_OF_FILE: - { - if ( tao_yywrap() ) - return EOF; - - if ( ! tao_yy_did_buffer_switch_on_eof ) - TAO_YY_NEW_FILE; -#ifdef __cplusplus - return tao_yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - tao_yy_c_buf_p = tao_yytext_ptr + offset; - break; - } - } - } - - c = *(unsigned char *) tao_yy_c_buf_p; /* cast for 8-bit char's */ - *tao_yy_c_buf_p = '\0'; /* preserve tao_yytext */ - tao_yy_hold_char = *++tao_yy_c_buf_p; - - tao_yy_current_buffer->tao_yy_at_bol = (c == '\n'); - - return c; - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yyrestart( FILE *input_file ) -#else -void tao_yyrestart( input_file ) -FILE *input_file; -#endif - { - if ( ! tao_yy_current_buffer ) - tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); - - tao_yy_init_buffer( tao_yy_current_buffer, input_file ); - tao_yy_load_buffer_state(); - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_switch_to_buffer( TAO_YY_BUFFER_STATE new_buffer ) -#else -void tao_yy_switch_to_buffer( new_buffer ) -TAO_YY_BUFFER_STATE new_buffer; -#endif - { - if ( tao_yy_current_buffer == new_buffer ) - return; - - if ( tao_yy_current_buffer ) - { - /* Flush out information for old buffer. */ - *tao_yy_c_buf_p = tao_yy_hold_char; - tao_yy_current_buffer->tao_yy_buf_pos = tao_yy_c_buf_p; - tao_yy_current_buffer->tao_yy_n_chars = tao_yy_n_chars; - } - - tao_yy_current_buffer = new_buffer; - tao_yy_load_buffer_state(); - - /* We don't actually know whether we did this switch during - * EOF (tao_yywrap()) processing, but the only time this flag - * is looked at is after tao_yywrap() is called, so it's safe - * to go ahead and always set it. - */ - tao_yy_did_buffer_switch_on_eof = 1; - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_load_buffer_state( void ) -#else -void tao_yy_load_buffer_state() -#endif - { - tao_yy_n_chars = tao_yy_current_buffer->tao_yy_n_chars; - tao_yytext_ptr = tao_yy_c_buf_p = tao_yy_current_buffer->tao_yy_buf_pos; - tao_yyin = tao_yy_current_buffer->tao_yy_input_file; - tao_yy_hold_char = *tao_yy_c_buf_p; - } - - -#ifdef TAO_YY_USE_PROTOS -TAO_YY_BUFFER_STATE tao_yy_create_buffer( FILE *file, int size ) -#else -TAO_YY_BUFFER_STATE tao_yy_create_buffer( file, size ) -FILE *file; -int size; -#endif - { - TAO_YY_BUFFER_STATE b; - - b = (TAO_YY_BUFFER_STATE) tao_yy_flex_alloc( sizeof( struct tao_yy_buffer_state ) ); - if ( ! b ) - TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_create_buffer()" ); - - b->tao_yy_buf_size = size; - - /* tao_yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->tao_yy_ch_buf = (char *) tao_yy_flex_alloc( b->tao_yy_buf_size + 2 ); - if ( ! b->tao_yy_ch_buf ) - TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_create_buffer()" ); - - b->tao_yy_is_our_buffer = 1; - - tao_yy_init_buffer( b, file ); - - return b; - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_delete_buffer( TAO_YY_BUFFER_STATE b ) -#else -void tao_yy_delete_buffer( b ) -TAO_YY_BUFFER_STATE b; -#endif - { - if ( ! b ) - return; - - if ( b == tao_yy_current_buffer ) - tao_yy_current_buffer = (TAO_YY_BUFFER_STATE) 0; - - if ( b->tao_yy_is_our_buffer ) - tao_yy_flex_free( (void *) b->tao_yy_ch_buf ); - - tao_yy_flex_free( (void *) b ); - } - - -#ifndef TAO_YY_ALWAYS_INTERACTIVE -#ifndef TAO_YY_NEVER_INTERACTIVE -extern int isatty TAO_YY_PROTO(( int )); -#endif -#endif - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_init_buffer( TAO_YY_BUFFER_STATE b, FILE *file ) -#else -void tao_yy_init_buffer( b, file ) -TAO_YY_BUFFER_STATE b; -FILE *file; -#endif - - - { - tao_yy_flush_buffer( b ); - - b->tao_yy_input_file = file; - b->tao_yy_fill_buffer = 1; - -#if TAO_YY_ALWAYS_INTERACTIVE - b->tao_yy_is_interactive = 1; -#else -#if TAO_YY_NEVER_INTERACTIVE - b->tao_yy_is_interactive = 0; -#else - b->tao_yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; -#endif -#endif - } - - -#ifdef TAO_YY_USE_PROTOS -void tao_yy_flush_buffer( TAO_YY_BUFFER_STATE b ) -#else -void tao_yy_flush_buffer( b ) -TAO_YY_BUFFER_STATE b; -#endif - - { - if ( ! b ) - return; - - b->tao_yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->tao_yy_ch_buf[0] = TAO_YY_END_OF_BUFFER_CHAR; - b->tao_yy_ch_buf[1] = TAO_YY_END_OF_BUFFER_CHAR; - - b->tao_yy_buf_pos = &b->tao_yy_ch_buf[0]; - - b->tao_yy_at_bol = 1; - b->tao_yy_buffer_status = TAO_YY_BUFFER_NEW; - - if ( b == tao_yy_current_buffer ) - tao_yy_load_buffer_state(); - } - - -#ifndef TAO_YY_NO_SCAN_BUFFER -#ifdef TAO_YY_USE_PROTOS -TAO_YY_BUFFER_STATE tao_yy_scan_buffer( char *base, tao_yy_size_t size ) -#else -TAO_YY_BUFFER_STATE tao_yy_scan_buffer( base, size ) -char *base; -tao_yy_size_t size; -#endif - { - TAO_YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != TAO_YY_END_OF_BUFFER_CHAR || - base[size-1] != TAO_YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (TAO_YY_BUFFER_STATE) tao_yy_flex_alloc( sizeof( struct tao_yy_buffer_state ) ); - if ( ! b ) - TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_scan_buffer()" ); - - b->tao_yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->tao_yy_buf_pos = b->tao_yy_ch_buf = base; - b->tao_yy_is_our_buffer = 0; - b->tao_yy_input_file = 0; - b->tao_yy_n_chars = b->tao_yy_buf_size; - b->tao_yy_is_interactive = 0; - b->tao_yy_at_bol = 1; - b->tao_yy_fill_buffer = 0; - b->tao_yy_buffer_status = TAO_YY_BUFFER_NEW; - - tao_yy_switch_to_buffer( b ); - - return b; - } -#endif - - -#ifndef TAO_YY_NO_SCAN_STRING -#ifdef TAO_YY_USE_PROTOS -TAO_YY_BUFFER_STATE tao_yy_scan_string( tao_yyconst char *tao_yy_str ) -#else -TAO_YY_BUFFER_STATE tao_yy_scan_string( tao_yy_str ) -tao_yyconst char *tao_yy_str; -#endif - { - int len; - for ( len = 0; tao_yy_str[len]; ++len ) - ; - - return tao_yy_scan_bytes( tao_yy_str, len ); - } -#endif - - -#ifndef TAO_YY_NO_SCAN_BYTES -#ifdef TAO_YY_USE_PROTOS -TAO_YY_BUFFER_STATE tao_yy_scan_bytes( tao_yyconst char *bytes, int len ) -#else -TAO_YY_BUFFER_STATE tao_yy_scan_bytes( bytes, len ) -tao_yyconst char *bytes; -int len; -#endif - { - TAO_YY_BUFFER_STATE b; - char *buf; - tao_yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = len + 2; - buf = (char *) tao_yy_flex_alloc( n ); - if ( ! buf ) - TAO_YY_FATAL_ERROR( "out of dynamic memory in tao_yy_scan_bytes()" ); - - for ( i = 0; i < len; ++i ) - buf[i] = bytes[i]; - - buf[len] = buf[len+1] = TAO_YY_END_OF_BUFFER_CHAR; - - b = tao_yy_scan_buffer( buf, n ); - if ( ! b ) - TAO_YY_FATAL_ERROR( "bad buffer in tao_yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->tao_yy_is_our_buffer = 1; - - return b; - } -#endif - - -#ifndef TAO_YY_NO_PUSH_STATE -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_push_state( int new_state ) -#else -static void tao_yy_push_state( new_state ) -int new_state; -#endif - { - if ( tao_yy_start_stack_ptr >= tao_yy_start_stack_depth ) - { - tao_yy_size_t new_size; - - tao_yy_start_stack_depth += TAO_YY_START_STACK_INCR; - new_size = tao_yy_start_stack_depth * sizeof( int ); - - if ( ! tao_yy_start_stack ) - tao_yy_start_stack = (int *) tao_yy_flex_alloc( new_size ); - - else - tao_yy_start_stack = (int *) tao_yy_flex_realloc( - (void *) tao_yy_start_stack, new_size ); - - if ( ! tao_yy_start_stack ) - TAO_YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } - - tao_yy_start_stack[tao_yy_start_stack_ptr++] = TAO_YY_START; - - BEGIN(new_state); - } -#endif - - -#ifndef TAO_YY_NO_POP_STATE -static void tao_yy_pop_state() - { - if ( --tao_yy_start_stack_ptr < 0 ) - TAO_YY_FATAL_ERROR( "start-condition stack underflow" ); - - BEGIN(tao_yy_start_stack[tao_yy_start_stack_ptr]); - } -#endif - - -#ifndef TAO_YY_NO_TOP_STATE -static int tao_yy_top_state() - { - return tao_yy_start_stack[tao_yy_start_stack_ptr - 1]; - } -#endif - -#ifndef TAO_YY_EXIT_FAILURE -#define TAO_YY_EXIT_FAILURE 2 -#endif - -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_fatal_error( tao_yyconst char msg[] ) -#else -static void tao_yy_fatal_error( msg ) -char msg[]; -#endif - { - (void) fprintf( stderr, "%s\n", msg ); - exit( TAO_YY_EXIT_FAILURE ); - } - - - -/* Redefine tao_yyless() so it works in section 3 code. */ - -#undef tao_yyless -#define tao_yyless(n) \ - do \ - { \ - /* Undo effects of setting up tao_yytext. */ \ - tao_yytext[tao_yyleng] = tao_yy_hold_char; \ - tao_yy_c_buf_p = tao_yytext + n; \ - tao_yy_hold_char = *tao_yy_c_buf_p; \ - *tao_yy_c_buf_p = '\0'; \ - tao_yyleng = n; \ - } \ - while ( 0 ) - - -/* Internal utility routines. */ - -#ifndef tao_yytext_ptr -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_flex_strncpy( char *s1, tao_yyconst char *s2, int n ) -#else -static void tao_yy_flex_strncpy( s1, s2, n ) -char *s1; -tao_yyconst char *s2; -int n; -#endif - { - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; - } -#endif - -#ifdef TAO_YY_NEED_STRLEN -#ifdef TAO_YY_USE_PROTOS -static int tao_yy_flex_strlen( tao_yyconst char *s ) -#else -static int tao_yy_flex_strlen( s ) -tao_yyconst char *s; -#endif - { - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; - } -#endif - - -#ifdef TAO_YY_USE_PROTOS -static void *tao_yy_flex_alloc( tao_yy_size_t size ) -#else -static void *tao_yy_flex_alloc( size ) -tao_yy_size_t size; -#endif - { - return (void *) malloc( size ); - } - -#ifdef TAO_YY_USE_PROTOS -static void *tao_yy_flex_realloc( void *ptr, tao_yy_size_t size ) -#else -static void *tao_yy_flex_realloc( ptr, size ) -void *ptr; -tao_yy_size_t size; -#endif - { - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); - } - -#ifdef TAO_YY_USE_PROTOS -static void tao_yy_flex_free( void *ptr ) -#else -static void tao_yy_flex_free( ptr ) -void *ptr; -#endif - { - free( ptr ); - } - -#if TAO_YY_MAIN -int main() - { - tao_yylex(); - return 0; - } -#endif -#line 260 "fe/idl.ll" - - /* subroutines */ - -/* - * Strip down a name to the last component, i.e. everything after the last - * '/' character - */ -static char * -stripped_name(UTL_String *fn) -{ - char *n = fn->get_string(); - long l; - - if (n == NULL) - return NULL; - l = strlen(n); - for (n += l; l > 0 && *n != '/'; l--, n--); - if (*n == '/') n++; - return n; -} - -/* - * Parse a #line statement generated by the C preprocessor - */ -static void -idl_parse_line_and_file(char *buf) -{ - char *r = buf; - char *h; - UTL_String *nm; - - /* Skip initial '#' */ - if (*r != '#') - return; - else - r++; - - /* Check to see if we're running under the screwy Microsoft scheme */ - /* of putting #line num instead of #num. */ - - if (ACE_OS::strncmp (r, "line", 4) == 0) - r += 5; - - /* Find line number */ - while (*r == ' ' || *r == '\t') - r++; - h = r; - for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) - continue; - *r++ = 0; - idl_global->set_lineno(idl_atoi(h, 10)); - - /* Find file name, if present */ - for (; *r != '"'; r++) - if (*r == '\n' || *r == '\0') - return; - - h = ++r; - for (; *r != '"'; r++) - continue; - *r = 0; - if (*h == '\0') - idl_global->set_filename(new String("standard input")); - else - { - long i; - long j; - - // Put Microsoft-style pathnames into a canonical form. - for (i = 0, j = 0; h[j] != '\0'; i++, j++) - { - if (h[j] == '\\' && h[j + 1] == '\\') - j++; - - h[i] = h[j]; - } - h[i] = '\0'; - idl_global->set_filename(new String(h)); - } - int in_main_file = I_FALSE; - if (idl_global->filename()->compare(idl_global->real_filename()) - || idl_global->filename()->compare(idl_global->main_filename())) - in_main_file = I_TRUE; - idl_global->set_in_main_file(in_main_file); - /* - * If it's an import file store the stripped name for the BE to use - */ - if (!(idl_global->in_main_file()) && idl_global->import()) { - nm = new UTL_String(stripped_name(idl_global->filename())); - idl_global->store_include_file_name(nm); - } -} - -/* - * Store a #pragma line into the list of pragmas - */ -static void -idl_store_pragma(char *buf) -{ - char *sp = buf + 1; - // Remove all the blanks between the '#' and the 'pragma' - if (*sp != 'p') - { - while (*sp != 'p') - ++sp; - char *tp = buf + 1; - while (*sp != '\n') - { - *tp = *sp; - ++tp; ++sp; - } - } - - if (ACE_OS::strstr(buf + 8, "import") != 0) { - idl_global->set_import(I_TRUE); - return; - } - if (ACE_OS::strstr(buf + 8, "include") != 0) { - idl_global->set_import(I_FALSE); - return; - } - // Remove the final '\n' - while (*sp != '\n') - ++sp; - *sp = '\0'; - UTL_StrList *p = idl_global->pragmas(); - if (p == NULL) - idl_global->set_pragmas(new UTL_StrList(new String(buf), NULL)); - else { - p->nconc(new UTL_StrList(new String(buf), NULL)); - idl_global->set_pragmas(p); - } -} - -/* - * idl_atoi - Convert a string of digits into an integer according to base b - */ -static long -idl_atoi(char *s, long b) -{ - long r = 0; - long negative = 0; - - if (*s == '-') { - negative = 1; - s++; - } - if (b == 8 && *s == '0') - s++; - else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X')) - s += 2; - - for (; *s; s++) - if (*s <= '9' && *s >= '0') - r = (r * b) + (*s - '0'); - else if (b > 10 && *s <= 'f' && *s >= 'a') - r = (r * b) + (*s - 'a' + 10); - else if (b > 10 && *s <= 'F' && *s >= 'A') - r = (r * b) + (*s - 'A' + 10); - else - break; - - if (negative) - r *= -1; - - return r; -} - -/* - * Convert a string to a float; atof doesn't seem to work, always. - */ -static double -idl_atof(char *s) -{ - char *h = s; - double d = 0.0; - double f = 0.0; - double e, k; - long neg = 0, negexp = 0; - - ACE_UNUSED_ARG (f); - ACE_UNUSED_ARG (h); - - if (*s == '-') { - neg = 1; - s++; - } - while (*s >= '0' && *s <= '9') { - d = (d * 10) + *s - '0'; - s++; - } - if (*s == '.') { - s++; - e = 10; - while (*s >= '0' && *s <= '9') { - d += (*s - '0') / (e * 1.0); - e *= 10; - s++; - } - } - if (*s == 'e' || *s == 'E') { - s++; - if (*s == '-') { - negexp = 1; - s++; - } else if (*s == '+') - s++; - e = 0; - while (*s >= '0' && *s <= '9') { - e = (e * 10) + *s - '0'; - s++; - } - if (e > 0) { - for (k = 1; e > 0; k *= 10, e--); - if (negexp) - d /= k; - else - d *= k; - } - } - - if (neg) d *= -1.0; - - return d; -} - -/* - * Convert (some) escaped characters into their ascii values - */ -static char -idl_escape_reader( - char *str -) -{ - if (str[0] != '\\') { - return str[0]; - } - - switch (str[1]) { - case 'n': - return '\n'; - case 't': - return '\t'; - case 'v': - return '\v'; - case 'b': - return '\b'; - case 'r': - return '\r'; - case 'f': - return '\f'; - case 'a': - return '\a'; - case '\\': - return '\\'; - case '\?': - return '?'; - case '\'': - return '\''; - case '"': - return '"'; - case 'x': - { - int i; - // hex value - for (i = 2; str[i] != '\0' && isxdigit(str[i]); i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[2], 16); - str[i] = save; - return out; - } - break; - default: - // check for octal value - if (str[1] >= '0' && str[1] <= '7') { - int i; - for (i = 1; str[i] >= '0' && str[i] <= '7'; i++) { - continue; - } - char save = str[i]; - str[i] = '\0'; - char out = (char)idl_atoi(&str[1], 8); - str[i] = save; - return out; - } else { - return str[1] - 'a'; - } - break; - } -} diff --git a/TAO/TAO_IDL/fe/y.tab.cpp b/TAO/TAO_IDL/fe/y.tab.cpp deleted file mode 100644 index c7c17a6d619..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.cpp +++ /dev/null @@ -1,3309 +0,0 @@ -// $Id$ -# line 74 "fe/idl.tao_yy" -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include - -#if (defined(apollo) || defined(hpux)) && defined(__cplusplus) -extern "C" int tao_yywrap(); -#endif // (defined(apollo) || defined(hpux)) && defined(__cplusplus) - -void tao_yyerror (const char *); -int tao_yylex (void); -extern "C" int tao_yywrap (void); -extern char tao_yytext[]; -extern int tao_yyleng; -#define TAO_YYDEBUG_LEXER_TEXT (tao_yytext[tao_yyleng] = '\0', tao_yytext) -// Force the pretty debugging code to compile. -#define TAO_YYDEBUG 1 - -# line 97 "fe/idl.tao_yy" -typedef union -#ifdef __cplusplus - TAO_YYSTYPE -#endif - { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} TAO_YYSTYPE; -# define IDENTIFIER 257 -# define IDL_CONST 258 -# define IDL_MODULE 259 -# define IDL_INTERFACE 260 -# define IDL_TYPEDEF 261 -# define IDL_LONG 262 -# define IDL_SHORT 263 -# define IDL_UNSIGNED 264 -# define IDL_DOUBLE 265 -# define IDL_FLOAT 266 -# define IDL_CHAR 267 -# define IDL_WCHAR 268 -# define IDL_OCTET 269 -# define IDL_BOOLEAN 270 -# define IDL_ANY 271 -# define IDL_STRUCT 272 -# define IDL_UNION 273 -# define IDL_SWITCH 274 -# define IDL_ENUM 275 -# define IDL_SEQUENCE 276 -# define IDL_STRING 277 -# define IDL_WSTRING 278 -# define IDL_EXCEPTION 279 -# define IDL_CASE 280 -# define IDL_DEFAULT 281 -# define IDL_READONLY 282 -# define IDL_ATTRIBUTE 283 -# define IDL_ONEWAY 284 -# define IDL_IDEMPOTENT 285 -# define IDL_VOID 286 -# define IDL_IN 287 -# define IDL_OUT 288 -# define IDL_INOUT 289 -# define IDL_RAISES 290 -# define IDL_CONTEXT 291 -# define IDL_NATIVE 292 -# define IDL_INTEGER_LITERAL 293 -# define IDL_STRING_LITERAL 294 -# define IDL_CHARACTER_LITERAL 295 -# define IDL_FLOATING_PT_LITERAL 296 -# define IDL_TRUETOK 297 -# define IDL_FALSETOK 298 -# define IDL_SCOPE_DELIMITOR 299 -# define IDL_LEFT_SHIFT 300 -# define IDL_RIGHT_SHIFT 301 - -#ifdef __STDC__ -#include -#include -#else -#include -#include -#endif - - -#ifdef __cplusplus - -#ifndef tao_yyerror - void tao_yyerror(const char *); -#endif - -#ifndef tao_yylex -#ifdef __EXTERN_C__ - extern "C" { int tao_yylex(void); } -#else - int tao_yylex(void); -#endif -#endif - int tao_yyparse(void); - -#endif -#define tao_yyclearin tao_yychar = -1 -#define tao_yyerrok tao_yyerrflag = 0 -extern int tao_yychar; -extern int tao_yyerrflag; -TAO_YYSTYPE tao_yylval; -TAO_YYSTYPE tao_yyval; -typedef int tao_yytabelem; -#ifndef TAO_YYMAXDEPTH -#define TAO_YYMAXDEPTH 150 -#endif -#if TAO_YYMAXDEPTH > 0 -int tao_yy_tao_yys[TAO_YYMAXDEPTH], *tao_yys = tao_yy_tao_yys; -TAO_YYSTYPE tao_yy_tao_yyv[TAO_YYMAXDEPTH], *tao_yyv = tao_yy_tao_yyv; -#else /* user does initial allocation */ -int *tao_yys; -TAO_YYSTYPE *tao_yyv; -#endif -static int tao_yymaxdepth = TAO_YYMAXDEPTH; -# define TAO_YYERRCODE 256 - -# line 2279 "fe/idl.tao_yy" - -/* programs */ - -/* - * ??? - */ -int -tao_yywrap() -{ - return 1; -} - -/* - * Report an error situation discovered in a production - * - * This does not do anything since we report all error situations through - * idl_global->err() operations - */ -void -tao_yyerror(const char *) -{ -} -tao_yytabelem tao_yyexca[] ={ --1, 0, - 0, 3, - -2, 0, --1, 1, - 0, -1, - -2, 0, --1, 3, - 0, 3, - 125, 3, - -2, 0, --1, 24, - 123, 32, - -2, 57, --1, 134, - 91, 229, - -2, 138, --1, 149, - 257, 254, - 262, 254, - 263, 254, - 264, 254, - 265, 254, - 266, 254, - 267, 254, - 268, 254, - 269, 254, - 270, 254, - 271, 254, - 277, 254, - 283, 241, - 286, 254, - 299, 254, - 125, 25, - -2, 0, --1, 181, - 125, 3, - -2, 0, --1, 222, - 125, 245, - -2, 0, --1, 269, - 125, 161, - -2, 0, --1, 319, - 41, 257, - -2, 259, --1, 357, - 125, 184, - -2, 0, - }; -# define TAO_YYNPROD 286 -# define TAO_YYLAST 528 -tao_yytabelem tao_yyact[]={ - - 72, 131, 347, 331, 344, 57, 167, 155, 128, 241, - 70, 230, 132, 207, 208, 35, 226, 110, 393, 388, - 333, 334, 335, 352, 328, 239, 147, 34, 349, 348, - 130, 112, 118, 119, 113, 112, 141, 36, 36, 101, - 59, 103, 104, 105, 100, 227, 36, 108, 98, 169, - 54, 78, 87, 88, 76, 77, 79, 80, 82, 81, - 83, 20, 21, 36, 22, 89, 90, 91, 78, 87, - 88, 76, 77, 79, 80, 82, 81, 83, 20, 21, - 73, 22, 89, 90, 91, 231, 305, 36, 73, 102, - 201, 346, 78, 87, 88, 76, 77, 79, 80, 82, - 81, 83, 162, 222, 160, 73, 89, 90, 91, 161, - 134, 154, 137, 36, 129, 349, 348, 159, 301, 87, - 88, 67, 143, 79, 80, 82, 81, 158, 2, 73, - 157, 22, 26, 36, 265, 6, 5, 153, 78, 87, - 88, 76, 77, 79, 80, 82, 81, 83, 55, 169, - 66, 367, 164, 90, 165, 73, 302, 291, 290, 95, - 36, 289, 242, 232, 204, 78, 87, 88, 76, 77, - 79, 80, 82, 81, 83, 73, 65, 217, 62, 13, - 90, 63, 13, 325, 4, 59, 36, 148, 96, 59, - 163, 78, 87, 88, 76, 77, 79, 80, 82, 81, - 243, 245, 73, 146, 145, 244, 90, 91, 192, 144, - 15, 106, 205, 10, 94, 312, 202, 263, 262, 93, - 250, 114, 221, 142, 20, 21, 117, 22, 73, 59, - 116, 16, 384, 371, 195, 166, 196, 197, 9, 115, - 15, 19, 25, 10, 14, 313, 61, 12, 134, 284, - 12, 176, 177, 283, 20, 21, 293, 22, 280, 60, - 11, 16, 279, 11, 278, 277, 36, 276, 275, 52, - 51, 134, 288, 50, 14, 49, 59, 48, 47, 300, - 386, 373, 45, 391, 213, 189, 188, 243, 245, 211, - 354, 304, 244, 209, 212, 210, 326, 303, 199, 198, - 389, 292, 170, 171, 172, 173, 174, 175, 73, 383, - 223, 35, 254, 255, 258, 259, 260, 225, 340, 256, - 257, 315, 329, 317, 253, 314, 261, 220, 13, 269, - 375, 353, 319, 252, 187, 251, 228, 206, 35, 285, - 64, 71, 392, 382, 363, 364, 339, 366, 243, 245, - 350, 342, 355, 244, 365, 214, 215, 216, 341, 330, - 13, 286, 368, 372, 324, 59, 36, 134, 378, 377, - 374, 129, 323, 376, 338, 370, 322, 318, 97, 99, - 311, 134, 385, 282, 266, 180, 122, 38, 310, 281, - 306, 249, 152, 219, 297, 140, 12, 86, 218, 139, - 85, 178, 170, 171, 172, 173, 174, 175, 73, 11, - 120, 203, 138, 309, 274, 273, 229, 184, 126, 42, - 380, 381, 362, 298, 361, 359, 379, 358, 12, 357, - 356, 343, 336, 320, 308, 272, 183, 125, 41, 271, - 307, 11, 270, 268, 224, 182, 124, 40, 337, 296, - 247, 299, 109, 53, 295, 33, 264, 179, 121, 37, - 136, 111, 246, 238, 237, 191, 236, 190, 235, 234, - 233, 186, 107, 46, 185, 149, 127, 43, 18, 17, - 267, 181, 123, 39, 32, 31, 8, 30, 7, 29, - 28, 27, 3, 1, 24, 193, 133, 194, 332, 75, - 74, 68, 92, 369, 168, 156, 287, 23, 321, 316, - 151, 360, 345, 248, 200, 327, 44, 150, 390, 387, - 351, 84, 240, 135, 294, 69, 58, 56 }; -tao_yytabelem tao_yypact[]={ - - -18,-10000000,-10000000, -18,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000, -220,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000, 224,-10000000,-10000000, 219, 218, 216, - 214, 211, 210, -194,-10000000,-10000000,-10000000, -71, -220, -168, - -220, -220, -220, 88,-10000000,-10000000, -220,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -282, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -231,-10000000, --10000000,-10000000,-10000000,-10000000, 177, 170, 166,-10000000, -230,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, - -282,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -219,-10000000, -220, --10000000, -220,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -226,-10000000, - 163, -220, 86, 81, 80, -248, 64,-10000000,-10000000, -282, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -220,-10000000, 109, 109, - 109,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -48, - 255, 254, 125,-10000000,-10000000,-10000000, 40, 118, 299, -287, - 250, 247,-10000000,-10000000, 9, 9, 9, -282,-10000000, 109, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, -170, 161, --10000000, -18, -211, 296, -172, 38,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000, -258, -124,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000, 158, 109, 109, 109, 109, 109, 109, - 109, 109, 109, 109,-10000000,-10000000,-10000000, 285, 156, 155, --10000000,-10000000, -211,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000, 209, 208, 206, 205, 203, 199,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000, -282, -219, -220, 125, 109, --10000000, 118, 299, -287, 250, 250, 247, 247,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000, 109,-10000000, 36, 33, 32, -211, - -220, 197, -144, 31, 253,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000, -97, -171, -282,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, - -282, -227,-10000000,-10000000,-10000000,-10000000, 122, 186, 284, -172, - -220, 292,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, - 60, 252, -266, 281, -267,-10000000,-10000000,-10000000,-10000000,-10000000, - 277,-10000000,-10000000,-10000000,-10000000,-10000000, -165, -220, -268, 291, --10000000, 246, -97,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000, 26, -165, -194, 174, - -252, 223, 109, 290, -219, -267, -220,-10000000,-10000000,-10000000, --10000000,-10000000,-10000000,-10000000,-10000000,-10000000, 268,-10000000,-10000000, 173, - -220, 222, -275,-10000000,-10000000,-10000000,-10000000, 259,-10000000,-10000000, - 239,-10000000, -276,-10000000 }; -tao_yytabelem tao_yypgo[]={ - - 0, 16, 148, 527, 526, 525, 10, 259, 178, 524, - 246, 523, 522, 521, 341, 9, 6, 520, 519, 518, - 8, 517, 516, 515, 514, 513, 512, 511, 30, 510, - 509, 508, 507, 506, 7, 505, 130, 127, 117, 104, - 109, 102, 190, 504, 111, 90, 2, 503, 502, 181, - 176, 150, 340, 501, 500, 499, 5, 121, 498, 497, - 1, 12, 496, 495, 494, 0, 184, 493, 128, 492, - 491, 136, 490, 135, 489, 488, 487, 486, 485, 484, - 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, - 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, - 463, 462, 461, 460, 459, 458, 457, 456, 455, 453, - 452, 450, 448, 447, 446, 445, 444, 443, 134, 103, - 442, 440, 439, 438, 437, 436, 435, 434, 433, 432, - 431, 430, 4, 429, 427, 426, 425, 424, 422, 421, - 420, 419, 418, 417, 416, 415, 11, 414, 413, 412, - 411, 410, 401, 400, 399, 398, 397, 395, 393, 392, - 391, 390, 389, 388, 387, 386, 385, 384, 383, 380, - 377, 376, 374, 372, 364, 359, 3, 358, 354, 351, - 347, 346, 345, 344, 343, 342 }; -tao_yytabelem tao_yyr1[]={ - - 0, 67, 68, 68, 70, 69, 72, 69, 74, 69, - 76, 69, 78, 69, 79, 69, 80, 81, 82, 83, - 77, 75, 75, 86, 87, 89, 84, 90, 64, 32, - 91, 22, 22, 88, 88, 93, 92, 94, 92, 95, - 92, 97, 92, 99, 92, 100, 92, 20, 101, 21, - 21, 16, 102, 16, 103, 16, 65, 85, 104, 105, - 106, 107, 71, 48, 48, 48, 48, 48, 48, 48, - 48, 33, 34, 35, 35, 36, 36, 37, 37, 38, - 38, 38, 39, 39, 39, 40, 40, 40, 40, 41, - 41, 41, 41, 42, 42, 42, 43, 43, 43, 43, - 43, 43, 44, 108, 66, 66, 66, 66, 66, 110, - 109, 1, 1, 2, 2, 2, 56, 56, 56, 56, - 56, 56, 4, 4, 4, 3, 3, 3, 28, 111, - 29, 29, 60, 60, 30, 112, 31, 31, 61, 62, - 49, 49, 54, 54, 54, 55, 55, 55, 52, 52, - 52, 50, 50, 57, 51, 53, 113, 114, 115, 117, - 7, 116, 119, 119, 120, 121, 118, 122, 118, 123, - 124, 125, 126, 127, 128, 129, 131, 10, 9, 9, - 9, 9, 9, 9, 130, 133, 133, 134, 135, 132, - 136, 132, 26, 27, 27, 137, 46, 138, 139, 46, - 140, 47, 141, 142, 143, 145, 8, 144, 148, 147, - 147, 146, 149, 150, 5, 5, 151, 152, 13, 154, - 155, 6, 6, 153, 157, 158, 14, 14, 156, 159, - 11, 24, 25, 25, 160, 161, 45, 162, 163, 96, - 63, 63, 164, 165, 166, 167, 73, 168, 169, 171, - 172, 98, 59, 59, 59, 12, 12, 173, 170, 174, - 170, 175, 178, 177, 177, 179, 180, 176, 15, 15, - 15, 58, 58, 58, 181, 182, 23, 23, 183, 184, - 17, 17, 18, 185, 19, 19 }; -tao_yytabelem tao_yyr2[]={ - - 0, 2, 4, 0, 1, 7, 1, 7, 1, 7, - 1, 7, 1, 7, 1, 7, 1, 1, 1, 1, - 19, 2, 2, 1, 1, 1, 15, 1, 7, 5, - 1, 7, 1, 4, 0, 1, 7, 1, 7, 1, - 7, 1, 7, 1, 7, 1, 7, 5, 1, 9, - 1, 3, 1, 7, 1, 9, 3, 3, 1, 1, - 1, 1, 19, 2, 2, 2, 2, 2, 3, 3, - 3, 2, 2, 2, 7, 2, 7, 2, 7, 2, - 7, 7, 2, 7, 7, 2, 7, 7, 7, 2, - 5, 5, 5, 3, 2, 7, 3, 3, 3, 3, - 3, 3, 3, 1, 7, 3, 3, 3, 5, 1, - 7, 2, 2, 3, 2, 3, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 5, 1, - 9, 1, 2, 2, 5, 1, 9, 1, 3, 3, - 2, 2, 3, 5, 3, 5, 7, 5, 3, 3, - 5, 3, 3, 3, 3, 3, 1, 1, 1, 1, - 19, 4, 4, 0, 1, 1, 11, 1, 7, 1, - 1, 1, 1, 1, 1, 1, 1, 35, 3, 3, - 3, 3, 2, 3, 4, 4, 0, 1, 1, 11, - 1, 7, 5, 5, 1, 1, 7, 1, 1, 11, - 1, 7, 1, 1, 1, 1, 19, 4, 1, 8, - 0, 3, 1, 1, 13, 5, 1, 1, 11, 1, - 1, 13, 3, 3, 1, 1, 13, 3, 3, 1, - 7, 5, 5, 1, 1, 1, 11, 1, 1, 13, - 3, 1, 1, 1, 1, 1, 19, 1, 1, 1, - 1, 21, 3, 3, 1, 2, 3, 1, 7, 1, - 9, 4, 1, 8, 0, 1, 1, 11, 3, 2, - 3, 3, 3, 3, 1, 1, 13, 1, 1, 1, - 13, 1, 5, 1, 9, 1 }; -tao_yytabelem tao_yychk[]={ - --10000000, -67, -68, -69, -66, -71, -73, -75, -77, 256, - 261, -7, -10, -8, 292, 258, 279, -84, -85, 259, - 272, 273, 275, -32, -64, 260, -68, -70, -72, -74, - -76, -78, -79, -108, -61, -65, 257, -104, -164, -80, - -113, -123, -141, -86, -22, 58, -90, 59, 59, 59, - 59, 59, 59, -109, -1, -2, -3, -56, -4, -16, - -7, -10, -8, -49, -52, -50, -51, -57, -53, -5, - -6, -14, -65, 299, -54, -55, 265, 266, 262, 267, - 268, 270, 269, 271, -13, -153, -156, 263, 264, 276, - 277, 278, -48, -49, -50, -57, -51, -52, -6, -14, - -16, -65, 257, -65, -65, -65, 123, -91, -65, -110, - 299, -102, 262, 265, 44, 62, 60, 60, 262, 263, - -151, -105, -165, -81, -114, -124, -142, -87, -20, -16, - -28, -60, -61, -62, -65, -11, -103, -65, -149, -154, - -157, 262, 60, -65, 123, 123, 123, 274, 123, -88, - -21, -29, -159, -65, -44, -34, -35, -36, -37, -38, - -39, -40, -41, -42, 43, 45, 126, -16, -43, 40, - 293, 294, 295, 296, 297, 298, -44, -44, -152, -106, - -166, -82, -115, -125, -143, -89, -92, -66, -71, -73, - -96, -98, 256, -63, -59, 282, 284, 285, 44, 44, - -24, -45, 91, -150, 124, 94, 38, 300, 301, 43, - 45, 42, 47, 37, -42, -42, -42, -34, -155, -158, - -2, 61, -119, -68, -116, -118, -1, 256, 40, -144, - -146, 257, 125, -93, -94, -95, -97, -99, -100, 283, - -12, -15, 286, -56, -6, -16, -101, -111, -25, -160, - 62, -36, -37, -38, -39, -39, -40, -40, -41, -41, - -41, 41, 62, 62, -107, -118, -167, -83, -117, -119, - -120, -122, -126, -145, -147, 59, 59, 59, 59, 59, - 59, -162, -168, -16, -60, -45, -44, -33, -34, 125, - 125, 125, -28, 59, -9, -49, -50, -57, -51, -8, - -16, 262, 125, 44, -15, 257, -161, -121, -127, -148, - -163, -169, 93, 59, 41, -146, -30, -61, -170, 40, - -128, -31, -171, -173, -174, 123, 44, -23, 290, 41, - -175, -176, -58, 287, 288, 289, -129, -112, -172, -181, - 41, -177, -179, -130, -132, -26, 256, -46, 281, 280, - -61, -17, 291, 40, 44, -15, -131, -133, -134, -136, - -27, -137, -138, -183, -182, -178, -180, 125, -132, -47, - -1, 59, -46, 58, -34, 40, -20, -176, -60, -135, - -140, -139, -184, 41, 59, -60, 58, -18, 294, 41, - -19, 44, -185, 294 }; -tao_yytabelem tao_yydef[]={ - - -2, -2, 1, -2, 4, 6, 8, 10, 12, 14, - 103, 105, 106, 107, 0, 58, 242, 21, 22, 16, - 156, 169, 202, 23, -2, 27, 2, 0, 0, 0, - 0, 0, 0, 0, 108, 138, 56, 0, 0, 0, - 0, 0, 0, 0, 29, 30, 0, 5, 7, 9, - 11, 13, 15, 104, 109, 111, 112, 113, 114, 115, - 125, 126, 127, 116, 117, 118, 119, 120, 121, 122, - 123, 124, 51, 52, 140, 141, 148, 149, 142, 151, - 152, 154, 153, 155, 0, 222, 227, 144, 0, 216, - 223, 228, 59, 63, 64, 65, 66, 67, 68, 69, - 70, 243, 17, 157, 170, 203, 24, 0, 28, 0, - 54, 0, 143, 150, 212, 215, 219, 224, 145, 147, - 0, 0, 0, 0, 0, 0, 0, 34, 31, 50, - 110, 131, 132, 133, -2, 139, 0, 53, 0, 0, - 0, 146, 217, 60, 244, 18, 158, 171, 204, -2, - 47, 128, 0, 55, 213, 102, 72, 73, 75, 77, - 79, 82, 85, 89, 0, 0, 0, 93, 94, 0, - 96, 97, 98, 99, 100, 101, 220, 225, 0, 0, - 163, -2, 0, 0, 0, 0, 33, 35, 37, 39, - 41, 43, 45, 0, 0, 240, 252, 253, 48, 129, - 230, 233, 234, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 90, 91, 92, 0, 0, 0, - 218, 61, -2, 19, 159, 163, 164, 167, 172, 205, - 210, 211, 26, 0, 0, 0, 0, 0, 0, 237, - 247, 255, 256, 268, 269, 270, 0, 0, 231, 0, - 214, 74, 76, 78, 80, 81, 83, 84, 86, 87, - 88, 95, 221, 226, 0, 162, 0, 0, 0, -2, - 0, 0, 0, 0, 207, 36, 38, 40, 42, 44, - 46, 0, 0, 49, 130, 232, 235, 62, 71, 246, - 20, 160, 165, 168, 173, 178, 179, 180, 181, 182, - 183, 142, 206, 208, 238, 248, 0, 0, 0, 0, - 0, 0, 236, 166, 174, 209, 239, 137, 249, -2, - 0, 134, 277, 0, 0, 175, 135, 250, 274, 258, - 0, 264, 265, 271, 272, 273, 0, 0, 281, 0, - 260, 261, 0, 176, 186, 187, 190, 194, 195, 197, - 136, 251, 278, 275, 262, 266, 0, -2, 0, 0, - 192, 0, 0, 0, 0, 0, 0, 177, 185, 188, - 200, 191, 193, 196, 198, 279, 0, 263, 267, 0, - 0, 0, 0, 276, 189, 201, 199, 0, 285, 280, - 282, 283, 0, 284 }; -typedef struct -#ifdef __cplusplus - tao_yytoktype -#endif -{ char *t_name; int t_val; } tao_yytoktype; -#ifndef TAO_YYDEBUG -# define TAO_YYDEBUG 0 /* don't allow debugging */ -#endif - -#if TAO_YYDEBUG - -tao_yytoktype tao_yytoks[] = -{ - {"IDENTIFIER", 257}, - {"IDL_CONST", 258}, - {"IDL_MODULE", 259}, - {"IDL_INTERFACE", 260}, - {"IDL_TYPEDEF", 261}, - {"IDL_LONG", 262}, - {"IDL_SHORT", 263}, - {"IDL_UNSIGNED", 264}, - {"IDL_DOUBLE", 265}, - {"IDL_FLOAT", 266}, - {"IDL_CHAR", 267}, - {"IDL_WCHAR", 268}, - {"IDL_OCTET", 269}, - {"IDL_BOOLEAN", 270}, - {"IDL_ANY", 271}, - {"IDL_STRUCT", 272}, - {"IDL_UNION", 273}, - {"IDL_SWITCH", 274}, - {"IDL_ENUM", 275}, - {"IDL_SEQUENCE", 276}, - {"IDL_STRING", 277}, - {"IDL_WSTRING", 278}, - {"IDL_EXCEPTION", 279}, - {"IDL_CASE", 280}, - {"IDL_DEFAULT", 281}, - {"IDL_READONLY", 282}, - {"IDL_ATTRIBUTE", 283}, - {"IDL_ONEWAY", 284}, - {"IDL_IDEMPOTENT", 285}, - {"IDL_VOID", 286}, - {"IDL_IN", 287}, - {"IDL_OUT", 288}, - {"IDL_INOUT", 289}, - {"IDL_RAISES", 290}, - {"IDL_CONTEXT", 291}, - {"IDL_NATIVE", 292}, - {"IDL_INTEGER_LITERAL", 293}, - {"IDL_STRING_LITERAL", 294}, - {"IDL_CHARACTER_LITERAL", 295}, - {"IDL_FLOATING_PT_LITERAL", 296}, - {"IDL_TRUETOK", 297}, - {"IDL_FALSETOK", 298}, - {"IDL_SCOPE_DELIMITOR", 299}, - {"IDL_LEFT_SHIFT", 300}, - {"IDL_RIGHT_SHIFT", 301}, - {"-unknown-", -1} /* ends search */ -}; - -char * tao_yyreds[] = -{ - "-no such reduction-", - "start : definitions", - "definitions : definition definitions", - "definitions : /* empty */", - "definition : type_dcl", - "definition : type_dcl ';'", - "definition : const_dcl", - "definition : const_dcl ';'", - "definition : exception", - "definition : exception ';'", - "definition : interface_def", - "definition : interface_def ';'", - "definition : module", - "definition : module ';'", - "definition : error", - "definition : error ';'", - "module : IDL_MODULE", - "module : IDL_MODULE IDENTIFIER", - "module : IDL_MODULE IDENTIFIER '{'", - "module : IDL_MODULE IDENTIFIER '{' definitions", - "module : IDL_MODULE IDENTIFIER '{' definitions '}'", - "interface_def : interface", - "interface_def : forward", - "interface : interface_header", - "interface : interface_header '{'", - "interface : interface_header '{' exports", - "interface : interface_header '{' exports '}'", - "interface_decl : IDL_INTERFACE", - "interface_decl : IDL_INTERFACE id", - "interface_header : interface_decl inheritance_spec", - "inheritance_spec : ':'", - "inheritance_spec : ':' at_least_one_scoped_name", - "inheritance_spec : /* empty */", - "exports : exports export", - "exports : /* empty */", - "export : type_dcl", - "export : type_dcl ';'", - "export : const_dcl", - "export : const_dcl ';'", - "export : exception", - "export : exception ';'", - "export : attribute", - "export : attribute ';'", - "export : operation", - "export : operation ';'", - "export : error", - "export : error ';'", - "at_least_one_scoped_name : scoped_name scoped_names", - "scoped_names : scoped_names ','", - "scoped_names : scoped_names ',' scoped_name", - "scoped_names : /* empty */", - "scoped_name : id", - "scoped_name : IDL_SCOPE_DELIMITOR", - "scoped_name : IDL_SCOPE_DELIMITOR id", - "scoped_name : scoped_name IDL_SCOPE_DELIMITOR", - "scoped_name : scoped_name IDL_SCOPE_DELIMITOR id", - "id : IDENTIFIER", - "forward : interface_decl", - "const_dcl : IDL_CONST", - "const_dcl : IDL_CONST const_type", - "const_dcl : IDL_CONST const_type id", - "const_dcl : IDL_CONST const_type id '='", - "const_dcl : IDL_CONST const_type id '=' expression", - "const_type : integer_type", - "const_type : char_type", - "const_type : octet_type", - "const_type : boolean_type", - "const_type : floating_pt_type", - "const_type : string_type_spec", - "const_type : wstring_type_spec", - "const_type : scoped_name", - "expression : const_expr", - "const_expr : or_expr", - "or_expr : xor_expr", - "or_expr : or_expr '|' xor_expr", - "xor_expr : and_expr", - "xor_expr : xor_expr '^' and_expr", - "and_expr : shift_expr", - "and_expr : and_expr '&' shift_expr", - "shift_expr : add_expr", - "shift_expr : shift_expr IDL_LEFT_SHIFT add_expr", - "shift_expr : shift_expr IDL_RIGHT_SHIFT add_expr", - "add_expr : mult_expr", - "add_expr : add_expr '+' mult_expr", - "add_expr : add_expr '-' mult_expr", - "mult_expr : unary_expr", - "mult_expr : mult_expr '*' unary_expr", - "mult_expr : mult_expr '/' unary_expr", - "mult_expr : mult_expr '%' unary_expr", - "unary_expr : primary_expr", - "unary_expr : '+' primary_expr", - "unary_expr : '-' primary_expr", - "unary_expr : '~' primary_expr", - "primary_expr : scoped_name", - "primary_expr : literal", - "primary_expr : '(' const_expr ')'", - "literal : IDL_INTEGER_LITERAL", - "literal : IDL_STRING_LITERAL", - "literal : IDL_CHARACTER_LITERAL", - "literal : IDL_FLOATING_PT_LITERAL", - "literal : IDL_TRUETOK", - "literal : IDL_FALSETOK", - "positive_int_expr : const_expr", - "type_dcl : IDL_TYPEDEF", - "type_dcl : IDL_TYPEDEF type_declarator", - "type_dcl : struct_type", - "type_dcl : union_type", - "type_dcl : enum_type", - "type_dcl : IDL_NATIVE simple_declarator", - "type_declarator : type_spec", - "type_declarator : type_spec at_least_one_declarator", - "type_spec : simple_type_spec", - "type_spec : constructed_type_spec", - "simple_type_spec : base_type_spec", - "simple_type_spec : template_type_spec", - "simple_type_spec : scoped_name", - "base_type_spec : integer_type", - "base_type_spec : floating_pt_type", - "base_type_spec : char_type", - "base_type_spec : boolean_type", - "base_type_spec : octet_type", - "base_type_spec : any_type", - "template_type_spec : sequence_type_spec", - "template_type_spec : string_type_spec", - "template_type_spec : wstring_type_spec", - "constructed_type_spec : struct_type", - "constructed_type_spec : union_type", - "constructed_type_spec : enum_type", - "at_least_one_declarator : declarator declarators", - "declarators : declarators ','", - "declarators : declarators ',' declarator", - "declarators : /* empty */", - "declarator : simple_declarator", - "declarator : complex_declarator", - "at_least_one_simple_declarator : simple_declarator simple_declarators", - "simple_declarators : simple_declarators ','", - "simple_declarators : simple_declarators ',' simple_declarator", - "simple_declarators : /* empty */", - "simple_declarator : id", - "complex_declarator : array_declarator", - "integer_type : signed_int", - "integer_type : unsigned_int", - "signed_int : IDL_LONG", - "signed_int : IDL_LONG IDL_LONG", - "signed_int : IDL_SHORT", - "unsigned_int : IDL_UNSIGNED IDL_LONG", - "unsigned_int : IDL_UNSIGNED IDL_LONG IDL_LONG", - "unsigned_int : IDL_UNSIGNED IDL_SHORT", - "floating_pt_type : IDL_DOUBLE", - "floating_pt_type : IDL_FLOAT", - "floating_pt_type : IDL_LONG IDL_DOUBLE", - "char_type : IDL_CHAR", - "char_type : IDL_WCHAR", - "octet_type : IDL_OCTET", - "boolean_type : IDL_BOOLEAN", - "any_type : IDL_ANY", - "struct_type : IDL_STRUCT", - "struct_type : IDL_STRUCT id", - "struct_type : IDL_STRUCT id '{'", - "struct_type : IDL_STRUCT id '{' at_least_one_member", - "struct_type : IDL_STRUCT id '{' at_least_one_member '}'", - "at_least_one_member : member members", - "members : members member", - "members : /* empty */", - "member : type_spec", - "member : type_spec at_least_one_declarator", - "member : type_spec at_least_one_declarator ';'", - "member : error", - "member : error ';'", - "union_type : IDL_UNION", - "union_type : IDL_UNION id", - "union_type : IDL_UNION id IDL_SWITCH", - "union_type : IDL_UNION id IDL_SWITCH '('", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')'", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')' '{'", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')' '{' at_least_one_case_branch", - "union_type : IDL_UNION id IDL_SWITCH '(' switch_type_spec ')' '{' at_least_one_case_branch '}'", - "switch_type_spec : integer_type", - "switch_type_spec : char_type", - "switch_type_spec : octet_type", - "switch_type_spec : boolean_type", - "switch_type_spec : enum_type", - "switch_type_spec : scoped_name", - "at_least_one_case_branch : case_branch case_branches", - "case_branches : case_branches case_branch", - "case_branches : /* empty */", - "case_branch : at_least_one_case_label", - "case_branch : at_least_one_case_label element_spec", - "case_branch : at_least_one_case_label element_spec ';'", - "case_branch : error", - "case_branch : error ';'", - "at_least_one_case_label : case_label case_labels", - "case_labels : case_labels case_label", - "case_labels : /* empty */", - "case_label : IDL_DEFAULT", - "case_label : IDL_DEFAULT ':'", - "case_label : IDL_CASE", - "case_label : IDL_CASE const_expr", - "case_label : IDL_CASE const_expr ':'", - "element_spec : type_spec", - "element_spec : type_spec declarator", - "enum_type : IDL_ENUM", - "enum_type : IDL_ENUM id", - "enum_type : IDL_ENUM id '{'", - "enum_type : IDL_ENUM id '{' at_least_one_enumerator", - "enum_type : IDL_ENUM id '{' at_least_one_enumerator '}'", - "at_least_one_enumerator : enumerator enumerators", - "enumerators : enumerators ','", - "enumerators : enumerators ',' enumerator", - "enumerators : /* empty */", - "enumerator : IDENTIFIER", - "sequence_type_spec : seq_head ','", - "sequence_type_spec : seq_head ',' positive_int_expr", - "sequence_type_spec : seq_head ',' positive_int_expr '>'", - "sequence_type_spec : seq_head '>'", - "seq_head : IDL_SEQUENCE", - "seq_head : IDL_SEQUENCE '<'", - "seq_head : IDL_SEQUENCE '<' simple_type_spec", - "string_type_spec : string_head '<'", - "string_type_spec : string_head '<' positive_int_expr", - "string_type_spec : string_head '<' positive_int_expr '>'", - "string_type_spec : string_head", - "string_head : IDL_STRING", - "wstring_type_spec : wstring_head '<'", - "wstring_type_spec : wstring_head '<' positive_int_expr", - "wstring_type_spec : wstring_head '<' positive_int_expr '>'", - "wstring_type_spec : wstring_head", - "wstring_head : IDL_WSTRING", - "array_declarator : id", - "array_declarator : id at_least_one_array_dim", - "at_least_one_array_dim : array_dim array_dims", - "array_dims : array_dims array_dim", - "array_dims : /* empty */", - "array_dim : '['", - "array_dim : '[' positive_int_expr", - "array_dim : '[' positive_int_expr ']'", - "attribute : opt_readonly IDL_ATTRIBUTE", - "attribute : opt_readonly IDL_ATTRIBUTE param_type_spec", - "attribute : opt_readonly IDL_ATTRIBUTE param_type_spec at_least_one_simple_declarator", - "opt_readonly : IDL_READONLY", - "opt_readonly : /* empty */", - "exception : IDL_EXCEPTION", - "exception : IDL_EXCEPTION id", - "exception : IDL_EXCEPTION id '{'", - "exception : IDL_EXCEPTION id '{' members", - "exception : IDL_EXCEPTION id '{' members '}'", - "operation : opt_op_attribute op_type_spec", - "operation : opt_op_attribute op_type_spec IDENTIFIER", - "operation : opt_op_attribute op_type_spec IDENTIFIER parameter_list", - "operation : opt_op_attribute op_type_spec IDENTIFIER parameter_list opt_raises", - "operation : opt_op_attribute op_type_spec IDENTIFIER parameter_list opt_raises opt_context", - "opt_op_attribute : IDL_ONEWAY", - "opt_op_attribute : IDL_IDEMPOTENT", - "opt_op_attribute : /* empty */", - "op_type_spec : param_type_spec", - "op_type_spec : IDL_VOID", - "parameter_list : '('", - "parameter_list : '(' ')'", - "parameter_list : '('", - "parameter_list : '(' at_least_one_parameter ')'", - "at_least_one_parameter : parameter parameters", - "parameters : parameters ','", - "parameters : parameters ',' parameter", - "parameters : /* empty */", - "parameter : direction", - "parameter : direction param_type_spec", - "parameter : direction param_type_spec declarator", - "param_type_spec : base_type_spec", - "param_type_spec : string_type_spec", - "param_type_spec : scoped_name", - "direction : IDL_IN", - "direction : IDL_OUT", - "direction : IDL_INOUT", - "opt_raises : IDL_RAISES", - "opt_raises : IDL_RAISES '('", - "opt_raises : IDL_RAISES '(' at_least_one_scoped_name ')'", - "opt_raises : /* empty */", - "opt_context : IDL_CONTEXT", - "opt_context : IDL_CONTEXT '('", - "opt_context : IDL_CONTEXT '(' at_least_one_string_literal ')'", - "opt_context : /* empty */", - "at_least_one_string_literal : IDL_STRING_LITERAL string_literals", - "string_literals : string_literals ','", - "string_literals : string_literals ',' IDL_STRING_LITERAL", - "string_literals : /* empty */", -}; -#endif /* TAO_YYDEBUG */ -# line 1 "/usr/ccs/bin/yaccpar" -/* - * Copyright (c) 1993 by Sun Microsystems, Inc. - */ - - -/* -** Skeleton parser driver for yacc output -*/ - -/* -** yacc user known macros and defines -*/ -#define TAO_YYERROR goto tao_yyerrlab -#define TAO_YYACCEPT return(0) -#define TAO_YYABORT return(1) -#define TAO_YYBACKUP( newtoken, newvalue )\ -{\ - if ( tao_yychar >= 0 || ( tao_yyr2[ tao_yytmp ] >> 1 ) != 1 )\ - {\ - tao_yyerror( "syntax error - cannot backup" );\ - goto tao_yyerrlab;\ - }\ - tao_yychar = newtoken;\ - tao_yystate = *tao_yyps;\ - tao_yylval = newvalue;\ - goto tao_yynewstate;\ -} -#define TAO_YYRECOVERING() (!!tao_yyerrflag) -#define TAO_YYNEW(type) malloc(sizeof(type) * tao_yynewmax) -#define TAO_YYCOPY(to, from, type) \ - (type *) memcpy(to, (char *) from, tao_yynewmax * sizeof(type)) -#define TAO_YYENLARGE( from, type) \ - (type *) realloc((char *) from, tao_yynewmax * sizeof(type)) -#ifndef TAO_YYDEBUG -# define TAO_YYDEBUG 1 /* make debugging available */ -#endif - -/* -** user known globals -*/ -int tao_yydebug; /* set to 1 to get debugging */ - -/* -** driver internal defines -*/ -#define TAO_YYFLAG (-10000000) - -/* -** global variables used by the parser -*/ -TAO_YYSTYPE *tao_yypv; /* top of value stack */ -int *tao_yyps; /* top of state stack */ - -int tao_yystate; /* current state */ -int tao_yytmp; /* extra var (lasts between blocks) */ - -int tao_yynerrs; /* number of errors */ -int tao_yyerrflag; /* error recovery flag */ -int tao_yychar; /* current input token number */ - - - -#ifdef TAO_YYNMBCHARS -#define TAO_YYLEX() tao_yycvtok(tao_yylex()) -/* -** tao_yycvtok - return a token if i is a wchar_t value that exceeds 255. -** If i<255, i itself is the token. If i>255 but the neither -** of the 30th or 31st bit is on, i is already a token. -*/ -#if defined(__STDC__) || defined(__cplusplus) -int tao_yycvtok(int i) -#else -int tao_yycvtok(i) int i; -#endif -{ - int first = 0; - int last = TAO_YYNMBCHARS - 1; - int mid; - wchar_t j; - - if(i&0x60000000){/*Must convert to a token. */ - if( tao_yymbchars[last].character < i ){ - return i;/*Giving up*/ - } - while ((last>=first)&&(first>=0)) {/*Binary search loop*/ - mid = (first+last)/2; - j = tao_yymbchars[mid].character; - if( j==i ){/*Found*/ - return tao_yymbchars[mid].tvalue; - }else if( j= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val == tao_yychar ) - break; - } - printf( "%s\n", tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - if ( ++tao_yy_ps >= &tao_yys[ tao_yymaxdepth ] ) /* room on stack? */ - { - /* - ** reallocate and recover. Note that pointers - ** have to be reset, or bad things will happen - */ - int tao_yyps_index = (tao_yy_ps - tao_yys); - int tao_yypv_index = (tao_yy_pv - tao_yyv); - int tao_yypvt_index = (tao_yypvt - tao_yyv); - int tao_yynewmax; -#ifdef TAO_YYEXPAND - tao_yynewmax = TAO_YYEXPAND(tao_yymaxdepth); -#else - tao_yynewmax = 2 * tao_yymaxdepth; /* double table size */ - if (tao_yymaxdepth == TAO_YYMAXDEPTH) /* first time growth */ - { - char *newtao_yys = (char *)TAO_YYNEW(int); - char *newtao_yyv = (char *)TAO_YYNEW(TAO_YYSTYPE); - if (newtao_yys != 0 && newtao_yyv != 0) - { - tao_yys = TAO_YYCOPY(newtao_yys, tao_yys, int); - tao_yyv = TAO_YYCOPY(newtao_yyv, tao_yyv, TAO_YYSTYPE); - } - else - tao_yynewmax = 0; /* failed */ - } - else /* not first time */ - { - tao_yys = TAO_YYENLARGE(tao_yys, int); - tao_yyv = TAO_YYENLARGE(tao_yyv, TAO_YYSTYPE); - if (tao_yys == 0 || tao_yyv == 0) - tao_yynewmax = 0; /* failed */ - } -#endif - if (tao_yynewmax <= tao_yymaxdepth) /* tables not expanded */ - { - tao_yyerror( "yacc stack overflow" ); - TAO_YYABORT; - } - tao_yymaxdepth = tao_yynewmax; - - tao_yy_ps = tao_yys + tao_yyps_index; - tao_yy_pv = tao_yyv + tao_yypv_index; - tao_yypvt = tao_yyv + tao_yypvt_index; - } - *tao_yy_ps = tao_yy_state; - *++tao_yy_pv = tao_yyval; - - /* - ** we have a new state - find out what to do - */ - tao_yy_newstate: - if ( ( tao_yy_n = tao_yypact[ tao_yy_state ] ) <= TAO_YYFLAG ) - goto tao_yydefault; /* simple state */ -#if TAO_YYDEBUG - /* - ** if debugging, need to mark whether new token grabbed - */ - tao_yytmp = tao_yychar < 0; -#endif - if ( ( tao_yychar < 0 ) && ( ( tao_yychar = TAO_YYLEX() ) < 0 ) ) - tao_yychar = 0; /* reached EOF */ -#if TAO_YYDEBUG - if ( tao_yydebug && tao_yytmp ) - { - register int tao_yy_i; - - printf( "Received token " ); - if ( tao_yychar == 0 ) - printf( "end-of-file\n" ); - else if ( tao_yychar < 0 ) - printf( "-none-\n" ); - else - { - for ( tao_yy_i = 0; tao_yytoks[tao_yy_i].t_val >= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val == tao_yychar ) - break; - } - printf( "%s\n", tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - if ( ( ( tao_yy_n += tao_yychar ) < 0 ) || ( tao_yy_n >= TAO_YYLAST ) ) - goto tao_yydefault; - if ( tao_yychk[ tao_yy_n = tao_yyact[ tao_yy_n ] ] == tao_yychar ) /*valid shift*/ - { - tao_yychar = -1; - tao_yyval = tao_yylval; - tao_yy_state = tao_yy_n; - if ( tao_yyerrflag > 0 ) - tao_yyerrflag--; - goto tao_yy_stack; - } - - tao_yydefault: - if ( ( tao_yy_n = tao_yydef[ tao_yy_state ] ) == -2 ) - { -#if TAO_YYDEBUG - tao_yytmp = tao_yychar < 0; -#endif - if ( ( tao_yychar < 0 ) && ( ( tao_yychar = TAO_YYLEX() ) < 0 ) ) - tao_yychar = 0; /* reached EOF */ -#if TAO_YYDEBUG - if ( tao_yydebug && tao_yytmp ) - { - register int tao_yy_i; - - printf( "Received token " ); - if ( tao_yychar == 0 ) - printf( "end-of-file\n" ); - else if ( tao_yychar < 0 ) - printf( "-none-\n" ); - else - { - for ( tao_yy_i = 0; - tao_yytoks[tao_yy_i].t_val >= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val - == tao_yychar ) - { - break; - } - } - printf( "%s\n", tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - /* - ** look through exception table - */ - { - register int *tao_yyxi = tao_yyexca; - - while ( ( *tao_yyxi != -1 ) || - ( tao_yyxi[1] != tao_yy_state ) ) - { - tao_yyxi += 2; - } - while ( ( *(tao_yyxi += 2) >= 0 ) && - ( *tao_yyxi != tao_yychar ) ) - ; - if ( ( tao_yy_n = tao_yyxi[1] ) < 0 ) - TAO_YYACCEPT; - } - } - - /* - ** check for syntax error - */ - if ( tao_yy_n == 0 ) /* have an error */ - { - /* no worry about speed here! */ - switch ( tao_yyerrflag ) - { - case 0: /* new error */ - tao_yyerror( "syntax error" ); - goto skip_init; - tao_yyerrlab: - /* - ** get globals into registers. - ** we have a user generated syntax type error - */ - tao_yy_pv = tao_yypv; - tao_yy_ps = tao_yyps; - tao_yy_state = tao_yystate; - skip_init: - tao_yynerrs++; - /* FALLTHRU */ - case 1: - case 2: /* incompletely recovered error */ - /* try again... */ - tao_yyerrflag = 3; - /* - ** find state where "error" is a legal - ** shift action - */ - while ( tao_yy_ps >= tao_yys ) - { - tao_yy_n = tao_yypact[ *tao_yy_ps ] + TAO_YYERRCODE; - if ( tao_yy_n >= 0 && tao_yy_n < TAO_YYLAST && - tao_yychk[tao_yyact[tao_yy_n]] == TAO_YYERRCODE) { - /* - ** simulate shift of "error" - */ - tao_yy_state = tao_yyact[ tao_yy_n ]; - goto tao_yy_stack; - } - /* - ** current state has no shift on - ** "error", pop stack - */ -#if TAO_YYDEBUG -# define _POP_ "Error recovery pops state %d, uncovers state %d\n" - if ( tao_yydebug ) - printf( _POP_, *tao_yy_ps, - tao_yy_ps[-1] ); -# undef _POP_ -#endif - tao_yy_ps--; - tao_yy_pv--; - } - /* - ** there is no state on stack with "error" as - ** a valid shift. give up. - */ - TAO_YYABORT; - case 3: /* no shift yet; eat a token */ -#if TAO_YYDEBUG - /* - ** if debugging, look up token in list of - ** pairs. 0 and negative shouldn't occur, - ** but since timing doesn't matter when - ** debugging, it doesn't hurt to leave the - ** tests here. - */ - if ( tao_yydebug ) - { - register int tao_yy_i; - - printf( "Error recovery discards " ); - if ( tao_yychar == 0 ) - printf( "token end-of-file\n" ); - else if ( tao_yychar < 0 ) - printf( "token -none-\n" ); - else - { - for ( tao_yy_i = 0; - tao_yytoks[tao_yy_i].t_val >= 0; - tao_yy_i++ ) - { - if ( tao_yytoks[tao_yy_i].t_val - == tao_yychar ) - { - break; - } - } - printf( "token %s\n", - tao_yytoks[tao_yy_i].t_name ); - } - } -#endif /* TAO_YYDEBUG */ - if ( tao_yychar == 0 ) /* reached EOF. quit */ - TAO_YYABORT; - tao_yychar = -1; - goto tao_yy_newstate; - } - }/* end if ( tao_yy_n == 0 ) */ - /* - ** reduction by production tao_yy_n - ** put stack tops, etc. so things right after switch - */ -#if TAO_YYDEBUG - /* - ** if debugging, print the string that is the user's - ** specification of the reduction which is just about - ** to be done. - */ - if ( tao_yydebug ) - printf( "Reduce by (%d) \"%s\"\n", - tao_yy_n, tao_yyreds[ tao_yy_n ] ); -#endif - tao_yytmp = tao_yy_n; /* value to switch over */ - tao_yypvt = tao_yy_pv; /* $vars top of value stack */ - /* - ** Look in goto table for next state - ** Sorry about using tao_yy_state here as temporary - ** register variable, but why not, if it works... - ** If tao_yyr2[ tao_yy_n ] doesn't have the low order bit - ** set, then there is no action to be done for - ** this reduction. So, no saving & unsaving of - ** registers done. The only difference between the - ** code just after the if and the body of the if is - ** the goto tao_yy_stack in the body. This way the test - ** can be made before the choice of what to do is needed. - */ - { - /* length of production doubled with extra bit */ - register int tao_yy_len = tao_yyr2[ tao_yy_n ]; - - if ( !( tao_yy_len & 01 ) ) - { - tao_yy_len >>= 1; - tao_yyval = ( tao_yy_pv -= tao_yy_len )[1]; /* $$ = $1 */ - tao_yy_state = tao_yypgo[ tao_yy_n = tao_yyr1[ tao_yy_n ] ] + - *( tao_yy_ps -= tao_yy_len ) + 1; - if ( tao_yy_state >= TAO_YYLAST || - tao_yychk[ tao_yy_state = - tao_yyact[ tao_yy_state ] ] != -tao_yy_n ) - { - tao_yy_state = tao_yyact[ tao_yypgo[ tao_yy_n ] ]; - } - goto tao_yy_stack; - } - tao_yy_len >>= 1; - tao_yyval = ( tao_yy_pv -= tao_yy_len )[1]; /* $$ = $1 */ - tao_yy_state = tao_yypgo[ tao_yy_n = tao_yyr1[ tao_yy_n ] ] + - *( tao_yy_ps -= tao_yy_len ) + 1; - if ( tao_yy_state >= TAO_YYLAST || - tao_yychk[ tao_yy_state = tao_yyact[ tao_yy_state ] ] != -tao_yy_n ) - { - tao_yy_state = tao_yyact[ tao_yypgo[ tao_yy_n ] ]; - } - } - /* save until reenter driver code */ - tao_yystate = tao_yy_state; - tao_yyps = tao_yy_ps; - tao_yypv = tao_yy_pv; - } - /* - ** code supplied by user is placed in this switch - */ - switch( tao_yytmp ) - { - -case 4: -# line 240 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } break; -case 5: -# line 244 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 6: -# line 248 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } break; -case 7: -# line 252 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 8: -# line 256 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } break; -case 9: -# line 260 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 10: -# line 264 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceDeclSeen); - } break; -case 11: -# line 268 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 12: -# line 272 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleDeclSeen); - } break; -case 13: -# line 276 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 14: -# line 280 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 15: -# line 284 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 16: -# line 291 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSeen); - } break; -case 17: -# line 295 "fe/idl.tao_yy" -{ - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE), NULL); - AST_Module *m = NULL; - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleIDSeen); - /* - * Make a new module and add it to the enclosing scope - */ - if (s != NULL) { - m = idl_global->gen()->create_module(n, p); - (void) s->fe_add_module(m); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(m); - } break; -case 18: -# line 316 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSqSeen); - } break; -case 19: -# line 320 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleBodySeen); - } break; -case 20: -# line 324 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleQsSeen); - /* - * Finished with this module - pop it from the scope stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Module* m = AST_Module::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } break; -case 23: -# line 346 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *d = NULL; - AST_Interface *fd = NULL; - - ACE_UNUSED_ARG (v); - - /* - * Make a new interface node and add it to its enclosing scope - */ - if (s != NULL && tao_yypvt[-0].ihval != NULL) { - i = idl_global->gen()->create_interface(tao_yypvt[-0].ihval->interface_name(), - tao_yypvt[-0].ihval->inherits(), - tao_yypvt[-0].ihval->n_inherits(), - p); - if (i != NULL && - (d = s->lookup_by_name(i->name(), I_FALSE)) != NULL) { - /* - * See if we're defining a forward declared interface. - */ - if (d->node_type() == AST_Decl::NT_interface) { - /* - * Narrow to an interface - */ - fd = AST_Interface::narrow_from_decl(d); - /* - * Successful? - */ - if (fd == NULL) { - /* - * Should we give an error here? - */ - } - /* - * If it is a forward declared interface.. - */ - else if (!fd->is_defined()) { - /* - * Check if redefining in same scope - */ - if (fd->defined_in() != s) { - idl_global->err() - ->error3(UTL_Error::EIDL_SCOPE_CONFLICT, - i, - fd, - ScopeAsDecl(s)); - } - /* - * All OK, do the redefinition - */ - else { - fd->set_inherits(tao_yypvt[-0].ihval->inherits()); - fd->set_n_inherits(tao_yypvt[-0].ihval->n_inherits()); - /* - * Update place of definition - */ - fd->set_imported(idl_global->imported()); - fd->set_in_main_file(idl_global->in_main_file()); - fd->set_line(idl_global->lineno()); - fd->set_file_name(idl_global->filename()); - fd->add_pragmas(p); - /* - * Use full definition node - */ - delete i; - i = fd; - } - } - } - } - /* - * Add the interface to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } break; -case 24: -# line 430 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } break; -case 25: -# line 434 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } break; -case 26: -# line 438 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Interface* m = AST_Interface::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } break; -case 27: -# line 455 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSeen); - } break; -case 28: -# line 459 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceIDSeen); - tao_yyval.idval = tao_yypvt[-0].idval; - } break; -case 29: -# line 467 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InheritSpecSeen); - /* - * Create an AST representation of the information in the header - * part of an interface - this representation contains a computed - * list of all interfaces which this interface inherits from, - * recursively - */ - tao_yyval.ihval = new FE_InterfaceHeader(new UTL_ScopedName(tao_yypvt[-1].idval, NULL), tao_yypvt[-0].nlval); - } break; -case 30: -# line 481 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InheritColonSeen); - } break; -case 31: -# line 485 "fe/idl.tao_yy" -{ - tao_yyval.nlval = tao_yypvt[-0].nlval; - } break; -case 32: -# line 489 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } break; -case 35: -# line 501 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } break; -case 36: -# line 505 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 37: -# line 509 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } break; -case 38: -# line 513 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 39: -# line 517 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } break; -case 40: -# line 521 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 41: -# line 525 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrDeclSeen); - } break; -case 42: -# line 529 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 43: -# line 533 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpDeclSeen); - } break; -case 44: -# line 537 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } break; -case 45: -# line 541 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 46: -# line 545 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 47: -# line 553 "fe/idl.tao_yy" -{ - tao_yyval.nlval = new UTL_NameList(tao_yypvt[-1].idlist, tao_yypvt[-0].nlval); - } break; -case 48: -# line 561 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SNListCommaSeen); - } break; -case 49: -# line 565 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopedNameSeen); - - if (tao_yypvt[-3].nlval == NULL) - tao_yyval.nlval = new UTL_NameList(tao_yypvt[-0].idlist, NULL); - else { - tao_yypvt[-3].nlval->nconc(new UTL_NameList(tao_yypvt[-0].idlist, NULL)); - tao_yyval.nlval = tao_yypvt[-3].nlval; - } - } break; -case 50: -# line 576 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } break; -case 51: -# line 583 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyval.idlist = new UTL_IdList(tao_yypvt[-0].idval, NULL); - } break; -case 52: -# line 589 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } break; -case 53: -# line 593 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyval.idlist = new UTL_IdList(new Identifier(tao_yypvt[-2].strval, 1, 0, I_FALSE), - new UTL_IdList(tao_yypvt[-0].idval, NULL)); - } break; -case 54: -# line 601 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } break; -case 55: -# line 605 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yypvt[-3].idlist->nconc(new UTL_IdList(tao_yypvt[-0].idval, NULL)); - tao_yyval.idlist = tao_yypvt[-3].idlist; - } break; -case 56: -# line 614 "fe/idl.tao_yy" -{ - tao_yyval.idval = new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE); - } break; -case 57: -# line 621 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * interface. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_interface_fwd(n, p); - (void) s->fe_add_interface_fwd(f); - } - } break; -case 58: -# line 641 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstSeen); - } break; -case 59: -# line 645 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstTypeSeen); - } break; -case 60: -# line 649 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstIDSeen); - } break; -case 61: -# line 653 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstAssignSeen); - } break; -case 62: -# line 657 "fe/idl.tao_yy" -{ - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-4].idval, NULL); - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Constant *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ConstExprSeen); - /* - * Create a node representing a constant declaration. Store - * it in the enclosing scope - */ - if (tao_yypvt[-0].exval != NULL && s != NULL) { - if (tao_yypvt[-0].exval->coerce(tao_yypvt[-6].etval) == NULL) - idl_global->err()->coercion_error(tao_yypvt[-0].exval, tao_yypvt[-6].etval); - else { - c = - idl_global->gen()->create_constant(tao_yypvt[-6].etval, tao_yypvt[-0].exval, n, p); - (void) s->fe_add_constant(c); - } - } - } break; -case 68: -# line 690 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_string; - } break; -case 69: -# line 694 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_wstring; - } break; -case 70: -# line 698 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *c = NULL; - AST_Typedef *t = NULL; - - /* - * If the constant's type is a scoped name, it must resolve - * to a scalar constant type - */ - if (s != NULL && (d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE)) != NULL) { - /* - * Look through typedefs - */ - while (d->node_type() == AST_Decl::NT_typedef) { - t = AST_Typedef::narrow_from_decl(d); - if (t == NULL) - break; - d = t->base_type(); - } - if (d == NULL) - tao_yyval.etval = AST_Expression::EV_any; - else if (d->node_type() == AST_Decl::NT_pre_defined) { - c = AST_PredefinedType::narrow_from_decl(d); - if (c != NULL) { - tao_yyval.etval = idl_global->PredefinedTypeToExprType(c->pt()); - } else { - tao_yyval.etval = AST_Expression::EV_any; - } - } else - tao_yyval.etval = AST_Expression::EV_any; - } else - tao_yyval.etval = AST_Expression::EV_any; - } break; -case 74: -# line 740 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_or, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 76: -# line 748 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_xor, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 78: -# line 756 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_and, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 80: -# line 764 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_right,tao_yypvt[-2].exval,tao_yypvt[-0].exval); - } break; -case 81: -# line 768 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_left,tao_yypvt[-2].exval,tao_yypvt[-0].exval); - } break; -case 83: -# line 776 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_add, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 84: -# line 780 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_minus,tao_yypvt[-2].exval,tao_yypvt[-0].exval); - } break; -case 86: -# line 788 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_mul, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 87: -# line 792 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_div, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 88: -# line 796 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_mod, tao_yypvt[-2].exval, tao_yypvt[-0].exval); - } break; -case 90: -# line 804 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_u_plus, - tao_yypvt[-0].exval, - NULL); - } break; -case 91: -# line 810 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_u_minus, - tao_yypvt[-0].exval, - NULL); - } break; -case 92: -# line 816 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_bit_neg, - tao_yypvt[-0].exval, - NULL); - } break; -case 93: -# line 825 "fe/idl.tao_yy" -{ - /* - * An expression which is a scoped name is not resolved now, - * but only when it is evaluated (such as when it is assigned - * as a constant value) - */ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].idlist); - } break; -case 95: -# line 835 "fe/idl.tao_yy" -{ - tao_yyval.exval = tao_yypvt[-1].exval; - } break; -case 96: -# line 842 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].ival); - } break; -case 97: -# line 846 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].sval); - } break; -case 98: -# line 850 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].cval); - } break; -case 99: -# line 854 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].dval); - } break; -case 100: -# line 858 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr((idl_bool) I_TRUE, - AST_Expression::EV_bool); - } break; -case 101: -# line 863 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr((idl_bool) I_FALSE, - AST_Expression::EV_bool); - } break; -case 102: -# line 871 "fe/idl.tao_yy" -{ - tao_yypvt[-0].exval->evaluate(AST_Expression::EK_const); - tao_yyval.exval = idl_global->gen()->create_expr(tao_yypvt[-0].exval, AST_Expression::EV_ulong); - } break; -case 103: -# line 879 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypedefSeen); - } break; -case 104: -# line 882 "fe/idl.tao_yy" -{tao_yyval.ival = 0;} break; -case 105: -# line 883 "fe/idl.tao_yy" -{ tao_yyval.ival = 0;} break; -case 106: -# line 884 "fe/idl.tao_yy" -{ tao_yyval.ival = 0;} break; -case 107: -# line 885 "fe/idl.tao_yy" -{ tao_yyval.ival = 0;} break; -case 108: -# line 887 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Native *node = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_NativeSeen); - /* - * Create a node representing a Native and add it to its - * enclosing scope - */ - if (s != NULL) { - node = idl_global->gen()->create_native (tao_yypvt[-0].deval->name (), p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_native (node); - } - } break; -case 109: -# line 912 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeSpecSeen); - } break; -case 110: -# line 916 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l; - FE_Declarator *d = NULL; - AST_Typedef *t = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_DeclaratorsSeen); - /* - * Create a list of type renamings. Add them to the - * enclosing scope - */ - if (s != NULL && tao_yypvt[-2].dcval != NULL && tao_yypvt[-0].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yypvt[-0].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type * tp = d->compose(tao_yypvt[-2].dcval); - if (tp == NULL) - continue; - t = idl_global->gen()->create_typedef(tp, d->name(), p); - (void) s->fe_add_typedef(t); - } - delete l; - } - } break; -case 113: -# line 955 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 115: -# line 960 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error(tao_yypvt[-0].idlist); - tao_yyval.dcval = d; - } break; -case 128: -# line 995 "fe/idl.tao_yy" -{ - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-1].deval, tao_yypvt[-0].dlval); - } break; -case 129: -# line 1003 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } break; -case 130: -# line 1007 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if (tao_yypvt[-3].dlval == NULL) - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-0].deval, NULL); - else { - tao_yypvt[-3].dlval->nconc(new UTL_DeclList(tao_yypvt[-0].deval, NULL)); - tao_yyval.dlval = tao_yypvt[-3].dlval; - } - } break; -case 131: -# line 1018 "fe/idl.tao_yy" -{ - tao_yyval.dlval = NULL; - } break; -case 134: -# line 1030 "fe/idl.tao_yy" -{ - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-1].deval, tao_yypvt[-0].dlval); - } break; -case 135: -# line 1038 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } break; -case 136: -# line 1042 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if (tao_yypvt[-3].dlval == NULL) - tao_yyval.dlval = new UTL_DeclList(tao_yypvt[-0].deval, NULL); - else { - tao_yypvt[-3].dlval->nconc(new UTL_DeclList(tao_yypvt[-0].deval, NULL)); - tao_yyval.dlval = tao_yypvt[-3].dlval; - } - } break; -case 137: -# line 1053 "fe/idl.tao_yy" -{ - tao_yyval.dlval = NULL; - } break; -case 138: -# line 1060 "fe/idl.tao_yy" -{ - tao_yyval.deval = new FE_Declarator(new UTL_ScopedName(tao_yypvt[-0].idval, NULL), - FE_Declarator::FD_simple, NULL); - } break; -case 139: -# line 1068 "fe/idl.tao_yy" -{ - tao_yyval.deval = new FE_Declarator(new UTL_ScopedName(tao_yypvt[-0].dcval->local_name(), NULL), - FE_Declarator::FD_complex, - tao_yypvt[-0].dcval); - } break; -case 142: -# line 1082 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_long; - } break; -case 143: -# line 1086 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_longlong; - } break; -case 144: -# line 1090 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_short; - } break; -case 145: -# line 1097 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ulong; - } break; -case 146: -# line 1101 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ulonglong; - } break; -case 147: -# line 1105 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ushort; - } break; -case 148: -# line 1112 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_double; - } break; -case 149: -# line 1116 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_float; - } break; -case 150: -# line 1120 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_longdouble; - } break; -case 151: -# line 1127 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_char; - } break; -case 152: -# line 1131 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_wchar; - } break; -case 153: -# line 1138 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_octet; - } break; -case 154: -# line 1145 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_bool; - } break; -case 155: -# line 1152 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_any; - } break; -case 156: -# line 1159 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructSeen); - } break; -case 157: -# line 1163 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_Structure *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_StructIDSeen); - /* - * Create a node representing a struct declaration. Add it - * to the enclosing scope - */ - if (s != NULL) { - d = idl_global->gen()->create_structure(n, p); - (void) s->fe_add_structure(d); - } - /* - * Push the scope of the struct on the scopes stack - */ - idl_global->scopes()->push(d); - } break; -case 158: -# line 1187 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructSqSeen); - } break; -case 159: -# line 1191 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructBodySeen); - } break; -case 160: -# line 1195 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructQsSeen); - /* - * Done with this struct. Pop its scope off the scopes stack - */ - tao_yyval.dcval = - AST_Structure::narrow_from_scope( - idl_global->scopes()->top_non_null()); - UTL_StrList *p = tao_yyval.dcval->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } break; -case 164: -# line 1220 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_MemberTypeSeen); - } break; -case 165: -# line 1224 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsSeen); - } break; -case 166: -# line 1228 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - FE_Declarator *d = NULL; - AST_Field *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsCompleted); - /* - * Check for illegal recursive use of type - */ - if (tao_yypvt[-4].dcval != NULL && AST_illegal_recursive_type(tao_yypvt[-4].dcval)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, tao_yypvt[-4].dcval); - /* - * Create a node representing a struct or exception member - * Add it to the enclosing scope - */ - else if (s != NULL && tao_yypvt[-4].dcval != NULL && tao_yypvt[-2].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yypvt[-2].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose(tao_yypvt[-4].dcval); - if (tp == NULL) - continue; - f = idl_global->gen()->create_field(tp, d->name(), p); - (void) s->fe_add_field(f); - } - delete l; - } - } break; -case 167: -# line 1261 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 168: -# line 1265 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 169: -# line 1273 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSeen); - } break; -case 170: -# line 1277 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionIDSeen); - } break; -case 171: -# line 1281 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchSeen); - } break; -case 172: -# line 1285 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchOpenParSeen); - } break; -case 173: -# line 1289 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchTypeSeen); - } break; -case 174: -# line 1293 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-8].idval, NULL); - AST_Union *u = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchCloseParSeen); - /* - * Create a node representing a union. Add it to its enclosing - * scope - */ - if (tao_yypvt[-2].dcval != NULL && s != NULL) { - AST_ConcreteType *tp = AST_ConcreteType::narrow_from_decl(tao_yypvt[-2].dcval); - if (tp == NULL) { - idl_global->err()->not_a_type(tao_yypvt[-2].dcval); - } else { - u = idl_global->gen()->create_union(tp, n, p); - (void) s->fe_add_union(u); - } - } - /* - * Push the scope of the union on the scopes stack - */ - idl_global->scopes()->push(u); - } break; -case 175: -# line 1322 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSqSeen); - } break; -case 176: -# line 1326 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionBodySeen); - } break; -case 177: -# line 1330 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionQsSeen); - /* - * Done with this union. Pop its scope from the scopes stack - */ - tao_yyval.dcval = - AST_Union::narrow_from_scope( - idl_global->scopes()->top_non_null()); - UTL_StrList *p = tao_yyval.dcval->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } break; -case 178: -# line 1348 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 179: -# line 1352 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 180: -# line 1356 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 181: -# line 1360 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 183: -# line 1365 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *p = NULL; - AST_Typedef *t = NULL; - long found = I_FALSE; - - /* - * The discriminator is a scoped name. Try to resolve to - * one of the scalar types or to an enum. Thread through - * typedef's to arrive at the base type at the end of the - * chain - */ - if (s != NULL && (d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE)) != NULL) { - while (!found) { - switch (d->node_type()) { - case AST_Decl::NT_enum: - tao_yyval.dcval = d; - found = I_TRUE; - break; - case AST_Decl::NT_pre_defined: - p = AST_PredefinedType::narrow_from_decl(d); - if (p != NULL) { - switch (p->pt()) { - case AST_PredefinedType::PT_long: - case AST_PredefinedType::PT_ulong: - case AST_PredefinedType::PT_longlong: - case AST_PredefinedType::PT_ulonglong: - case AST_PredefinedType::PT_short: - case AST_PredefinedType::PT_char: - case AST_PredefinedType::PT_wchar: - case AST_PredefinedType::PT_octet: - case AST_PredefinedType::PT_boolean: - tao_yyval.dcval = p; - found = I_TRUE; - break; - default: - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - } - } - break; - case AST_Decl::NT_typedef: - t = AST_Typedef::narrow_from_decl(d); - if (t != NULL) d = t->base_type(); - break; - default: - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - } - } - } else - tao_yyval.dcval = NULL; - - if (tao_yyval.dcval == NULL) - idl_global->err()->lookup_error(tao_yypvt[-0].idlist); - } break; -case 187: -# line 1435 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionLabelSeen); - } break; -case 188: -# line 1439 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemSeen); - } break; -case 189: -# line 1443 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_LabellistActiveIterator *l = NULL; - AST_UnionLabel *d = NULL; - AST_UnionBranch *b = NULL; - AST_Field *f = tao_yypvt[-2].ffval; - - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemCompleted); - /* - * Create several nodes representing branches of a union. - * Add them to the enclosing scope (the union scope) - */ - if (s != NULL && tao_yypvt[-4].llval != NULL && tao_yypvt[-2].ffval != NULL) { - l = new UTL_LabellistActiveIterator(tao_yypvt[-4].llval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - b = idl_global->gen()->create_union_branch(d, - f->field_type(), - f->name(), - f->pragmas()); - (void) s->fe_add_union_branch(b); - } - delete l; - } - } break; -case 190: -# line 1471 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } break; -case 191: -# line 1476 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } break; -case 192: -# line 1484 "fe/idl.tao_yy" -{ - tao_yyval.llval = new UTL_LabelList(tao_yypvt[-1].ulval, tao_yypvt[-0].llval); - } break; -case 193: -# line 1491 "fe/idl.tao_yy" -{ - if (tao_yypvt[-1].llval == NULL) - tao_yyval.llval = new UTL_LabelList(tao_yypvt[-0].ulval, NULL); - else { - tao_yypvt[-1].llval->nconc(new UTL_LabelList(tao_yypvt[-0].ulval, NULL)); - tao_yyval.llval = tao_yypvt[-1].llval; - } - } break; -case 194: -# line 1500 "fe/idl.tao_yy" -{ - tao_yyval.llval = NULL; - } break; -case 195: -# line 1507 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DefaultSeen); - } break; -case 196: -# line 1511 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - tao_yyval.ulval = idl_global->gen()-> - create_union_label(AST_UnionLabel::UL_default, - NULL); - } break; -case 197: -# line 1519 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_CaseSeen); - } break; -case 198: -# line 1523 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelExprSeen); - } break; -case 199: -# line 1527 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - tao_yyval.ulval = idl_global->gen()->create_union_label(AST_UnionLabel::UL_label, - tao_yypvt[-2].exval); - } break; -case 200: -# line 1537 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemTypeSeen); - } break; -case 201: -# line 1541 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemDeclSeen); - /* - * Check for illegal recursive use of type - */ - if (tao_yypvt[-2].dcval != NULL && AST_illegal_recursive_type(tao_yypvt[-2].dcval)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, tao_yypvt[-2].dcval); - /* - * Create a field in a union branch - */ - else if (tao_yypvt[-2].dcval == NULL || tao_yypvt[-0].deval == NULL) - tao_yyval.ffval = NULL; - else { - AST_Type *tp = tao_yypvt[-0].deval->compose(tao_yypvt[-2].dcval); - if (tp == NULL) - tao_yyval.ffval = NULL; - else - tao_yyval.ffval = idl_global->gen()->create_field(tp, - tao_yypvt[-0].deval->name(), - idl_global->pragmas()); - } - } break; -case 202: -# line 1567 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSeen); - } break; -case 203: -# line 1571 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_Enum *e = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_EnumIDSeen); - /* - * Create a node representing an enum and add it to its - * enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_enum(n, p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_enum(e); - } - /* - * Push the enum scope on the scopes stack - */ - idl_global->scopes()->push(e); - } break; -case 204: -# line 1598 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSqSeen); - } break; -case 205: -# line 1602 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumBodySeen); - } break; -case 206: -# line 1606 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumQsSeen); - /* - * Done with this enum. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = AST_Enum::narrow_from_scope(idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } break; -case 208: -# line 1625 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumCommaSeen); - } break; -case 211: -# line 1634 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE), NULL); - AST_EnumVal *e = NULL; - AST_Enum *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - - /* - * Create a node representing one enumerator in an enum - * Add it to the enclosing scope (the enum scope) - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_enum) { - c = AST_Enum::narrow_from_scope(s); - if (c != NULL) - e = idl_global->gen()->create_enum_val(c->next_enum_val(), n, p); - (void) s->fe_add_enum_val(e); - } - } break; -case 212: -# line 1658 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceCommaSeen); - } break; -case 213: -# line 1662 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceExprSeen); - } break; -case 214: -# line 1666 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else if (tao_yypvt[-5].dcval == NULL) { - tao_yyval.dcval = NULL; - } else { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yypvt[-5].dcval); - if (tp == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = idl_global->gen()->create_sequence(tao_yypvt[-2].exval, tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl(tao_yyval.dcval)); - } - } - } break; -case 215: -# line 1697 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if (tao_yypvt[-1].dcval == NULL) - tao_yyval.dcval = NULL; - else { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yypvt[-1].dcval); - if (tp == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = - idl_global->gen()->create_sequence( - idl_global->gen()->create_expr((unsigned long) 0), - tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl(tao_yyval.dcval)); - } - } - } break; -case 216: -# line 1730 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSeen); - /* - * Push a sequence marker on scopes stack - */ - idl_global->scopes()->push(NULL); - } break; -case 217: -# line 1738 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSqSeen); - } break; -case 218: -# line 1742 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceTypeSeen); - tao_yyval.dcval = tao_yypvt[-0].dcval; - } break; -case 219: -# line 1751 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } break; -case 220: -# line 1755 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } break; -case 221: -# line 1759 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else { - tao_yyval.dcval = idl_global->gen()->create_string(tao_yypvt[-2].exval); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } - } break; -case 222: -# line 1777 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - tao_yyval.dcval = - idl_global->gen()->create_string( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } break; -case 223: -# line 1795 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } break; -case 224: -# line 1803 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } break; -case 225: -# line 1807 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } break; -case 226: -# line 1811 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else { - tao_yyval.dcval = idl_global->gen()->create_wstring(tao_yypvt[-2].exval); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } - } break; -case 227: -# line 1829 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - tao_yyval.dcval = - idl_global->gen()->create_wstring( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } break; -case 228: -# line 1847 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } break; -case 229: -# line 1854 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayIDSeen); - } break; -case 230: -# line 1858 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayCompleted); - /* - * Create a node representing an array - */ - if (tao_yypvt[-0].elval != NULL) { - tao_yyval.dcval = idl_global->gen()->create_array(new UTL_ScopedName(tao_yypvt[-2].idval, NULL), - tao_yypvt[-0].elval->length(), tao_yypvt[-0].elval); - } - } break; -case 231: -# line 1872 "fe/idl.tao_yy" -{ - tao_yyval.elval = new UTL_ExprList(tao_yypvt[-1].exval, tao_yypvt[-0].elval); - } break; -case 232: -# line 1879 "fe/idl.tao_yy" -{ - if (tao_yypvt[-1].elval == NULL) - tao_yyval.elval = new UTL_ExprList(tao_yypvt[-0].exval, NULL); - else { - tao_yypvt[-1].elval->nconc(new UTL_ExprList(tao_yypvt[-0].exval, NULL)); - tao_yyval.elval = tao_yypvt[-1].elval; - } - } break; -case 233: -# line 1888 "fe/idl.tao_yy" -{ - tao_yyval.elval = NULL; - } break; -case 234: -# line 1895 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimSqSeen); - } break; -case 235: -# line 1899 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimExprSeen); - } break; -case 236: -# line 1903 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimQsSeen); - /* - * Array dimensions are expressions which must be coerced to - * positive integers - */ - if (tao_yypvt[-2].exval == NULL || tao_yypvt[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yypvt[-2].exval, AST_Expression::EV_ulong); - tao_yyval.exval = NULL; - } else - tao_yyval.exval = tao_yypvt[-2].exval; - } break; -case 237: -# line 1920 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrSeen); - } break; -case 238: -# line 1924 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrTypeSeen); - } break; -case 239: -# line 1928 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - AST_Attribute *a = NULL; - FE_Declarator *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_AttrCompleted); - /* - * Create nodes representing attributes and add them to the - * enclosing scope - */ - if (s != NULL && tao_yypvt[-2].dcval != NULL && tao_yypvt[-0].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yypvt[-0].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose(tao_yypvt[-2].dcval); - if (tp == NULL) - continue; - a = idl_global->gen()->create_attribute(tao_yypvt[-5].bval, tp, d->name(), p); - /* - * Add one attribute to the enclosing scope - */ - (void) s->fe_add_attribute(a); - } - delete l; - } - } break; -case 240: -# line 1962 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrROSeen); - tao_yyval.bval = I_TRUE; - } break; -case 241: -# line 1967 "fe/idl.tao_yy" -{ - tao_yyval.bval = I_FALSE; - } break; -case 242: -# line 1974 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSeen); - } break; -case 243: -# line 1978 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yypvt[-0].idval, NULL); - AST_Exception *e = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptIDSeen); - /* - * Create a node representing an exception and add it to - * the enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_exception(n, p); - (void) s->fe_add_exception(e); - } - /* - * Push the exception scope on the scope stack - */ - idl_global->scopes()->push(e); - } break; -case 244: -# line 2002 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSqSeen); - } break; -case 245: -# line 2006 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptBodySeen); - } break; -case 246: -# line 2010 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptQsSeen); - /* - * Done with this exception. Pop its scope from the scope stack - */ - idl_global->scopes()->pop(); - } break; -case 247: -# line 2022 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpTypeSeen); - } break; -case 248: -# line 2026 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yypvt[-0].strval, 1, 0, I_FALSE), NULL); - AST_Operation *o = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpIDSeen); - /* - * Create a node representing an operation on an interface - * and add it to its enclosing scope - */ - if (s != NULL && tao_yypvt[-2].dcval != NULL) { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yypvt[-2].dcval); - if (tp == NULL) { - idl_global->err()->not_a_type(tao_yypvt[-2].dcval); - } else if (tp->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type(tao_yypvt[-2].dcval); - } else { - o = idl_global->gen()->create_operation(tp, tao_yypvt[-3].ofval, n, p); - (void) s->fe_add_operation(o); - } - } - /* - * Push the operation scope onto the scopes stack - */ - idl_global->scopes()->push(o); - } break; -case 249: -# line 2055 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParsCompleted); - } break; -case 250: -# line 2059 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseCompleted); - } break; -case 251: -# line 2063 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Operation *o = NULL; - - idl_global->set_parse_state(IDL_GlobalData::PS_OpCompleted); - /* - * Add exceptions and context to the operation - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_op) { - o = AST_Operation::narrow_from_scope(s); - - if (tao_yypvt[-2].nlval != NULL && o != NULL) - (void) o->fe_add_exceptions(tao_yypvt[-2].nlval); - if (tao_yypvt[-0].slval != NULL) - (void) o->fe_add_context(tao_yypvt[-0].slval); - } - /* - * Done with this operation. Pop its scope from the scopes stack - */ - idl_global->scopes()->pop(); - } break; -case 252: -# line 2088 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - tao_yyval.ofval = AST_Operation::OP_oneway; - } break; -case 253: -# line 2093 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - tao_yyval.ofval = AST_Operation::OP_idempotent; - } break; -case 254: -# line 2098 "fe/idl.tao_yy" -{ - tao_yyval.ofval = AST_Operation::OP_noflags; - } break; -case 256: -# line 2106 "fe/idl.tao_yy" -{ - tao_yyval.dcval = - idl_global->scopes()->bottom() - ->lookup_primitive_type(AST_Expression::EV_void); - } break; -case 257: -# line 2115 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } break; -case 258: -# line 2119 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } break; -case 259: -# line 2123 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } break; -case 260: -# line 2128 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } break; -case 262: -# line 2138 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParCommaSeen); - } break; -case 265: -# line 2147 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDirSeen); - } break; -case 266: -# line 2151 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParTypeSeen); - } break; -case 267: -# line 2155 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Argument *a = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDeclSeen); - /* - * Create a node representing an argument to an operation - * Add it to the enclosing scope (the operation scope) - */ - if (tao_yypvt[-2].dcval != NULL && tao_yypvt[-0].deval != NULL && s != NULL) { - AST_Type *tp = tao_yypvt[-0].deval->compose(tao_yypvt[-2].dcval); - if (tp != NULL) { - a = idl_global->gen()->create_argument(tao_yypvt[-4].dival, tp, tao_yypvt[-0].deval->name(), p); - (void) s->fe_add_argument(a); - } - } - } break; -case 268: -# line 2177 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yypvt[-0].etval); - } break; -case 270: -# line 2182 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name(tao_yypvt[-0].idlist, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error(tao_yypvt[-0].idlist); - tao_yyval.dcval = d; - } break; -case 271: -# line 2196 "fe/idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_IN; - } break; -case 272: -# line 2200 "fe/idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_OUT; - } break; -case 273: -# line 2204 "fe/idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_INOUT; - } break; -case 274: -# line 2211 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSeen); - } break; -case 275: -# line 2215 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSqSeen); - } break; -case 276: -# line 2220 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseQsSeen); - tao_yyval.nlval = tao_yypvt[-1].nlval; - } break; -case 277: -# line 2225 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } break; -case 278: -# line 2232 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSeen); - } break; -case 279: -# line 2236 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSqSeen); - } break; -case 280: -# line 2241 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextQsSeen); - tao_yyval.slval = tao_yypvt[-1].slval; - } break; -case 281: -# line 2246 "fe/idl.tao_yy" -{ - tao_yyval.slval = NULL; - } break; -case 282: -# line 2253 "fe/idl.tao_yy" -{ - tao_yyval.slval = new UTL_StrList(tao_yypvt[-1].sval, tao_yypvt[-0].slval); - } break; -case 283: -# line 2261 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextCommaSeen); - } break; -case 284: -# line 2265 "fe/idl.tao_yy" -{ - if (tao_yypvt[-3].slval == NULL) - tao_yyval.slval = new UTL_StrList(tao_yypvt[-0].sval, NULL); - else { - tao_yypvt[-3].slval->nconc(new UTL_StrList(tao_yypvt[-0].sval, NULL)); - tao_yyval.slval = tao_yypvt[-3].slval; - } - } break; -case 285: -# line 2274 "fe/idl.tao_yy" -{ - tao_yyval.slval = NULL; - } break; -# line 532 "/usr/ccs/bin/yaccpar" - } - goto tao_yystack; /* reset registers in driver code */ -} - diff --git a/TAO/TAO_IDL/fe/y.tab.cpp.diff b/TAO/TAO_IDL/fe/y.tab.cpp.diff deleted file mode 100644 index 8d793950777..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.cpp.diff +++ /dev/null @@ -1,123 +0,0 @@ ---- y.tab.cpp.orig Fri Sep 4 18:41:31 1998 -+++ y.tab.cpp Fri Sep 4 18:43:08 1998 -@@ -1,4 +1,4 @@ -- -+// $Id$ - # line 74 "fe/idl.tao_yy" - #include "idl.h" - #include "idl_extern.h" -@@ -103,7 +103,6 @@ - #include - #endif - --#include - - #ifdef __cplusplus - -@@ -494,52 +493,52 @@ - - tao_yytoktype tao_yytoks[] = - { -- "IDENTIFIER", 257, -- "IDL_CONST", 258, -- "IDL_MODULE", 259, -- "IDL_INTERFACE", 260, -- "IDL_TYPEDEF", 261, -- "IDL_LONG", 262, -- "IDL_SHORT", 263, -- "IDL_UNSIGNED", 264, -- "IDL_DOUBLE", 265, -- "IDL_FLOAT", 266, -- "IDL_CHAR", 267, -- "IDL_WCHAR", 268, -- "IDL_OCTET", 269, -- "IDL_BOOLEAN", 270, -- "IDL_ANY", 271, -- "IDL_STRUCT", 272, -- "IDL_UNION", 273, -- "IDL_SWITCH", 274, -- "IDL_ENUM", 275, -- "IDL_SEQUENCE", 276, -- "IDL_STRING", 277, -- "IDL_WSTRING", 278, -- "IDL_EXCEPTION", 279, -- "IDL_CASE", 280, -- "IDL_DEFAULT", 281, -- "IDL_READONLY", 282, -- "IDL_ATTRIBUTE", 283, -- "IDL_ONEWAY", 284, -- "IDL_IDEMPOTENT", 285, -- "IDL_VOID", 286, -- "IDL_IN", 287, -- "IDL_OUT", 288, -- "IDL_INOUT", 289, -- "IDL_RAISES", 290, -- "IDL_CONTEXT", 291, -- "IDL_NATIVE", 292, -- "IDL_INTEGER_LITERAL", 293, -- "IDL_STRING_LITERAL", 294, -- "IDL_CHARACTER_LITERAL", 295, -- "IDL_FLOATING_PT_LITERAL", 296, -- "IDL_TRUETOK", 297, -- "IDL_FALSETOK", 298, -- "IDL_SCOPE_DELIMITOR", 299, -- "IDL_LEFT_SHIFT", 300, -- "IDL_RIGHT_SHIFT", 301, -- "-unknown-", -1 /* ends search */ -+ {"IDENTIFIER", 257}, -+ {"IDL_CONST", 258}, -+ {"IDL_MODULE", 259}, -+ {"IDL_INTERFACE", 260}, -+ {"IDL_TYPEDEF", 261}, -+ {"IDL_LONG", 262}, -+ {"IDL_SHORT", 263}, -+ {"IDL_UNSIGNED", 264}, -+ {"IDL_DOUBLE", 265}, -+ {"IDL_FLOAT", 266}, -+ {"IDL_CHAR", 267}, -+ {"IDL_WCHAR", 268}, -+ {"IDL_OCTET", 269}, -+ {"IDL_BOOLEAN", 270}, -+ {"IDL_ANY", 271}, -+ {"IDL_STRUCT", 272}, -+ {"IDL_UNION", 273}, -+ {"IDL_SWITCH", 274}, -+ {"IDL_ENUM", 275}, -+ {"IDL_SEQUENCE", 276}, -+ {"IDL_STRING", 277}, -+ {"IDL_WSTRING", 278}, -+ {"IDL_EXCEPTION", 279}, -+ {"IDL_CASE", 280}, -+ {"IDL_DEFAULT", 281}, -+ {"IDL_READONLY", 282}, -+ {"IDL_ATTRIBUTE", 283}, -+ {"IDL_ONEWAY", 284}, -+ {"IDL_IDEMPOTENT", 285}, -+ {"IDL_VOID", 286}, -+ {"IDL_IN", 287}, -+ {"IDL_OUT", 288}, -+ {"IDL_INOUT", 289}, -+ {"IDL_RAISES", 290}, -+ {"IDL_CONTEXT", 291}, -+ {"IDL_NATIVE", 292}, -+ {"IDL_INTEGER_LITERAL", 293}, -+ {"IDL_STRING_LITERAL", 294}, -+ {"IDL_CHARACTER_LITERAL", 295}, -+ {"IDL_FLOATING_PT_LITERAL", 296}, -+ {"IDL_TRUETOK", 297}, -+ {"IDL_FALSETOK", 298}, -+ {"IDL_SCOPE_DELIMITOR", 299}, -+ {"IDL_LEFT_SHIFT", 300}, -+ {"IDL_RIGHT_SHIFT", 301}, -+ {"-unknown-", -1} /* ends search */ - }; - - char * tao_yyreds[] = -@@ -837,7 +836,6 @@ - * Copyright (c) 1993 by Sun Microsystems, Inc. - */ - --#pragma ident "@(#)yaccpar 6.12 93/06/07 SMI" - - /* - ** Skeleton parser driver for yacc output diff --git a/TAO/TAO_IDL/fe/y.tab.h b/TAO/TAO_IDL/fe/y.tab.h deleted file mode 100644 index 88a7834e196..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.h +++ /dev/null @@ -1,77 +0,0 @@ -// $Id$ -typedef union -#ifdef __cplusplus - TAO_YYSTYPE -#endif - { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} TAO_YYSTYPE; -extern TAO_YYSTYPE tao_yylval; -# define IDENTIFIER 257 -# define IDL_CONST 258 -# define IDL_MODULE 259 -# define IDL_INTERFACE 260 -# define IDL_TYPEDEF 261 -# define IDL_LONG 262 -# define IDL_SHORT 263 -# define IDL_UNSIGNED 264 -# define IDL_DOUBLE 265 -# define IDL_FLOAT 266 -# define IDL_CHAR 267 -# define IDL_WCHAR 268 -# define IDL_OCTET 269 -# define IDL_BOOLEAN 270 -# define IDL_ANY 271 -# define IDL_STRUCT 272 -# define IDL_UNION 273 -# define IDL_SWITCH 274 -# define IDL_ENUM 275 -# define IDL_SEQUENCE 276 -# define IDL_STRING 277 -# define IDL_WSTRING 278 -# define IDL_EXCEPTION 279 -# define IDL_CASE 280 -# define IDL_DEFAULT 281 -# define IDL_READONLY 282 -# define IDL_ATTRIBUTE 283 -# define IDL_ONEWAY 284 -# define IDL_IDEMPOTENT 285 -# define IDL_VOID 286 -# define IDL_IN 287 -# define IDL_OUT 288 -# define IDL_INOUT 289 -# define IDL_RAISES 290 -# define IDL_CONTEXT 291 -# define IDL_NATIVE 292 -# define IDL_INTEGER_LITERAL 293 -# define IDL_STRING_LITERAL 294 -# define IDL_CHARACTER_LITERAL 295 -# define IDL_FLOATING_PT_LITERAL 296 -# define IDL_TRUETOK 297 -# define IDL_FALSETOK 298 -# define IDL_SCOPE_DELIMITOR 299 -# define IDL_LEFT_SHIFT 300 -# define IDL_RIGHT_SHIFT 301 diff --git a/TAO/TAO_IDL/idl_make_vars b/TAO/TAO_IDL/idl_make_vars deleted file mode 100644 index f061649d004..00000000000 --- a/TAO/TAO_IDL/idl_make_vars +++ /dev/null @@ -1,62 +0,0 @@ -# Makefile include file for IDL compiler -# -# What OS we're compiling on. -# -# As shipped the CFE is preconfigured for SOLARIS 2.x -# =================================================== -# -# Uncomment the next line for SOLARIS 2.x -OSV = SOLARIS2 -# Uncomment the next line for SUNOS 4.x -# OSV = SUNOS4 -# Uncomment the next line for HPUX -# OSV = hpux -# Uncomment the next line for Apollo Domain -# OSV = apollo -# -# IDL_CFE_VERSION Defines what the current IDL CFE version is -IDL_CFE_VERSION = \"1.3.0\" -# -# Define LEXFLAGS to pass to lex -LEXFLAGS = -t -# -# Define YFLAGS to pass to yacc -YFLAGS = -t -d -# -# C++ What C++ compiler to use -# -# Also define CCC which is used instead of C++ in -# some versions of make. Make sure they refer to the -# same executable; if you modify one please also modify -# the other to be identical. -# -# Uncomment these two lines if you're using SunPro Sparcworks C++ compilers -# (Tested for SunPro Sparcworks 2.x with SunOS 4.x and Solaris 2.x, for -# SunPro Sparcworks 3.0 with Solaris 2.x) -C++ = CC -CCC = CC -# Uncomment these two lines if you're using g++ (tested for SunOS 4.x and -# Solaris 2.x only, with g++ 2.5.8) -# C++ = g++ -# CCC = g++ -# -# What flags to pass to the C preprocessor -CPPFLAGS += -I../include -I. -D$(OSV) \ - -DCPP_LOCATION=\"$(C++)\" \ - -DIDL_CFE_VERSION=$(IDL_CFE_VERSION) \ -# -# What flags to pass to the CC phase -CCFLAGS += -g -# -# What ranlib to use -# -# Uncomment the following line for SunOS 4.x and others which have ranlib -# RANLIB = ranlib -# Uncomment the following line for Solaris 2.x and others which don't have it -RANLIB = /bin/true -# -# What ar to use -AR = ar -# -# What flags to give to ar -ARFLAGS = crv diff --git a/TAO/TAO_IDL/idl_specs/array.idl b/TAO/TAO_IDL/idl_specs/array.idl deleted file mode 100644 index 9a35397c1ba..00000000000 --- a/TAO/TAO_IDL/idl_specs/array.idl +++ /dev/null @@ -1,39 +0,0 @@ -// $Id$ - -typedef sequence vec10; -typedef char str22[22][2]; -typedef boolean boolarray[3][40]; - - -struct A { - long a1; - char a2[17]; - char a3[10][2]; -// vec10 a3; -}; - -struct B { - long b1; - A b2; -}; - -struct C { - long c1; - long c2; -}; - -typedef A A_matrix[2][3][4]; -typedef B B_matrix[2][3][4]; -typedef C C_matrix[2][3][4]; - -typedef A_matrix A_rmatrix[2][3][4][5]; - -interface A_i { - A op(in A a1, inout A a2, out A a3); - str22 op2(in str22 a1, inout str22 a2, out str22 a3); - str22 op3(in short a1[3][4], inout short a2[3][4], out short a3[4][4]); - A_matrix op4(in A a1, inout A a2, out A a3); - attribute str22 attribute_array; - void foo(in any x[3], out any y[4], inout any z[3]); -}; - diff --git a/TAO/TAO_IDL/idl_specs/constant.idl b/TAO/TAO_IDL/idl_specs/constant.idl deleted file mode 100644 index 3ccded681e1..00000000000 --- a/TAO/TAO_IDL/idl_specs/constant.idl +++ /dev/null @@ -1,31 +0,0 @@ -// $Id$ - -const short l = 4; - -enum N { zero, un , deux, trois }; - -exception E { - short cause ; - }; - -module M { - const short l = 4; - - enum N { zero, un , deux, trois }; - - exception E { - short cause ; - }; - - interface A { - const short l = 4; - - enum N { zero, un , deux, trois }; - - exception E { - short cause ; - }; - N foo(in N x, out N y, inout N z); - }; -}; - diff --git a/TAO/TAO_IDL/idl_specs/dif2.idl b/TAO/TAO_IDL/idl_specs/dif2.idl deleted file mode 100644 index b21c65d6d58..00000000000 --- a/TAO/TAO_IDL/idl_specs/dif2.idl +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -/* A test interface for DIF1 */ - -interface ex1 -{ - void op0(); - float op1(in float f, out double d, inout long l); - double op2(in double d, out long l, inout short s); - long op3(in long l, out short s, inout unsigned long ul); - short op4(in short s, out unsigned long ul, inout unsigned short us); - unsigned long op5(inout unsigned long ul, in unsigned short us, out char c, in boolean b); - unsigned short op6(out unsigned short us, inout char c); -}; - -//interface ex3; - -interface ex2 : ex1 -{ - // operations continued from ex1 - char op7(in char c, out boolean b, inout octet o); - boolean op8(out boolean b, in octet o); - octet op9(inout octet o, out string s, in string <10> ls, inout long l); - string op10(in string s, out string <10> ls); - string <10> op11(inout string <10> ls, out long l); - long op12(in long l); -// ex3 op13(Environment *ev); -}; - -interface ex3 : ex1 -{ - // attributes - readonly attribute float float_attribute; - attribute double double_attribute; - readonly attribute long long_attribute; - attribute short short_attribute; - readonly attribute unsigned long unsigned_long_attribute; - -}; - -interface ex4 : ex2, ex3 -{ - attribute unsigned short unsigned_short_attribute; - readonly attribute char char_attribute; - attribute boolean boolean_attribute; - readonly attribute octet octet_attribute; - attribute string string_attribute; - readonly attribute string <10> limited_string_attribute; - readonly attribute ex4 an_object_attribute; -}; diff --git a/TAO/TAO_IDL/idl_specs/inherit.idl b/TAO/TAO_IDL/idl_specs/inherit.idl deleted file mode 100644 index 390f8d7e98e..00000000000 --- a/TAO/TAO_IDL/idl_specs/inherit.idl +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ - -interface one { - void op_one(); -}; -interface two : one { - void op_two(); -}; -interface three : one { - void op_three(); -}; -interface four : two, three { - void op_four(); -}; - -interface five : four, three, two { - void op_five(); -}; - diff --git a/TAO/TAO_IDL/idl_specs/module.idl b/TAO/TAO_IDL/idl_specs/module.idl deleted file mode 100644 index d40f45963a1..00000000000 --- a/TAO/TAO_IDL/idl_specs/module.idl +++ /dev/null @@ -1,22 +0,0 @@ -// $Id$ - -module mod1 -{ - module mod2 - { - interface ex1 - { - attribute long l1; - readonly attribute long l2; - - long m1(in long a); - }; - - interface ex2 : ex1 - { - attribute long l3; - - long m2(in long a, out long b); - }; - }; -}; diff --git a/TAO/TAO_IDL/idl_specs/primtypes.idl b/TAO/TAO_IDL/idl_specs/primtypes.idl deleted file mode 100644 index 63c6a27d809..00000000000 --- a/TAO/TAO_IDL/idl_specs/primtypes.idl +++ /dev/null @@ -1,25 +0,0 @@ -// $Id$ - -interface ex1 -{ - attribute long l1; - long m1(in long a); - ex1 mtypes( - in long a1, inout long a2, out long a3, - in unsigned long b1, inout unsigned long b2, out unsigned long b3, - in short c1,inout short c2, out short c3, - in unsigned short d1, inout unsigned short d2, out unsigned short d3, - in float e1, inout float e2, out float e3, - in double f1, inout double f2, out double f3, - in char g1, inout char g2, out char g3 - ); - -}; - -interface ex2 : ex1 -{ - readonly attribute long l2; - - long m2(in long a, out long b); - void mv(); -}; diff --git a/TAO/TAO_IDL/idl_specs/sequence.idl b/TAO/TAO_IDL/idl_specs/sequence.idl deleted file mode 100644 index 7a86a2cf481..00000000000 --- a/TAO/TAO_IDL/idl_specs/sequence.idl +++ /dev/null @@ -1,27 +0,0 @@ -// $Id$ - -typedef sequence vec10; -typedef sequence c20; -typedef sequence cc23; -typedef sequence c24; -typedef sequence< sequence, 10> c30; -struct TProgram { - string path; - sequence argv; - sequence envp; -}; - -struct foo { - long f1; - char f2; -}; - -typedef foo foo_ar[20]; -typedef sequence f_unbounded; -typedef sequence f_ar_unbounded; - -interface TestSeq { - attribute f_unbounded fattr; - typedef sequence also_vec10; - vec10 op(in also_vec10 a, out vec10 b, inout sequence c); -}; diff --git a/TAO/TAO_IDL/idl_specs/simple.idl b/TAO/TAO_IDL/idl_specs/simple.idl deleted file mode 100644 index b10cdd73668..00000000000 --- a/TAO/TAO_IDL/idl_specs/simple.idl +++ /dev/null @@ -1,18 +0,0 @@ -// $Id$ - -typedef sequence vec10; - -exception simple_error { - long reason; -}; - -interface simple { - long op(in long a, out simple b, inout long c) raises (simple_error); -}; - -interface simple2 : simple { - exception simple2_error { - long reason2; - }; - long op2(in long a, in simple b, out simple2 c) raises (simple2_error); -}; diff --git a/TAO/TAO_IDL/idl_specs/simple2.idl b/TAO/TAO_IDL/idl_specs/simple2.idl deleted file mode 100644 index 8f9202f9485..00000000000 --- a/TAO/TAO_IDL/idl_specs/simple2.idl +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -#include "simple.idl" - - -interface simple3 : simple2 { - exception OVERFLOW { - long a; - string msg; - }; - exception UNDERFLOW { - long b; - string msg; - }; - exception BADNUM { - vec10 c; - }; - exception USERERROR { - any reason; - }; - long op3(in long a, out simple3 b, out simple2 c, out simple d) - raises (OVERFLOW, UNDERFLOW, BADNUM); - any op4(in any x, inout any y, out any z) - raises(UNDERFLOW); - - oneway void op5() - raises(USERERROR); -}; diff --git a/TAO/TAO_IDL/idl_specs/struct.idl b/TAO/TAO_IDL/idl_specs/struct.idl deleted file mode 100644 index a098efd9b12..00000000000 --- a/TAO/TAO_IDL/idl_specs/struct.idl +++ /dev/null @@ -1,54 +0,0 @@ -// $Id$ - -struct bar { - long b1; - long b2; - string<20> b3; -}; - -struct bar2 { - long b3; - bar b4; -}; - -struct bar3 { - long b1; - long b2; - long b3; -}; - -struct bar4 { - long b1; - bar2 b2; - long b3; - bar3 b4; - long b5; -}; - - -interface foo { - long op(in bar a, out bar2 b); -}; -interface foo2 : foo { - bar op2(in bar2 a); - long op3(in long a, out char b); -}; - - -typedef unsigned short Coord; - -struct CellPos { - Coord row; - Coord col; -}; - -struct CellPos2 { - unsigned short row; - unsigned short col; -}; - -struct CellPos3 { - Coord row; - Coord col; - unsigned short col2; -}; diff --git a/TAO/TAO_IDL/idl_specs/union.idl b/TAO/TAO_IDL/idl_specs/union.idl deleted file mode 100644 index 587dae3a9c9..00000000000 --- a/TAO/TAO_IDL/idl_specs/union.idl +++ /dev/null @@ -1,28 +0,0 @@ -// $Id$ - -struct Bar { - long b1; - char b2; -}; - -union Foo switch (long) { -case 1: long x; -case 2: Bar y; -default: char z; -}; - - -union Foo2 switch (char) { - case 'a': long x; - case 'b': Foo y; -}; - -interface a { - struct astruct { - Foo2 a1; - Foo a2; - Bar a3; - }; - Foo2 opA(in astruct b); -}; - diff --git a/TAO/TAO_IDL/idl_specs/union2.idl b/TAO/TAO_IDL/idl_specs/union2.idl deleted file mode 100644 index 843980ac048..00000000000 --- a/TAO/TAO_IDL/idl_specs/union2.idl +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ - -enum FooDisc { - FOO1, - FOO2 -}; -union Foo switch (FooDisc) { -case FOO1: long x; -case FOO2: string y; -default: char z; -}; - - -struct Bar { - enum BarDisc { - BAR1, - BAR2 - } kind; - union Foo switch (BarDisc) { - case BAR1: long x; - case BAR2: long y; - } addr; -}; diff --git a/TAO/TAO_IDL/include/ast.h b/TAO/TAO_IDL/include/ast.h deleted file mode 100644 index fc05323e075..00000000000 --- a/TAO/TAO_IDL/include/ast.h +++ /dev/null @@ -1,120 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_AST_HH -#define _AST_AST_HH - -// ast.h -// -// Defines the classes which constitute the agreement between the CFE -// and BEs. - -/* -** DEPENDENCIES: NONE -** -** USE: Included from idl.hh -*/ - -#include "utl_scoped_name.h" // Define UTL_ScopedName - -#include "ast_decl.h" // class AST_Decl - -#include "ast_expression.h" // class AST_Expression - -#include "utl_scope.h" // class UTL_Scope - -#include "ast_type.h" // class AST_Type -#include "ast_concrete_type.h" // class AST_ConcreteType -#include "ast_predefined_type.h"// class AST_PredefinedType -#include "ast_module.h" // class AST_Module -#include "ast_root.h" // class AST_Root -#include "ast_interface.h" // class AST_Interface -#include "ast_interface_fwd.h" // class AST_InterfaceFwd -#include "ast_structure.h" // class AST_Structure -#include "ast_exception.h" // class AST_Exception -#include "ast_enum.h" // class AST_Enum -#include "ast_operation.h" // class AST_Operation -#include "ast_field.h" // class AST_Field -#include "ast_argument.h" // class AST_Argument -#include "ast_attribute.h" // class AST_Attribute -#include "ast_union.h" // class AST_Union -#include "ast_union_branch.h" // class AST_UnionBranch -#include "ast_union_label.h" // class AST_UnionLabel -#include "ast_constant.h" // class AST_Constant -#include "ast_enum_val.h" // class AST_EnumVal -#include "ast_array.h" // class AST_Array -#include "ast_sequence.h" // class AST_Sequence -#include "ast_string.h" // class AST_String -#include "ast_typedef.h" // class AST_Typedef -#include "ast_native.h" // class AST_Native - -#include "utl_list.h" // class UTL_List -#include "utl_strlist.h" // class UTL_StrList -#include "utl_exprlist.h" // class UTL_ExprList - -#include "ast_generator.h" // class AST_Generator - -#endif // _AST_AST_HH diff --git a/TAO/TAO_IDL/include/ast_argument.h b/TAO/TAO_IDL/include/ast_argument.h deleted file mode 100644 index 1f65d0ca9ac..00000000000 --- a/TAO/TAO_IDL/include/ast_argument.h +++ /dev/null @@ -1,115 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ARGUMENT_AST_ARGUMENT_HH -#define _AST_ARGUMENT_AST_ARGUMENT_HH - -// Representation of argument to operation: -// -// An argument is a field with a direction attached - -/* -** DEPENDENCIES: ast_field.hh, utl_scoped_name.hh, ast_type.hh -** utl_strlist.hh, ast_decl.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_field.h" - - -class AST_Argument : public virtual AST_Field -{ -public: - // Define enum with values denoting argument passing directions - enum Direction {dir_IN, dir_OUT, dir_INOUT}; - - // Operations - - // Constructor(s) - AST_Argument(); - AST_Argument(Direction direction, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_Argument() {} - - // Data Accessors - Direction direction(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Argument, AST_Field); - DEF_NARROW_FROM_DECL(AST_Argument); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - const Direction pd_direction; // Argument direction -}; - -#endif // _AST_ARGUMENT_AST_ARGUMENT_HH diff --git a/TAO/TAO_IDL/include/ast_array.h b/TAO/TAO_IDL/include/ast_array.h deleted file mode 100644 index 86d2387000b..00000000000 --- a/TAO/TAO_IDL/include/ast_array.h +++ /dev/null @@ -1,117 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ARRAY_AST_ARRAY_HH -#define _AST_ARRAY_AST_ARRAY_HH - -// Representation of array declaration: -// -// An array is a combination of a list of dimensions and a base type - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_exprlist.hh, ast_type.hh, -** ast_decl.hh -** -** USE: Included from ast.hh -*/ - -class AST_Array : public virtual AST_ConcreteType { -public: - // Operations - - // Constructor(s) - AST_Array(); - AST_Array(UTL_ScopedName *n, unsigned long ndims, UTL_ExprList *dims); - virtual ~AST_Array() {} - - // Data Accessors - unsigned long n_dims(); - AST_Expression **dims(); - void set_dims(AST_Expression **, unsigned long); - AST_Type *base_type(); - void set_base_type(AST_Type *nbt); - - // Narrowing - DEF_NARROW_METHODS1(AST_Array, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_Array); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - unsigned long pd_n_dims; // How many dimensions? - AST_Expression **pd_dims; // Their expressions - AST_Type *pd_base_type; // Base type of array - - // Operations - - // Compute how many dimensions - AST_Expression **compute_dims(UTL_ExprList *dims, - unsigned long ndims); -}; - -#endif // _AST_ARRAY_AST_ARRAY_HH diff --git a/TAO/TAO_IDL/include/ast_attribute.h b/TAO/TAO_IDL/include/ast_attribute.h deleted file mode 100644 index 6abc58967d6..00000000000 --- a/TAO/TAO_IDL/include/ast_attribute.h +++ /dev/null @@ -1,109 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ATTRIBUTE_AST_ATTRIBUTE_HH -#define _AST_ATTRIBUTE_AST_ATTRIBUTE_HH - -// Representation of attribute declaration: -// -// An attribute is a field with a readonly property - -/* -** DEPENDENCIES: ast_field.hh, ast_type.hh, utl_scoped_name.hh, -** utl_strlist.hh, ast_decl.hh -** -** USE: Included from ast.h -*/ - -class AST_Attribute : public virtual AST_Field -{ -public: - // Operations - - // Constructor(s) - AST_Attribute(); - AST_Attribute(idl_bool readonly, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_Attribute() {} - - // Data Accessors - idl_bool readonly(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Attribute, AST_Field); - DEF_NARROW_FROM_DECL(AST_Attribute); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - const idl_bool pd_readonly; // Is attribute read-only? -}; - -#endif // _AST_ATTRIBUTE_AST_ATTRIBUTE_HH diff --git a/TAO/TAO_IDL/include/ast_concrete_type.h b/TAO/TAO_IDL/include/ast_concrete_type.h deleted file mode 100644 index 410c2eabe16..00000000000 --- a/TAO/TAO_IDL/include/ast_concrete_type.h +++ /dev/null @@ -1,95 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_CONCRETE_TYPE_AST_CONCRETE_TYPE_HH -#define _AST_CONCRETE_TYPE_AST_CONCRETE_TYPE_HH - -// Class for all concrete types -// -// This is useful to group together IDL types other than objects - -/* -** DEPENDENCIES: ast_type.hh, ast_decl.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_ConcreteType : public virtual AST_Type -{ -public: - // Operations - - // Constructor(s) - AST_ConcreteType(); - AST_ConcreteType(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_ConcreteType() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_ConcreteType, AST_Type); - DEF_NARROW_FROM_DECL(AST_ConcreteType); -}; - -#endif // _AST_CONCRETE_TYPE_AST_CONCRETE_TYPE_HH diff --git a/TAO/TAO_IDL/include/ast_constant.h b/TAO/TAO_IDL/include/ast_constant.h deleted file mode 100644 index 2f663c60a1e..00000000000 --- a/TAO/TAO_IDL/include/ast_constant.h +++ /dev/null @@ -1,117 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_CONSTANT_AST_CONSTANT_HH -#define _AST_CONSTANT_AST_CONSTANT_HH - -// Representation of constant declaration: -// -// NOTE: Part of the job of the constructor is to convert -// the AST_Constant_val it received to the type denoted by -// the ConstantType it received. -// -// NOTE: There are two constructors here, one that gets a NodeType -// parameter. This constructor is used from AST_EnumVal, which is -// just a glorified AST_Constant - -/* -** DEPENDENCIES: ast_decl.hh, ast_expression.hh, utl_scoped_name.hh, -** utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Constant : public virtual AST_Decl -{ -public: - // Operations - - // Constructor(s) - AST_Constant(); - AST_Constant(AST_Expression::ExprType et, AST_Decl::NodeType nt, - AST_Expression *ev, UTL_ScopedName *n, UTL_StrList *p); - AST_Constant(AST_Expression::ExprType et, AST_Expression *ev, - UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Constant() {} - - // Data Accessors - AST_Expression *constant_value(); - AST_Expression::ExprType et(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Constant, AST_Decl); - DEF_NARROW_FROM_DECL(AST_Constant); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Expression *pd_constant_value; // The value - AST_Expression::ExprType pd_et; // Its expr type -}; - -#endif // _AST_CONSTANT_AST_CONSTANT_HH diff --git a/TAO/TAO_IDL/include/ast_decl.h b/TAO/TAO_IDL/include/ast_decl.h deleted file mode 100644 index 1177756ce85..00000000000 --- a/TAO/TAO_IDL/include/ast_decl.h +++ /dev/null @@ -1,190 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_DECL_AST_DECL_HH -#define _AST_DECL_AST_DECL_HH - -// Rock bottom of AST class hierarchy -// -// This class is inherited by all classes which represent named entities -// in IDL. It implements the line and file recording mechanism and also -// records the type of the node. This may be useful for BEs to be able -// to distinguish the real type of a node given only a superclass. - -/* -** DEPENDENCIES: utl_scope.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "idl_bool.h" -#include "utl_scoped_name.h" -#include "utl_string.h" - -// This class is needed (only for g++) to get around a bug in g++ which -// causes virtual operations to not be looked up correctly if an operation -// is defined in more than one virtual public base class. This class makes -// the hierarchy rooted in a single class, thereby eliminating the situation -// that causes the bug to appear - -class COMMON_Base -{ - public: - // Narrowing - DEF_NARROW_METHODS0(COMMON_Base); -}; - -class AST_Decl : public virtual COMMON_Base -{ -public: - // Enum defining the different kinds of AST nodes - enum NodeType { - NT_module // Denotes a module - , NT_root // Denotes the root of AST - , NT_interface // Denotes an interface - , NT_interface_fwd // Fwd declared interface - , NT_const // Denotes a constant - , NT_except // Denotes an exception - , NT_attr // Denotes an attribute - , NT_op // Denotes an operation - , NT_argument // Denotes an op. argument - , NT_union // Denotes a union - , NT_union_branch // Denotes a union branch - , NT_struct // Denotes a structure - , NT_field // Denotes a field in structure - , NT_enum // Denotes an enumeration - , NT_enum_val // Denotes an enum. value - , NT_string // Denotes an IDL string - , NT_array // Denotes an IDL array - , NT_sequence // Denotes an IDL sequence - , NT_typedef // Denotes a typedef - , NT_pre_defined // Denotes a predefined type - , NT_native // Denotes a native type - // dependent on the programming - // language - }; - - // Operations - - // Constructor(s) - AST_Decl(); - AST_Decl(NodeType type, UTL_ScopedName *n, UTL_StrList *pragmas); - virtual ~AST_Decl() {} - - // Data Accessors - idl_bool imported(); - void set_imported(idl_bool is_it); - idl_bool in_main_file(); - void set_in_main_file(idl_bool is_it); - UTL_Scope *defined_in(); - void set_defined_in(UTL_Scope *); - NodeType node_type(); - long line(); - void set_line(long l); - String *file_name(); - void set_file_name(String *s); - UTL_ScopedName *name(); - void set_name(UTL_ScopedName *n); - Identifier *local_name(); - void add_pragmas(UTL_StrList *p); - UTL_StrList *pragmas(); - idl_bool added(); - void set_added(idl_bool is_it); - - // Narrowing - DEF_NARROW_METHODS0(AST_Decl); - DEF_NARROW_FROM_DECL(AST_Decl); - - // AST Dumping - virtual void dump(ostream &o); - - // Other operations - - // Return TRUE if "this" has "s" as an ancestor - idl_bool has_ancestor(AST_Decl *s); - -private: - // Data - idl_bool pd_imported; // Imported? - idl_bool pd_in_main_file; // Defined in main file? - UTL_Scope *pd_defined_in; // Scope - NodeType pd_node_type; // What kind of node - long pd_line; // Line defined in - String *pd_file_name; // What file defined in - UTL_ScopedName *pd_name; // As given - Identifier *pd_local_name; // Name in scope - UTL_StrList *pd_pragmas; // Pragmas - idl_bool pd_added; // already added - - // Operations - - // Compute the full name of an AST node - void compute_full_name(UTL_ScopedName *n); -}; - -#endif // _AST_DECL_AST_DECL_HH diff --git a/TAO/TAO_IDL/include/ast_enum.h b/TAO/TAO_IDL/include/ast_enum.h deleted file mode 100644 index 40189295737..00000000000 --- a/TAO/TAO_IDL/include/ast_enum.h +++ /dev/null @@ -1,115 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ENUM_AST_ENUM_HH -#define _AST_ENUM_AST_ENUM_HH - -// Representation of enum: - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_enum_val.hh, -** utl_scoped_name.hh, utl_strlist.hh, ast_expression.hh, -** -** USE: Included from ast.hh -*/ - -class AST_Enum : public virtual AST_ConcreteType, public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Enum(); - AST_Enum(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Enum() {} - - // Narrowing - DEF_NARROW_METHODS2(AST_Enum, AST_ConcreteType, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Enum); - DEF_NARROW_FROM_SCOPE(AST_Enum); - - // AST Dumping - virtual void dump(ostream &); - - // Other operations - - // Look up an AST_EnumVal by value - virtual AST_EnumVal *lookup_by_value(const AST_Expression *v); - - // Get value to be assigned to next enumerator - virtual unsigned long next_enum_val(); - -private: - // Data - unsigned long pd_enum_counter; // Value for next - // enumerator - // Scope management - friend int tao_yyparse(); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - -}; - -#endif // _AST_ENUM_AST_ENUM_HH diff --git a/TAO/TAO_IDL/include/ast_enum_val.h b/TAO/TAO_IDL/include/ast_enum_val.h deleted file mode 100644 index 6851474b641..00000000000 --- a/TAO/TAO_IDL/include/ast_enum_val.h +++ /dev/null @@ -1,99 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ENUM_VAL_AST_ENUM_VAL_HH -#define _AST_ENUM_VAL_AST_ENUM_VAL_HH - -// Representation of enumerator in enum: -// -// An enumerator is a constant of type unsigned long - -/* -** DEPENDENCIES: ast_constant.hh, utl_scoped_name.hh, utl_strlist.hh, -** ast_decl.hh -** -** USE: Included from ast.hh -*/ - -class AST_EnumVal : public virtual AST_Constant -{ -public: - // Operations - - // Constructor(s) - AST_EnumVal(); - AST_EnumVal(unsigned long v, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_EnumVal() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_EnumVal, AST_Constant); - DEF_NARROW_FROM_DECL(AST_EnumVal); - - // AST Dumping - virtual void dump(ostream &); -}; - -#endif // _AST_ENUM_VAL_AST_ENUM_VAL_HH diff --git a/TAO/TAO_IDL/include/ast_exception.h b/TAO/TAO_IDL/include/ast_exception.h deleted file mode 100644 index f3a667bd8b7..00000000000 --- a/TAO/TAO_IDL/include/ast_exception.h +++ /dev/null @@ -1,118 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_EXCEPTION_AST_EXCEPTION_HH -#define _AST_EXCEPTION_AST_EXCEPTION_HH - -// Representation of exception -// -// NOTE: An exception is not a type according to the CORBAS 1.1 -// -// NOTE: add(AST_ConcreteType *) is defined here because an exception -// can contain locally defined types in addition to fields. -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. It is unlikely that -// a BE writer will need to overload this function in AST_Exception. - -/* -** DEPENDENCIES: ast_decl.hh, ast_structure.hh, utl_scope.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Exception : public virtual AST_Structure -{ -public: - // Operations - - // Constructor(s) - AST_Exception(); - AST_Exception(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Exception() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_Exception, AST_Structure); - DEF_NARROW_FROM_DECL(AST_Exception); - DEF_NARROW_FROM_SCOPE(AST_Exception); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend int tao_yyparse(); - // Scope Management Protocol - - virtual AST_Field *fe_add_field(AST_Field *f); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - -}; - -#endif // _AST_EXCEPTION_AST_EXCEPTION_HH diff --git a/TAO/TAO_IDL/include/ast_expression.h b/TAO/TAO_IDL/include/ast_expression.h deleted file mode 100644 index db3bd7abc41..00000000000 --- a/TAO/TAO_IDL/include/ast_expression.h +++ /dev/null @@ -1,231 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_EXPRESSION_AST_EXPRESSION_HH -#define _AST_EXPRESSION_AST_EXPRESSION_HH - -// Representation of expression values - -/* -** DEPENDENCIES: NONE -** -** USE: Included from ast.hh -*/ - -// An expression (and maybe its value, if computed) -class AST_Expression { -public: - // Enum to define all the different operators to combine expressions - enum ExprComb { - EC_add // '+' - , EC_minus // '-' - , EC_mul // '*' - , EC_div // '/' - , EC_mod // '%' - , EC_or // '|' - , EC_xor // '^' - , EC_and // '&' - , EC_left // '<<' - , EC_right // '>>' - , EC_u_plus // unary '+' - , EC_u_minus // unary '-' - , EC_bit_neg // '~' - , EC_none // No operator (missing) - , EC_symbol // a symbol (function or constant name) - }; - - // Enum to define the different kinds of evaluation possible - // Extend this for more kinds of evaluation as required - enum EvalKind { - EK_const // Must evaluate to constant - , EK_positive_int // Must evaluate to positive integer - }; - - // Enum to define expression type - enum ExprType { - EV_short // Expression value is short - , EV_ushort // Expression value is unsigned short - , EV_long // Expression value is long - , EV_ulong // Expression value is unsigned long - , EV_longlong // Expression value is long long - , EV_ulonglong // Expression value is unsigned long long - , EV_float // Expression value is 32-bit float - , EV_double // Expression value is 64-bit float - , EV_longdouble // Expression value is 128-bit float - , EV_char // Expression value is char - , EV_wchar // Expression value is wide char - , EV_octet // Expression value is unsigned char - , EV_bool // Expression value is boolean - , EV_string // Expression value is char * - , EV_wstring // Expression value is wchar_t * - , EV_any // Expression value is any of above - , EV_void // Expression value is void (absent) - , EV_none // Expression value is missing - }; - - // Structure to descrive value of constant expression and its type - struct AST_ExprValue { - union { - short sval; // Contains short expression value - unsigned short usval; // Contains unsigned short expr value - long lval; // Contains long expression value - unsigned long ulval; // Contains unsigned long expr value - unsigned long bval; // Contains boolean expression value - float fval; // Contains 32-bit float expr value - double dval; // Contains 64-bit float expr value - char cval; // Contains char expression value - unsigned char oval; // Contains unsigned char expr value - String *strval; // Contains String * expr value - unsigned long eval; // Contains enumeration value - } u; - ExprType et; - }; - - // Operations - - // Constructor(s) - AST_Expression(AST_Expression *v, ExprType t); - - AST_Expression(ExprComb c, AST_Expression *v1, AST_Expression *v2); - - AST_Expression(short s); - AST_Expression(unsigned short us); - AST_Expression(long l); - AST_Expression(long l, ExprType t); - AST_Expression(unsigned long ul); - AST_Expression(float f); - AST_Expression(double d); - AST_Expression(char c); - AST_Expression(unsigned char uc); - AST_Expression(String *s); - AST_Expression(UTL_ScopedName *n); - virtual ~AST_Expression () {} - - // Data Accessors - UTL_Scope *defined_in(); - void set_defined_in(UTL_Scope *d); - long line(); - void set_line(long l); - String *file_name(); - void set_file_name(String *f); - ExprComb ec(); - void set_ec(ExprComb new_ec); - AST_ExprValue *ev(); - void set_ev(AST_ExprValue *new_ev); - AST_Expression *v1(); - void set_v1(AST_Expression *e); - AST_Expression *v2(); - void set_v2(AST_Expression *e); - UTL_ScopedName *n(); - void set_n(UTL_ScopedName *new_n); - - // AST Dumping - virtual void dump(ostream &o); - - // Other operations - - // Evaluation and value coercion - virtual AST_ExprValue *eval(EvalKind ek); - virtual AST_ExprValue *coerce(ExprType t); - - // Evaluate then store value inside this AST_Expression - virtual void evaluate(EvalKind ek); - - // Compare to AST_Expressions - virtual long operator==(AST_Expression *vc); - virtual long compare(AST_Expression *vc); - -protected: - // Evaluate different sets of operators - virtual AST_ExprValue *eval_bin_op(EvalKind ek); - virtual AST_ExprValue *eval_bit_op(EvalKind ek); - virtual AST_ExprValue *eval_un_op(EvalKind ek); - virtual AST_ExprValue *eval_symbol(EvalKind ek); - -private: - // Data - UTL_Scope *pd_defined_in; // Scope - long pd_line; // Line defined in - String *pd_file_name; // What file defined in - - ExprComb pd_ec; // What combinator - AST_ExprValue *pd_ev; // computed value - AST_Expression *pd_v1; // 1st sub-expression - AST_Expression *pd_v2; // 2nd sub-expression - UTL_ScopedName *pd_n; // symbolic name (if any) - - // Operations - - // Fill out the lineno, filename and definition scope details - void fill_definition_details(); - - // Internal evaluation - virtual AST_ExprValue *eval_internal(EvalKind ek); -}; - -#endif // _AST_EXPR_VAL_AST_EXPR_VAL_HH - - diff --git a/TAO/TAO_IDL/include/ast_extern.h b/TAO/TAO_IDL/include/ast_extern.h deleted file mode 100644 index f344e371b83..00000000000 --- a/TAO/TAO_IDL/include/ast_extern.h +++ /dev/null @@ -1,93 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_EXTERN_AST_EXTERN_HH -#define _AST_EXTERN_AST_EXTERN_HH - -// ast_extern.hh -// -// Declares all global functions for the AST - -/* -** DEPENDENCIES: none -** -** USE: Included from idl_extern.hh -*/ - -// Functions: - -// Two functions are provided for storing AST nodes representing fwd -// declared interfaces, and for checking the stored nodes after parsing -// the entire AST. The check ensures that for each fwd declared interface -// the full definition was also seen. - -extern void AST_record_fwd_interface(AST_InterfaceFwd *i); -extern void AST_check_fwd_interface(); - -extern idl_bool AST_illegal_recursive_type(AST_Decl *t); - -#endif // _AST_EXTERN_AST_EXTERN_HH - diff --git a/TAO/TAO_IDL/include/ast_field.h b/TAO/TAO_IDL/include/ast_field.h deleted file mode 100644 index b3c6f04cd8c..00000000000 --- a/TAO/TAO_IDL/include/ast_field.h +++ /dev/null @@ -1,119 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_FIELD_AST_FIELD_HH -#define _AST_FIELD_AST_FIELD_HH - -// Representation of a generic field -// -// Used as member in structures, exceptions and unions, and as a base -// type for attributes and arguments to operations -// -// NOTE: There are two constructors here, the first is used when field -// is used directly inside a structure, the second when it is used as -// the base type for attributes and operations. - -/* -** DEPENDENCIES: ast_decl.hh, ast_type.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" - - -class AST_Field : public virtual AST_Decl -{ -public: - // Operations - - // Constructor(s) - AST_Field(); - AST_Field(AST_Type *field_type, - UTL_ScopedName *n, UTL_StrList *p); - AST_Field(AST_Decl::NodeType nt, AST_Type *field_type, - UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Field() {} - - // Data Accessors - AST_Type *field_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Field, AST_Decl); - DEF_NARROW_FROM_DECL(AST_Field); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Type *pd_field_type; // Base type for field - -}; - -#endif // _AST_FIELD_AST_FIELD_HH diff --git a/TAO/TAO_IDL/include/ast_generator.h b/TAO/TAO_IDL/include/ast_generator.h deleted file mode 100644 index 6733bbad3e8..00000000000 --- a/TAO/TAO_IDL/include/ast_generator.h +++ /dev/null @@ -1,219 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_GENERATOR_AST_GENERATOR_HH -#define _AST_GENERATOR_AST_GENERATOR_HH - -// ast_generator.h -// -// Defines base class for generators - -/* -** DEPENDENCIES: ast_predefined_type.hh utl_scoped_name.hh utl_strlist.hh -** ast_module.hh ast_root.hh ast_interface.hh -** ast_interface_fwd.hh ast_exception.hh ast_structure.hh -** ast_enum.hh ast_operation.hh ast_type.hh ast_field.hh -** ast_argument.hh ast_attribute.hh ast_union.hh -** ast_concrete_type.hh ast_union_branch.hh ast_union_label.hh -** ast_expression.hh ast_enum_val.hh ast_array.hh -** ast_sequence.hh ast_string.hh ast_typedef.hh -** -** USE: Included from ast.hh -*/ - -class AST_Generator -{ -public: - // Operations - - // Create a node representing a predefined type - virtual AST_PredefinedType - *create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a module - virtual AST_Module *create_module(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a module which is the root of an AST - virtual AST_Root *create_root(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an interface - virtual AST_Interface *create_interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - - // Create a node representing a forward declaration of an interface - virtual AST_InterfaceFwd *create_interface_fwd(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an exception - virtual AST_Exception *create_exception(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a structure - virtual AST_Structure *create_structure(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an enum - virtual AST_Enum *create_enum(UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an operation on an interface - virtual AST_Operation *create_operation(AST_Type *rt, - AST_Operation::Flags fl, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a field in a structure, exception or - // union - virtual AST_Field *create_field(AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an argument to an operation - virtual AST_Argument *create_argument(AST_Argument::Direction d, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an attribute - virtual AST_Attribute *create_attribute(idl_bool ro, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a union - virtual AST_Union *create_union(AST_ConcreteType *dt, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing one branch in a union - virtual AST_UnionBranch *create_union_branch(AST_UnionLabel *lab, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a label on a union branch - virtual AST_UnionLabel *create_union_label(AST_UnionLabel::UnionLabel ul, - AST_Expression *lv); - - // Create a node representing a constant - virtual AST_Constant *create_constant(AST_Expression::ExprType et, - AST_Expression *ev, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create various kinds of nodes representing expressions - virtual AST_Expression *create_expr(UTL_ScopedName *n); - virtual AST_Expression *create_expr(AST_Expression *v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(AST_Expression::ExprComb c, - AST_Expression *v1, - AST_Expression *v2); - virtual AST_Expression *create_expr(long v); - virtual AST_Expression *create_expr(long v, - AST_Expression::ExprType t); - virtual AST_Expression *create_expr(unsigned long v); - virtual AST_Expression *create_expr(String *s); - virtual AST_Expression *create_expr(char c); - virtual AST_Expression *create_expr(double d); - - // Create a node representing an enumerator - virtual AST_EnumVal *create_enum_val(unsigned long v, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing an array type - virtual AST_Array *create_array(UTL_ScopedName *n, - unsigned long ndims, - UTL_ExprList *dims); - - // Create a node representing a sequence type - virtual AST_Sequence *create_sequence(AST_Expression *v, - AST_Type *bt); - - // Create a node representing a string type - virtual AST_String *create_string(AST_Expression *v); - - // Create a node representing a wide string type - virtual AST_String *create_wstring(AST_Expression *v); - - // Create a node representing a type renaming (typedef) - virtual AST_Typedef *create_typedef(AST_Type *bt, - UTL_ScopedName *n, - UTL_StrList *p); - - // Create a node representing a native - virtual AST_Native *create_native (UTL_ScopedName *n, - UTL_StrList *p); - -}; - -#endif // _AST_GENERATOR_AST_GENERATOR_HH diff --git a/TAO/TAO_IDL/include/ast_interface.h b/TAO/TAO_IDL/include/ast_interface.h deleted file mode 100644 index c41eaf858fd..00000000000 --- a/TAO/TAO_IDL/include/ast_interface.h +++ /dev/null @@ -1,147 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_INTERFACE_AST_INTERFACE_HH -#define _AST_INTERFACE_AST_INTERFACE_HH - -// Representation of interface: -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. - -/* -** DEPENDENCIES: ast_type.hh, utl_scope.hh, ast_decl.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_type.h" -#include "utl_scope.h" -#include "ast_decl.h" - - -class AST_Interface : public virtual AST_Type, public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Interface(); - AST_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); - virtual ~AST_Interface() {} - - // Data Accessors - AST_Interface **inherits(); - void set_inherits(AST_Interface **i); - long n_inherits(); - void set_n_inherits(long i); - - // Is this interface defined? This predicate returns FALSE when an - // interface was forward declared but not defined yet, and TRUE in - // all other cases. - idl_bool is_defined() - { - return (pd_n_inherits < 0) ? I_FALSE : I_TRUE; - } - - // Narrowing - DEF_NARROW_METHODS2(AST_Interface, AST_Type, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Interface); - DEF_NARROW_FROM_SCOPE(AST_Interface); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Interface **pd_inherits; // Inherited interfaces - // This is an array of pointers - // to the inherited interfaces - long pd_n_inherits; // How many of them? - - // Scope Management Protocol - friend int tao_yyparse(); - - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Attribute *fe_add_attribute(AST_Attribute *a); - virtual AST_Operation *fe_add_operation(AST_Operation *o); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual AST_Native *fe_add_native (AST_Native *n); - -}; - -#endif // _AST_INTERFACE_AST_INTERFACE_HH diff --git a/TAO/TAO_IDL/include/ast_interface_fwd.h b/TAO/TAO_IDL/include/ast_interface_fwd.h deleted file mode 100644 index 72a8f8842aa..00000000000 --- a/TAO/TAO_IDL/include/ast_interface_fwd.h +++ /dev/null @@ -1,106 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_INTERFACE_FWD_AST_INTERFACE_FWD_HH -#define _AST_INTERFACE_FWD_AST_INTERFACE_FWD_HH - -// Representation of a forward interface declaration - -/* -** DEPENDENCIES: ast_decl.hh, ast_interface.hh, utl_scoped_name.hh, -** utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_InterfaceFwd : public virtual AST_Type -{ -public: - // Operations - - // Constructor(s) - AST_InterfaceFwd(); - AST_InterfaceFwd(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_InterfaceFwd() {} - - // Data Accessors - AST_Interface *full_definition(); - void set_full_definition(AST_Interface *nfd); - - // Narrowing - DEF_NARROW_METHODS1(AST_InterfaceFwd, AST_Type); - DEF_NARROW_FROM_DECL(AST_InterfaceFwd); - - // AST Dumping - virtual void dump(ostream &); - -private: - // Data - AST_Interface *pd_full_definition; // The interface this is a - // forward declaration of -}; - -#endif // _AST_INTERFACE_FWD_AST_INTERFACE_FWD_HH diff --git a/TAO/TAO_IDL/include/ast_module.h b/TAO/TAO_IDL/include/ast_module.h deleted file mode 100644 index 073eb5baa2c..00000000000 --- a/TAO/TAO_IDL/include/ast_module.h +++ /dev/null @@ -1,121 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_MODULE_AST_MODULE_HH -#define _AST_MODULE_AST_MODULE_HH - -// Representation of module -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. - -/* -** DEPENDENCIES: ast_decl.hh, utl_scope.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Module : public virtual AST_Decl, public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Module(); - AST_Module(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Module() {} - - // Narrowing - DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Module); - DEF_NARROW_FROM_SCOPE(AST_Module); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend void fe_populate(AST_Module *m); - friend int tao_yyparse(); - - // Scope Management Protocol - - virtual AST_PredefinedType *fe_add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *fe_add_module(AST_Module *m); - virtual AST_Interface *fe_add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *fe_add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual AST_Native *fe_add_native (AST_Native *n); - -}; - -#endif // _AST_MODULE_AST_MODULE_HH diff --git a/TAO/TAO_IDL/include/ast_native.h b/TAO/TAO_IDL/include/ast_native.h deleted file mode 100644 index d170da542a9..00000000000 --- a/TAO/TAO_IDL/include/ast_native.h +++ /dev/null @@ -1,38 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -#if !defined (_AST_NATIVE_H_) -#define _AST_NATIVE_H_ - -// Representation of "native" IDL type added by the POA spec -// -/* -** DEPENDENCIES: ast_decl.h -** -** USE: Included from ast.h -*/ - -class AST_Native : public virtual AST_Type -{ -public: - // =Operations - - // Constructor(s) - AST_Native (void); - // default constructor - - AST_Native(UTL_ScopedName *n, UTL_StrList *p); - // constructor that initializes its scoped name - - virtual ~AST_Native (void) {} - // destructor - - // Narrowing - DEF_NARROW_METHODS1(AST_Native, AST_Type); - DEF_NARROW_FROM_DECL(AST_Native); - - // AST Dumping - virtual void dump(ostream &o); -}; - -#endif /* AST_NATIVE_H */ diff --git a/TAO/TAO_IDL/include/ast_operation.h b/TAO/TAO_IDL/include/ast_operation.h deleted file mode 100644 index 3dcf8a252ef..00000000000 --- a/TAO/TAO_IDL/include/ast_operation.h +++ /dev/null @@ -1,139 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_OPERATION_AST_OPERATION_HH -#define _AST_OPERATION_AST_OPERATION_HH - -// Representation of operation declaration: - -/* -** DEPENDENCIES: ast_decl.hh, utl_scope.hh, ast_type.hh, utl_strlist.hh, -** utl_exceptlist.hh, utl_scoped_name.hh -** -** USE: included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "utl_list.h" -#include "ast_decl.h" -#include "utl_scope.h" -#include "utl_scoped_name.h" - - -class AST_Operation : public virtual AST_Decl, public virtual UTL_Scope -{ -public: - // Define enum with flags for operation attributes - enum Flags { - OP_noflags // No flags present - , OP_oneway // Operation is oneway - , OP_idempotent // Operation is idempotent - }; - - // Operations - - // Constructor(s) - AST_Operation(); - AST_Operation(AST_Type *return_type, - Flags flags, - UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_Operation() {} - - // Data Accessors - AST_Type *return_type(); - Flags flags(); - UTL_StrList *context(); - UTL_ExceptList *exceptions(); - - // Narrowing - DEF_NARROW_METHODS2(AST_Operation, AST_Decl, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Operation); - DEF_NARROW_FROM_SCOPE(AST_Operation); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Type *pd_return_type; // Return type - Flags pd_flags; // Operation flags - UTL_StrList *pd_context; // Context - UTL_ExceptList *pd_exceptions; // Exceptions raised - - // Scope Management Protocol - friend int tao_yyparse(); - - virtual AST_Argument *fe_add_argument(AST_Argument *a); - virtual UTL_StrList *fe_add_context(UTL_StrList *c); - // Add context - virtual UTL_NameList *fe_add_exceptions(UTL_NameList *e); - // exceptions - -}; - -#endif // _AST_OPERATION_AST_OPERATION_HH diff --git a/TAO/TAO_IDL/include/ast_predefined_type.h b/TAO/TAO_IDL/include/ast_predefined_type.h deleted file mode 100644 index 7c7ebd953f4..00000000000 --- a/TAO/TAO_IDL/include/ast_predefined_type.h +++ /dev/null @@ -1,127 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_PREDEFINED_TYPE_AST_PREDEFINED_TYPE_HH -#define _AST_PREDEFINED_TYPE_AST_PREDEFINED_TYPE_HH - -// Representation of predefined types: -// -// Instances of this class are inserted into the global context by -// the front end before the start of parsing. - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scoped_name.hh, utl_strlist.hh, -** ast_decl.hh -** -** USE: Included from ast.hh -*/ - -class AST_PredefinedType : public virtual AST_ConcreteType -{ -public: - // Enum for all the different predefined types - enum PredefinedType { - PT_long // Predefined type "long" - , PT_ulong // Predefined type "unsigned long" - , PT_longlong // Predefined type "long long" - , PT_ulonglong // Predefined type "unsigned long long" - , PT_short // Predefined type "short" - , PT_ushort // Predefined type "unsigned short" - , PT_float // Predefined type "float" - , PT_double // Predefined type "double" - , PT_longdouble // Predefined type "long double" - , PT_char // Predefined type "char" - , PT_wchar // Predefined type "wchar_t" - , PT_boolean // Predefined type "boolean" - , PT_octet // Predefined type "octet" - , PT_any // Predefined type "any" - , PT_void // Predefined type "void" - , PT_pseudo // Predefined type for pseudo objects - }; - - // Operations - - // Constructor(s) - AST_PredefinedType(); - AST_PredefinedType(PredefinedType t, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_PredefinedType() {} - - // Data Accessors - PredefinedType pt(); - - // Narrowing - DEF_NARROW_METHODS1(AST_PredefinedType, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_PredefinedType); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - const PredefinedType pd_pt; // The specific predefined type -}; - -#endif // _AST_PREDEFINED_TYPE_AST_PREDEFINED_TYPE_HH diff --git a/TAO/TAO_IDL/include/ast_root.h b/TAO/TAO_IDL/include/ast_root.h deleted file mode 100644 index e81c87f1fda..00000000000 --- a/TAO/TAO_IDL/include/ast_root.h +++ /dev/null @@ -1,107 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_ROOT_AST_ROOT_HH -#define _AST_ROOT_AST_ROOT_HH - -// Representation of root of AST - -/* -** DEPENDENCIES: ast_module.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Root : public virtual AST_Module -{ -public: - // Operations - - // Constructor(s) - AST_Root(); - AST_Root(UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Root() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_Root, AST_Module); - DEF_NARROW_FROM_DECL(AST_Root); - DEF_NARROW_FROM_SCOPE(AST_Root); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend class FE_Declarator; - friend int tao_yyparse(); - // Add protocol - - virtual AST_Sequence *fe_add_sequence(AST_Sequence *s); - virtual AST_String *fe_add_string(AST_String *s); - virtual AST_Array *fe_add_array(AST_Array *a); - -}; - -#endif // _AST_ROOT_AST_ROOT_HH diff --git a/TAO/TAO_IDL/include/ast_sequence.h b/TAO/TAO_IDL/include/ast_sequence.h deleted file mode 100644 index 73849d0f02b..00000000000 --- a/TAO/TAO_IDL/include/ast_sequence.h +++ /dev/null @@ -1,108 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_SEQUENCE_AST_SEQUENCE_HH -#define _AST_SEQUENCE_AST_SEQUENCE_HH - -// Representation of sequence declaration: -// -// A sequence is a combination of a maximum size and a base type - -/* -** DEPENDENCIES: ast_concrete_type.hh, ast_type.hh, ast_decl.hh, -** ast_expression.hh -** -** USE: Included from ast.hh -*/ - -class AST_Sequence : public virtual AST_ConcreteType -{ -public: - // Operations - - // Constructor(s) - AST_Sequence(); - AST_Sequence(AST_Expression *max_size, AST_Type *bt); - virtual ~AST_Sequence() {} - - // Data Accessors - AST_Expression *max_size(); - AST_Type *base_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Sequence, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_Sequence); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Expression *pd_max_size; // Maximum sequence size - AST_Type *pd_base_type; // Sequence base type -}; - -#endif // _AST_SEQUENCE_AST_SEQUENCE_HH diff --git a/TAO/TAO_IDL/include/ast_string.h b/TAO/TAO_IDL/include/ast_string.h deleted file mode 100644 index 9e5874c304c..00000000000 --- a/TAO/TAO_IDL/include/ast_string.h +++ /dev/null @@ -1,108 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_STRING_AST_STRING_HH -#define _AST_STRING_AST_STRING_HH - -// Representation of string declaration -// -// A string type is represented by a maximum size - -/* -** DEPENDENCIES: ast_concrete_type.hh, ast_decl.hh, ast_expression.hh -** -** USE: Included from ast.hh -*/ - -class AST_String : public virtual AST_ConcreteType -{ -public: - // Operations - - // Constructor(s) - AST_String(); - AST_String(AST_Expression *max_size); - AST_String(AST_Expression *max_size, long wide); - virtual ~AST_String() {} - - // Data Accessors - AST_Expression *max_size(); - long width(); - - // Narrowing - DEF_NARROW_METHODS1(AST_String, AST_ConcreteType); - DEF_NARROW_FROM_DECL(AST_String); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Expression *pd_max_size; // String maximum size - long pd_width; // Width of string -}; - -#endif // _AST_STRING_AST_STRING_HH diff --git a/TAO/TAO_IDL/include/ast_structure.h b/TAO/TAO_IDL/include/ast_structure.h deleted file mode 100644 index baa1944bbe6..00000000000 --- a/TAO/TAO_IDL/include/ast_structure.h +++ /dev/null @@ -1,118 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_STRUCTURE_AST_STRUCTURE_HH -#define _AST_STRUCTURE_AST_STRUCTURE_HH - -// Representation of structure: -// -// NOTE: add(AST_ConcreteType *) is defined here because a structure -// can contain locally defined types in addition to fields. -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. It is unlikely that -// a BE writer will need to overload this function in AST_Structure. - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, utl_scoped_name.hh, -** utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Structure : public virtual AST_ConcreteType, - public virtual UTL_Scope -{ -public: - // Operations - - // Constructor(s) - AST_Structure(); - AST_Structure(UTL_ScopedName *n, UTL_StrList *p); - AST_Structure(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Structure() {} - - // Narrowing - DEF_NARROW_METHODS2(AST_Structure, AST_ConcreteType, UTL_Scope); - DEF_NARROW_FROM_DECL(AST_Structure); - DEF_NARROW_FROM_SCOPE(AST_Structure); - - // AST Dumping - virtual void dump(ostream &o); - -private: - friend int tao_yyparse(); - // Scope Management Protocol - - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Field *fe_add_field(AST_Field *f); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); -}; - -#endif // _AST_STRUCTURE_AST_STRUCTURE_HH diff --git a/TAO/TAO_IDL/include/ast_type.h b/TAO/TAO_IDL/include/ast_type.h deleted file mode 100644 index 04a36d8235d..00000000000 --- a/TAO/TAO_IDL/include/ast_type.h +++ /dev/null @@ -1,101 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_TYPE_AST_TYPE_HH -#define _AST_TYPE_AST_TYPE_HH - -// Class for all IDL types -// -// This is useful wherever any IDL type defining construct can appear -// such as the base type for a typedef or array - -/* -** DEPENDENCIES: ast_decl.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" - - -class AST_Type : public virtual AST_Decl -{ -public: - // Operations - - // Constructor(s) - AST_Type(); - AST_Type(AST_Decl::NodeType nt, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Type() {} - - // Narrowing - DEF_NARROW_METHODS1(AST_Type, AST_Decl); - DEF_NARROW_FROM_DECL(AST_Type); -}; - -#endif // _AST_TYPE_AST_TYPE_HH diff --git a/TAO/TAO_IDL/include/ast_typedef.h b/TAO/TAO_IDL/include/ast_typedef.h deleted file mode 100644 index c2e13051b54..00000000000 --- a/TAO/TAO_IDL/include/ast_typedef.h +++ /dev/null @@ -1,105 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_TYPEDEF_AST_TYPEDEF_HH -#define _AST_TYPEDEF_AST_TYPEDEF_HH - -// Representation of typedef declaration -// -// A typedef declaration is a renaming of a base type - -/* -** DEPENDENCIES: ast_decl.hh, ast_type.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Typedef : public virtual AST_Type -{ -public: - // Operations - - // Constructor(s) - AST_Typedef(); - AST_Typedef(AST_Type *base_type, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Typedef() {} - - // Data Accessors - AST_Type *base_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Typedef, AST_Type); - DEF_NARROW_FROM_DECL(AST_Typedef); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_Type *pd_base_type; // typedef base type -}; - -#endif // _AST_TYPEDEF_AST_TYPEDEF_HH diff --git a/TAO/TAO_IDL/include/ast_union.h b/TAO/TAO_IDL/include/ast_union.h deleted file mode 100644 index 062e540e9a8..00000000000 --- a/TAO/TAO_IDL/include/ast_union.h +++ /dev/null @@ -1,143 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_UNION_AST_UNION_HH -#define _AST_UNION_AST_UNION_HH - -// Representation of union declaration: -// -// NOTE: add(AST_ConcreteType *) is defined here because a union -// can contain locally defined types in addition to fields. -// -// NOTE: add(AST_EnumValue *) is defined here because enums can -// be defined manifest locally; the constants defined in these -// enums are inserted in the enclosing scope. It is unlikely that -// a BE writer will need to overload this function in AST_Union. - -/* -** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_union_branch.hh, -** ast_union_label.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -class AST_Union : public virtual AST_Structure -{ -public: - // Operations - - // Constructor(s) - AST_Union(); - AST_Union(AST_ConcreteType *disc_type, UTL_ScopedName *n, UTL_StrList *p); - virtual ~AST_Union() {} - - // Data Accessors - AST_ConcreteType *disc_type(); - AST_Expression::ExprType udisc_type(); - - // Narrowing - DEF_NARROW_METHODS1(AST_Union, AST_Structure); - DEF_NARROW_FROM_DECL(AST_Union); - DEF_NARROW_FROM_SCOPE(AST_Union); - - // AST Dumping - virtual void dump(ostream &); - -private: - // Data - AST_ConcreteType *pd_disc_type; // Discriminator type - AST_Expression::ExprType pd_udisc_type; // Its expression type - /* Convention: udisc_type == EV_any denotes an enum value */ - - // Operations - - // Look up a branch by node pointer - AST_UnionBranch *lookup_branch(AST_UnionBranch *branch); - - // Look up the branch with the "default" label - AST_UnionBranch *lookup_default(); - - // Look up a branch given a branch with a label. This is used to - // check for duplicate labels - AST_UnionBranch *lookup_label(AST_UnionBranch *b); - - // Look up a union branch given an enumerator. This is used to - // check for duplicate enum labels - AST_UnionBranch *lookup_enum(AST_UnionBranch *b); - -private: - friend int tao_yyparse(); - // Scope Management Protocol - - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_UnionBranch *fe_add_union_branch(AST_UnionBranch *b); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - -}; - -#endif // _AST_UNION_AST_UNION_HH diff --git a/TAO/TAO_IDL/include/ast_union_branch.h b/TAO/TAO_IDL/include/ast_union_branch.h deleted file mode 100644 index 2bfe414452e..00000000000 --- a/TAO/TAO_IDL/include/ast_union_branch.h +++ /dev/null @@ -1,109 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_UNION_BRANCH_AST_UNION_BRAN_HH -#define _AST_UNION_BRANCH_AST_UNION_BRAN_HH - -// Representation of union branch declaration: -// -// A branch of a union is a field with a label - -/* -** DEPEndencies: ast_field.hh, ast_union_label.hh, ast_type.hh, -** utl_scoped_name.hh, utl_strlist.h, ast_decl.h -** -** USE: Included from ast.hh -*/ - -class AST_UnionBranch : public virtual AST_Field -{ -public: - // Operations - - // Constructor(s) - AST_UnionBranch(); - AST_UnionBranch(AST_UnionLabel *label, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); - virtual ~AST_UnionBranch() {} - - // Data Accessors - AST_UnionLabel *label(); - - // Narrowing - DEF_NARROW_METHODS1(AST_UnionBranch, AST_Field); - DEF_NARROW_FROM_DECL(AST_UnionBranch); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - AST_UnionLabel *pd_label; // Label of this branch -}; - -#endif // _AST_UNION_BRANCH_AST_UNION_BRAN_HH diff --git a/TAO/TAO_IDL/include/ast_union_label.h b/TAO/TAO_IDL/include/ast_union_label.h deleted file mode 100644 index 7dd124784a4..00000000000 --- a/TAO/TAO_IDL/include/ast_union_label.h +++ /dev/null @@ -1,110 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_UNION_LABEL_AST_UNION_LABEL_HH -#define _AST_UNION_LABEL_AST_UNION_LABEL_HH - -// AST_UnionLabel.h -// -// Defines labels for unions - -/* -** DEPENDENCIES: ast_expression.hh -** -** USE: included from ast.hh -*/ - -class AST_UnionLabel -{ -public: - // Define kind of label - enum UnionLabel { - UL_default // Label is "default" - , UL_label // Regular label - }; - - // Operations - - // Constructor(s) - AST_UnionLabel(); - AST_UnionLabel(UnionLabel lk, AST_Expression *lv); - virtual ~AST_UnionLabel() {} - - // Data Accessors - UnionLabel label_kind(); - AST_Expression *label_val(); - - // AST Dumping - virtual void dump(ostream &o); - -private: - // Data - UnionLabel pd_label_kind; // Label kind - AST_Expression *pd_label_val; // Label expression - -}; - -#endif // _AST_UNION_LABEL_AST_UNION_LABEL_HH diff --git a/TAO/TAO_IDL/include/be_extern.h b/TAO/TAO_IDL/include/be_extern.h deleted file mode 100644 index 253599b76f1..00000000000 --- a/TAO/TAO_IDL/include/be_extern.h +++ /dev/null @@ -1,82 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _BE_EXTERN_BE_EXTERN_HH -#define _BE_EXTERN_BE_EXTERN_HH - -// be_extern.h - Defines the BE part of the BE<->FE protocol - -// Functions: - -extern "C" AST_Generator *BE_init(); - -extern "C" void BE_produce(); -extern "C" void BE_abort(); -extern "C" void BE_prep_arg(char *, idl_bool); - -extern "C" void BE_version(); - -#endif // _BE_EXTERN_BE_EXTERN_HH diff --git a/TAO/TAO_IDL/include/drv_extern.h b/TAO/TAO_IDL/include/drv_extern.h deleted file mode 100644 index b5c3bb163d5..00000000000 --- a/TAO/TAO_IDL/include/drv_extern.h +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _DRV_EXTERN_DRV_EXTERN_HH -#define _DRV_EXTERN_DRV_EXTERN_HH - -// drv_extern.h - External functions for the IDL compiler driver program - -// Functions - -extern void DRV_init (); -extern void DRV_parse_args (long, char **); -extern void DRV_usage (); - -extern void DRV_pre_proc (char *myfile); - -extern void DRV_cpp_init (); -extern void DRV_cpp_putarg (char *str); -extern void DRV_cpp_new_location (char *new_loc); - -extern void DRV_fork(); -extern int DRV_check_gperf (); -extern void DRV_check_for_include (const char* buf); -#endif // _DRV_EXTERN_DRV_EXTERN_HH diff --git a/TAO/TAO_IDL/include/drv_link.h b/TAO/TAO_IDL/include/drv_link.h deleted file mode 100644 index fa154436c25..00000000000 --- a/TAO/TAO_IDL/include/drv_link.h +++ /dev/null @@ -1,124 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _DRV_LINK_DRV_LINK_HH -#define _DRV_LINK_DRV_LINK_HH - -// drv_link.hh - Define data and functions which are used to -// link in the back end functions - -/* - * Front end interface - */ - -class File; -typedef void (* DRV_PF_FE_init_stage1)(); -typedef void (* DRV_PF_FE_init_stage2)(); -typedef int (* DRV_PF_FE_yyparse)(); -typedef void (* DRV_PF_FE_set_yyin)(File *); - -class UTL_Error; -class UTL_Indenter; -class UTL_String; -typedef UTL_Error * (* DRV_PF_FE_new_UTL_Error)(); -typedef UTL_Indenter * (* DRV_PF_FE_new_UTL_Indenter)(); -typedef UTL_String * (* DRV_PF_FE_new_UTL_String)(char *); - -extern DRV_PF_FE_init_stage1 DRV_FE_init_stage1; -extern DRV_PF_FE_init_stage2 DRV_FE_init_stage2; -extern DRV_PF_FE_yyparse DRV_FE_yyparse; -extern DRV_PF_FE_set_yyin DRV_FE_set_yyin; - -extern DRV_PF_FE_new_UTL_Error DRV_FE_new_UTL_Error; -extern DRV_PF_FE_new_UTL_Indenter DRV_FE_new_UTL_Indenter; -extern DRV_PF_FE_new_UTL_String DRV_FE_new_UTL_String; - -/* - * Back end interface - */ - -class AST_Generator; -typedef AST_Generator * (* DRV_PF_BE_init)(); -typedef void (* DRV_PF_BE_produce)(); -typedef void (* DRV_PF_BE_abort)(); -typedef void (* DRV_PF_BE_prep_arg)(char *, idl_bool); -typedef void (* DRV_PF_BE_version)(); - -extern DRV_PF_BE_init DRV_BE_init; -extern DRV_PF_BE_produce DRV_BE_produce; -extern DRV_PF_BE_abort DRV_BE_abort; -extern DRV_PF_BE_prep_arg DRV_BE_prep_arg; -extern DRV_PF_BE_version DRV_BE_version; - -// Functions - -extern void DRV_FE_open(); -extern void DRV_FE_close(); - -extern void DRV_BE_open(); -extern void DRV_BE_close(); - -#endif // _DRV_LINK_DRV_LINK_HH diff --git a/TAO/TAO_IDL/include/drv_private.h b/TAO/TAO_IDL/include/drv_private.h deleted file mode 100644 index 6b18ea8df74..00000000000 --- a/TAO/TAO_IDL/include/drv_private.h +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _DRV_PRIVATE_DRV_PRIVATE_HH -#define _DRV_PRIVATE_DRV_PRIVATE_HH - -// drv_private.hh - Define data and functions which are private to -// the DRV but which must be accessible througout the DRV - -// Data - -extern char *DRV_files[]; // All files to be processed -extern long DRV_nfiles; // How many are there? -extern long DRV_file_index; // What's the file I am responsible - // for? - -// Functions -extern void DRV_drive(char *);// Compiler driver for single file - -#endif // _DRV_PRIVATE_DRV_PRIVATE_HH diff --git a/TAO/TAO_IDL/include/fe_declarator.h b/TAO/TAO_IDL/include/fe_declarator.h deleted file mode 100644 index 00840836a90..00000000000 --- a/TAO/TAO_IDL/include/fe_declarator.h +++ /dev/null @@ -1,113 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_DECLARATOR_FE_DECLARATOR_HH -#define _FE_DECLARATOR_FE_DECLARATOR_HH - -// FE_Declarator.h -// -// FE internal class for storing interim declaration statements - -/* -** DEPENDENCIES: utl_scoped_name.hh, ast_decl.hh -** -** USE: Included from fe.hh -*/ - -class FE_Declarator -{ -public: - // Enum to denote types of declarators - enum DeclaratorType { - FD_simple // Simple declarator - , FD_complex // Complex declarator (complex_part field used) - }; - - // Operations - - // Constructor(s) - FE_Declarator(UTL_ScopedName *n, DeclaratorType dt, AST_Decl *cp); - virtual ~FE_Declarator() {} - - // Data Accessors - AST_Decl *complex_part(); - UTL_ScopedName *name(); - DeclaratorType decl_type(); - - // Other Operations - - // Compose an FE_Declarator into an AST_Type once all the needed information - // is available - AST_Type *compose(AST_Decl* tc); - -private: - // Data - AST_Decl *pd_complex_part; // If a complex declarator - UTL_ScopedName *pd_name; // The name if complex - DeclaratorType pd_decl_type; // Whether complex or simple -}; - -#endif // _FE_DECLARATOR_FE_DECLARATOR_HH diff --git a/TAO/TAO_IDL/include/fe_extern.h b/TAO/TAO_IDL/include/fe_extern.h deleted file mode 100644 index 87ec38c5b55..00000000000 --- a/TAO/TAO_IDL/include/fe_extern.h +++ /dev/null @@ -1,109 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_EXTERN_FE_EXTERN_HH -#define _FE_EXTERN_FE_EXTERN_HH - -// fe_extern.hh -// -// Declares all global functions for the FE - -/* -** DEPENDENCIES: none -** -** USE: Included from idl_extern.hh -*/ - -// Functions: - -// Initialization: -// -// FE initialization is done in two stages, with the BE initialization -// occurring in between. The first stage is responsible for creating -// the sope stack. The BE initialization creates the generator object -// which is then used in the second stage to create the global scope -// and to populate it with nodes for the predefined types - -extern "C" void FE_init_stage1(); // Initialize stage 1 -extern "C" void FE_init_stage2(); // Initialize stage 2 - -// Interface to Yacc parser - -class File; -extern "C" int FE_yyparse(); // Invode yyparse -extern "C" void FE_set_yyin(File *); // Set yyin - -// Interface to constructors for objects need by the driver - -class UTL_Error; -class UTL_Indenter; -class UTL_String; - -extern "C" UTL_Error * FE_new_UTL_Error(); -extern "C" UTL_Indenter * FE_new_UTL_Indenter(); -extern "C" UTL_String * FE_new_UTL_String(char *); - -#endif // _FE_EXTERN_FE_EXTERN_HH diff --git a/TAO/TAO_IDL/include/fe_interface_header.h b/TAO/TAO_IDL/include/fe_interface_header.h deleted file mode 100644 index f9b9d5bbf45..00000000000 --- a/TAO/TAO_IDL/include/fe_interface_header.h +++ /dev/null @@ -1,109 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_INTERFACE_HEADER_FE_INTERFACE_HH -#define _FE_INTERFACE_HEADER_FE_INTERFACE_HH - -// FE_InterfaceHeader -// -// Internal class for FE to describe interface headers - -/* -** DEPENDENCIES: utl_scoped_name.hh, ast_interface.hh, utl_scope.hh, -** ast_decl.hh -** -** USE: Included from fe.hh -*/ - -class FE_InterfaceHeader -{ -public: - // Operations - - // Constructor(s) - FE_InterfaceHeader(UTL_ScopedName *n, UTL_NameList *l); - virtual ~FE_InterfaceHeader() {} - - // Data Accessors - UTL_ScopedName *interface_name(); - AST_Interface **inherits(); - long n_inherits(); - -private: - // Data - UTL_ScopedName *pd_interface_name; // Interface name - AST_Interface **pd_inherits; // Inherited interfaces - long pd_n_inherits; // How many - - // Operations - - // Compile the flattened unique list of interfaces which this - // interface inherits from - void compile_one_inheritance(AST_Interface *i); - void compile_inheritance(UTL_NameList *l); -}; - -#endif // _FE_INTERFACE_HEADER_FE_INTERFACE_HH diff --git a/TAO/TAO_IDL/include/fe_private.h b/TAO/TAO_IDL/include/fe_private.h deleted file mode 100644 index 1c496ce9843..00000000000 --- a/TAO/TAO_IDL/include/fe_private.h +++ /dev/null @@ -1,107 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _FE_FE_HH -#define _FE_FE_HH - -// fe_private.hh - Defines data which is private to the FE but -// which must be accessible throughout the FE - -/* -** DEPENDENCIES: NONE -** -** USE: Included from source files -*/ - -/* - * FE includes - */ - -#include "fe_interface_header.h"// class FE_InterfaceHeader -#include "fe_declarator.h" // class FE_Declarator - -/* - * FE Operations - */ - -// define an entry for the C++ keyword and its mapping -struct TAO_IDL_CPP_Keyword_Entry -{ - char *keyword_; - char *mapping_; -}; - -// define a table that provides the lookup for the C++ keyword. The lookup uses -// a perfect hash function -class TAO_IDL_CPP_Keyword_Table -{ -private: - unsigned int hash (const char *str, int len); -public: - const TAO_IDL_CPP_Keyword_Entry *lookup (const char *str, int len); -}; - -#endif // _FE_FE_HH diff --git a/TAO/TAO_IDL/include/global_extern.h b/TAO/TAO_IDL/include/global_extern.h deleted file mode 100644 index c28a733f785..00000000000 --- a/TAO/TAO_IDL/include/global_extern.h +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _GLOBAL_EXTERN_GLOBAL_EXTERN_HH -#define _GLOBAL_EXTERN_GLOBAL_EXTERN_HH - -// global_extern.hh - Global data for the IDL compiler - -extern IDL_GlobalData *idl_global; // Contains all "global" data - -// Global functions for the IDL compiler - -// Return TRUE when the name of this AST_Decl can be reused in -// a definition in this scope -extern idl_bool can_be_redefined(AST_Decl *); - -#endif // _GLOBAL_EXTERN_GLOBAL_EXTERN_HH diff --git a/TAO/TAO_IDL/include/idl.h b/TAO/TAO_IDL/include/idl.h deleted file mode 100644 index 5989365150e..00000000000 --- a/TAO/TAO_IDL/include/idl.h +++ /dev/null @@ -1,97 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_IDL_HH -#define _IDL_IDL_HH - -// idl.hh -// -// Main include file for IDL compiler. Includes the rest of the -// files defining the different units of the compiler - -#include "ace/ACE.h" // Most important ACE include file -#include "ace/streams.h" // iostreams - -#include "intlmacros.h" // Define macros for intl'ion - -#include // POSIX standard defns -#include // External functions - -#include // POSIX standard types - -#include "idl_narrow.h" // IDL Narrowing mechanism - -#include "idl_defines.h" // Constants for IDL compiler -#include "idl_fwd.h" // Forward decls of classes - -#include "idl_bool.h" // Defines boolean for IDL - -#include "utl_string.h" // Defines utility string class -#include "utl_identifier.h" // Defines utility identifier class -#include "ast.h" // AST classes -#include "util.h" // Utility classes - -#endif // _IDL_IDL_HH diff --git a/TAO/TAO_IDL/include/idl_bool.h b/TAO/TAO_IDL/include/idl_bool.h deleted file mode 100644 index c0741684896..00000000000 --- a/TAO/TAO_IDL/include/idl_bool.h +++ /dev/null @@ -1,94 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_BOOL_IDL_BOOL_HH -#define _IDL_BOOL_IDL_BOOL_HH - -/* - * idl_bool.hh - Boolean definitions for IDL CFE - * - * This is interim. When porting to a new platform, this file will be - * modified to incorporate definitions for the boolean type suitable - * for the new platform. - */ - -/* -** DEPENDENCIES: NONE -** -** USE: Included from idl.hh -*/ - -#ifndef I_TRUE -#define I_TRUE 1 -#endif - -#ifndef I_FALSE -#define I_FALSE 0 -#endif - -typedef long idl_bool; - -#endif // _IDL_BOOL_IDL_BOOL_HH diff --git a/TAO/TAO_IDL/include/idl_defines.h b/TAO/TAO_IDL/include/idl_defines.h deleted file mode 100644 index 6cf062ee212..00000000000 --- a/TAO/TAO_IDL/include/idl_defines.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_DEFINES_IDL_DEFINES_HH -#define _IDL_DEFINES_IDL_DEFINES_HH - -/* - * idl_defines.hh - Defines global compiler flags - */ - -// This cannot be an enum since more than one value may be active at -// a given time, hence bitflags are #define'd instead - -#define IDL_CF_VERSION (1 << 0) -#define IDL_CF_DUMP_AST (1 << 1) -#define IDL_CF_ONLY_PREPROC (1 << 2) -#define IDL_CF_ONLY_USAGE (1 << 3) -#define IDL_CF_INFORMATIVE (1 << 4) -#define IDL_CF_NOWARNINGS (1 << 5) - -#endif // _IDL_DEFINES_IDL_DEFINES_HH diff --git a/TAO/TAO_IDL/include/idl_extern.h b/TAO/TAO_IDL/include/idl_extern.h deleted file mode 100644 index efbe0ccdeb5..00000000000 --- a/TAO/TAO_IDL/include/idl_extern.h +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_EXTERN_IDL_EXTERN_HH -#define _IDL_EXTERN_IDL_EXTERN_HH - -// idl_extern.hh -// -// Global variables and functions for IDL compiler - -#include "fe_extern.h" // External API of FE -#include "be_extern.h" // External API of BE -#include "drv_extern.h" // External API of DRV -#include "ast_extern.h" // External API of AST -#include "nr_extern.h" // External API of NR -#include "global_extern.h" // Global data - -#endif // _IDL_EXTERN_IDL_EXTERN_HH diff --git a/TAO/TAO_IDL/include/idl_fwd.h b/TAO/TAO_IDL/include/idl_fwd.h deleted file mode 100644 index 7b9761418b4..00000000000 --- a/TAO/TAO_IDL/include/idl_fwd.h +++ /dev/null @@ -1,148 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_FWD_IDL_FWD_HH -#define _IDL_FWD_IDL_FWD_HH - -// idl_fwd.hh -// -// Forward declaration of all class names in CFE-BEs contract - -/* -** DEPENDENCIES: NONE -** -** USE: Included from idl.hh -*/ - -// Class for global data representation: - -class IDL_GlobalData; // Global data is stored in an - // instance of this - -// Classes for utility of the IDL compiler: - -class UTL_ScopeStack; // Stack of scopes -class UTL_Scope; // A definition scope (mixin) - -class UTL_LongList; // List of longs -class UTL_StrList; // List of strings -class UTL_StrlistActiveIterator; // Active iterator for list of strings -class UTL_IdList; // List of identifiers -class UTL_IdListActiveIterator; // Active iterator for list of id's -class UTL_ExceptList; // List of exceptions -class UTL_NameList; // List of scoped names -class UTL_ExprList; // List of expressions -class UTL_InterfList; // List of interfaces -class UTL_LabelList; // List of union branch labels -class UTL_DeclList; // List of declarators -class UTL_String; // String class -class UTL_Identifier; // Identifier class - -class UTL_Error; // Error class -class UTL_Indenter; // Indenter class - -// Classes for utility of the FE. These classes are used only -// by the FE but their forward declaration is needed because lists -// of them are constructed by classes in UTL - -class FE_InterfaceHeader; // Interface header -class FE_Declarator; // Declarator - -// Generator class for the AST - -class AST_Generator; // Generate nodes of various types - -// Classes for AST: - -class AST_Decl; // The rock bottom base class - -class AST_PredefinedType; // A predefined type -class AST_Type; // An IDL type -class AST_ConcreteType; // An IDL concrete type -class AST_Module; // A module -class AST_Root; // The root of an AST (a module) -class AST_Interface; // An interface -class AST_InterfaceFwd; // A forward interface decl -class AST_Constant; // A constant declaration -class AST_Expression; // Value of an expression -class AST_Exception; // An exception declaration -class AST_Attribute; // An attribute declaration -class AST_Operation; // An operation declaration -class AST_Argument; // An argument to an operation -class AST_Union; // A union declaration -class AST_UnionBranch; // A branch in a union -class AST_UnionLabel; // A union branch label -class AST_Structure; // A structure declaration -class AST_Field; // A field in a structure or union -class AST_Enum; // An enum declaration -class AST_EnumVal; // An enumerator in an enum -class AST_Sequence; // A sequence declaration -class AST_String; // A string declaration -class AST_Array; // An array declaration -class AST_Typedef; // A typedef declaration -class AST_Native; // A native declaration - -#endif // _IDL_FWD_IDL_FWD_HH diff --git a/TAO/TAO_IDL/include/idl_global.h b/TAO/TAO_IDL/include/idl_global.h deleted file mode 100644 index bfd049ede8a..00000000000 --- a/TAO/TAO_IDL/include/idl_global.h +++ /dev/null @@ -1,529 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_IDL_GLOBAL_HH -#define _IDL_IDL_GLOBAL_HH - -// idl_global.hh -// -// Defines a class containing all global data for the compiler. -// Can be subclassed in BEs to store more data - -class IDL_GlobalData -{ -public: - // Types - - // The ParseState type encodes the state of the Yacc parser so that - // better error messages can be produced, and for use by BEs in situations - // where context sensitive behavior is required - enum ParseState { - PS_NoState // No state - , PS_TypeDeclSeen // Seen complete typedef declaration - , PS_ConstDeclSeen // Seen complete const declaration - , PS_ExceptDeclSeen // Seen complete exception declaration - , PS_InterfaceDeclSeen // Seen complete interface declaration - , PS_ModuleDeclSeen // Seen complete module declaration - , PS_AttrDeclSeen // Seen complete attribute declaration - , PS_OpDeclSeen // Seen complete operation declaration - , PS_ModuleSeen // Seen a MODULE keyword - , PS_ModuleIDSeen // Seen the module ID - , PS_ModuleSqSeen // '{' seen for module - , PS_ModuleQsSeen // '}' seen for module - , PS_ModuleBodySeen // Seen complete module body - , PS_InterfaceSeen // Seen an INTERFACE keyword - , PS_InterfaceIDSeen // Seen the interface ID - , PS_InheritSpecSeen // Seen a complete inheritance spec - , PS_ForwardDeclSeen // Forward interface decl seen - , PS_InterfaceSqSeen // '{' seen for interface - , PS_InterfaceQsSeen // '}' seen for interface - , PS_InterfaceBodySeen // Seen an interface body - , PS_InheritColonSeen // Seen ':' in inheritance list - , PS_SNListCommaSeen // Seen ',' in list of scoped names - , PS_ScopedNameSeen // Seen a complete scoped name - , PS_SN_IDSeen // Seen an identifier as part of a scoped name - , PS_ScopeDelimSeen // Seen a scope delim as party of a scoped name - , PS_ConstSeen // Seen a CONST keyword - , PS_ConstTypeSeen // Parsed the type of a constant - , PS_ConstIDSeen // Seen the constant ID - , PS_ConstAssignSeen // Seen the '=' - , PS_ConstExprSeen // Seen the constant value expression - , PS_TypedefSeen // Seen a TYPEDEF keyword - , PS_TypeSpecSeen // Seen a complete type specification - , PS_DeclaratorsSeen // Seen a complete list of declarators - , PS_StructSeen // Seen a STRUCT keyword - , PS_StructIDSeen // Seen the struct ID - , PS_StructSqSeen // '{' seen for struct - , PS_StructQsSeen // '}' seen for struct - , PS_StructBodySeen // Seen complete body of struct decl - , PS_MemberTypeSeen // Seen type of struct or except member - , PS_MemberDeclsSeen // Seen decls of struct or except members - , PS_MemberDeclsCompleted // Completed one struct or except member to ';' - , PS_UnionSeen // Seen a UNION keyword - , PS_UnionIDSeen // Seen the union ID - , PS_SwitchSeen // Seen the SWITCH keyword - , PS_SwitchOpenParSeen // Seen the switch open par. - , PS_SwitchTypeSeen // Seen the switch type spec - , PS_SwitchCloseParSeen // Seen the switch close par. - , PS_UnionSqSeen // '{' seen for union - , PS_UnionQsSeen // '}' seen for union - , PS_DefaultSeen // Seen DEFAULT keyword - , PS_UnionLabelSeen // Seen label of union element - , PS_LabelColonSeen // Seen ':' of union branch label - , PS_LabelExprSeen // Seen expression of union branch label - , PS_UnionElemSeen // Seen a union element - , PS_UnionElemCompleted // Completed one union member up to ';' - , PS_CaseSeen // Seen a CASE keyword - , PS_UnionElemTypeSeen // Seen type spec for union element - , PS_UnionElemDeclSeen // Seen declarator for union element - , PS_UnionBodySeen // Seen completed union body - , PS_EnumSeen // Seen an ENUM keyword - , PS_EnumIDSeen // Seen the enum ID - , PS_EnumSqSeen // Seen '{' for enum - , PS_EnumQsSeen // Seen '}' for enum - , PS_EnumBodySeen // Seen complete enum body - , PS_EnumCommaSeen // Seen ',' in list of enumerators - , PS_SequenceSeen // Seen a SEQUENCE keyword - , PS_SequenceSqSeen // Seen '<' for sequence - , PS_SequenceQsSeen // Seen '>' for sequence - , PS_SequenceTypeSeen // Seen type decl for sequence - , PS_SequenceCommaSeen // Seen comma for sequence - , PS_SequenceExprSeen // Seen size expression for sequence - , PS_StringSeen // Seen a STRING keyword - , PS_StringSqSeen // Seen '<' for string - , PS_StringQsSeen // Seen '>' for string - , PS_StringExprSeen // Seen size expression for string - , PS_StringCompleted // Seen a string decl without size spec - , PS_ArrayIDSeen // Seen array ID - , PS_ArrayCompleted // Seen completed array declaration - , PS_DimSqSeen // Seen '[' for array dimension - , PS_DimQsSeen // Seen ']' for array dimension - , PS_DimExprSeen // Seen size expression for array dimension - , PS_AttrROSeen // Seen READONLY keyword - , PS_AttrSeen // Seen ATTRIBUTE keyword - , PS_AttrTypeSeen // Seen type decl for attribute - , PS_AttrDeclsSeen // Seen declarators for attribute - , PS_AttrCompleted // Seen complete attribute declaration - , PS_ExceptSeen // Seen EXCEPTION keyword - , PS_ExceptIDSeen // Seen exception identifier - , PS_ExceptSqSeen // Seen '{' for exception - , PS_ExceptQsSeen // Seen '}' for exception - , PS_ExceptBodySeen // Seen complete exception body - , PS_OpAttrSeen // Seen operation attribute - , PS_OpTypeSeen // Seen operation return type - , PS_OpIDSeen // Seen operation ID - , PS_OpParsCompleted // Completed operation param list - , PS_OpRaiseCompleted // Completed operation except list - , PS_OpContextCompleted // Completed operation context spec - , PS_OpCompleted // Completed operation statement - , PS_OpSqSeen // Seen '(' for operation - , PS_OpQsSeen // Seen ')' for operation - , PS_OpParCommaSeen // Seen ',' in list of op params - , PS_OpParDirSeen // Seen parameter direction - , PS_OpParTypeSeen // Seen parameter type - , PS_OpParDeclSeen // Seen parameter declaration - , PS_OpRaiseSeen // Seen RAISES keyword - , PS_OpRaiseSqSeen // Seen '(' for RAISES - , PS_OpRaiseQsSeen // Seen ')' for RAISES - , PS_OpContextSeen // Seen CONTEXT keyword - , PS_OpContextSqSeen // Seen '(' for CONTEXT - , PS_OpContextQsSeen // Seen ')' for CONTEXT - , PS_OpContextCommaSeen // Seen ',' for CONTEXT - , PS_DeclsCommaSeen // Seen ',' in declarators list - , PS_DeclsDeclSeen // Seen complete decl in decls list - , PS_NativeSeen // Seen a native declaration - , PS_PragmaPrefixSyntax // Could not parse the #pragma prefix - }; - - // Constructor - IDL_GlobalData(); - virtual ~IDL_GlobalData() {} - - // Operations - virtual UTL_ScopeStack *scopes(); // Scopes stack - virtual void set_scopes(UTL_ScopeStack *); - // Set it - - virtual AST_Root *root(); // Root of AST - virtual void set_root(AST_Root *); // Set it - - virtual AST_Generator *gen(); // Generator - virtual void set_gen(AST_Generator *);// Set it - - virtual UTL_Error *err(); // Error reporter - virtual void set_err(UTL_Error *); // Set it - - virtual long err_count(); // How many errors? - virtual void set_err_count(long); // Set it - - virtual long lineno(); // Where in file? - virtual void set_lineno(long); // Set it - - virtual String *filename(); // What file? - virtual void set_filename(String *); // Set it - - virtual String *main_filename(); // What's the main - // file name? - virtual void set_main_filename(String *); - // Set it - - virtual String *real_filename(); // What's the real - // file name? - virtual void set_real_filename(String *); - // Set it - - virtual String *stripped_filename(); // Stripped filename - virtual void set_stripped_filename(String *); // Set it - - virtual idl_bool imported(); // Are we imported? - virtual idl_bool import(); // Is import on? - virtual void set_import(idl_bool); // Set it - - virtual idl_bool in_main_file(); // Are we? - virtual void set_in_main_file(idl_bool); // Set it - - virtual char *prog_name(); // Invoked as.. - virtual void set_prog_name(char *); // Set it - - virtual char *cpp_location(); // Where's CPP? - virtual void set_cpp_location(char *);// Set it - - virtual long compile_flags(); // What flags are on? - virtual void set_compile_flags(long);// Turn some on or off - - virtual char *be(); // Get BE to use - virtual void set_be(char *); // Set it - - virtual char *local_escapes(); // Get local escapes - virtual void set_local_escapes(char *);// Set it - - virtual UTL_Indenter *indent(); // Get indenter - virtual void set_indent(UTL_Indenter *); - // Set it - - virtual UTL_StrList *pragmas(); // Get pragmas - virtual void set_pragmas(UTL_StrList *);// Set it - - virtual idl_bool read_from_stdin(); // Reading from stdin? - virtual void set_read_from_stdin(idl_bool); // Set it - - virtual void store_include_file_name(String *); - - virtual String **include_file_names(); // Array of file names - virtual void set_include_file_names(String **); // Set it - - virtual unsigned long n_include_file_names(); // How many - virtual void set_n_include_file_names(unsigned long n); - - // = Access methods to deal with other IDL files included in the main - // IDL file. These IDL files are exactly the same strings that are - // "#include"d in the main IDL file, not the ones after CC - // preprocessor parsed the file. - - // Just storing the pointer. No memory will be allocated. - virtual void add_to_included_idl_files (char* file_name); - - // Get all the files. - virtual char** included_idl_files (void); - - // The number of currently availabe include files. - virtual size_t n_included_idl_files (void); - - virtual ParseState parse_state(); // What state we're in - virtual void set_parse_state(ParseState s); // Set it - - // Convert from a predefined type to an expression type - virtual AST_Expression::ExprType - PredefinedTypeToExprType (AST_PredefinedType::PredefinedType); - - /**************** Added to serve the back end *************/ - virtual String *idl_src_file(); - // Returns the IDL source file being compiled. - - virtual void idl_src_file(String *); - // Set the source IDL file that is being parsed. - - // helper functions that generate the file names for the C++ mapping - // generated code. - // The parameter set to 0 (no base name, but full - // name with output dir path, is useful, when I just want just the - // base name to use in #include's etc. - static const char *be_get_client_hdr_fname (int base_name_only = 0); - static const char *be_get_client_stub_fname (); - static const char *be_get_client_inline_fname (int base_name_only = 0); - static const char *be_get_server_hdr_fname (int base_name_only = 0); - static const char *be_get_server_template_hdr_fname (int base_name_only = 0); - static const char *be_get_server_skeleton_fname (); - static const char *be_get_server_template_skeleton_fname (int base_name_only = 0); - static const char *be_get_server_inline_fname (int base_name_only = 0); - static const char *be_get_server_template_inline_fname (int base_name_only = 0); - - // Helper functions: obtain the names of each generated file given - // the IDL file name. - // The parameter set to 0 (no base name, but full - // name with output dir path, is useful, when I just want just the - // base name to use in #include's etc. - static const char *be_get_client_hdr (String *idl_file_name, - int base_name_only = 0); - static const char *be_get_client_stub (String *idl_file_name); - static const char *be_get_client_inline (String *idl_file_name, - int base_name_only = 0); - static const char *be_get_server_hdr (String *idl_file_name, - int base_name_only = 0); - static const char *be_get_server_template_hdr (String *idl_file_name, - int base_name_only = 0); - static const char *be_get_server_skeleton (String *idl_file_name); - static const char *be_get_server_template_skeleton (String *idl_file_name, - int base_name_only = 0); - static const char *be_get_server_inline (String *idl_file_name, - int base_name_only = 0); - static const char *be_get_server_template_inline (String *idl_file_name, - int base_name_only = 0); - - virtual const char* export_macro (void) const; - // returns the macro name for exporting classes in Win32 DLL. - - virtual void export_macro (const char* s); - // set the macro name for export classes in Win32 DLL. - - virtual const char* export_include (void) const; - // returns the name of the include file that contains the export - // macro definition. - - virtual void export_include (const char* s); - // set the name of the include file that contains the export - // macro definition. - - // = Set and get methods for different file name endings. - - virtual void client_hdr_ending (const char* s); - // Set the client_hdr_ending. - - virtual const char* client_hdr_ending (void) const; - // Get the client_hdr_ending. - - virtual void client_inline_ending (const char* s); - // Set the client_inline_ending. - - virtual const char* client_inline_ending (void) const; - // Get the client_inline_ending. - - virtual void client_stub_ending (const char* s); - // Set the client_stub_ending. - - virtual const char* client_stub_ending (void) const; - // Get the client_stub_ending. - - virtual void server_hdr_ending (const char* s); - // Set the server_hdr_ending. - - virtual const char* server_hdr_ending (void) const; - // Get the server_hdr_ending. - - virtual void server_template_hdr_ending (const char* s); - // Set the server_template_hdr_ending. - - virtual const char* server_template_hdr_ending (void) const; - // Get the server_template_hdr_ending. - - virtual void server_skeleton_ending (const char* s); - // Set the server_skeleton_ending. - - virtual const char* server_skeleton_ending (void) const; - // Get the server_skeleton_ending. - - virtual void server_template_skeleton_ending (const char* s); - // Set the server_template_skeleton_ending. - - virtual const char* server_template_skeleton_ending (void) const; - // Get the server_template_skeleton_ending. - - virtual void server_inline_ending (const char* s); - // Set the server_inline_ending. - - virtual const char* server_inline_ending (void) const; - // Get the server_inline_ending. - - virtual void server_template_inline_ending (const char* s); - // Set the server_template_inline_ending. - - virtual const char* server_template_inline_ending (void) const; - // Get the server_template_inline_ending. - - virtual void output_dir (const char* s); - // Set the directory where all the IDL-Compiler-Generated files are - // to be kept. Default is current directory from which the - // is called. - - virtual const char* output_dir (void) const; - // Get the directory where all the IDL-Compiler-Generated files are - // to be kept. Default is current directory from which the - // is called. - - virtual void perfect_hasher (const char* s); - // Set the path for the perfect hashing program (GPERF). - - virtual const char* perfect_hasher (void) const; - // Get the path for the perfect hashing program (GPERF). -private: - // Data - UTL_ScopeStack *pd_scopes; // Store scopes stack - AST_Root *pd_root; // Store AST root - AST_Generator *pd_gen; // Store generator - UTL_Error *pd_err; // Error object - long pd_err_count; // Count of errors - long pd_lineno; // What line # - String *pd_filename; // What file - String *pd_main_filename; // What main filename - String *pd_real_filename; // What real filename - String *pd_stripped_filename; // Stripped filename - idl_bool pd_import; // Is import on? - idl_bool pd_in_main_file; // Are we in it? - char *pd_prog_name; // Argv[0] - char *pd_cpp_location; // Where to find CPP - long pd_compile_flags; // Compile flags - char *pd_be; // BE name to use - char *pd_local_escapes; // Trapdoor argument - UTL_Indenter *pd_indent; // Indent object - UTL_StrList *pd_pragmas; // List of pragmas - // as its being built - idl_bool pd_read_from_stdin; // Reading from stdin? - String **pd_include_file_names;// Array of file names. - unsigned long pd_n_include_file_names;// How many. - unsigned long pd_n_alloced_file_names;// How many alloced. - - char** included_idl_files_; - // IDL files that are "#include'd. - - size_t n_included_idl_files_; - // The number of such idl files that are currently stored. - - size_t n_allocated_idl_files_; - // For char*'s have been allocated for this. - - ParseState pd_parse_state; // Parse state we're in. - - // Operations - long seen_include_file_before(String *); - // Seen this include - // before? - - String *pd_idl_src_file; // IDL source file. - - char* export_macro_; - char* export_include_; - - // Client's header file name ending. Default is "C.h". - char* client_hdr_ending_; - - // Client's stub's file name ending. Default is "C.cpp". - char* client_stub_ending_; - - // Client's inline file name ending. Default is "C.i". - char* client_inline_ending_; - - // Server's hdr file name ending. Default is "S.h". - char* server_hdr_ending_; - - // Server's template hdr file name ending. Default is "S_T.h". - char* server_template_hdr_ending_; - - // Server's skeleton file name ending. Default is "S.cpp". - char* server_skeleton_ending_; - - // Server's template skeleton file name ending. Default is - // "S_T.cpp". - char* server_template_skeleton_ending_; - - // Server's inline file name ending. Default is "S.i". - char* server_inline_ending_; - - // Server's template inline file name ending. Default is "S_T.i". - char* server_template_inline_ending_; - - // Path for the perfect hash generator(gperf) program. Default - // is $ACE_ROOT/bin/gperf. - char* perfect_hasher_; - - // Directory where all the IDL-Compiler-Generated files are to be - // kept. Default value is 0 for this string which means the current - // directory from which the is called. - char* output_dir_; -}; - -#endif //_IDL_IDL_GLOBAL_HH - - - - - - - - - - - - diff --git a/TAO/TAO_IDL/include/idl_narrow.h b/TAO/TAO_IDL/include/idl_narrow.h deleted file mode 100644 index 7b770612682..00000000000 --- a/TAO/TAO_IDL/include/idl_narrow.h +++ /dev/null @@ -1,264 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_NARROW_IDL_NARROW_HH -#define _IDL_NARROW_IDL_NARROW_HH - -// idl_narrow.hh -// -// Implement IDL narrowing mechanism. Not intended to be read by humans.. -// -// Logic: -// -// The DEF_xxx macros are used in class declarations. -// The IMPL_xxx macros are used in class implementations. -// -// The DEF_xxx macros come in two flavors. The first one, DEF_NARROW_METHODSn, -// defines the narrowing mechanism. It declares a static class function whose -// address is used as the class identifier. Then, it declares a narrow op -// with an implementation suitable for narrowing from exactly 'n' superclasses. -// The names of the superclass types are given as arguments. The second flavor -// implements specific narrowing mechanisms from AST_decl and from UTL_scope. -// These macros are named DEF_NARROW_FROM_DECL and DEF_NARROW_FROM_SCOPE -// respectively. -// -// The IMPL_xxx macros also come in two flavors, corresponding to the two -// flavors of DEF_xxx macros. The IMPL_NARROW_METHODSn macros implement the -// narrowing mechanism for classes which must be narrowed from 'n' ancestors. -// The IMPL_NARROW_FROM_DECL and IMPL_NARROW_FROM_SCOPE macros implement -// the narrowing mechanisms for narrowing from instances of AST_decl and -// UTL_scope. -// -// IMPL_NARROW_METHODSn where n is 0,1,2 and 3 are provided. -// DEF_NARROW_METHODSn where n is 0,1,2 and 3 are provided. - -extern char *type_id_to_string(long); - -#define DEF_NARROW_METHODS0(TYPE)\ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS0(TYPE)\ -int \ -TYPE::type_id()\ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - return rval; \ -} - -#define DEF_NARROW_METHODS1(TYPE,PARENT) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS1(TYPE,PARENT) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS2(TYPE,PARENT1,PARENT2) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS2(TYPE,PARENT1,PARENT2) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) { \ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS3(TYPE,PARENT1,PARENT2,PARENT3) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS3(TYPE,PARENT1,PARENT2,PARENT3) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT3::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS4(TYPE,PARENT1,PARENT2,PARENT3,PARENT4) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS4(TYPE,PARENT1,PARENT2,PARENT3,PARENT4) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT3::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT4::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_METHODS5(TYPE,PARENT1,PARENT2,PARENT3,PARENT4,PARENT5) \ -static int type_id(); \ -virtual void *narrow(long type_const) - - -#define IMPL_NARROW_METHODS5(TYPE,PARENT1,PARENT2,PARENT3,PARENT4,PARENT5) \ -int \ -TYPE::type_id() \ -{\ - return 0;\ -}\ -void * \ -TYPE::narrow(long type_const) {\ - void *rval = NULL; \ - if (type_const == (long)&TYPE::type_id) \ - rval = this; \ - if (rval == NULL) \ - rval = PARENT1::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT2::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT3::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT4::narrow(type_const);\ - if (rval == NULL) \ - rval = PARENT5::narrow(type_const);\ - return rval;\ -} - -#define DEF_NARROW_FROM_DECL(TYPE)\ -static TYPE *narrow_from_decl(AST_Decl *t) - - -#define IMPL_NARROW_FROM_DECL(TYPE)\ -TYPE * \ -TYPE::narrow_from_decl(AST_Decl *t) { \ - return (TYPE *)t->narrow((long)&TYPE::type_id);\ -} - -#define DEF_NARROW_FROM_SCOPE(TYPE)\ -static TYPE *narrow_from_scope(UTL_Scope *t) - - -#define IMPL_NARROW_FROM_SCOPE(TYPE)\ -TYPE * \ -TYPE::narrow_from_scope(UTL_Scope *t) { \ - return (TYPE *)t->narrow((long)&TYPE::type_id);\ -} - -#endif // _IDL_NARROW_IDL_NARROW_HH diff --git a/TAO/TAO_IDL/include/intlmacros.h b/TAO/TAO_IDL/include/intlmacros.h deleted file mode 100644 index a3a8c8c5cf0..00000000000 --- a/TAO/TAO_IDL/include/intlmacros.h +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _IDL_INTLMACROS_HH -#define _IDL_INTLMACROS_HH - -// intlmacros.hh -// -// Define macros which conditionalize string internationalization - -#ifndef DOMF_TEXT_DEVEL_DOMAIN -#define DOMF_TEXT_DEVEL_DOMAIN "SUNW_DOE_DOMF_DEVEL" -#endif // DOMF_TEXT_DEVEL_DOMAIN - -#define GTDEVEL(s) s - -#if defined(__STDC__) -#define CONV(p) #p -#define MKSTR(p) CONV(p) -#else -#define MKSTR(p) "p" -#endif - -#endif // _IDL_INTLMACROS_HH diff --git a/TAO/TAO_IDL/include/nr_extern.h b/TAO/TAO_IDL/include/nr_extern.h deleted file mode 100644 index efa8be05209..00000000000 --- a/TAO/TAO_IDL/include/nr_extern.h +++ /dev/null @@ -1,76 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _NR_EXTERN_NR_EXTERN_HH -#define _NR_EXTERN_NR_EXTERN_HH - -// nr_extern.hh - Defines entry points provided by narrowing - -// Convert between an UTL_Scope and an AST_Decl -extern AST_Decl *ScopeAsDecl(UTL_Scope *s); -extern UTL_Scope *DeclAsScope(AST_Decl *d); - -#endif // _NR_EXTERN_NR_EXTERN_HH diff --git a/TAO/TAO_IDL/include/util.h b/TAO/TAO_IDL/include/util.h deleted file mode 100644 index fa8d871e721..00000000000 --- a/TAO/TAO_IDL/include/util.h +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTIL_UTIL_HH -#define _UTIL_UTIL_HH - -// util.hh - Includes commonly used things defined in the util directory - -#include "utl_stack.h" // class fe_stack -#include "utl_exprlist.h" // class UTL_ExprList -#include "utl_strlist.h" // class UTL_StrList -#include "utl_idlist.h" // class UTL_IdList -#include "utl_exceptlist.h" // class UTL_ExceptList -#include "utl_namelist.h" // class UTL_NameList -#include "utl_labellist.h" // class UTL_LabelList -#include "utl_decllist.h" // class UTL_DeclList - -#include "idl_global.h" // Class IDL_GlobalData - -#include "utl_error.h" // class UTL_Error - -#include "utl_indenter.h" // class UTL_Indenter - -#endif // _UTIL_UTIL_HH diff --git a/TAO/TAO_IDL/include/utl_decllist.h b/TAO/TAO_IDL/include/utl_decllist.h deleted file mode 100644 index 4a33e154ac2..00000000000 --- a/TAO/TAO_IDL/include/utl_decllist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_DECLLIST_UTL_DECLLIST_HH -#define _UTL_DECLLIST_UTL_DECLLIST_HH - -// utl_decllist.hh -// -// List of FE_Declarator nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, fe_declarator.hh -** -** USE: Included from util.hh -*/ - -class UTL_DeclList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr); - - // Get element - FE_Declarator *head(); - -private: - // Data - FE_Declarator *pd_car_data; // The element this list stores -}; - -// Active iterator fooor UTL_DeclList -class UTL_DecllistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_DecllistActiveIterator(UTL_DeclList *s); - - // Get current item - FE_Declarator *item(); -}; - -#endif // _UTL_DECLLIST_UTL_DECLLIST_HH diff --git a/TAO/TAO_IDL/include/utl_err.h b/TAO/TAO_IDL/include/utl_err.h deleted file mode 100644 index 199e20d927f..00000000000 --- a/TAO/TAO_IDL/include/utl_err.h +++ /dev/null @@ -1,183 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_ERROR_UTL_ERROR_HH -#define _UTL_ERROR_UTL_ERROR_HH - -// utl_error.hh -// -// Defines error codes and error handling class for UTL -// This will change as a result of internationalization - -/* -** DEPENDENCIES: ast.hh -** -** USE: Included from util.hh -*/ - -class UTL_Error -{ -public: - enum ErrorCode { - EIDL_SYNTAX_ERROR, // Syntax error in IDL input - // More details will be gleaned from examining - // idl_global->parse_state() - EIDL_REDEF, // Redefinition - EIDL_REDEF_SCOPE, // Redefinition inside defining scope - EIDL_DEF_USE, // Definition after use - EIDL_MULTIPLE_BRANCH, // More than one union branch with this - // label - EIDL_COERCION_FAILURE, // Coercion failure - EIDL_SCOPE_CONFLICT, // Between fwd declare and full declare - EIDL_ONEWAY_CONFLICT, // Between op decl and argument direction - EIDL_DISC_TYPE, // Illegal discriminator type in union - EIDL_LABEL_TYPE, // Mismatch with discriminator type in union - EIDL_ILLEGAL_ADD, // Illegal add action - EIDL_ILLEGAL_USE, // Illegal type used in expression - EIDL_ILLEGAL_RAISES, // Error in "raises" clause - EIDL_ILLEGAL_CONTEXT, // Error in "context" clause - EIDL_CANT_INHERIT, // Cannot inherit from non-interface - EIDL_LOOKUP_ERROR, // Identifier not found - EIDL_INHERIT_FWD_ERROR, // Cannot inherit from fwd decl interface - EIDL_CONSTANT_EXPECTED, // We got something else.. - EIDL_NAME_CASE_ERROR, // Spelling differences found - EIDL_ENUM_VAL_EXPECTED, // Expected an enumerator - EIDL_ENUM_VAL_NOT_FOUND, // Didnt find an enumerator with that name - EIDL_EVAL_ERROR, // Error in evaluating expression - EIDL_AMBIGUOUS, // Ambiguous name definition - EIDL_DECL_NOT_DEFINED, // Forward declared but never defined - EIDL_FWD_DECL_LOOKUP, // Tried to lookup in fwd declared intf - EIDL_RECURSIVE_TYPE, // Illegal recursive use of type - EIDL_NONVOID_ONEWAY, // Non-void return type in oneway operation - EIDL_NOT_A_TYPE, // Not a type - EIDL_BACK_END, // Back end error - EIDL_OK // No error - }; - - // Operations - - // Report errors with varying numbers of arguments - void error0(ErrorCode e); - void error1(ErrorCode e, AST_Decl *t); - void error2(ErrorCode e, AST_Decl *t1, AST_Decl *t2); - void error3(ErrorCode e, AST_Decl *t1, AST_Decl *t2, AST_Decl *t3); - - // Report a syntax error in IDL input - void syntax_error(IDL_GlobalData::ParseState ps); - - // Report a name being used with different spellings - void name_case_error(char *n, char *t); - - // Report an unsuccesful coercion attempt - void coercion_error(AST_Expression *v, AST_Expression::ExprType t); - - // Report a failed name lookup attempt - void lookup_error(UTL_ScopedName *n); - - // Report an attempt to use a forward declared interface which - // hasn't been defined yet in an inheritance spec - void inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f); - - // Report an attempt to inherit from something other than an interface - void inheritance_error(UTL_ScopedName *n, AST_Decl *d); - - // Report an error while evaluating an expression (division by zero, etc.) - void eval_error(AST_Expression *d); - - // Report a situation where a constant was expected but we got - // something else instead. This most likely is a case where a union - // label did not evaluate to a constant - void constant_expected(UTL_ScopedName *n, AST_Decl *d); - - // Report a situation where an enumerator was expected but we got - // something else instead. This occurs when a union with an enum - // discriminator is being parsed and one of the branch labels is - // not an enumerator in that enum - void enum_val_expected(AST_Union *t, AST_UnionLabel *l); - - // Report a failed enumerator lookup in an enum - void enum_val_lookup_failure(AST_Union *t, AST_Enum *e, UTL_ScopedName *n); - - // Report an ambiguous name definition - void ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d); - - // Report a forward declared interface which was never defined - void fwd_decl_not_defined(AST_Interface *d); - - // Report attempt to lookup in forward declared interface - void fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n); - - // Report a redefinition in scope - void redefinition_in_scope(AST_Decl *t, AST_Decl *s); - - // Report not a type error - void not_a_type(AST_Decl *d); - - // Report back-end error - void back_end(long lineno, String *s); -}; - -#endif // _UTL_ERROR_UTL_ERROR_HH diff --git a/TAO/TAO_IDL/include/utl_error.h b/TAO/TAO_IDL/include/utl_error.h deleted file mode 100644 index 199e20d927f..00000000000 --- a/TAO/TAO_IDL/include/utl_error.h +++ /dev/null @@ -1,183 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_ERROR_UTL_ERROR_HH -#define _UTL_ERROR_UTL_ERROR_HH - -// utl_error.hh -// -// Defines error codes and error handling class for UTL -// This will change as a result of internationalization - -/* -** DEPENDENCIES: ast.hh -** -** USE: Included from util.hh -*/ - -class UTL_Error -{ -public: - enum ErrorCode { - EIDL_SYNTAX_ERROR, // Syntax error in IDL input - // More details will be gleaned from examining - // idl_global->parse_state() - EIDL_REDEF, // Redefinition - EIDL_REDEF_SCOPE, // Redefinition inside defining scope - EIDL_DEF_USE, // Definition after use - EIDL_MULTIPLE_BRANCH, // More than one union branch with this - // label - EIDL_COERCION_FAILURE, // Coercion failure - EIDL_SCOPE_CONFLICT, // Between fwd declare and full declare - EIDL_ONEWAY_CONFLICT, // Between op decl and argument direction - EIDL_DISC_TYPE, // Illegal discriminator type in union - EIDL_LABEL_TYPE, // Mismatch with discriminator type in union - EIDL_ILLEGAL_ADD, // Illegal add action - EIDL_ILLEGAL_USE, // Illegal type used in expression - EIDL_ILLEGAL_RAISES, // Error in "raises" clause - EIDL_ILLEGAL_CONTEXT, // Error in "context" clause - EIDL_CANT_INHERIT, // Cannot inherit from non-interface - EIDL_LOOKUP_ERROR, // Identifier not found - EIDL_INHERIT_FWD_ERROR, // Cannot inherit from fwd decl interface - EIDL_CONSTANT_EXPECTED, // We got something else.. - EIDL_NAME_CASE_ERROR, // Spelling differences found - EIDL_ENUM_VAL_EXPECTED, // Expected an enumerator - EIDL_ENUM_VAL_NOT_FOUND, // Didnt find an enumerator with that name - EIDL_EVAL_ERROR, // Error in evaluating expression - EIDL_AMBIGUOUS, // Ambiguous name definition - EIDL_DECL_NOT_DEFINED, // Forward declared but never defined - EIDL_FWD_DECL_LOOKUP, // Tried to lookup in fwd declared intf - EIDL_RECURSIVE_TYPE, // Illegal recursive use of type - EIDL_NONVOID_ONEWAY, // Non-void return type in oneway operation - EIDL_NOT_A_TYPE, // Not a type - EIDL_BACK_END, // Back end error - EIDL_OK // No error - }; - - // Operations - - // Report errors with varying numbers of arguments - void error0(ErrorCode e); - void error1(ErrorCode e, AST_Decl *t); - void error2(ErrorCode e, AST_Decl *t1, AST_Decl *t2); - void error3(ErrorCode e, AST_Decl *t1, AST_Decl *t2, AST_Decl *t3); - - // Report a syntax error in IDL input - void syntax_error(IDL_GlobalData::ParseState ps); - - // Report a name being used with different spellings - void name_case_error(char *n, char *t); - - // Report an unsuccesful coercion attempt - void coercion_error(AST_Expression *v, AST_Expression::ExprType t); - - // Report a failed name lookup attempt - void lookup_error(UTL_ScopedName *n); - - // Report an attempt to use a forward declared interface which - // hasn't been defined yet in an inheritance spec - void inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f); - - // Report an attempt to inherit from something other than an interface - void inheritance_error(UTL_ScopedName *n, AST_Decl *d); - - // Report an error while evaluating an expression (division by zero, etc.) - void eval_error(AST_Expression *d); - - // Report a situation where a constant was expected but we got - // something else instead. This most likely is a case where a union - // label did not evaluate to a constant - void constant_expected(UTL_ScopedName *n, AST_Decl *d); - - // Report a situation where an enumerator was expected but we got - // something else instead. This occurs when a union with an enum - // discriminator is being parsed and one of the branch labels is - // not an enumerator in that enum - void enum_val_expected(AST_Union *t, AST_UnionLabel *l); - - // Report a failed enumerator lookup in an enum - void enum_val_lookup_failure(AST_Union *t, AST_Enum *e, UTL_ScopedName *n); - - // Report an ambiguous name definition - void ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d); - - // Report a forward declared interface which was never defined - void fwd_decl_not_defined(AST_Interface *d); - - // Report attempt to lookup in forward declared interface - void fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n); - - // Report a redefinition in scope - void redefinition_in_scope(AST_Decl *t, AST_Decl *s); - - // Report not a type error - void not_a_type(AST_Decl *d); - - // Report back-end error - void back_end(long lineno, String *s); -}; - -#endif // _UTL_ERROR_UTL_ERROR_HH diff --git a/TAO/TAO_IDL/include/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_exceptlist.h deleted file mode 100644 index 821efe648d2..00000000000 --- a/TAO/TAO_IDL/include/utl_exceptlist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH -#define _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH - -// utl_exceptlist.hh -// -// List of AST_Exception nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, ast_exception.hh -** -** USE: Included from util.hh -*/ - -class UTL_ExceptList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr); - - // Get list item - AST_Exception *head(); - -private: - // Data - AST_Exception *pd_car_data; // Item of this list -}; - -// Active iterator for UTL_ExceptList -class UTL_ExceptlistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptlistActiveIterator(UTL_ExceptList *s); - - // Get current item - AST_Exception *item(); -}; - -#endif // _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH diff --git a/TAO/TAO_IDL/include/utl_exprlist.h b/TAO/TAO_IDL/include/utl_exprlist.h deleted file mode 100644 index d113b23109e..00000000000 --- a/TAO/TAO_IDL/include/utl_exprlist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_EXPRLIST_UTL_EXPRLIST_HH -#define _UTL_EXPRLIST_UTL_EXPRLIST_HH - -// utl_exprlist.hh -// -// List of strings - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: ast_expression.hh, utl_list.hh -** -** USE: Included from util.hh -*/ - -class UTL_ExprList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr); - - // Get list item - AST_Expression *head(); - -private: - // Data - AST_Expression *pd_car_data; // List item -}; - -// Active iterator for UTL_ExprList -class UTL_ExprlistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExprlistActiveIterator(UTL_ExprList *s); - - // Get current item - AST_Expression *item(); -}; - -#endif // _UTL_EXPRLIST_UTL_EXPRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_identifier.h b/TAO/TAO_IDL/include/utl_identifier.h deleted file mode 100644 index 392ee7e58e5..00000000000 --- a/TAO/TAO_IDL/include/utl_identifier.h +++ /dev/null @@ -1,113 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_IDENTIFIER_UTL_IDENTIFIER_HH -#define _UTL_IDENTIFIER_UTL_IDENTIFIER_HH - -// utl_identifier.hh -// -// Identifier - -/* -** DEPENDENCIES: utl_string.hh -** -** USE: Included from util.hh -*/ - -#include "idl_fwd.h" -#include "utl_string.h" - -class Identifier -{ -public: - Identifier (); - // Default Constructor(s) - - Identifier (char *s, long x=1, long y=0, long z=I_FALSE); - // constructor - - virtual ~Identifier (); - // destructor - - // =Operations - - char *get_string (); - // get the underlying string - - long compare (Identifier *other); - // compare with other Identifier - - // =Dumping - - virtual void dump (ostream &o); - // dump to an ostream - - private: - // Storage for data - char *pv_string; -}; - -#endif // _UTL_IDENTIFIER_UTL_IDENTIFIER_HH diff --git a/TAO/TAO_IDL/include/utl_idlist.h b/TAO/TAO_IDL/include/utl_idlist.h deleted file mode 100644 index 211836af42e..00000000000 --- a/TAO/TAO_IDL/include/utl_idlist.h +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_IDLIST_UTL_IDLIST_HH -#define _UTL_IDLIST_UTL_IDLIST_HH - -// utl_idlist.hh -// -// List of Identifiers - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, utl_identifier.hh -** -** USE: Included from util.hh -*/ - -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_identifier.h" -#include "utl_string.h" - -class UTL_IdList : public UTL_List -{ - // =TITLE - // UTL_IdList - // =DESCRIPTION - // Used to maintain a list of identifiers. The primary usage of this class - // is to maintain a scoped name. -public: - UTL_IdList (Identifier *car, UTL_IdList *cdr); - // Constructor(s) - - virtual ~UTL_IdList() {} - // destructor - - // =AST Dumping - - virtual void dump (ostream &o); - // dump to ostream - - // Other operations - - UTL_List *copy (); - // Copy the list - - Identifier *head (); - // get element - - Identifier *last_component (); - // Get last element in this list -private: - Identifier *pd_car_data; -}; - -// Active iterator for UTL_IdList - -class UTL_IdListActiveIterator : - public UTL_ListActiveIterator -{ - // =TITLE - // UTL_IdListActiveIterator - // =DESCRIPTION - // Iterator for the IDList -public: - UTL_IdListActiveIterator (UTL_IdList *s); - // Constructor(s) - - Identifier *item (); - // retrieves the next item -}; - -#endif // _UTL_IDLIST_UTL_IDLIST_HH diff --git a/TAO/TAO_IDL/include/utl_indenter.h b/TAO/TAO_IDL/include/utl_indenter.h deleted file mode 100644 index 29c8c587f00..00000000000 --- a/TAO/TAO_IDL/include/utl_indenter.h +++ /dev/null @@ -1,117 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_INDENTER_UTL_INDENTER_HH -#define _UTL_INDENTER_UTL_INDENTER_HH - -// UTL indenter: -// -// Utility class for control of indentation level during dumping -// May also be useful for BEs that want to produce nicely formatted -// output - -/* -** DEPENDENCIES: NONE -** -** USE: in CFE in dumping the AST -*/ - -class UTL_Indenter -{ - // =TITLE - // UTL_Indenter - // =DESCRIPTION - // useful in generating indented output -public: - // Operations - - UTL_Indenter(); // constructor - // Constructor(s) - - virtual ~UTL_Indenter() {} - // destructor - - void reset(); - // Reset indentation level to 0 - - void increase(); - // Increase indentation level - - void decrease(); - // Decrease indentation level - - void skip_to (ostream &o); - // Skip to indentation level stop - - void skip_to (FILE *fp); - // skip to indentation level stop - -private: - // Data - long pd_indent_level; // How far to indent -}; - -#endif // _UTL_INDENTER_UTL_INDENTER_HH diff --git a/TAO/TAO_IDL/include/utl_labellist.h b/TAO/TAO_IDL/include/utl_labellist.h deleted file mode 100644 index e3410e34623..00000000000 --- a/TAO/TAO_IDL/include/utl_labellist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_LABELLIST_UTL_LABELLIST_HH -#define _UTL_LABELLIST_UTL_LABELLIST_HH - -// utl_labellist.hh -// -// List of AST_UnionBranch nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, ast_union_label.hh -** -** USE: Included from util.hh -*/ - -class UTL_LabelList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr); - - // Get list item - AST_UnionLabel *head(); - -private: - // Data - AST_UnionLabel *pd_car_data; // List item -}; - -// Active iterator for UTL_LabelList -class UTL_LabellistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_LabellistActiveIterator(UTL_LabelList *source); - - // Get current item - AST_UnionLabel *item(); -}; - -#endif // _UTL_LABELLIST_UTL_LABELLIST_HH diff --git a/TAO/TAO_IDL/include/utl_list.h b/TAO/TAO_IDL/include/utl_list.h deleted file mode 100644 index 0c113ab9fbc..00000000000 --- a/TAO/TAO_IDL/include/utl_list.h +++ /dev/null @@ -1,150 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_LIST_UTL_LIST_HH -#define _UTL_LIST_UTL_LIST_HH - -// utl_list.hh -// -// General single-linked lists - -/* -** DEPENDENCIES: NONE -** -** USE: Included from util.hh -*/ - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -// Forward declare active iterator for UTL_List -class UTL_ListActiveIterator; - -class UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_List(UTL_List *c); - - // Smash last cdr pointer in "this" with l - void nconc(UTL_List *l); - - // Copy the list starting at "this" - virtual UTL_List *copy(); - - // Get next list - UTL_List *tail(); - - // Set next list - void set_tail(UTL_List *l); - - // How long is this list? - long length(); - -private: - // Data - UTL_List *pd_cdr_data; // The next list - - // Operations - long list_length(long n); // How long is it? - - // Friend class - friend class UTL_ListActiveIterator; // Friend class - -}; - -// Active iterator for lists -class UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ListActiveIterator(UTL_List *s); - - // Get next list - virtual void next(); - - // Are we at the end of this list? - virtual long is_done(); - -protected: - // Data - UTL_List *source; // On what to iterate? -}; - -#endif // _UTL_LIST_UTL_LIST_HH diff --git a/TAO/TAO_IDL/include/utl_namelist.h b/TAO/TAO_IDL/include/utl_namelist.h deleted file mode 100644 index 3b9be0bc45a..00000000000 --- a/TAO/TAO_IDL/include/utl_namelist.h +++ /dev/null @@ -1,121 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_NAMELIST_UTL_NAMELIST_HH -#define _UTL_NAMELIST_UTL_NAMELIST_HH - -// utl_namelist.hh -// -// List of UTL_ScopedName nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, utl_scoped_name.hh -** -** USE: Included from util.hh -*/ - -class UTL_NameList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr); - - // Get list item - UTL_ScopedName *head(); - -private: - // Data - UTL_ScopedName *pd_car_data; // List item -}; - -// Active iterator for UTL_NameList -class UTL_NamelistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_NamelistActiveIterator(UTL_NameList *source); - - // Get current item - UTL_ScopedName *item(); -}; - -#endif // _UTL_NAMELIST_UTL_NAMELIST_HH diff --git a/TAO/TAO_IDL/include/utl_scope.h b/TAO/TAO_IDL/include/utl_scope.h deleted file mode 100644 index ce94d12574f..00000000000 --- a/TAO/TAO_IDL/include/utl_scope.h +++ /dev/null @@ -1,292 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_SCOPE_UTL_SCOPE_HH -#define _UTL_SCOPE_UTL_SCOPE_HH - -// UTL_Scope - Provide scoping mechanism -// -// This is the base class for name scoping. Each entity which can -// be directly contained in a naming scope has an add() function -// defined for it. The functions defined on the base scoping class -// all return FALSE. Each subclass of UTL_Scope should -// define its own add() functions for those types which are legal -// in that context. Then, for those types for which no local functions -// have been defined the function on the base class will be called to -// return FALSE. -// -// The "AST_" classes may redefine add() functions to implement any -// name binding mechanisms needed for their own functionality. It is -// the responsibility of those functions then to call the add() -// function defined in the parent "AST_" class. - -/* -** DEPENDENCIES: ast_decl.hh, utl_scoped_name.hh -** -** USE: Included from ast.hh -*/ - -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" -#include "ast_expression.h" -#include "utl_scoped_name.h" - -// Forward declaration of active iterator for UTL_Scope -class UTL_ScopeActiveIterator; - -class UTL_Scope : public virtual COMMON_Base -{ -public: - // Enum to denote the kind of iteration desired - enum ScopeIterationKind { - IK_both // Iterate through both decls and local types - , IK_decls // Iterate only through decls - , IK_localtypes // Iterate only through local types - }; - - // Operations - - // Constructor(s) - UTL_Scope(); - UTL_Scope(AST_Decl::NodeType nt); - virtual ~UTL_Scope() {} - - // Scope Management Protocol - virtual AST_PredefinedType *add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *add_module(AST_Module *m); - virtual AST_Interface *add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *add_constant(AST_Constant *c); - virtual AST_Exception *add_exception(AST_Exception *e); - virtual AST_Attribute *add_attribute(AST_Attribute *a); - virtual AST_Operation *add_operation(AST_Operation *o); - virtual AST_Argument *add_argument(AST_Argument *a); - virtual AST_Union *add_union(AST_Union *u); - virtual AST_UnionBranch *add_union_branch(AST_UnionBranch *b); - virtual AST_Structure *add_structure(AST_Structure *s); - virtual AST_Field *add_field(AST_Field *f); - virtual AST_Enum *add_enum(AST_Enum *e); - virtual AST_EnumVal *add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *add_typedef(AST_Typedef *t); - virtual UTL_StrList *add_context(UTL_StrList *c); - virtual UTL_NameList *add_exceptions(UTL_NameList *e); - virtual AST_Sequence *add_sequence(AST_Sequence *s); - virtual AST_String *add_string(AST_String *s); - virtual AST_Array *add_array(AST_Array *a); - virtual AST_Native *add_native (AST_Native *n); - - // Call back end add_XXX functions for this scope - virtual AST_Decl *call_add(); - - // Data Accessors - AST_Decl::NodeType scope_node_type() - { - return pd_scope_node_type; - } - - // Narrowing - DEF_NARROW_METHODS0(UTL_Scope); - DEF_NARROW_FROM_SCOPE(UTL_Scope); - - // AST Dumping - virtual void dump(ostream &o); - - // Other Operations - - // Name Lookup Mechanism - virtual AST_Decl *lookup_by_name(UTL_ScopedName *, - idl_bool treat_as_ref); - - // Look up the Identifier * specified only in the local scope - virtual AST_Decl *lookup_by_name_local(Identifier *, - idl_bool treat_as_ref); - - // Look up a predefined type by its ExprType - virtual AST_Decl - *lookup_primitive_type(AST_Expression::ExprType); - - // How many entries are used? - virtual unsigned long nmembers(); - -protected: - // UTL_Scope protected addition protocol. This protocol is - // used from sub-classes of UTL_Scope to insert nodes directly - // into the specified node table (either decls or local_types) - // Additionally, UTL_Scope also maintains a record of what nodes - // defined elsewhere were referenced in this scope - - // Add to decls. Node represents a local declaration - void add_to_scope(AST_Decl *e); - - // Add to local types. Node represents a local manifest type - void add_to_local_types(AST_Decl *e); - - // Add to referenced nodes set. - void add_to_referenced(AST_Decl *e, - idl_bool recursive); - - // Has this node been referenced here already? - idl_bool referenced(AST_Decl *e); - - // Look up a scoped name in the inherited interfaces of an - // interface - virtual AST_Decl *look_in_inherited(UTL_ScopedName *, - idl_bool treat_as_ref); -protected: - // Operations - - // Lookup based on the local name - virtual AST_Decl *lookup_for_add(AST_Decl *d, - idl_bool treat_as_ref); - -private: - // Data - - // What type is this node? This is a cache of the information - // in AST_Decl - const AST_Decl::NodeType pd_scope_node_type; - - // Storage for declarations in this scope: - AST_Decl **pd_decls; // Store declarations - long pd_decls_allocated; // How many allocated? - long pd_decls_used; // How many used? - - // Storage for local manifest types in this scope: - AST_Decl **pd_local_types; // Store types - long pd_locals_allocated; // How many allocated? - long pd_locals_used; // How many used? - - // Storage for referenced nodes in this scope: - AST_Decl **pd_referenced; // Store references - long pd_referenced_allocated;// How many allocated? - long pd_referenced_used; // How many used? - - // Friend class UTL_ScopeActiveIterator defines active iterator for - // UTL_Scope. Definition follows below. - friend class UTL_ScopeActiveIterator; - -private: - friend int tao_yyparse(); - friend class AST_Enum; - - // Scope Management Protocol - virtual AST_PredefinedType *fe_add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *fe_add_module(AST_Module *m); - virtual AST_Interface *fe_add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *fe_add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Attribute *fe_add_attribute(AST_Attribute *a); - virtual AST_Operation *fe_add_operation(AST_Operation *o); - virtual AST_Argument *fe_add_argument(AST_Argument *a); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_UnionBranch *fe_add_union_branch(AST_UnionBranch *b); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Field *fe_add_field(AST_Field *f); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual UTL_StrList *fe_add_context(UTL_StrList *c); - virtual UTL_NameList *fe_add_exceptions(UTL_NameList *e); - virtual AST_Sequence *fe_add_sequence(AST_Sequence *s); - virtual AST_String *fe_add_string(AST_String *s); - virtual AST_Array *fe_add_array(AST_Array *a); - virtual AST_Native *fe_add_native (AST_Native *n); -}; - -// Active iterator for a UTL_Scope node -class UTL_ScopeActiveIterator { -public: - // Operations - - // Constructor(s) - UTL_ScopeActiveIterator(UTL_Scope *s, UTL_Scope::ScopeIterationKind ik); - - // Advance to next item - virtual void next(); - - // Get current item - virtual AST_Decl *item(); - - // Have we iterated over entire scope? - virtual idl_bool is_done(); - - // What kind of iterator is this? - virtual UTL_Scope::ScopeIterationKind iteration_kind(); - - // What stage are we in with this iterator? - virtual UTL_Scope::ScopeIterationKind iteration_stage(); - -private: - // Data - UTL_Scope *iter_source; // Scope to iterate over - UTL_Scope::ScopeIterationKind ik; // What kind of iteration - UTL_Scope::ScopeIterationKind stage; // What stage - long il; // What location in stage -}; - -#endif // _UTL_SCOPE_UTL_SCOPE_HH diff --git a/TAO/TAO_IDL/include/utl_scoped_name.h b/TAO/TAO_IDL/include/utl_scoped_name.h deleted file mode 100644 index 5a3145e669b..00000000000 --- a/TAO/TAO_IDL/include/utl_scoped_name.h +++ /dev/null @@ -1,82 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _AST_SCOPED_NAME_AST_SCOPED_NAME_HH -#define _AST_SCOPED_NAME_AST_SCOPED_NAME_HH - -// Define UTL_ScopedName as a list of strings - -/* -** DEPENDENCIES: utl_strlist.hh -** -** USE: Included from ast.hh -*/ - -typedef UTL_IdList UTL_ScopedName; - -typedef UTL_IdListActiveIterator UTL_ScopedNameActiveIterator; - -#endif // _AST_SCOPED_NAME_AST_SCOPED_NAME_HH diff --git a/TAO/TAO_IDL/include/utl_stack.h b/TAO/TAO_IDL/include/utl_stack.h deleted file mode 100644 index 9d4224cde4c..00000000000 --- a/TAO/TAO_IDL/include/utl_stack.h +++ /dev/null @@ -1,150 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_STACK_UTL_STACK_HH -#define _UTL_STACK_UTL_STACK_HH - -// utl_stack.hh - Defines the UTL_ScopeStack class - a stack of scopes -// -// UTL_ScopeStack implements scope nesting - -/* -** DEPENDENCIES: utl_scope.hh -** -** USE: Included from util.hh -*/ - -// Forward declaration of active iterator for UTL_ScopeStack -class UTL_ScopeStackActiveIterator; - -class UTL_ScopeStack -{ -public: - // Operations - - // Constructor and destructor - UTL_ScopeStack(); - virtual ~UTL_ScopeStack(); - - // Return top element - virtual UTL_Scope *top(); - - // Pop top element - virtual void pop(); - - // Clear entire stack - virtual void clear(); - - // Push an element on the stack and return stack - virtual UTL_ScopeStack *push(UTL_Scope *el); - - // How deep is the stack now? - virtual unsigned long depth(); - - // Return bottom element - virtual UTL_Scope *bottom(); - - // Return (top - 1) element - virtual UTL_Scope *next_to_top(); - - // return topmost non-NULL element - virtual UTL_Scope *top_non_null(); - -private: - // Data - UTL_Scope **pd_stack_data; // Store scopes stack - unsigned long pd_stack_data_nalloced; // How many allocated? - unsigned long pd_stack_top; // How many used? - - // Friend active iterator class for UTL_ScopeStack - friend class UTL_ScopeStackActiveIterator; -}; - -// Active iterator for UTL_ScopeStack -class UTL_ScopeStackActiveIterator -{ -public: - // Operations - - // Constructor - UTL_ScopeStackActiveIterator(UTL_ScopeStack *s); - - // Advance to next element - virtual void next(); - - // Get current item - virtual UTL_Scope *item(); - - // Is the iteration finished? - virtual long is_done(); - -private: - // Data - UTL_ScopeStack *source; // On what to iterate? - long il; // Where are we in iteration? -}; - -#endif // _UTL_STACK_UTL_STACK_HH diff --git a/TAO/TAO_IDL/include/utl_string.h b/TAO/TAO_IDL/include/utl_string.h deleted file mode 100644 index 0db31bd2bf6..00000000000 --- a/TAO/TAO_IDL/include/utl_string.h +++ /dev/null @@ -1,143 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _STRING_STRING_HH -#define _STRING_STRING_HH - -// utl_string.hh - contains a quick and dirty TEMPORARY string implementation - -/* -** DEPENDENCIES: NONE -** -** USE: Included from util.hh -*/ - -#ifndef String -#define String UTL_String -#endif // String - -class UTL_String -{ - // =TITLE - // UTL_String - // =DESCRIPTION - // string class to store identifiers -public: - // =Operations - - UTL_String (void); - // default constructor - - UTL_String (char *str); - // construct from a char * - - UTL_String (unsigned long maxlen); - // constructor with an initial string length - - UTL_String (UTL_String *s); - // construct using a pointer to UTL_String - - virtual ~UTL_String (void) {} - // destructor - - // =AST Dumping - - virtual void dump (ostream &o); - // dump to the ostream - - // =Other Operations - - char *get_string (void); - // Get contents of utl_string - - char *get_canonical_rep (void); - // Get canonical representation. This is (implemented as) the all upper - // case corresponding string - - virtual long compare (UTL_String *s); - // Compare two String * - -private: - // Data - char *p_str; - // Storage for characters - - char *c_str; - // Canonicalized string - - unsigned long len; - // How long is string - - unsigned long alloced; - // How much allocated - - // =Private helper operations - - void canonicalize (void); - // Compute canonical representation -}; - -#endif // _STRING_STRING_HH diff --git a/TAO/TAO_IDL/include/utl_strlist.h b/TAO/TAO_IDL/include/utl_strlist.h deleted file mode 100644 index 5806cb57785..00000000000 --- a/TAO/TAO_IDL/include/utl_strlist.h +++ /dev/null @@ -1,135 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#ifndef _UTL_STRLIST_UTL_STRLIST_HH -#define _UTL_STRLIST_UTL_STRLIST_HH - -// utl_strlist.hh -// -// List of String nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -/* -** DEPENDENCIES: utl_list.hh, utl_string.hh -** -** USE: Included from util.hh -*/ - -class UTL_StrList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_StrList(String *s, UTL_StrList *cdr); - - // AST Dumping - virtual void dump(ostream &o); - - // Other Operations - - // Copy a list of strings - virtual UTL_List *copy(); - - // Get list element - String *head(); - - // Set the list element - void set_head(String *); - - // Get last element in this list - String *last_component(); - -private: - // Data - String *pd_car_data; // The list item -}; - -// Active iterator for UTL_StrList -class UTL_StrlistActiveIterator : public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_StrlistActiveIterator(UTL_StrList *s); - - // Get current item - String *item(); -}; - -#endif // _UTL_STRLIST_UTL_STRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h deleted file mode 100644 index 63247a10df2..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_DECLLIST_UTL_DECLLIST_HH -#define _UTL_DECLLIST_UTL_DECLLIST_HH - -// utl_decllist.hh -// -// List of FE_Declarator nodes - -/* -** DEPENDENCIES: utl_list.hh, fe_declarator.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" -#include "fe_declarator.h" - - -class UTL_DeclList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr); - virtual ~UTL_DeclList() {} -}; - -// Active iterator for UTL_DeclList -class UTL_DecllistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_DecllistActiveIterator(UTL_DeclList *s); - virtual ~UTL_DecllistActiveIterator() {} -}; - -#endif // _UTL_DECLLIST_UTL_DECLLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h deleted file mode 100644 index a709776a875..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH -#define _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH - -// utl_exceptlist.hh -// -// List of AST_Exception nodes - -/* -** DEPENDENCIES: utl_list.hh, ast_exception.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_strlist.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" -#include "ast_expression.h" -#include "idl_bool.h" -#include "utl_scope.h" -#include "ast_decl.h" -#include "ast_type.h" -#include "ast_concrete_type.h" -#include "ast_structure.h" -#include "ast_exception.h" - - -class UTL_ExceptList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr); - virtual ~UTL_ExceptList() {} -}; - -// Active iterator for UTL_ExceptList -class UTL_ExceptlistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExceptlistActiveIterator(UTL_ExceptList *s); - virtual ~UTL_ExceptlistActiveIterator() {} -}; - -#endif // _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h deleted file mode 100644 index 5215ae18362..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h +++ /dev/null @@ -1,101 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_EXPRLIST_UTL_EXPRLIST_HH -#define _UTL_EXPRLIST_UTL_EXPRLIST_HH - -// utl_exprlist.hh -// -// List of strings - -/* -** DEPENDENCIES: ast_expression.hh, utl_list.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_strlist.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" -#include "ast_expression.h" - - -class UTL_ExprList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr); - virtual ~UTL_ExprList() {} -}; - -// Active iterator for UTL_ExprList -class UTL_ExprlistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ExprlistActiveIterator(UTL_ExprList *s); - virtual ~UTL_ExprlistActiveIterator() {} -}; - -#endif // _UTL_EXPRLIST_UTL_EXPRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h deleted file mode 100644 index a08bac915b6..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_IDLIST_UTL_IDLIST_HH -#define _UTL_IDLIST_UTL_IDLIST_HH - -// utl_idlist.hh -// -// List of Identifiers - -/* -** DEPENDENCIES: utl_list.hh, utl_identifier.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_identifier.h" -#include "utl_string.h" - -class UTL_IdList : public UTL_List -{ - public: - // Constructor(s) - UTL_IdList(Identifier *car, UTL_IdList *cdr); - virtual ~UTL_IdList() {} - - // AST Dumping - virtual void dump(ostream &o); - - // Other operations - - // Get last element in this list - Identifier *last_component(); -}; - -// Active iterator for UTL_IdList - -class UTL_IdListActiveIterator : - public UTL_ListActiveIterator -{ - public: - // Constructor(s) - UTL_IdListActiveIterator(UTL_IdList *s); -}; - -#endif // _UTL_IDLIST_UTL_IDLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h deleted file mode 100644 index e9c38823e31..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h +++ /dev/null @@ -1,96 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_LABELLIST_UTL_LABELLIST_HH -#define _UTL_LABELLIST_UTL_LABELLIST_HH - -// utl_labellist.hh -// -// List of AST_UnionBranch nodes - -/* -** DEPENDENCIES: utl_list.hh, ast_union_label.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "ast_union_label.h" - - -class UTL_LabelList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr); - virtual ~UTL_LabelList() {} -}; - -// Active iterator for UTL_LabelList -class UTL_LabellistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_LabellistActiveIterator(UTL_LabelList *source); - virtual ~UTL_LabellistActiveIterator() {} -}; - -#endif // _UTL_LABELLIST_UTL_LABELLIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_list.h b/TAO/TAO_IDL/include/utl_tmpl/utl_list.h deleted file mode 100644 index 8bc8c4035a6..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_list.h +++ /dev/null @@ -1,140 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_LIST_UTL_LIST_HH -#define _UTL_LIST_UTL_LIST_HH - -// utl_list.hh -// -// General single-linked lists - -/* -** DEPENDENCIES: NONE -** -** USE: Included from util.hh -*/ - -// Forward declare active iterator for UTL_List -template class UTL_ListActiveIterator; - -template -class UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_List(T *c, L *l); - virtual ~UTL_List() {} - - // Smash last cdr pointer in "this" with l - void nconc(L *l); - - // Copy the list starting at "this" - L *copy(); - - // Get list element - T *head(); - - // Get next list - L *tail(); - - // Set the list element - void set_head(T *t); - - // Set next list - void set_tail(L *l); - - // How long is this list? - long length(); - -private: - // Data - T *pd_car_data; // The next list - L *pd_cdr_data; // The next list - - // Operations - long list_length(long n); // How long is it? - - // Friend class - friend class UTL_ListActiveIterator; // Friend class - -}; - -// Active iterator for lists -template -class UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_ListActiveIterator(UTL_List *s); - virtual ~UTL_ListActiveIterator() {} - - // Get current item - T *item(); - - // Get next list - virtual void next(); - - // Are we at the end of this list? - virtual long is_done(); - -protected: - // Data - UTL_List *source; // On what to iterate? -}; - -#endif // _UTL_LIST_UTL_LIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h deleted file mode 100644 index ff8f23ff45c..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h +++ /dev/null @@ -1,98 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_NAMELIST_UTL_NAMELIST_HH -#define _UTL_NAMELIST_UTL_NAMELIST_HH - -// utl_namelist.hh -// -// List of UTL_ScopedName nodes - -/* -** DEPENDENCIES: utl_list.hh, utl_scoped_name.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_idlist.h" -#include "utl_scoped_name.h" -#include "utl_identifier.h" -#include "utl_string.h" - -class UTL_NameList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr); - virtual ~UTL_NameList() {} -}; - -// Active iterator for UTL_NameList -class UTL_NamelistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_NamelistActiveIterator(UTL_NameList *source); - virtual ~UTL_NamelistActiveIterator() {} -}; - -#endif // _UTL_NAMELIST_UTL_NAMELIST_HH diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h deleted file mode 100644 index 2b6966d0b01..00000000000 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h +++ /dev/null @@ -1,104 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -#ifndef _UTL_STRLIST_UTL_STRLIST_HH -#define _UTL_STRLIST_UTL_STRLIST_HH - -// utl_strlist.hh -// -// List of String nodes - -/* -** DEPENDENCIES: utl_list.hh, utl_string.hh -** -** USE: Included from util.hh -*/ - -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_string.h" - - -class UTL_StrList : public UTL_List -{ -public: - // Operations - - // Constructor(s) - UTL_StrList(String *s, UTL_StrList *cdr); - virtual ~UTL_StrList() {} - - // AST Dumping - virtual void dump(ostream &o); - - // Other Operations - - // Get last element in this list - String *last_component(); -}; - -// Active iterator for UTL_StrList -class UTL_StrlistActiveIterator : - public UTL_ListActiveIterator -{ -public: - // Operations - - // Constructor(s) - UTL_StrlistActiveIterator(UTL_StrList *s); - virtual ~UTL_StrlistActiveIterator() {} -}; - -#endif // _UTL_STRLIST_UTL_STRLIST_HH diff --git a/TAO/TAO_IDL/narrow/narrow.cpp b/TAO/TAO_IDL/narrow/narrow.cpp deleted file mode 100644 index cbcdb978305..00000000000 --- a/TAO/TAO_IDL/narrow/narrow.cpp +++ /dev/null @@ -1,141 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(narrow, narrow, "$Id$") - -// Narrowing functions for AST - -/* - * Convert a UTL_Scope node into an AST_Decl node if possible - */ -AST_Decl * -ScopeAsDecl(UTL_Scope *s) -{ - if (s == NULL) return NULL; - - switch (s->scope_node_type()) { - case AST_Decl::NT_module: - return AST_Module::narrow_from_scope(s); - case AST_Decl::NT_root: - return AST_Root::narrow_from_scope(s); - case AST_Decl::NT_interface: - return AST_Interface::narrow_from_scope(s); - case AST_Decl::NT_op: - return AST_Operation::narrow_from_scope(s); - case AST_Decl::NT_except: - return AST_Exception::narrow_from_scope(s); - case AST_Decl::NT_union: - return AST_Union::narrow_from_scope(s); - case AST_Decl::NT_struct: - return AST_Structure::narrow_from_scope(s); - case AST_Decl::NT_enum: - return AST_Enum::narrow_from_scope(s); - default: - return NULL; - } -} - -/* - * Convert an AST_Decl to a UTL_Scope if possible - */ -UTL_Scope * -DeclAsScope(AST_Decl *d) -{ - if (d == NULL) return NULL; - - switch (d->node_type()) { - case AST_Decl::NT_interface_fwd: - /* - * Resolve forward declared interface by looking at full_definition() - * field and iterating - */ - d = (AST_InterfaceFwd::narrow_from_decl(d))->full_definition(); - /* - * Fall through - */ - case AST_Decl::NT_interface: - return AST_Interface::narrow_from_decl(d); - case AST_Decl::NT_module: - return AST_Module::narrow_from_decl(d); - case AST_Decl::NT_root: - return AST_Root::narrow_from_decl(d); - case AST_Decl::NT_except: - return AST_Exception::narrow_from_decl(d); - case AST_Decl::NT_union: - return AST_Union::narrow_from_decl(d); - case AST_Decl::NT_struct: - return AST_Structure::narrow_from_decl(d); - case AST_Decl::NT_enum: - return AST_Enum::narrow_from_decl(d); - case AST_Decl::NT_op: - return AST_Operation::narrow_from_decl(d); - default: - return NULL; - } -} diff --git a/TAO/TAO_IDL/tao_idl.cpp b/TAO/TAO_IDL/tao_idl.cpp deleted file mode 100644 index 18a8af7973b..00000000000 --- a/TAO/TAO_IDL/tao_idl.cpp +++ /dev/null @@ -1,261 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* -** drv_main.cc - Main program for IDL compiler driver -** -** LOGIC: -** -** 1. Initialize compiler driver -** 2. Parse command line args -** 3. If more than one file to parse, fork -** 4. Otherwise, for the single file, invoke DRV_drive -*/ - -#include "idl.h" -#include "idl_extern.h" - -#include "drv_private.h" -#include "drv_link.h" - -ACE_RCSID(TAO_IDL, tao_idl, "$Id$") - -static void -DRV_version() -{ - cerr << idl_global->prog_name() - << GTDEVEL(", version ") - << IDL_CFE_VERSION - << "\n"; - (*DRV_BE_version)(); -} - -/* -** Drive the compilation -** -** LOGIC: -** -** 1. Initialize the CFE, stage 1. This builds the scope stack -** 2. Initialize the BE. This builds an instance of the generator -** 3. Initialize the CFE, stage 2. This builds the global scope -** and populates it with the predefined types -** 4. Invoke FE_yyparse -** 5. Check for errors from FE_yyparse. If any, exit now -** 6. Check for undefined forward declared interfaces. If any, exit now -** 7. Check if asked to dump AST. If so, do. -** 8. Invoke BE. -*/ -void -DRV_drive(char *s) -{ - char *fn; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (fn); - - // set the name of the IDL file we are parsing. This is useful to the backend - // when it generates C++ headers and files - idl_global->idl_src_file(new UTL_String(s)); - /* - * Pass through CPP - */ - if (idl_global->compile_flags() & IDL_CF_INFORMATIVE) - cerr << idl_global->prog_name() - << GTDEVEL(": preprocessing ") - << s - << "\n"; - DRV_pre_proc(s); - /* - * Initialize FE stage 1 - */ - (*DRV_FE_init_stage1)(); - /* - * Initialize BE - */ - idl_global->set_gen((*DRV_BE_init)()); - /* - * Initialize FE stage 2 - */ - (*DRV_FE_init_stage2)(); - /* - * Parse - */ - if (idl_global->compile_flags() & IDL_CF_INFORMATIVE) - cerr << idl_global->prog_name() - << GTDEVEL(": parsing ") - << s - << "\n"; - (*DRV_FE_yyparse)(); - /* - * If there were any errors, stop - */ - if (idl_global->err_count() > 0) { - cerr << idl_global->prog_name() - << ": " - << s - << GTDEVEL(": found "); - cerr << idl_global->err_count() - << GTDEVEL(" error"); - cerr << (idl_global->err_count() > 1 - ? GTDEVEL("s") : "") - << "\n"; - /* - * Call BE_abort to allow a BE to clean up after itself - */ - (*DRV_BE_abort)(); - exit((int) idl_global->err_count()); - } - /* - * Dump the code - */ - if ((idl_global->compile_flags() & IDL_CF_INFORMATIVE) - && (idl_global->compile_flags() & IDL_CF_DUMP_AST)) - cerr << idl_global->prog_name() - << GTDEVEL(": dump ") - << s - << "\n"; - if (idl_global->compile_flags() & IDL_CF_DUMP_AST) { - cerr << GTDEVEL("Dump of AST:\n"); - idl_global->root()->dump(cerr); - } - /* - * Call the main entry point for the BE - */ - if (idl_global->compile_flags() & IDL_CF_INFORMATIVE) - cerr << idl_global->prog_name() - << GTDEVEL(": BE processing on ") - << s - << "\n"; - (*DRV_BE_produce)(); - /* - * Exit cleanly - */ - exit(0); -} - -/* - * IDL compiler main program. Logic as explained in comment at head - * of file. - */ -int -main(int argc, char **argv) -{ - /* - * Open front-end library - */ - DRV_FE_open(); - /* - * Initialize driver and global variables - */ - DRV_init(); - /* - * Open back-end library - */ - DRV_BE_open(); - /* - * Parse arguments - */ - DRV_parse_args(argc, argv); - /* - * If a version message is requested, print it and exit - */ - if (idl_global->compile_flags() & IDL_CF_VERSION) { - DRV_version(); - exit(0); - } - /* - * If a usage message is requested, give it and exit - */ - if (idl_global->compile_flags() & IDL_CF_ONLY_USAGE) { - DRV_usage(); - exit(0); - } - /* - * Fork off a process for each file to process. Fork only if - * there is more than one file to process - */ - if (DRV_nfiles > 1) { - /* - * DRV_fork never returns - */ - DRV_fork(); - } else { - /* - * Do the one file we have to parse - * - * Check if stdin and handle file name appropriately - */ - if (DRV_nfiles == 0) - { - DRV_files[0] = "standard input"; - } - DRV_file_index = 0; - DRV_drive(DRV_files[DRV_file_index]); - } - exit(0); - /* NOTREACHED */ - return 0; -} diff --git a/TAO/TAO_IDL/tao_idl.dsp b/TAO/TAO_IDL/tao_idl.dsp deleted file mode 100644 index f97d7a7c848..00000000000 --- a/TAO/TAO_IDL/tao_idl.dsp +++ /dev/null @@ -1,33940 +0,0 @@ -# Microsoft Developer Studio Project File - Name="TAO_IDL Compiler" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 -# TARGTYPE "Win32 (ALPHA) Console Application" 0x0603 - -CFG=TAO_IDL Compiler - Win32 Alpha 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 "tao_idl.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 "tao_idl.mak" CFG="TAO_IDL Compiler - Win32 Alpha Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "TAO_IDL Compiler - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "TAO_IDL Compiler - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE "TAO_IDL Compiler - Win32 Alpha Debug" (based on "Win32 (ALPHA) Console Application") -!MESSAGE "TAO_IDL Compiler - Win32 Alpha Release" (based on "Win32 (ALPHA) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" - -!IF "$(CFG)" == "TAO_IDL Compiler - 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 "" -CPP=cl.exe -# 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 "include" /I "be_include" /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /c -# SUBTRACT CPP /YX -RSC=rc.exe -# 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 /nologo /subsystem:console /debug /machine:I386 /out:"..\..\bin\Release\tao_idl.exe" /libpath:"../../ace" -# SUBTRACT LINK32 /map - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - 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 "" -CPP=cl.exe -# 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 /Gy /I "include" /I "be_include" /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /c -RSC=rc.exe -# 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 aced.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\..\bin\tao_idl.exe" /pdbtype:sept /libpath:"..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "TAO_IDL_" -# PROP BASE Intermediate_Dir "TAO_IDL_" -# PROP BASE Ignore_Export_Lib 0 -# 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 "" -CPP=cl.exe -# ADD BASE CPP /nologo /Gt0 /W3 /GX /Zi /Od /I "include" /I "be_include" /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /YX /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /c -# ADD CPP /nologo /Gt0 /W3 /GX /Zi /Od /I "include" /I "be_include" /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /YX /FD /MDd /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /c -RSC=rc.exe -# 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 aced.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:ALPHA /pdbtype:sept /libpath:"..\..\ace" -# SUBTRACT BASE LINK32 /pdb:none -# ADD LINK32 aced.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:ALPHA /pdbtype:sept /libpath:"..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "TAO_IDL0" -# PROP BASE Intermediate_Dir "TAO_IDL0" -# PROP BASE Ignore_Export_Lib 0 -# 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 "" -CPP=cl.exe -# ADD BASE CPP /nologo /Gt0 /W3 /GX /O2 /I "include" /I "be_include" /I "..\.." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /c -# SUBTRACT BASE CPP /YX -# ADD CPP /nologo /MD /Gt0 /W3 /GX /O2 /I "include" /I "be_include" /I "..\.." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /c -# SUBTRACT CPP /YX -RSC=rc.exe -# 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 ace.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:ALPHA /libpath:"../../ace" -# SUBTRACT BASE LINK32 /map -# ADD LINK32 ace.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:ALPHA /libpath:"../../ace" -# SUBTRACT LINK32 /map - -!ENDIF - -# Begin Target - -# Name "TAO_IDL Compiler - Win32 Release" -# Name "TAO_IDL Compiler - Win32 Debug" -# Name "TAO_IDL Compiler - Win32 Alpha Debug" -# Name "TAO_IDL Compiler - Win32 Alpha Release" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\ast\ast_argument.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_A=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_A=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_A=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_A=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_array.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_AR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_AR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_AR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_AR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_attribute.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_AT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_AT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_AT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_AT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_check.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_C=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_C=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_C=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_C=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_concrete_type.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_CO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_CO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_CO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_CO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_constant.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_CON=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_CON=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_CON=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_CON=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_decl.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_D=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_D=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_D=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_D=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_enum.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_E=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_E=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_E=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_E=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_enum_val.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_EN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_EN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_EN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_EN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_exception.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_expression.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_EXP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_EXP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_EXP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_EXP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_field.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_F=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_F=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_F=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_F=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_generator.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_G=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_G=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_G=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_G=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_interface.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_interface_fwd.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_module.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_M=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_M=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_M=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_M=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_native.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_N=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_N=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_N=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_N=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_operation.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_O=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_O=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_O=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_O=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_predefined_type.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_P=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_P=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_P=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_P=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_recursive.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_R=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_R=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_R=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_R=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_redef.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_RE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_RE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_RE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_RE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_root.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_RO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_RO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_RO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_RO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_sequence.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_S=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_S=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_S=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_S=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_string.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_structure.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_STR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_STR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_STR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_STR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_type.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_T=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_T=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_T=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_T=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_typedef.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_TY=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_TY=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_TY=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_TY=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_U=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_U=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_U=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_U=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union_branch.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_UN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_UN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_UN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_UN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union_label.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_AST_UNI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_UNI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_AST_UNI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_AST_UNI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_args.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_AR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_AR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_AR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_AR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_argument.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_ARG=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ARG=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_ARG=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ARG=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_array.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_ARR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ARR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_ARR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ARR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_attribute.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_AT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_AT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_AT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_AT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_codegen.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_CO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_CO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_CO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_CO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_constant.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_CON=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_CON=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_CON=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_CON=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_decl.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_DE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_DE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_DE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_DE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_enum.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_EN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_EN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_EN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_EN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_enum_val.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_ENU=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ENU=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_ENU=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ENU=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_exception.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_expression.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_EXP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_EXP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_EXP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_EXP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_factory.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_FA=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_sunsoft.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_FA=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_FA=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_sunsoft.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_FA=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_field.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_FI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_FI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_FI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_FI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_generator.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_GE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_GE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_GE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_GE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_helper.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_HE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_HE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_HE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_HE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_init.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_interface.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_INT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface\any_op_ch.h"\ - ".\be_include\be_visitor_interface\any_op_cs.h"\ - ".\be_include\be_visitor_interface\collocated_sh.h"\ - ".\be_include\be_visitor_interface\collocated_ss.h"\ - ".\be_include\be_visitor_interface\interface.h"\ - ".\be_include\be_visitor_interface\interface_ch.h"\ - ".\be_include\be_visitor_interface\interface_ci.h"\ - ".\be_include\be_visitor_interface\interface_cs.h"\ - ".\be_include\be_visitor_interface\interface_sh.h"\ - ".\be_include\be_visitor_interface\interface_si.h"\ - ".\be_include\be_visitor_interface\interface_ss.h"\ - ".\be_include\be_visitor_interface\tie_sh.h"\ - ".\be_include\be_visitor_interface\tie_si.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_INT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_INT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface\any_op_ch.h"\ - ".\be_include\be_visitor_interface\any_op_cs.h"\ - ".\be_include\be_visitor_interface\collocated_sh.h"\ - ".\be_include\be_visitor_interface\collocated_ss.h"\ - ".\be_include\be_visitor_interface\interface.h"\ - ".\be_include\be_visitor_interface\interface_ch.h"\ - ".\be_include\be_visitor_interface\interface_ci.h"\ - ".\be_include\be_visitor_interface\interface_cs.h"\ - ".\be_include\be_visitor_interface\interface_sh.h"\ - ".\be_include\be_visitor_interface\interface_si.h"\ - ".\be_include\be_visitor_interface\interface_ss.h"\ - ".\be_include\be_visitor_interface\tie_sh.h"\ - ".\be_include\be_visitor_interface\tie_si.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_INT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_interface_fwd.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_INTE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_INTE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_INTE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_INTE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_interpretive.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_INTER=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_interpretive.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_argument.h"\ - ".\be_include\be_visitor_argument\arglist.h"\ - ".\be_include\be_visitor_argument\argument.h"\ - ".\be_include\be_visitor_argument\docall_cs.h"\ - ".\be_include\be_visitor_argument\marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_docall_cs.h"\ - ".\be_include\be_visitor_argument\post_marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_upcall_ss.h"\ - ".\be_include\be_visitor_argument\pre_docall_cs.h"\ - ".\be_include\be_visitor_argument\pre_upcall_ss.h"\ - ".\be_include\be_visitor_argument\upcall_ss.h"\ - ".\be_include\be_visitor_argument\vardecl_ss.h"\ - ".\be_include\be_visitor_array.h"\ - ".\be_include\be_visitor_array\any_op_ch.h"\ - ".\be_include\be_visitor_array\any_op_cs.h"\ - ".\be_include\be_visitor_array\array.h"\ - ".\be_include\be_visitor_array\array_ch.h"\ - ".\be_include\be_visitor_array\array_ci.h"\ - ".\be_include\be_visitor_array\array_cs.h"\ - ".\be_include\be_visitor_attribute.h"\ - ".\be_include\be_visitor_attribute\attribute.h"\ - ".\be_include\be_visitor_constant.h"\ - ".\be_include\be_visitor_constant\constant_ch.h"\ - ".\be_include\be_visitor_constant\constant_cs.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_enum.h"\ - ".\be_include\be_visitor_enum\any_op_ch.h"\ - ".\be_include\be_visitor_enum\any_op_cs.h"\ - ".\be_include\be_visitor_enum\enum_ch.h"\ - ".\be_include\be_visitor_enum\enum_cs.h"\ - ".\be_include\be_visitor_exception.h"\ - ".\be_include\be_visitor_exception\any_op_ch.h"\ - ".\be_include\be_visitor_exception\any_op_cs.h"\ - ".\be_include\be_visitor_exception\ctor.h"\ - ".\be_include\be_visitor_exception\ctor_assign.h"\ - ".\be_include\be_visitor_exception\exception.h"\ - ".\be_include\be_visitor_exception\exception_ch.h"\ - ".\be_include\be_visitor_exception\exception_ci.h"\ - ".\be_include\be_visitor_exception\exception_cs.h"\ - ".\be_include\be_visitor_field.h"\ - ".\be_include\be_visitor_field\field_ch.h"\ - ".\be_include\be_visitor_field\field_ci.h"\ - ".\be_include\be_visitor_field\field_cs.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface\any_op_ch.h"\ - ".\be_include\be_visitor_interface\any_op_cs.h"\ - ".\be_include\be_visitor_interface\collocated_sh.h"\ - ".\be_include\be_visitor_interface\collocated_ss.h"\ - ".\be_include\be_visitor_interface\interface.h"\ - ".\be_include\be_visitor_interface\interface_ch.h"\ - ".\be_include\be_visitor_interface\interface_ci.h"\ - ".\be_include\be_visitor_interface\interface_cs.h"\ - ".\be_include\be_visitor_interface\interface_sh.h"\ - ".\be_include\be_visitor_interface\interface_si.h"\ - ".\be_include\be_visitor_interface\interface_ss.h"\ - ".\be_include\be_visitor_interface\tie_sh.h"\ - ".\be_include\be_visitor_interface\tie_si.h"\ - ".\be_include\be_visitor_interface_fwd.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ch.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ci.h"\ - ".\be_include\be_visitor_module.h"\ - ".\be_include\be_visitor_module\any_op.h"\ - ".\be_include\be_visitor_module\module.h"\ - ".\be_include\be_visitor_module\module_ch.h"\ - ".\be_include\be_visitor_module\module_sh.h"\ - ".\be_include\be_visitor_operation.h"\ - ".\be_include\be_visitor_operation\arglist.h"\ - ".\be_include\be_visitor_operation\argument.h"\ - ".\be_include\be_visitor_operation\collocated_sh.h"\ - ".\be_include\be_visitor_operation\collocated_ss.h"\ - ".\be_include\be_visitor_operation\exceptlist_cs.h"\ - ".\be_include\be_visitor_operation\operation_ch.h"\ - ".\be_include\be_visitor_operation\operation_cs.h"\ - ".\be_include\be_visitor_operation\operation_sh.h"\ - ".\be_include\be_visitor_operation\operation_ss.h"\ - ".\be_include\be_visitor_operation\rettype.h"\ - ".\be_include\be_visitor_operation\rettype_assign_ss.h"\ - ".\be_include\be_visitor_operation\rettype_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_marshal_ss.h"\ - ".\be_include\be_visitor_operation\rettype_post_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_post_upcall_ss.h"\ - ".\be_include\be_visitor_operation\rettype_pre_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_return_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_ss.h"\ - ".\be_include\be_visitor_operation\tie_sh.h"\ - ".\be_include\be_visitor_operation\tie_si.h"\ - ".\be_include\be_visitor_root.h"\ - ".\be_include\be_visitor_root\any_op.h"\ - ".\be_include\be_visitor_root\root.h"\ - ".\be_include\be_visitor_root\root_ch.h"\ - ".\be_include\be_visitor_root\root_ci.h"\ - ".\be_include\be_visitor_root\root_cs.h"\ - ".\be_include\be_visitor_root\root_sh.h"\ - ".\be_include\be_visitor_root\root_si.h"\ - ".\be_include\be_visitor_root\root_ss.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_sequence\any_op_ch.h"\ - ".\be_include\be_visitor_sequence\any_op_cs.h"\ - ".\be_include\be_visitor_sequence\buffer_type.h"\ - ".\be_include\be_visitor_sequence\elemtype.h"\ - ".\be_include\be_visitor_sequence\sequence_base.h"\ - ".\be_include\be_visitor_sequence\sequence_ch.h"\ - ".\be_include\be_visitor_sequence\sequence_ci.h"\ - ".\be_include\be_visitor_sequence\sequence_cs.h"\ - ".\be_include\be_visitor_structure.h"\ - ".\be_include\be_visitor_structure\any_op_ch.h"\ - ".\be_include\be_visitor_structure\any_op_cs.h"\ - ".\be_include\be_visitor_structure\structure.h"\ - ".\be_include\be_visitor_structure\structure_ch.h"\ - ".\be_include\be_visitor_structure\structure_ci.h"\ - ".\be_include\be_visitor_structure\structure_cs.h"\ - ".\be_include\be_visitor_typecode.h"\ - ".\be_include\be_visitor_typecode\typecode_decl.h"\ - ".\be_include\be_visitor_typecode\typecode_defn.h"\ - ".\be_include\be_visitor_typedef.h"\ - ".\be_include\be_visitor_typedef\any_op_ch.h"\ - ".\be_include\be_visitor_typedef\any_op_cs.h"\ - ".\be_include\be_visitor_typedef\typedef.h"\ - ".\be_include\be_visitor_typedef\typedef_ch.h"\ - ".\be_include\be_visitor_typedef\typedef_ci.h"\ - ".\be_include\be_visitor_typedef\typedef_cs.h"\ - ".\be_include\be_visitor_union.h"\ - ".\be_include\be_visitor_union\any_op_ch.h"\ - ".\be_include\be_visitor_union\any_op_cs.h"\ - ".\be_include\be_visitor_union\discriminant_ch.h"\ - ".\be_include\be_visitor_union\discriminant_ci.h"\ - ".\be_include\be_visitor_union\discriminant_cs.h"\ - ".\be_include\be_visitor_union\union.h"\ - ".\be_include\be_visitor_union\union_ch.h"\ - ".\be_include\be_visitor_union\union_ci.h"\ - ".\be_include\be_visitor_union\union_cs.h"\ - ".\be_include\be_visitor_union_branch.h"\ - ".\be_include\be_visitor_union_branch\private_ch.h"\ - ".\be_include\be_visitor_union_branch\public_access_cs.h"\ - ".\be_include\be_visitor_union_branch\public_assign_cs.h"\ - ".\be_include\be_visitor_union_branch\public_ch.h"\ - ".\be_include\be_visitor_union_branch\public_ci.h"\ - ".\be_include\be_visitor_union_branch\public_cs.h"\ - ".\be_include\be_visitor_union_branch\public_reset_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_INTER=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_INTER=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_interpretive.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_argument.h"\ - ".\be_include\be_visitor_argument\arglist.h"\ - ".\be_include\be_visitor_argument\argument.h"\ - ".\be_include\be_visitor_argument\docall_cs.h"\ - ".\be_include\be_visitor_argument\marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_docall_cs.h"\ - ".\be_include\be_visitor_argument\post_marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_upcall_ss.h"\ - ".\be_include\be_visitor_argument\pre_docall_cs.h"\ - ".\be_include\be_visitor_argument\pre_upcall_ss.h"\ - ".\be_include\be_visitor_argument\upcall_ss.h"\ - ".\be_include\be_visitor_argument\vardecl_ss.h"\ - ".\be_include\be_visitor_array.h"\ - ".\be_include\be_visitor_array\any_op_ch.h"\ - ".\be_include\be_visitor_array\any_op_cs.h"\ - ".\be_include\be_visitor_array\array.h"\ - ".\be_include\be_visitor_array\array_ch.h"\ - ".\be_include\be_visitor_array\array_ci.h"\ - ".\be_include\be_visitor_array\array_cs.h"\ - ".\be_include\be_visitor_attribute.h"\ - ".\be_include\be_visitor_attribute\attribute.h"\ - ".\be_include\be_visitor_constant.h"\ - ".\be_include\be_visitor_constant\constant_ch.h"\ - ".\be_include\be_visitor_constant\constant_cs.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_enum.h"\ - ".\be_include\be_visitor_enum\any_op_ch.h"\ - ".\be_include\be_visitor_enum\any_op_cs.h"\ - ".\be_include\be_visitor_enum\enum_ch.h"\ - ".\be_include\be_visitor_enum\enum_cs.h"\ - ".\be_include\be_visitor_exception.h"\ - ".\be_include\be_visitor_exception\any_op_ch.h"\ - ".\be_include\be_visitor_exception\any_op_cs.h"\ - ".\be_include\be_visitor_exception\ctor.h"\ - ".\be_include\be_visitor_exception\ctor_assign.h"\ - ".\be_include\be_visitor_exception\exception.h"\ - ".\be_include\be_visitor_exception\exception_ch.h"\ - ".\be_include\be_visitor_exception\exception_ci.h"\ - ".\be_include\be_visitor_exception\exception_cs.h"\ - ".\be_include\be_visitor_field.h"\ - ".\be_include\be_visitor_field\field_ch.h"\ - ".\be_include\be_visitor_field\field_ci.h"\ - ".\be_include\be_visitor_field\field_cs.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface\any_op_ch.h"\ - ".\be_include\be_visitor_interface\any_op_cs.h"\ - ".\be_include\be_visitor_interface\collocated_sh.h"\ - ".\be_include\be_visitor_interface\collocated_ss.h"\ - ".\be_include\be_visitor_interface\interface.h"\ - ".\be_include\be_visitor_interface\interface_ch.h"\ - ".\be_include\be_visitor_interface\interface_ci.h"\ - ".\be_include\be_visitor_interface\interface_cs.h"\ - ".\be_include\be_visitor_interface\interface_sh.h"\ - ".\be_include\be_visitor_interface\interface_si.h"\ - ".\be_include\be_visitor_interface\interface_ss.h"\ - ".\be_include\be_visitor_interface\tie_sh.h"\ - ".\be_include\be_visitor_interface\tie_si.h"\ - ".\be_include\be_visitor_interface_fwd.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ch.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ci.h"\ - ".\be_include\be_visitor_module.h"\ - ".\be_include\be_visitor_module\any_op.h"\ - ".\be_include\be_visitor_module\module.h"\ - ".\be_include\be_visitor_module\module_ch.h"\ - ".\be_include\be_visitor_module\module_sh.h"\ - ".\be_include\be_visitor_operation.h"\ - ".\be_include\be_visitor_operation\arglist.h"\ - ".\be_include\be_visitor_operation\argument.h"\ - ".\be_include\be_visitor_operation\collocated_sh.h"\ - ".\be_include\be_visitor_operation\collocated_ss.h"\ - ".\be_include\be_visitor_operation\exceptlist_cs.h"\ - ".\be_include\be_visitor_operation\operation_ch.h"\ - ".\be_include\be_visitor_operation\operation_cs.h"\ - ".\be_include\be_visitor_operation\operation_sh.h"\ - ".\be_include\be_visitor_operation\operation_ss.h"\ - ".\be_include\be_visitor_operation\rettype.h"\ - ".\be_include\be_visitor_operation\rettype_assign_ss.h"\ - ".\be_include\be_visitor_operation\rettype_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_marshal_ss.h"\ - ".\be_include\be_visitor_operation\rettype_post_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_post_upcall_ss.h"\ - ".\be_include\be_visitor_operation\rettype_pre_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_return_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_ss.h"\ - ".\be_include\be_visitor_operation\tie_sh.h"\ - ".\be_include\be_visitor_operation\tie_si.h"\ - ".\be_include\be_visitor_root.h"\ - ".\be_include\be_visitor_root\any_op.h"\ - ".\be_include\be_visitor_root\root.h"\ - ".\be_include\be_visitor_root\root_ch.h"\ - ".\be_include\be_visitor_root\root_ci.h"\ - ".\be_include\be_visitor_root\root_cs.h"\ - ".\be_include\be_visitor_root\root_sh.h"\ - ".\be_include\be_visitor_root\root_si.h"\ - ".\be_include\be_visitor_root\root_ss.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_sequence\any_op_ch.h"\ - ".\be_include\be_visitor_sequence\any_op_cs.h"\ - ".\be_include\be_visitor_sequence\buffer_type.h"\ - ".\be_include\be_visitor_sequence\elemtype.h"\ - ".\be_include\be_visitor_sequence\sequence_base.h"\ - ".\be_include\be_visitor_sequence\sequence_ch.h"\ - ".\be_include\be_visitor_sequence\sequence_ci.h"\ - ".\be_include\be_visitor_sequence\sequence_cs.h"\ - ".\be_include\be_visitor_structure.h"\ - ".\be_include\be_visitor_structure\any_op_ch.h"\ - ".\be_include\be_visitor_structure\any_op_cs.h"\ - ".\be_include\be_visitor_structure\structure.h"\ - ".\be_include\be_visitor_structure\structure_ch.h"\ - ".\be_include\be_visitor_structure\structure_ci.h"\ - ".\be_include\be_visitor_structure\structure_cs.h"\ - ".\be_include\be_visitor_typecode.h"\ - ".\be_include\be_visitor_typecode\typecode_decl.h"\ - ".\be_include\be_visitor_typecode\typecode_defn.h"\ - ".\be_include\be_visitor_typedef.h"\ - ".\be_include\be_visitor_typedef\any_op_ch.h"\ - ".\be_include\be_visitor_typedef\any_op_cs.h"\ - ".\be_include\be_visitor_typedef\typedef.h"\ - ".\be_include\be_visitor_typedef\typedef_ch.h"\ - ".\be_include\be_visitor_typedef\typedef_ci.h"\ - ".\be_include\be_visitor_typedef\typedef_cs.h"\ - ".\be_include\be_visitor_union.h"\ - ".\be_include\be_visitor_union\any_op_ch.h"\ - ".\be_include\be_visitor_union\any_op_cs.h"\ - ".\be_include\be_visitor_union\discriminant_ch.h"\ - ".\be_include\be_visitor_union\discriminant_ci.h"\ - ".\be_include\be_visitor_union\discriminant_cs.h"\ - ".\be_include\be_visitor_union\union.h"\ - ".\be_include\be_visitor_union\union_ch.h"\ - ".\be_include\be_visitor_union\union_ci.h"\ - ".\be_include\be_visitor_union\union_cs.h"\ - ".\be_include\be_visitor_union_branch.h"\ - ".\be_include\be_visitor_union_branch\private_ch.h"\ - ".\be_include\be_visitor_union_branch\public_access_cs.h"\ - ".\be_include\be_visitor_union_branch\public_assign_cs.h"\ - ".\be_include\be_visitor_union_branch\public_ch.h"\ - ".\be_include\be_visitor_union_branch\public_ci.h"\ - ".\be_include\be_visitor_union_branch\public_cs.h"\ - ".\be_include\be_visitor_union_branch\public_reset_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_INTER=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_module.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_MO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_MO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_MO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_MO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_native.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_NA=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_NA=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_NA=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_NA=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_operation.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_OP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_OP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_OP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_OP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_predefined_type.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_PR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_PR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_PR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_PR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_produce.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_PRO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_interpretive.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_PRO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_PRO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_interpretive.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_PRO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_root.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_RO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_RO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_RO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_RO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_scope.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_SC=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_SC=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_SC=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_SC=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_sequence.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_SE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_sequence\any_op_ch.h"\ - ".\be_include\be_visitor_sequence\any_op_cs.h"\ - ".\be_include\be_visitor_sequence\buffer_type.h"\ - ".\be_include\be_visitor_sequence\elemtype.h"\ - ".\be_include\be_visitor_sequence\sequence_base.h"\ - ".\be_include\be_visitor_sequence\sequence_ch.h"\ - ".\be_include\be_visitor_sequence\sequence_ci.h"\ - ".\be_include\be_visitor_sequence\sequence_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_SE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_SE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_sequence\any_op_ch.h"\ - ".\be_include\be_visitor_sequence\any_op_cs.h"\ - ".\be_include\be_visitor_sequence\buffer_type.h"\ - ".\be_include\be_visitor_sequence\elemtype.h"\ - ".\be_include\be_visitor_sequence\sequence_base.h"\ - ".\be_include\be_visitor_sequence\sequence_ch.h"\ - ".\be_include\be_visitor_sequence\sequence_ci.h"\ - ".\be_include\be_visitor_sequence\sequence_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_SE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_string.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_structure.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_STR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_STR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_STR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_STR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_sunsoft.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_SU=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_sunsoft.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_SU=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_SU=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_sunsoft.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_SU=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_type.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_TY=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_TY=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_TY=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_TY=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_typedef.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_TYP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_TYP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_TYP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_TYP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_union.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_UN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_UN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_UN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_UN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_union_branch.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_UNI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_UNI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_UNI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_UNI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_union_label.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_UNIO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_UNIO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_UNIO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_UNIO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_argument.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VIS=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_argument\arglist.cpp"\ - ".\be\be_visitor_argument\argument.cpp"\ - ".\be\be_visitor_argument\docall_cs.cpp"\ - ".\be\be_visitor_argument\marshal_ss.cpp"\ - ".\be\be_visitor_argument\post_docall_cs.cpp"\ - ".\be\be_visitor_argument\post_marshal_ss.cpp"\ - ".\be\be_visitor_argument\post_upcall_ss.cpp"\ - ".\be\be_visitor_argument\pre_docall_cs.cpp"\ - ".\be\be_visitor_argument\pre_upcall_ss.cpp"\ - ".\be\be_visitor_argument\upcall_ss.cpp"\ - ".\be\be_visitor_argument\vardecl_ss.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_argument.h"\ - ".\be_include\be_visitor_argument\arglist.h"\ - ".\be_include\be_visitor_argument\argument.h"\ - ".\be_include\be_visitor_argument\docall_cs.h"\ - ".\be_include\be_visitor_argument\marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_docall_cs.h"\ - ".\be_include\be_visitor_argument\post_marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_upcall_ss.h"\ - ".\be_include\be_visitor_argument\pre_docall_cs.h"\ - ".\be_include\be_visitor_argument\pre_upcall_ss.h"\ - ".\be_include\be_visitor_argument\upcall_ss.h"\ - ".\be_include\be_visitor_argument\vardecl_ss.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VIS=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VIS=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_argument\arglist.cpp"\ - ".\be\be_visitor_argument\argument.cpp"\ - ".\be\be_visitor_argument\docall_cs.cpp"\ - ".\be\be_visitor_argument\marshal_ss.cpp"\ - ".\be\be_visitor_argument\post_docall_cs.cpp"\ - ".\be\be_visitor_argument\post_marshal_ss.cpp"\ - ".\be\be_visitor_argument\post_upcall_ss.cpp"\ - ".\be\be_visitor_argument\pre_docall_cs.cpp"\ - ".\be\be_visitor_argument\pre_upcall_ss.cpp"\ - ".\be\be_visitor_argument\upcall_ss.cpp"\ - ".\be\be_visitor_argument\vardecl_ss.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_argument.h"\ - ".\be_include\be_visitor_argument\arglist.h"\ - ".\be_include\be_visitor_argument\argument.h"\ - ".\be_include\be_visitor_argument\docall_cs.h"\ - ".\be_include\be_visitor_argument\marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_docall_cs.h"\ - ".\be_include\be_visitor_argument\post_marshal_ss.h"\ - ".\be_include\be_visitor_argument\post_upcall_ss.h"\ - ".\be_include\be_visitor_argument\pre_docall_cs.h"\ - ".\be_include\be_visitor_argument\pre_upcall_ss.h"\ - ".\be_include\be_visitor_argument\upcall_ss.h"\ - ".\be_include\be_visitor_argument\vardecl_ss.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VIS=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_array.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_array\any_op_ch.cpp"\ - ".\be\be_visitor_array\any_op_cs.cpp"\ - ".\be\be_visitor_array\array.cpp"\ - ".\be\be_visitor_array\array_ch.cpp"\ - ".\be\be_visitor_array\array_ci.cpp"\ - ".\be\be_visitor_array\array_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_array.h"\ - ".\be_include\be_visitor_array\any_op_ch.h"\ - ".\be_include\be_visitor_array\any_op_cs.h"\ - ".\be_include\be_visitor_array\array.h"\ - ".\be_include\be_visitor_array\array_ch.h"\ - ".\be_include\be_visitor_array\array_ci.h"\ - ".\be_include\be_visitor_array\array_cs.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_array\any_op_ch.cpp"\ - ".\be\be_visitor_array\any_op_cs.cpp"\ - ".\be\be_visitor_array\array.cpp"\ - ".\be\be_visitor_array\array_ch.cpp"\ - ".\be\be_visitor_array\array_ci.cpp"\ - ".\be\be_visitor_array\array_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_array.h"\ - ".\be_include\be_visitor_array\any_op_ch.h"\ - ".\be_include\be_visitor_array\any_op_cs.h"\ - ".\be_include\be_visitor_array\array.h"\ - ".\be_include\be_visitor_array\array_ch.h"\ - ".\be_include\be_visitor_array\array_ci.h"\ - ".\be_include\be_visitor_array\array_cs.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_attribute.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISIT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_attribute\attribute.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_attribute.h"\ - ".\be_include\be_visitor_attribute\attribute.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISIT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISIT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_attribute\attribute.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_attribute.h"\ - ".\be_include\be_visitor_attribute\attribute.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISIT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_constant.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_constant\constant_ch.cpp"\ - ".\be\be_visitor_constant\constant_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_constant.h"\ - ".\be_include\be_visitor_constant\constant_ch.h"\ - ".\be_include\be_visitor_constant\constant_cs.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_constant\constant_ch.cpp"\ - ".\be\be_visitor_constant\constant_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_constant.h"\ - ".\be_include\be_visitor_constant\constant_ch.h"\ - ".\be_include\be_visitor_constant\constant_cs.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_context.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_decl.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_enum.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_E=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_enum\any_op_ch.cpp"\ - ".\be\be_visitor_enum\any_op_cs.cpp"\ - ".\be\be_visitor_enum\enum_ch.cpp"\ - ".\be\be_visitor_enum\enum_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_enum.h"\ - ".\be_include\be_visitor_enum\any_op_ch.h"\ - ".\be_include\be_visitor_enum\any_op_cs.h"\ - ".\be_include\be_visitor_enum\enum_ch.h"\ - ".\be_include\be_visitor_enum\enum_cs.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_E=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_E=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_enum\any_op_ch.cpp"\ - ".\be\be_visitor_enum\any_op_cs.cpp"\ - ".\be\be_visitor_enum\enum_ch.cpp"\ - ".\be\be_visitor_enum\enum_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_enum.h"\ - ".\be_include\be_visitor_enum\any_op_ch.h"\ - ".\be_include\be_visitor_enum\any_op_cs.h"\ - ".\be_include\be_visitor_enum\enum_ch.h"\ - ".\be_include\be_visitor_enum\enum_cs.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_E=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_exception.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_exception\any_op_ch.cpp"\ - ".\be\be_visitor_exception\any_op_cs.cpp"\ - ".\be\be_visitor_exception\ctor_assign.cpp"\ - ".\be\be_visitor_exception\exception.cpp"\ - ".\be\be_visitor_exception\exception_ch.cpp"\ - ".\be\be_visitor_exception\exception_ci.cpp"\ - ".\be\be_visitor_exception\exception_cs.cpp"\ - ".\be\be_visitor_exception\exception_ctor.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_exception.h"\ - ".\be_include\be_visitor_exception\any_op_ch.h"\ - ".\be_include\be_visitor_exception\any_op_cs.h"\ - ".\be_include\be_visitor_exception\ctor.h"\ - ".\be_include\be_visitor_exception\ctor_assign.h"\ - ".\be_include\be_visitor_exception\exception.h"\ - ".\be_include\be_visitor_exception\exception_ch.h"\ - ".\be_include\be_visitor_exception\exception_ci.h"\ - ".\be_include\be_visitor_exception\exception_cs.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_exception\any_op_ch.cpp"\ - ".\be\be_visitor_exception\any_op_cs.cpp"\ - ".\be\be_visitor_exception\ctor_assign.cpp"\ - ".\be\be_visitor_exception\exception.cpp"\ - ".\be\be_visitor_exception\exception_ch.cpp"\ - ".\be\be_visitor_exception\exception_ci.cpp"\ - ".\be\be_visitor_exception\exception_cs.cpp"\ - ".\be\be_visitor_exception\exception_ctor.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_exception.h"\ - ".\be_include\be_visitor_exception\any_op_ch.h"\ - ".\be_include\be_visitor_exception\any_op_cs.h"\ - ".\be_include\be_visitor_exception\ctor.h"\ - ".\be_include\be_visitor_exception\ctor_assign.h"\ - ".\be_include\be_visitor_exception\exception.h"\ - ".\be_include\be_visitor_exception\exception_ch.h"\ - ".\be_include\be_visitor_exception\exception_ci.h"\ - ".\be_include\be_visitor_exception\exception_cs.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_field.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_F=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_field\field_ch.cpp"\ - ".\be\be_visitor_field\field_ci.cpp"\ - ".\be\be_visitor_field\field_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_field.h"\ - ".\be_include\be_visitor_field\field_ch.h"\ - ".\be_include\be_visitor_field\field_ci.h"\ - ".\be_include\be_visitor_field\field_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_F=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_F=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_field\field_ch.cpp"\ - ".\be\be_visitor_field\field_ci.cpp"\ - ".\be\be_visitor_field\field_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_field.h"\ - ".\be_include\be_visitor_field\field_ch.h"\ - ".\be_include\be_visitor_field\field_ci.h"\ - ".\be_include\be_visitor_field\field_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_F=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_interface.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_interface\any_op_ch.cpp"\ - ".\be\be_visitor_interface\any_op_cs.cpp"\ - ".\be\be_visitor_interface\collocated_sh.cpp"\ - ".\be\be_visitor_interface\collocated_ss.cpp"\ - ".\be\be_visitor_interface\interface.cpp"\ - ".\be\be_visitor_interface\interface_ch.cpp"\ - ".\be\be_visitor_interface\interface_ci.cpp"\ - ".\be\be_visitor_interface\interface_cs.cpp"\ - ".\be\be_visitor_interface\interface_sh.cpp"\ - ".\be\be_visitor_interface\interface_si.cpp"\ - ".\be\be_visitor_interface\interface_ss.cpp"\ - ".\be\be_visitor_interface\tie_sh.cpp"\ - ".\be\be_visitor_interface\tie_si.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface\any_op_ch.h"\ - ".\be_include\be_visitor_interface\any_op_cs.h"\ - ".\be_include\be_visitor_interface\collocated_sh.h"\ - ".\be_include\be_visitor_interface\collocated_ss.h"\ - ".\be_include\be_visitor_interface\interface.h"\ - ".\be_include\be_visitor_interface\interface_ch.h"\ - ".\be_include\be_visitor_interface\interface_ci.h"\ - ".\be_include\be_visitor_interface\interface_cs.h"\ - ".\be_include\be_visitor_interface\interface_sh.h"\ - ".\be_include\be_visitor_interface\interface_si.h"\ - ".\be_include\be_visitor_interface\interface_ss.h"\ - ".\be_include\be_visitor_interface\tie_sh.h"\ - ".\be_include\be_visitor_interface\tie_si.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_interface\any_op_ch.cpp"\ - ".\be\be_visitor_interface\any_op_cs.cpp"\ - ".\be\be_visitor_interface\collocated_sh.cpp"\ - ".\be\be_visitor_interface\collocated_ss.cpp"\ - ".\be\be_visitor_interface\interface.cpp"\ - ".\be\be_visitor_interface\interface_ch.cpp"\ - ".\be\be_visitor_interface\interface_ci.cpp"\ - ".\be\be_visitor_interface\interface_cs.cpp"\ - ".\be\be_visitor_interface\interface_sh.cpp"\ - ".\be\be_visitor_interface\interface_si.cpp"\ - ".\be\be_visitor_interface\interface_ss.cpp"\ - ".\be\be_visitor_interface\tie_sh.cpp"\ - ".\be\be_visitor_interface\tie_si.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface.h"\ - ".\be_include\be_visitor_interface\any_op_ch.h"\ - ".\be_include\be_visitor_interface\any_op_cs.h"\ - ".\be_include\be_visitor_interface\collocated_sh.h"\ - ".\be_include\be_visitor_interface\collocated_ss.h"\ - ".\be_include\be_visitor_interface\interface.h"\ - ".\be_include\be_visitor_interface\interface_ch.h"\ - ".\be_include\be_visitor_interface\interface_ci.h"\ - ".\be_include\be_visitor_interface\interface_cs.h"\ - ".\be_include\be_visitor_interface\interface_sh.h"\ - ".\be_include\be_visitor_interface\interface_si.h"\ - ".\be_include\be_visitor_interface\interface_ss.h"\ - ".\be_include\be_visitor_interface\tie_sh.h"\ - ".\be_include\be_visitor_interface\tie_si.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_interface_fwd.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_interface_fwd\interface_fwd_ch.cpp"\ - ".\be\be_visitor_interface_fwd\interface_fwd_ci.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface_fwd.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ch.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ci.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_interface_fwd\interface_fwd_ch.cpp"\ - ".\be\be_visitor_interface_fwd\interface_fwd_ci.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_interface_fwd.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ch.h"\ - ".\be_include\be_visitor_interface_fwd\interface_fwd_ci.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_module.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_M=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_module\any_op.cpp"\ - ".\be\be_visitor_module\module.cpp"\ - ".\be\be_visitor_module\module_ch.cpp"\ - ".\be\be_visitor_module\module_sh.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_module.h"\ - ".\be_include\be_visitor_module\any_op.h"\ - ".\be_include\be_visitor_module\module.h"\ - ".\be_include\be_visitor_module\module_ch.h"\ - ".\be_include\be_visitor_module\module_sh.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_M=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_M=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_module\any_op.cpp"\ - ".\be\be_visitor_module\module.cpp"\ - ".\be\be_visitor_module\module_ch.cpp"\ - ".\be\be_visitor_module\module_sh.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_module.h"\ - ".\be_include\be_visitor_module\any_op.h"\ - ".\be_include\be_visitor_module\module.h"\ - ".\be_include\be_visitor_module\module_ch.h"\ - ".\be_include\be_visitor_module\module_sh.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_M=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_operation.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_O=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_operation\arglist.cpp"\ - ".\be\be_visitor_operation\argument.cpp"\ - ".\be\be_visitor_operation\collocated_sh.cpp"\ - ".\be\be_visitor_operation\collocated_ss.cpp"\ - ".\be\be_visitor_operation\exceptlist_cs.cpp"\ - ".\be\be_visitor_operation\operation_ch.cpp"\ - ".\be\be_visitor_operation\operation_cs.cpp"\ - ".\be\be_visitor_operation\operation_sh.cpp"\ - ".\be\be_visitor_operation\operation_ss.cpp"\ - ".\be\be_visitor_operation\rettype.cpp"\ - ".\be\be_visitor_operation\rettype_assign_ss.cpp"\ - ".\be\be_visitor_operation\rettype_docall_cs.cpp"\ - ".\be\be_visitor_operation\rettype_marshal_ss.cpp"\ - ".\be\be_visitor_operation\rettype_post_docall_cs.cpp"\ - ".\be\be_visitor_operation\rettype_post_upcall_ss.cpp"\ - ".\be\be_visitor_operation\rettype_pre_docall_cs.cpp"\ - ".\be\be_visitor_operation\rettype_return_cs.cpp"\ - ".\be\be_visitor_operation\rettype_vardecl_cs.cpp"\ - ".\be\be_visitor_operation\rettype_vardecl_ss.cpp"\ - ".\be\be_visitor_operation\tie_sh.cpp"\ - ".\be\be_visitor_operation\tie_si.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_operation.h"\ - ".\be_include\be_visitor_operation\arglist.h"\ - ".\be_include\be_visitor_operation\argument.h"\ - ".\be_include\be_visitor_operation\collocated_sh.h"\ - ".\be_include\be_visitor_operation\collocated_ss.h"\ - ".\be_include\be_visitor_operation\exceptlist_cs.h"\ - ".\be_include\be_visitor_operation\operation_ch.h"\ - ".\be_include\be_visitor_operation\operation_cs.h"\ - ".\be_include\be_visitor_operation\operation_sh.h"\ - ".\be_include\be_visitor_operation\operation_ss.h"\ - ".\be_include\be_visitor_operation\rettype.h"\ - ".\be_include\be_visitor_operation\rettype_assign_ss.h"\ - ".\be_include\be_visitor_operation\rettype_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_marshal_ss.h"\ - ".\be_include\be_visitor_operation\rettype_post_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_post_upcall_ss.h"\ - ".\be_include\be_visitor_operation\rettype_pre_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_return_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_ss.h"\ - ".\be_include\be_visitor_operation\tie_sh.h"\ - ".\be_include\be_visitor_operation\tie_si.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_O=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_O=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_operation\arglist.cpp"\ - ".\be\be_visitor_operation\argument.cpp"\ - ".\be\be_visitor_operation\collocated_sh.cpp"\ - ".\be\be_visitor_operation\collocated_ss.cpp"\ - ".\be\be_visitor_operation\exceptlist_cs.cpp"\ - ".\be\be_visitor_operation\operation_ch.cpp"\ - ".\be\be_visitor_operation\operation_cs.cpp"\ - ".\be\be_visitor_operation\operation_sh.cpp"\ - ".\be\be_visitor_operation\operation_ss.cpp"\ - ".\be\be_visitor_operation\rettype.cpp"\ - ".\be\be_visitor_operation\rettype_assign_ss.cpp"\ - ".\be\be_visitor_operation\rettype_docall_cs.cpp"\ - ".\be\be_visitor_operation\rettype_marshal_ss.cpp"\ - ".\be\be_visitor_operation\rettype_post_docall_cs.cpp"\ - ".\be\be_visitor_operation\rettype_post_upcall_ss.cpp"\ - ".\be\be_visitor_operation\rettype_pre_docall_cs.cpp"\ - ".\be\be_visitor_operation\rettype_return_cs.cpp"\ - ".\be\be_visitor_operation\rettype_vardecl_cs.cpp"\ - ".\be\be_visitor_operation\rettype_vardecl_ss.cpp"\ - ".\be\be_visitor_operation\tie_sh.cpp"\ - ".\be\be_visitor_operation\tie_si.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_operation.h"\ - ".\be_include\be_visitor_operation\arglist.h"\ - ".\be_include\be_visitor_operation\argument.h"\ - ".\be_include\be_visitor_operation\collocated_sh.h"\ - ".\be_include\be_visitor_operation\collocated_ss.h"\ - ".\be_include\be_visitor_operation\exceptlist_cs.h"\ - ".\be_include\be_visitor_operation\operation_ch.h"\ - ".\be_include\be_visitor_operation\operation_cs.h"\ - ".\be_include\be_visitor_operation\operation_sh.h"\ - ".\be_include\be_visitor_operation\operation_ss.h"\ - ".\be_include\be_visitor_operation\rettype.h"\ - ".\be_include\be_visitor_operation\rettype_assign_ss.h"\ - ".\be_include\be_visitor_operation\rettype_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_marshal_ss.h"\ - ".\be_include\be_visitor_operation\rettype_post_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_post_upcall_ss.h"\ - ".\be_include\be_visitor_operation\rettype_pre_docall_cs.h"\ - ".\be_include\be_visitor_operation\rettype_return_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_cs.h"\ - ".\be_include\be_visitor_operation\rettype_vardecl_ss.h"\ - ".\be_include\be_visitor_operation\tie_sh.h"\ - ".\be_include\be_visitor_operation\tie_si.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_O=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_root.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_R=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_root\any_op.cpp"\ - ".\be\be_visitor_root\root.cpp"\ - ".\be\be_visitor_root\root_ch.cpp"\ - ".\be\be_visitor_root\root_ci.cpp"\ - ".\be\be_visitor_root\root_cs.cpp"\ - ".\be\be_visitor_root\root_sh.cpp"\ - ".\be\be_visitor_root\root_si.cpp"\ - ".\be\be_visitor_root\root_ss.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_root.h"\ - ".\be_include\be_visitor_root\any_op.h"\ - ".\be_include\be_visitor_root\root.h"\ - ".\be_include\be_visitor_root\root_ch.h"\ - ".\be_include\be_visitor_root\root_ci.h"\ - ".\be_include\be_visitor_root\root_cs.h"\ - ".\be_include\be_visitor_root\root_sh.h"\ - ".\be_include\be_visitor_root\root_si.h"\ - ".\be_include\be_visitor_root\root_ss.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_R=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_R=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_root\any_op.cpp"\ - ".\be\be_visitor_root\root.cpp"\ - ".\be\be_visitor_root\root_ch.cpp"\ - ".\be\be_visitor_root\root_ci.cpp"\ - ".\be\be_visitor_root\root_cs.cpp"\ - ".\be\be_visitor_root\root_sh.cpp"\ - ".\be\be_visitor_root\root_si.cpp"\ - ".\be\be_visitor_root\root_ss.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_root.h"\ - ".\be_include\be_visitor_root\any_op.h"\ - ".\be_include\be_visitor_root\root.h"\ - ".\be_include\be_visitor_root\root_ch.h"\ - ".\be_include\be_visitor_root\root_ci.h"\ - ".\be_include\be_visitor_root\root_cs.h"\ - ".\be_include\be_visitor_root\root_sh.h"\ - ".\be_include\be_visitor_root\root_si.h"\ - ".\be_include\be_visitor_root\root_ss.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_R=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_scope.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_S=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_S=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_S=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_S=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_sequence.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_SE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_sequence\any_op_ch.cpp"\ - ".\be\be_visitor_sequence\any_op_cs.cpp"\ - ".\be\be_visitor_sequence\buffer_type.cpp"\ - ".\be\be_visitor_sequence\elemtype.cpp"\ - ".\be\be_visitor_sequence\gen_bounded_obj_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_bounded_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_bounded_str_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_object_manager_ch.cpp"\ - ".\be\be_visitor_sequence\gen_unbounded_obj_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_unbounded_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\sequence_base.cpp"\ - ".\be\be_visitor_sequence\sequence_ch.cpp"\ - ".\be\be_visitor_sequence\sequence_ci.cpp"\ - ".\be\be_visitor_sequence\sequence_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_sequence\any_op_ch.h"\ - ".\be_include\be_visitor_sequence\any_op_cs.h"\ - ".\be_include\be_visitor_sequence\buffer_type.h"\ - ".\be_include\be_visitor_sequence\elemtype.h"\ - ".\be_include\be_visitor_sequence\sequence_base.h"\ - ".\be_include\be_visitor_sequence\sequence_ch.h"\ - ".\be_include\be_visitor_sequence\sequence_ci.h"\ - ".\be_include\be_visitor_sequence\sequence_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_SE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_SE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_sequence\any_op_ch.cpp"\ - ".\be\be_visitor_sequence\any_op_cs.cpp"\ - ".\be\be_visitor_sequence\buffer_type.cpp"\ - ".\be\be_visitor_sequence\elemtype.cpp"\ - ".\be\be_visitor_sequence\gen_bounded_obj_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_bounded_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_bounded_str_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_object_manager_ch.cpp"\ - ".\be\be_visitor_sequence\gen_unbounded_obj_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\gen_unbounded_sequence_ch.cpp"\ - ".\be\be_visitor_sequence\sequence_base.cpp"\ - ".\be\be_visitor_sequence\sequence_ch.cpp"\ - ".\be\be_visitor_sequence\sequence_ci.cpp"\ - ".\be\be_visitor_sequence\sequence_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_sequence.h"\ - ".\be_include\be_visitor_sequence\any_op_ch.h"\ - ".\be_include\be_visitor_sequence\any_op_cs.h"\ - ".\be_include\be_visitor_sequence\buffer_type.h"\ - ".\be_include\be_visitor_sequence\elemtype.h"\ - ".\be_include\be_visitor_sequence\sequence_base.h"\ - ".\be_include\be_visitor_sequence\sequence_ch.h"\ - ".\be_include\be_visitor_sequence\sequence_ci.h"\ - ".\be_include\be_visitor_sequence\sequence_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_SE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_structure.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_structure\any_op_ch.cpp"\ - ".\be\be_visitor_structure\any_op_cs.cpp"\ - ".\be\be_visitor_structure\structure.cpp"\ - ".\be\be_visitor_structure\structure_ch.cpp"\ - ".\be\be_visitor_structure\structure_ci.cpp"\ - ".\be\be_visitor_structure\structure_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_structure.h"\ - ".\be_include\be_visitor_structure\any_op_ch.h"\ - ".\be_include\be_visitor_structure\any_op_cs.h"\ - ".\be_include\be_visitor_structure\structure.h"\ - ".\be_include\be_visitor_structure\structure_ch.h"\ - ".\be_include\be_visitor_structure\structure_ci.h"\ - ".\be_include\be_visitor_structure\structure_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_structure\any_op_ch.cpp"\ - ".\be\be_visitor_structure\any_op_cs.cpp"\ - ".\be\be_visitor_structure\structure.cpp"\ - ".\be\be_visitor_structure\structure_ch.cpp"\ - ".\be\be_visitor_structure\structure_ci.cpp"\ - ".\be\be_visitor_structure\structure_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_structure.h"\ - ".\be_include\be_visitor_structure\any_op_ch.h"\ - ".\be_include\be_visitor_structure\any_op_cs.h"\ - ".\be_include\be_visitor_structure\structure.h"\ - ".\be_include\be_visitor_structure\structure_ch.h"\ - ".\be_include\be_visitor_structure\structure_ci.h"\ - ".\be_include\be_visitor_structure\structure_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_typecode.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_T=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_typecode\typecode_decl.cpp"\ - ".\be\be_visitor_typecode\typecode_defn.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_typecode.h"\ - ".\be_include\be_visitor_typecode\typecode_decl.h"\ - ".\be_include\be_visitor_typecode\typecode_defn.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_T=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_T=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_typecode\typecode_decl.cpp"\ - ".\be\be_visitor_typecode\typecode_defn.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_typecode.h"\ - ".\be_include\be_visitor_typecode\typecode_decl.h"\ - ".\be_include\be_visitor_typecode\typecode_defn.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_T=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_typedef.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_TY=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_typedef\any_op_ch.cpp"\ - ".\be\be_visitor_typedef\any_op_cs.cpp"\ - ".\be\be_visitor_typedef\typedef.cpp"\ - ".\be\be_visitor_typedef\typedef_ch.cpp"\ - ".\be\be_visitor_typedef\typedef_ci.cpp"\ - ".\be\be_visitor_typedef\typedef_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_typedef.h"\ - ".\be_include\be_visitor_typedef\any_op_ch.h"\ - ".\be_include\be_visitor_typedef\any_op_cs.h"\ - ".\be_include\be_visitor_typedef\typedef.h"\ - ".\be_include\be_visitor_typedef\typedef_ch.h"\ - ".\be_include\be_visitor_typedef\typedef_ci.h"\ - ".\be_include\be_visitor_typedef\typedef_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_TY=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_TY=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_typedef\any_op_ch.cpp"\ - ".\be\be_visitor_typedef\any_op_cs.cpp"\ - ".\be\be_visitor_typedef\typedef.cpp"\ - ".\be\be_visitor_typedef\typedef_ch.cpp"\ - ".\be\be_visitor_typedef\typedef_ci.cpp"\ - ".\be\be_visitor_typedef\typedef_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_typedef.h"\ - ".\be_include\be_visitor_typedef\any_op_ch.h"\ - ".\be_include\be_visitor_typedef\any_op_cs.h"\ - ".\be_include\be_visitor_typedef\typedef.h"\ - ".\be_include\be_visitor_typedef\typedef_ch.h"\ - ".\be_include\be_visitor_typedef\typedef_ci.h"\ - ".\be_include\be_visitor_typedef\typedef_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_TY=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_union.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_U=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_union\any_op_ch.cpp"\ - ".\be\be_visitor_union\any_op_cs.cpp"\ - ".\be\be_visitor_union\discriminant_ch.cpp"\ - ".\be\be_visitor_union\discriminant_ci.cpp"\ - ".\be\be_visitor_union\discriminant_cs.cpp"\ - ".\be\be_visitor_union\union.cpp"\ - ".\be\be_visitor_union\union_ch.cpp"\ - ".\be\be_visitor_union\union_ci.cpp"\ - ".\be\be_visitor_union\union_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_union.h"\ - ".\be_include\be_visitor_union\any_op_ch.h"\ - ".\be_include\be_visitor_union\any_op_cs.h"\ - ".\be_include\be_visitor_union\discriminant_ch.h"\ - ".\be_include\be_visitor_union\discriminant_ci.h"\ - ".\be_include\be_visitor_union\discriminant_cs.h"\ - ".\be_include\be_visitor_union\union.h"\ - ".\be_include\be_visitor_union\union_ch.h"\ - ".\be_include\be_visitor_union\union_ci.h"\ - ".\be_include\be_visitor_union\union_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_U=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_U=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_union\any_op_ch.cpp"\ - ".\be\be_visitor_union\any_op_cs.cpp"\ - ".\be\be_visitor_union\discriminant_ch.cpp"\ - ".\be\be_visitor_union\discriminant_ci.cpp"\ - ".\be\be_visitor_union\discriminant_cs.cpp"\ - ".\be\be_visitor_union\union.cpp"\ - ".\be\be_visitor_union\union_ch.cpp"\ - ".\be\be_visitor_union\union_ci.cpp"\ - ".\be\be_visitor_union\union_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_scope.h"\ - ".\be_include\be_visitor_union.h"\ - ".\be_include\be_visitor_union\any_op_ch.h"\ - ".\be_include\be_visitor_union\any_op_cs.h"\ - ".\be_include\be_visitor_union\discriminant_ch.h"\ - ".\be_include\be_visitor_union\discriminant_ci.h"\ - ".\be_include\be_visitor_union\discriminant_cs.h"\ - ".\be_include\be_visitor_union\union.h"\ - ".\be_include\be_visitor_union\union_ch.h"\ - ".\be_include\be_visitor_union\union_ci.h"\ - ".\be_include\be_visitor_union\union_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_U=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_union_branch.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_BE_VISITOR_UN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_union_branch\private_ch.cpp"\ - ".\be\be_visitor_union_branch\public_access_cs.cpp"\ - ".\be\be_visitor_union_branch\public_assign_cs.cpp"\ - ".\be\be_visitor_union_branch\public_ch.cpp"\ - ".\be\be_visitor_union_branch\public_ci.cpp"\ - ".\be\be_visitor_union_branch\public_cs.cpp"\ - ".\be\be_visitor_union_branch\public_reset_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_union_branch.h"\ - ".\be_include\be_visitor_union_branch\private_ch.h"\ - ".\be_include\be_visitor_union_branch\public_access_cs.h"\ - ".\be_include\be_visitor_union_branch\public_assign_cs.h"\ - ".\be_include\be_visitor_union_branch\public_ch.h"\ - ".\be_include\be_visitor_union_branch\public_ci.h"\ - ".\be_include\be_visitor_union_branch\public_cs.h"\ - ".\be_include\be_visitor_union_branch\public_reset_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_UN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_BE_VISITOR_UN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be\be_visitor_union_branch\private_ch.cpp"\ - ".\be\be_visitor_union_branch\public_access_cs.cpp"\ - ".\be\be_visitor_union_branch\public_assign_cs.cpp"\ - ".\be\be_visitor_union_branch\public_ch.cpp"\ - ".\be\be_visitor_union_branch\public_ci.cpp"\ - ".\be\be_visitor_union_branch\public_cs.cpp"\ - ".\be\be_visitor_union_branch\public_reset_cs.cpp"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\be_include\be_visitor_decl.h"\ - ".\be_include\be_visitor_union_branch.h"\ - ".\be_include\be_visitor_union_branch\private_ch.h"\ - ".\be_include\be_visitor_union_branch\public_access_cs.h"\ - ".\be_include\be_visitor_union_branch\public_assign_cs.h"\ - ".\be_include\be_visitor_union_branch\public_ch.h"\ - ".\be_include\be_visitor_union_branch\public_ci.h"\ - ".\be_include\be_visitor_union_branch\public_cs.h"\ - ".\be_include\be_visitor_union_branch\public_reset_cs.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_BE_VISITOR_UN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_args.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_DRV_A=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_A=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_DRV_A=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Containers.cpp"\ - "..\..\ace\Containers.h"\ - "..\..\ace\Containers.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\Free_List.cpp"\ - "..\..\ace\Free_List.h"\ - "..\..\ace\Free_List.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc.h"\ - "..\..\ace\Malloc.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Malloc_T.cpp"\ - "..\..\ace\Malloc_T.h"\ - "..\..\ace\Malloc_T.i"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Mem_Map.h"\ - "..\..\ace\Mem_Map.i"\ - "..\..\ace\Memory_Pool.h"\ - "..\..\ace\Memory_Pool.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Signal.h"\ - "..\..\ace\Signal.i"\ - "..\..\ace\Singleton.cpp"\ - "..\..\ace\Singleton.h"\ - "..\..\ace\Singleton.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\be_include\be.h"\ - ".\be_include\be_argument.h"\ - ".\be_include\be_array.h"\ - ".\be_include\be_attribute.h"\ - ".\be_include\be_codegen.h"\ - ".\be_include\be_constant.h"\ - ".\be_include\be_decl.h"\ - ".\be_include\be_enum.h"\ - ".\be_include\be_enum_val.h"\ - ".\be_include\be_exception.h"\ - ".\be_include\be_expression.h"\ - ".\be_include\be_factory.h"\ - ".\be_include\be_field.h"\ - ".\be_include\be_generator.h"\ - ".\be_include\be_helper.h"\ - ".\be_include\be_interface.h"\ - ".\be_include\be_interface_fwd.h"\ - ".\be_include\be_module.h"\ - ".\be_include\be_native.h"\ - ".\be_include\be_operation.h"\ - ".\be_include\be_predefined_type.h"\ - ".\be_include\be_root.h"\ - ".\be_include\be_scope.h"\ - ".\be_include\be_sequence.h"\ - ".\be_include\be_string.h"\ - ".\be_include\be_structure.h"\ - ".\be_include\be_type.h"\ - ".\be_include\be_typedef.h"\ - ".\be_include\be_union.h"\ - ".\be_include\be_union_branch.h"\ - ".\be_include\be_union_label.h"\ - ".\be_include\be_visitor.h"\ - ".\be_include\be_visitor_context.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_A=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_fork.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_DRV_F=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Process_Manager.h"\ - "..\..\ace\Process_Manager.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_F=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_DRV_F=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Process_Manager.h"\ - "..\..\ace\Process_Manager.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_F=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_init.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_DRV_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_DRV_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_link.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_DRV_L=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_L=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_DRV_L=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_L=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_preproc.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_DRV_P=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Env_Value_T.cpp"\ - "..\..\ace\Env_Value_T.h"\ - "..\..\ace\Env_Value_T.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Process_Manager.h"\ - "..\..\ace\Process_Manager.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_P=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_DRV_P=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Atomic_Op.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\Env_Value_T.cpp"\ - "..\..\ace\Env_Value_T.h"\ - "..\..\ace\Env_Value_T.i"\ - "..\..\ace\Event_Handler.h"\ - "..\..\ace\Event_Handler.i"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\Process.h"\ - "..\..\ace\Process.i"\ - "..\..\ace\Process_Manager.h"\ - "..\..\ace\Process_Manager.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\SV_Semaphore_Complex.h"\ - "..\..\ace\SV_Semaphore_Complex.i"\ - "..\..\ace\SV_Semaphore_Simple.h"\ - "..\..\ace\SV_Semaphore_Simple.i"\ - "..\..\ace\Synch.h"\ - "..\..\ace\Synch.i"\ - "..\..\ace\Synch_T.cpp"\ - "..\..\ace\Synch_T.h"\ - "..\..\ace\Synch_T.i"\ - "..\..\ace\Thread.h"\ - "..\..\ace\Thread.i"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_P=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_private.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_DRV_PR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_PR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_DRV_PR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_DRV_PR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_declarator.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_FE_DE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_DE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_FE_DE=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_DE=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_extern.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_FE_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_FE_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_init.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_FE_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_FE_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_interface_header.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_FE_INT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_INT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_FE_INT=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_INT=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_lookup.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_private.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_FE_PR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_PR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_FE_PR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_FE_PR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\lex.yy.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_LEX_Y=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\fe\y.tab.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_LEX_Y=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_LEX_Y=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\fe\y.tab.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_LEX_Y=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\narrow\narrow.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_NARRO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_NARRO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_NARRO=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_NARRO=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\tao_idl.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_TAO_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_TAO_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_TAO_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\drv_link.h"\ - ".\include\drv_private.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_TAO_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_decllist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_D=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_D=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_D=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_D=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_error.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_E=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_E=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_E=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_E=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_exceptlist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_EX=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_EX=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_exprlist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_EXP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_EXP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_EXP=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_EXP=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_global.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_G=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_G=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_G=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_G=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_identifier.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_I=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_I=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_idlist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_ID=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_ID=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_ID=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_ID=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_indenter.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_IN=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_IN=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_labellist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_L=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_L=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_L=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_L=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_list.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_LI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_LI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_LI=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_LI=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_namelist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_N=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_N=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_N=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_N=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_scope.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_S=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_S=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_S=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_S=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_stack.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_ST=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_ST=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_string.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_STR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_STR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_STR=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_STR=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\util\utl_strlist.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_UTL_STRL=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_STRL=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_UTL_STRL=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_extern.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_UTL_STRL=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\fe\y.tab.cpp - -!IF "$(CFG)" == "TAO_IDL Compiler - Win32 Release" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Debug" - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Debug" - -DEP_CPP_Y_TAB=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_Y_TAB=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler - Win32 Alpha Release" - -DEP_CPP_Y_TAB=\ - "..\..\ace\ACE.h"\ - "..\..\ace\ACE.i"\ - "..\..\ace\Auto_Ptr.cpp"\ - "..\..\ace\Auto_Ptr.h"\ - "..\..\ace\Auto_Ptr.i"\ - "..\..\ace\Basic_Types.h"\ - "..\..\ace\Basic_Types.i"\ - "..\..\ace\config-win32-borland.h"\ - "..\..\ace\config-win32-common.h"\ - "..\..\ace\config-win32.h"\ - "..\..\ace\config-WinCE.h"\ - "..\..\ace\config.h"\ - "..\..\ace\inc_user_config.h"\ - "..\..\ace\iosfwd.h"\ - "..\..\ace\Log_Msg.h"\ - "..\..\ace\Log_Priority.h"\ - "..\..\ace\Log_Record.h"\ - "..\..\ace\Log_Record.i"\ - "..\..\ace\Malloc_Base.h"\ - "..\..\ace\Managed_Object.cpp"\ - "..\..\ace\Managed_Object.h"\ - "..\..\ace\Managed_Object.i"\ - "..\..\ace\Object_Manager.h"\ - "..\..\ace\Object_Manager.i"\ - "..\..\ace\OS.h"\ - "..\..\ace\OS.i"\ - "..\..\ace\SString.h"\ - "..\..\ace\SString.i"\ - "..\..\ace\streams.h"\ - "..\..\ace\Trace.h"\ - "..\..\ace\ws2tcpip.h"\ - ".\include\ast.h"\ - ".\include\ast_argument.h"\ - ".\include\ast_array.h"\ - ".\include\ast_attribute.h"\ - ".\include\ast_concrete_type.h"\ - ".\include\ast_constant.h"\ - ".\include\ast_decl.h"\ - ".\include\ast_enum.h"\ - ".\include\ast_enum_val.h"\ - ".\include\ast_exception.h"\ - ".\include\ast_expression.h"\ - ".\include\ast_extern.h"\ - ".\include\ast_field.h"\ - ".\include\ast_generator.h"\ - ".\include\ast_interface.h"\ - ".\include\ast_interface_fwd.h"\ - ".\include\ast_module.h"\ - ".\include\ast_native.h"\ - ".\include\ast_operation.h"\ - ".\include\ast_predefined_type.h"\ - ".\include\ast_root.h"\ - ".\include\ast_sequence.h"\ - ".\include\ast_string.h"\ - ".\include\ast_structure.h"\ - ".\include\ast_type.h"\ - ".\include\ast_typedef.h"\ - ".\include\ast_union.h"\ - ".\include\ast_union_branch.h"\ - ".\include\ast_union_label.h"\ - ".\include\be_extern.h"\ - ".\include\drv_extern.h"\ - ".\include\fe_declarator.h"\ - ".\include\fe_extern.h"\ - ".\include\fe_interface_header.h"\ - ".\include\fe_private.h"\ - ".\include\global_extern.h"\ - ".\include\idl.h"\ - ".\include\idl_bool.h"\ - ".\include\idl_defines.h"\ - ".\include\idl_extern.h"\ - ".\include\idl_fwd.h"\ - ".\include\idl_global.h"\ - ".\include\idl_narrow.h"\ - ".\include\intlmacros.h"\ - ".\include\nr_extern.h"\ - ".\include\util.h"\ - ".\include\utl_decllist.h"\ - ".\include\utl_error.h"\ - ".\include\utl_exceptlist.h"\ - ".\include\utl_exprlist.h"\ - ".\include\utl_identifier.h"\ - ".\include\utl_idlist.h"\ - ".\include\utl_indenter.h"\ - ".\include\utl_labellist.h"\ - ".\include\utl_list.h"\ - ".\include\utl_namelist.h"\ - ".\include\utl_scope.h"\ - ".\include\utl_scoped_name.h"\ - ".\include\utl_stack.h"\ - ".\include\utl_string.h"\ - ".\include\utl_strlist.h"\ - -NODEP_CPP_Y_TAB=\ - "..\..\ace\sys_conf.h"\ - ".\ys\types.h"\ - - -!ENDIF - -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\include\ast.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_argument.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_array.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_concrete_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_constant.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_decl.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_enum.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_enum_val.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_exception.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_expression.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_field.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_generator.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_interface.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_module.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_native.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_operation.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_predefined_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_root.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_string.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_structure.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union_label.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_argument.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_array.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_codegen.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_constant.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_decl.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_enum.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_enum_val.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_exception.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_expression.h -# End Source File -# Begin Source File - -SOURCE=.\include\be_extern.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_factory.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_field.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_generator.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_helper.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interface.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interpretive.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_module.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_native.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_operation.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_predefined_type.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_root.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_scope.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_state.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_string.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_structure.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_sunsoft.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_type.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union_label.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_argument.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_array.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_constant.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_context.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_decl.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_enum.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_exception.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_field.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_interface.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_module.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_operation.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_root.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_scope.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_structure.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_typecode.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_union.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_link.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_private.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_declarator.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_interface_header.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_private.h -# End Source File -# Begin Source File - -SOURCE=.\include\global_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_bool.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_defines.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_global.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_narrow.h -# End Source File -# Begin Source File - -SOURCE=.\include\intlmacros.h -# End Source File -# Begin Source File - -SOURCE=.\include\nr_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\util.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_decllist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_error.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_exceptlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_exprlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_identifier.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_idlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_indenter.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_labellist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_list.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_namelist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_scope.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_scoped_name.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_stack.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_string.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_strlist.h -# End Source File -# Begin Source File - -SOURCE=.\fe\y.tab.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/TAO_IDL/tao_idl.dsw b/TAO/TAO_IDL/tao_idl.dsw deleted file mode 100644 index 5600a5f78c4..00000000000 --- a/TAO/TAO_IDL/tao_idl.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: "TAO_IDL Compiler"=.\tao_idl.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "TAO_IDL Compiler Static"=.\tao_idl_static.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/TAO_IDL/tao_idl_static.dsp b/TAO/TAO_IDL/tao_idl_static.dsp deleted file mode 100644 index b89638a272b..00000000000 --- a/TAO/TAO_IDL/tao_idl_static.dsp +++ /dev/null @@ -1,1047 +0,0 @@ -# Microsoft Developer Studio Project File - Name="TAO_IDL Compiler Static" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=TAO_IDL Compiler Static - 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 "tao_idl_static.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 "tao_idl_static.mak"\ - CFG="TAO_IDL Compiler Static - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "TAO_IDL Compiler Static - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "TAO_IDL Compiler Static - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "TAO_IDL Compiler Static - 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 /MT /W3 /GX /O2 /I "include" /I "be_include" /I "..\.." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /D ACE_HAS_DLL=0 /D __ACE_INLINE__=0 /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /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 aces.lib advapi32.lib user32.lib /nologo /subsystem:console /debug /machine:I386 /libpath:"../../ace" -# SUBTRACT LINK32 /map - -!ELSEIF "$(CFG)" == "TAO_IDL Compiler Static - 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 /MTd /W3 /Gm /GX /Zi /Od /I "include" /I "be_include" /I "..\.." /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D IDL_CFE_VERSION=\"1.3.0\" /D ACE_HAS_DLL=0 /D __ACE_INLINE__=0 /FD /D CPP_LOCATION="\"C:\\Program Files\\DevStudio\\VC\\bin\\CL.EXE\"" /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 acesd.lib advapi32.lib user32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "TAO_IDL Compiler Static - Win32 Release" -# Name "TAO_IDL Compiler Static - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\ast\ast_argument.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_array.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_attribute.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_check.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_concrete_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_constant.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_decl.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_enum.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_enum_val.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_exception.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_expression.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_field.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_generator.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_interface.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_interface_fwd.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_module.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_native.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_operation.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_predefined_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_recursive.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_redef.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_root.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_sequence.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_string.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_structure.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_typedef.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union_branch.cpp -# End Source File -# Begin Source File - -SOURCE=.\ast\ast_union_label.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_args.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_argument.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_array.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_attribute.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_codegen.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_constant.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_decl.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_enum.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_enum_val.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_exception.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_expression.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_factory.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_field.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_generator.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_helper.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_init.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_interface.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_interface_fwd.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_interpretive.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_module.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_native.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_operation.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_predefined_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_produce.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_root.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_scope.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_sequence.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_string.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_structure.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_sunsoft.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_type.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_typedef.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_union.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_union_branch.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_union_label.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_argument.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_array.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_attribute.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_constant.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_context.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_decl.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_enum.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_exception.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_field.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_interface.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_interface_fwd.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_module.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_operation.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_root.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_scope.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_sequence.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_structure.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_typecode.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_typedef.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_union.cpp -# End Source File -# Begin Source File - -SOURCE=.\be\be_visitor_union_branch.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_args.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_fork.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_init.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_link.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_preproc.cpp -# End Source File -# Begin Source File - -SOURCE=.\driver\drv_private.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_declarator.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_extern.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_init.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_interface_header.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\fe_private.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\lex.yy.cpp -# End Source File -# Begin Source File - -SOURCE=.\narrow\narrow.cpp -# End Source File -# Begin Source File - -SOURCE=.\tao_idl.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_decllist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_error.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_exceptlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_exprlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_global.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_identifier.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_idlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_indenter.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_labellist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_list.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_namelist.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_scope.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_stack.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_string.cpp -# End Source File -# Begin Source File - -SOURCE=.\util\utl_strlist.cpp -# End Source File -# Begin Source File - -SOURCE=.\fe\y.tab.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\include\ast.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_argument.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_array.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_concrete_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_constant.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_decl.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_enum.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_enum_val.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_exception.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_expression.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_field.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_generator.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_interface.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_module.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_native.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_operation.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_predefined_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_root.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_string.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_structure.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_type.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\include\ast_union_label.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_argument.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_array.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_codegen.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_constant.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_decl.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_enum.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_enum_val.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_exception.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_expression.h -# End Source File -# Begin Source File - -SOURCE=.\include\be_extern.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_factory.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_field.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_generator.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_helper.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interface.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_interpretive.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_module.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_native.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_operation.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_predefined_type.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_root.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_scope.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_state.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_string.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_structure.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_sunsoft.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_type.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_union_label.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_argument.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_array.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_attribute.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_constant.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_context.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_decl.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_enum.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_exception.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_field.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_interface.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_interface_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_module.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_operation.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_root.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_scope.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_sequence.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_structure.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_typecode.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_typedef.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_union.h -# End Source File -# Begin Source File - -SOURCE=.\be_include\be_visitor_union_branch.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_link.h -# End Source File -# Begin Source File - -SOURCE=.\include\drv_private.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_declarator.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_interface_header.h -# End Source File -# Begin Source File - -SOURCE=.\include\fe_private.h -# End Source File -# Begin Source File - -SOURCE=.\include\global_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_bool.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_defines.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_fwd.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_global.h -# End Source File -# Begin Source File - -SOURCE=.\include\idl_narrow.h -# End Source File -# Begin Source File - -SOURCE=.\include\intlmacros.h -# End Source File -# Begin Source File - -SOURCE=.\include\nr_extern.h -# End Source File -# Begin Source File - -SOURCE=.\include\util.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_decllist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_error.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_exceptlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_exprlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_identifier.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_idlist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_indenter.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_labellist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_list.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_namelist.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_scope.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_scoped_name.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_stack.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_string.h -# End Source File -# Begin Source File - -SOURCE=.\include\utl_strlist.h -# End Source File -# Begin Source File - -SOURCE=.\fe\y.tab.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/TAO_IDL/util/utl_decllist.cpp b/TAO/TAO_IDL/util/utl_decllist.cpp deleted file mode 100644 index 2a810a6e5f8..00000000000 --- a/TAO/TAO_IDL/util/utl_decllist.cpp +++ /dev/null @@ -1,149 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_decllist.cc -// -// Implementation of a list of declarators - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_decllist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_DeclList::UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -FE_Declarator * -UTL_DeclList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_DeclList active iterator - -/* - * Constructor - */ - -UTL_DecllistActiveIterator::UTL_DecllistActiveIterator(UTL_DeclList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -FE_Declarator * -UTL_DecllistActiveIterator::item() -{ - if (source == NULL) - return NULL; - - return ((UTL_DeclList *) source)->head(); -} - -/* - * Redefined inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_err.cpp b/TAO/TAO_IDL/util/utl_err.cpp deleted file mode 100644 index 33f1eace574..00000000000 --- a/TAO/TAO_IDL/util/utl_err.cpp +++ /dev/null @@ -1,706 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_error.cc - Implementation of error reporting object for IDL -// compiler program - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_error, "$Id$") - -/* - * Helper functions to do: - * - * - Convert an error code to an error string - * - Print out an error message header - * - Convert an ExprType to a string - */ - -// Convert an error code into a char * -static char * -error_string(UTL_Error::ErrorCode c) -{ - switch (c) { - case UTL_Error::EIDL_OK: - return GTDEVEL("all is fine "); - case UTL_Error::EIDL_SYNTAX_ERROR: - return ""; - case UTL_Error::EIDL_REDEF: - return GTDEVEL("illegal redefinition "); - case UTL_Error::EIDL_DEF_USE: - return GTDEVEL("redefinition after use, "); - case UTL_Error::EIDL_MULTIPLE_BRANCH: - return GTDEVEL("union with duplicate branch label "); - case UTL_Error::EIDL_COERCION_FAILURE: - return GTDEVEL("coercion failure "); - case UTL_Error::EIDL_SCOPE_CONFLICT: - return GTDEVEL("definition scope is different than fwd declare scope, "); - case UTL_Error::EIDL_ONEWAY_CONFLICT: - return GTDEVEL("oneway operation with OUT or INOUT parameters, "); - case UTL_Error::EIDL_DISC_TYPE: - return GTDEVEL("union with illegal discriminator type, "); - case UTL_Error::EIDL_LABEL_TYPE: - return GTDEVEL("label type incompatible with union discriminator type, "); - case UTL_Error::EIDL_ILLEGAL_ADD: - return GTDEVEL("illegal add operation, "); - case UTL_Error::EIDL_ILLEGAL_USE: - return GTDEVEL("illegal type used in expression, "); - case UTL_Error::EIDL_ILLEGAL_RAISES: - return GTDEVEL("error in raises(..) clause, "); - case UTL_Error::EIDL_ILLEGAL_CONTEXT: - return GTDEVEL("error in context(..) clause, "); - case UTL_Error::EIDL_CANT_INHERIT: - return GTDEVEL("cannot inherit from "); - case UTL_Error::EIDL_LOOKUP_ERROR: - return GTDEVEL("error in lookup of symbol: "); - case UTL_Error::EIDL_INHERIT_FWD_ERROR: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_CONSTANT_EXPECTED: - return GTDEVEL("constant expected: "); - case UTL_Error::EIDL_EVAL_ERROR: - return GTDEVEL("expression evaluation error: "); - case UTL_Error::EIDL_NAME_CASE_ERROR: - return GTDEVEL("identifier used with two differing spellings: "); - case UTL_Error::EIDL_ENUM_VAL_EXPECTED: - return GTDEVEL("enumerator expected: "); - case UTL_Error::EIDL_ENUM_VAL_NOT_FOUND: - return GTDEVEL("enumerator by this name not defined: "); - case UTL_Error::EIDL_AMBIGUOUS: - return GTDEVEL("ambiguous definition: "); - case UTL_Error::EIDL_DECL_NOT_DEFINED: - return GTDEVEL("forward declared but never defined: "); - case UTL_Error::EIDL_FWD_DECL_LOOKUP: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_RECURSIVE_TYPE: - return GTDEVEL("illegal recursive use of type: "); - case UTL_Error::EIDL_NONVOID_ONEWAY: - return GTDEVEL("non-void return type in oneway operation: "); - case UTL_Error::EIDL_REDEF_SCOPE: - return GTDEVEL("redefinition inside defining scope: "); - case UTL_Error::EIDL_NOT_A_TYPE: - return GTDEVEL("specified symbol is not a type: "); - case UTL_Error::EIDL_BACK_END: - return GTDEVEL("back end: "); - } - return NULL; -} - -// Print out an error message header on cerr -static void -idl_error_header(UTL_Error::ErrorCode c, long lineno, String *s) -{ - cerr << idl_global->prog_name() - << ": \"" - << (idl_global->read_from_stdin() ? "standard input" : s->get_string()) - << GTDEVEL("\", line ") - << ((lineno == -1) ? idl_global->lineno() : lineno) - << ": " - << error_string(c); -} - -// Convert the type of an AST_Expression to a char * -static char * -exprtype_to_string(AST_Expression::ExprType t) -{ - switch (t) { - case AST_Expression::EV_short: - return "short"; - case AST_Expression::EV_ushort: - return "unsigned short"; - case AST_Expression::EV_long: - return "long"; - case AST_Expression::EV_ulong: - return "unsigned long"; - case AST_Expression::EV_float: - return "float"; - case AST_Expression::EV_double: - return "double"; - case AST_Expression::EV_char: - return "char"; - case AST_Expression::EV_octet: - return "octet"; - case AST_Expression::EV_bool: - return "boolean"; - case AST_Expression::EV_string: - return "string"; - case AST_Expression::EV_any: - return "any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -/* - * Convert a parse state into a possible error message - */ -static char * -parse_state_to_error_message(IDL_GlobalData::ParseState ps) -{ - switch (ps) { - case IDL_GlobalData::PS_NoState: - return GTDEVEL("Statement can not be parsed"); - case IDL_GlobalData::PS_TypeDeclSeen: - return GTDEVEL("Malformed typedef declaration"); - case IDL_GlobalData::PS_ConstDeclSeen: - return GTDEVEL("Malformed const declaration"); - case IDL_GlobalData::PS_ExceptDeclSeen: - return - GTDEVEL("Malformed exception declaration"); - case IDL_GlobalData::PS_InterfaceDeclSeen: - return - GTDEVEL("Malformed interface declaration"); - case IDL_GlobalData::PS_ModuleDeclSeen: - return GTDEVEL("Malformed module declaration"); - case IDL_GlobalData::PS_AttrDeclSeen: - return - GTDEVEL("Malformed attribute declaration"); - case IDL_GlobalData::PS_OpDeclSeen: - return - GTDEVEL("Malformed operation declaration"); - case IDL_GlobalData::PS_ModuleSeen: - return GTDEVEL("Missing module identifier following MODULE keyword"); - case IDL_GlobalData::PS_ModuleIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following module identifier"); - case IDL_GlobalData::PS_ModuleSqSeen: - return GTDEVEL("Illegal syntax following module '{' opener"); - case IDL_GlobalData::PS_ModuleQsSeen: - return GTDEVEL("Illegal syntax following module '}' closer"); - case IDL_GlobalData::PS_ModuleBodySeen: - return GTDEVEL("Illegal syntax following module body statement(s)"); - case IDL_GlobalData::PS_InterfaceSeen: - return GTDEVEL("Missing interface identifier following INTERFACE keyword"); - case IDL_GlobalData::PS_InterfaceIDSeen: - return GTDEVEL("Illegal syntax following interface identifier"); - case IDL_GlobalData::PS_InheritSpecSeen: - return GTDEVEL("Missing '{' or illegal syntax following inheritance spec"); - case IDL_GlobalData::PS_ForwardDeclSeen: - return GTDEVEL("Missing ';' following forward interface declaration"); - case IDL_GlobalData::PS_InterfaceSqSeen: - return GTDEVEL("Illegal syntax following interface '{' opener"); - case IDL_GlobalData::PS_InterfaceQsSeen: - return GTDEVEL("Illegal syntax following interface '}' closer"); - case IDL_GlobalData::PS_InterfaceBodySeen: - return GTDEVEL("Illegal syntax following interface body statement(s)"); - case IDL_GlobalData::PS_InheritColonSeen: - return GTDEVEL("Illegal syntax following ':' starting inheritance list"); - case IDL_GlobalData::PS_SNListCommaSeen: - return GTDEVEL("Found illegal scoped name in scoped name list"); - case IDL_GlobalData::PS_ScopedNameSeen: - return GTDEVEL("Missing ',' following scoped name in scoped name list"); - case IDL_GlobalData::PS_SN_IDSeen: - return GTDEVEL("Illegal component in scoped name"); - case IDL_GlobalData::PS_ScopeDelimSeen: - return GTDEVEL("Illegal component in scoped name following '::'"); - case IDL_GlobalData::PS_ConstSeen: - return GTDEVEL("Missing type or illegal syntax following CONST keyword"); - case IDL_GlobalData::PS_ConstTypeSeen: - return GTDEVEL("Missing identifier or illegal syntax following const type"); - case IDL_GlobalData::PS_ConstIDSeen: - return GTDEVEL("Missing '=' or illegal syntax after const identifier"); - case IDL_GlobalData::PS_ConstAssignSeen: - return GTDEVEL("Missing value expr or illegal syntax following '='"); - case IDL_GlobalData::PS_ConstExprSeen: - return GTDEVEL("Missing ';' or illegal syntax following value expr in const"); - case IDL_GlobalData::PS_TypedefSeen: - return GTDEVEL("Missing type or illegal syntax following TYPEDEF keyword"); - case IDL_GlobalData::PS_TypeSpecSeen: - return GTDEVEL("Missing declarators or illegal syntax following type spec"); - case IDL_GlobalData::PS_DeclaratorsSeen: - return GTDEVEL("Illegal syntax following declarators in TYPEDEF declaration"); - case IDL_GlobalData::PS_StructSeen: - return GTDEVEL("Missing struct identifier following STRUCT keyword"); - case IDL_GlobalData::PS_StructIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following struct identifier"); - case IDL_GlobalData::PS_StructSqSeen: - return GTDEVEL("Illegal syntax following struct '{' opener"); - case IDL_GlobalData::PS_StructQsSeen: - return GTDEVEL("Illegal syntax following struct '}' closer"); - case IDL_GlobalData::PS_StructBodySeen: - return GTDEVEL("Illegal syntax following struct body statement(s)"); - case IDL_GlobalData::PS_MemberTypeSeen: - return GTDEVEL("Illegal syntax of missing identifier following member type"); - case IDL_GlobalData::PS_MemberDeclsSeen: - return GTDEVEL("Illegal syntax following member declarator(s)"); - case IDL_GlobalData::PS_MemberDeclsCompleted: - return GTDEVEL("Missing ',' between member decls of same type(?)"); - case IDL_GlobalData::PS_UnionSeen: - return GTDEVEL("Missing identifier following UNION keyword"); - case IDL_GlobalData::PS_UnionIDSeen: - return GTDEVEL("Illegal syntax following union identifier"); - case IDL_GlobalData::PS_SwitchSeen: - return GTDEVEL("Illegal syntax following SWITCH keyword"); - case IDL_GlobalData::PS_SwitchOpenParSeen: - return GTDEVEL("Illegal syntax following '(' in switch in union"); - case IDL_GlobalData::PS_SwitchTypeSeen: - return GTDEVEL("Illegal syntax following type decl in switch in union"); - case IDL_GlobalData::PS_SwitchCloseParSeen: - return GTDEVEL("Missing union '{' opener"); - case IDL_GlobalData::PS_UnionSqSeen: - return GTDEVEL("Illegal syntax following union '{' opener"); - case IDL_GlobalData::PS_UnionQsSeen: - return GTDEVEL("Illegal syntax following union '}' closer"); - case IDL_GlobalData::PS_DefaultSeen: - return GTDEVEL("Illegal syntax or missing ':' following DEFAULT keyword"); - case IDL_GlobalData::PS_UnionLabelSeen: - return GTDEVEL("Illegal syntax following branch label in union"); - case IDL_GlobalData::PS_LabelColonSeen: - return GTDEVEL("Illegal syntax following ':' in branch label in union"); - case IDL_GlobalData::PS_LabelExprSeen: - return GTDEVEL("Illegal syntax following label expression in union"); - case IDL_GlobalData::PS_UnionElemSeen: - case IDL_GlobalData::PS_UnionElemCompleted: - return GTDEVEL("Illegal syntax following union element"); - case IDL_GlobalData::PS_CaseSeen: - return GTDEVEL("Illegal syntax following CASE keyword in union"); - case IDL_GlobalData::PS_UnionElemTypeSeen: - return GTDEVEL("Illegal syntax following type decl in union element"); - case IDL_GlobalData::PS_UnionElemDeclSeen: - return GTDEVEL("Illegal syntax following declarator in union element"); - case IDL_GlobalData::PS_UnionBodySeen: - return GTDEVEL("Illegal syntax following union body statement(s)"); - case IDL_GlobalData::PS_EnumSeen: - return GTDEVEL("Illegal syntax or missing identifier following ENUM keyword"); - case IDL_GlobalData::PS_EnumIDSeen: - return GTDEVEL("Illegal syntax or missing '{' following enum identifier"); - case IDL_GlobalData::PS_EnumSqSeen: - return GTDEVEL("Illegal syntax following enum '{' opener"); - case IDL_GlobalData::PS_EnumQsSeen: - return GTDEVEL("Illegal syntax following enum '}' closer"); - case IDL_GlobalData::PS_EnumBodySeen: - return GTDEVEL("Illegal syntax following enum body statement(s)"); - case IDL_GlobalData::PS_EnumCommaSeen: - return GTDEVEL("Illegal syntax or missing identifier following ',' in enum"); - case IDL_GlobalData::PS_SequenceSeen: - return GTDEVEL("Illegal syntax or missing '<' following SEQUENCE keyword"); - case IDL_GlobalData::PS_SequenceSqSeen: - return GTDEVEL("Illegal syntax or missing type following '<' in sequence"); - case IDL_GlobalData::PS_SequenceQsSeen: - return GTDEVEL("Illegal syntax following '>' in sequence"); - case IDL_GlobalData::PS_SequenceTypeSeen: - return GTDEVEL("Illegal syntax following sequence type declaration"); - case IDL_GlobalData::PS_SequenceCommaSeen: - return - GTDEVEL("Illegal syntax of missing size expr following ',' in sequence"); - case IDL_GlobalData::PS_SequenceExprSeen: - return - GTDEVEL("Illegal syntax or missing '>' following size expr in sequence"); - case IDL_GlobalData::PS_StringSeen: - return GTDEVEL("Illegal syntax or missing '<' following STRING keyword"); - case IDL_GlobalData::PS_StringSqSeen: - return GTDEVEL("Illegal syntax or missing size expr following '<' in string"); - case IDL_GlobalData::PS_StringQsSeen: - return GTDEVEL("Illegal syntax following '>' in string"); - case IDL_GlobalData::PS_StringExprSeen: - return GTDEVEL("Illegal syntax or missing '>' after size expr in string"); - case IDL_GlobalData::PS_StringCompleted: - return GTDEVEL("Illegal syntax after string declaration"); - case IDL_GlobalData::PS_ArrayIDSeen: - return GTDEVEL("Illegal syntax or missing dimensions after array identifier"); - case IDL_GlobalData::PS_ArrayCompleted: - return GTDEVEL("Illegal syntax after array declaration"); - case IDL_GlobalData::PS_DimSqSeen: - return - GTDEVEL("Illegal syntax or missing size expr after '[' in array declaration"); - case IDL_GlobalData::PS_DimQsSeen: - return GTDEVEL("Illegal syntax after ']' in array declaration"); - case IDL_GlobalData::PS_DimExprSeen: - return - GTDEVEL("Illegal syntax or missing ']' after size expr in array declaration"); - case IDL_GlobalData::PS_AttrROSeen: - return GTDEVEL("Illegal syntax after READONLY keyword"); - case IDL_GlobalData::PS_AttrSeen: - return GTDEVEL("Illegal syntax after ATTRIBUTE keyword"); - case IDL_GlobalData::PS_AttrTypeSeen: - return GTDEVEL("Illegal syntax after type in attribute declaration"); - case IDL_GlobalData::PS_AttrDeclsSeen: - return GTDEVEL("Illegal syntax after attribute declarators"); - case IDL_GlobalData::PS_AttrCompleted: - return GTDEVEL("Illegal syntax after attribute declaration"); - case IDL_GlobalData::PS_ExceptSeen: - return - GTDEVEL("Illegal syntax or missing identifier after EXCEPTION keyword"); - case IDL_GlobalData::PS_ExceptIDSeen: - return GTDEVEL("Illegal syntax or missing '{' after exception identifier"); - case IDL_GlobalData::PS_ExceptSqSeen: - return GTDEVEL("Illegal syntax after exception '{' opener"); - case IDL_GlobalData::PS_ExceptQsSeen: - return GTDEVEL("Illegal syntax after exception '}' closer"); - case IDL_GlobalData::PS_ExceptBodySeen: - return GTDEVEL("Illegal syntax after exception body statement(s)"); - case IDL_GlobalData::PS_OpAttrSeen: - return GTDEVEL("Illegal syntax or missing type after operation attribute"); - case IDL_GlobalData::PS_OpTypeSeen: - return GTDEVEL("Illegal syntax or missing identifier after operation type"); - case IDL_GlobalData::PS_OpIDSeen: - return GTDEVEL("Illegal syntax or missing '(' after operation identifier"); - case IDL_GlobalData::PS_OpParsCompleted: - return GTDEVEL("Illegal syntax after operation parameter list"); - case IDL_GlobalData::PS_OpRaiseCompleted: - return - GTDEVEL("Illegal syntax after optional RAISES in operation declaration"); - case IDL_GlobalData::PS_OpContextCompleted: - return - GTDEVEL("Illegal syntax after optional CONTEXT in operation declaration"); - case IDL_GlobalData::PS_OpCompleted: - return GTDEVEL("Illegal syntax after operation declaration"); - case IDL_GlobalData::PS_OpSqSeen: - return GTDEVEL("Illegal syntax after operation parameter list '(' opener"); - case IDL_GlobalData::PS_OpQsSeen: - return GTDEVEL("Illegal syntax after operation parameter list ')' closer"); - case IDL_GlobalData::PS_OpParCommaSeen: - return - GTDEVEL("Illegal syntax or missing direction in parameter declaration"); - case IDL_GlobalData::PS_OpParDirSeen: - return GTDEVEL("Illegal syntax or missing type in parameter declaration"); - case IDL_GlobalData::PS_OpParTypeSeen: - return - GTDEVEL("Illegal syntax or missing declarator in parameter declaration"); - case IDL_GlobalData::PS_OpParDeclSeen: - return GTDEVEL("Illegal syntax following parameter declarator"); - case IDL_GlobalData::PS_OpRaiseSeen: - return GTDEVEL("Illegal syntax or missing '(' after RAISES keyword"); - case IDL_GlobalData::PS_OpRaiseSqSeen: - return GTDEVEL("Illegal syntax after RAISES '(' opener"); - case IDL_GlobalData::PS_OpRaiseQsSeen: - return GTDEVEL("Illegal syntax after RAISES ')' closer"); - case IDL_GlobalData::PS_OpContextSeen: - return GTDEVEL("Illegal syntax or missing '(' after CONTEXT keyword"); - case IDL_GlobalData::PS_OpContextSqSeen: - return GTDEVEL("Illegal syntax after CONTEXT '(' opener"); - case IDL_GlobalData::PS_OpContextQsSeen: - return GTDEVEL("Illegal syntax after CONTEXT ')' closer"); - case IDL_GlobalData::PS_OpContextCommaSeen: - return - GTDEVEL("Illegal syntax after ',' in CONTEXT in operation declaration"); - case IDL_GlobalData::PS_DeclsCommaSeen: - return GTDEVEL("Illegal syntax after ',' in declarators list"); - case IDL_GlobalData::PS_DeclsDeclSeen: - return GTDEVEL("Illegal syntax after declarator in declarators list"); - - case IDL_GlobalData::PS_PragmaPrefixSyntax: - return GTDEVEL ("Illegal syntax for #pragma prefix"); - default: - return GTDEVEL("Some syntax error"); - } -} -/* - * Public methods - */ - -// Report error messages with various numbers of arguments - -void -UTL_Error::syntax_error(IDL_GlobalData::ParseState ps) -{ - idl_error_header(EIDL_SYNTAX_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << parse_state_to_error_message(ps) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error0(UTL_Error::ErrorCode c) -{ - idl_error_header(c, idl_global->lineno(), idl_global->filename()); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error1(UTL_Error::ErrorCode c, AST_Decl *d) -{ - idl_error_header(c, d->line(), d->file_name()); - d->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error2(UTL_Error::ErrorCode c, AST_Decl *d1, AST_Decl *d2) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error3(UTL_Error::ErrorCode c, - AST_Decl *d1, - AST_Decl *d2, - AST_Decl *d3) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << ", "; - d3->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed coercion attempt -void -UTL_Error::coercion_error(AST_Expression *v, AST_Expression::ExprType t) -{ - idl_error_header(EIDL_COERCION_FAILURE, v->line(), v->file_name()); - v->dump(cerr); - cerr << GTDEVEL(" to ") << exprtype_to_string(t) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed name lookup attempt -void -UTL_Error::lookup_error(UTL_ScopedName *n) -{ - idl_error_header(EIDL_LOOKUP_ERROR, - idl_global->lineno(), - idl_global->filename()); - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from an interface which was only -// declared forward but not yet defined -void -UTL_Error::inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f) -{ - idl_error_header(EIDL_INHERIT_FWD_ERROR, f->line(), f->file_name()); - cerr << "interface "; - n->dump(cerr); - cerr << GTDEVEL(" cannot inherit from forward declared interface "); - f->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from something other than an interface -void -UTL_Error::inheritance_error(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CANT_INHERIT, d->line(), d->file_name()); - cerr << " interface "; - n->dump(cerr); - cerr << GTDEVEL(" attempts to inherit from "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an error while evaluating an expression -void -UTL_Error::eval_error(AST_Expression *v) -{ - idl_error_header(EIDL_EVAL_ERROR, v->line(), v->file_name()); - v->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where a constant was expected but we -// got something else. This may occur in a union when a label -// evaluates to a non-constant -void -UTL_Error::constant_expected(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CONSTANT_EXPECTED, d->line(), d->file_name()); - n->dump(cerr); - cerr << GTDEVEL(" bound to "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was expected but we -// got something else. This may occur in a union with an enum -// discriminator where a label did not evaluate to a constant -// enumerator -void -UTL_Error::enum_val_expected(AST_Union *u, AST_UnionLabel *l) -{ - idl_error_header(EIDL_ENUM_VAL_EXPECTED, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - l->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was received but we -// could not find it (by name) in an enum. This occurs when -// a union with an enum discriminator is being parsed, and a -// label evaluates to an enumerator which is not a member of -// the enum discriminator type -void -UTL_Error::enum_val_lookup_failure(AST_Union *u, - AST_Enum *e, - UTL_ScopedName *n) -{ - idl_error_header(EIDL_ENUM_VAL_NOT_FOUND, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - cerr << " enum " << e->local_name()->get_string() << ", "; - cerr << " enumerator "; - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report two or more spellings for an identifier -void -UTL_Error::name_case_error(char *b, char *n) -{ - idl_error_header(EIDL_NAME_CASE_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << "\"" << b << GTDEVEL("\" and ") << "\"" << n << "\"\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an ambiguous definition of a name -void -UTL_Error::ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d) -{ - idl_error_header(EIDL_AMBIGUOUS, d->line(), d->file_name()); - cerr << GTDEVEL(" scope: ") - << (ScopeAsDecl(s))->local_name()->get_string() - << ", "; - cerr << GTDEVEL(" collision: "); - d->name()->dump(cerr); - cerr << " vs. "; - l->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a forward declared interface which was never defined -void -UTL_Error::fwd_decl_not_defined(AST_Interface *d) -{ - idl_error_header(EIDL_DECL_NOT_DEFINED, d->line(), d->file_name()); - cerr << "interface "; - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report lookup in undefined forward declared but undefined interface -void -UTL_Error::fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n) -{ - idl_error_header(EIDL_FWD_DECL_LOOKUP, - idl_global->lineno(), - idl_global->filename()); - cerr << GTDEVEL("trying to look up "); - n->dump(cerr); - cerr << GTDEVEL(" in undefined forward declared interface "); - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a redefinition inside its own scope -void -UTL_Error::redefinition_in_scope(AST_Decl *d, AST_Decl *s) -{ - idl_error_header(EIDL_REDEF_SCOPE, d->line(), d->file_name()); - d->name()->dump(cerr); - cerr << ", "; - s->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report not a type error -void -UTL_Error::not_a_type(AST_Decl *d) -{ - idl_error_header(EIDL_NOT_A_TYPE, - idl_global->lineno(), - idl_global->filename()); - if (d == NULL || d->name() == NULL) - cerr << GTDEVEL("unknown symbol"); - else - d->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::back_end(long lineno, String *s) -{ - idl_error_header(EIDL_BACK_END, lineno, s); - idl_global->set_err_count(idl_global->err_count() + 1); -} diff --git a/TAO/TAO_IDL/util/utl_error.cpp b/TAO/TAO_IDL/util/utl_error.cpp deleted file mode 100644 index 33f1eace574..00000000000 --- a/TAO/TAO_IDL/util/utl_error.cpp +++ /dev/null @@ -1,706 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_error.cc - Implementation of error reporting object for IDL -// compiler program - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_error, "$Id$") - -/* - * Helper functions to do: - * - * - Convert an error code to an error string - * - Print out an error message header - * - Convert an ExprType to a string - */ - -// Convert an error code into a char * -static char * -error_string(UTL_Error::ErrorCode c) -{ - switch (c) { - case UTL_Error::EIDL_OK: - return GTDEVEL("all is fine "); - case UTL_Error::EIDL_SYNTAX_ERROR: - return ""; - case UTL_Error::EIDL_REDEF: - return GTDEVEL("illegal redefinition "); - case UTL_Error::EIDL_DEF_USE: - return GTDEVEL("redefinition after use, "); - case UTL_Error::EIDL_MULTIPLE_BRANCH: - return GTDEVEL("union with duplicate branch label "); - case UTL_Error::EIDL_COERCION_FAILURE: - return GTDEVEL("coercion failure "); - case UTL_Error::EIDL_SCOPE_CONFLICT: - return GTDEVEL("definition scope is different than fwd declare scope, "); - case UTL_Error::EIDL_ONEWAY_CONFLICT: - return GTDEVEL("oneway operation with OUT or INOUT parameters, "); - case UTL_Error::EIDL_DISC_TYPE: - return GTDEVEL("union with illegal discriminator type, "); - case UTL_Error::EIDL_LABEL_TYPE: - return GTDEVEL("label type incompatible with union discriminator type, "); - case UTL_Error::EIDL_ILLEGAL_ADD: - return GTDEVEL("illegal add operation, "); - case UTL_Error::EIDL_ILLEGAL_USE: - return GTDEVEL("illegal type used in expression, "); - case UTL_Error::EIDL_ILLEGAL_RAISES: - return GTDEVEL("error in raises(..) clause, "); - case UTL_Error::EIDL_ILLEGAL_CONTEXT: - return GTDEVEL("error in context(..) clause, "); - case UTL_Error::EIDL_CANT_INHERIT: - return GTDEVEL("cannot inherit from "); - case UTL_Error::EIDL_LOOKUP_ERROR: - return GTDEVEL("error in lookup of symbol: "); - case UTL_Error::EIDL_INHERIT_FWD_ERROR: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_CONSTANT_EXPECTED: - return GTDEVEL("constant expected: "); - case UTL_Error::EIDL_EVAL_ERROR: - return GTDEVEL("expression evaluation error: "); - case UTL_Error::EIDL_NAME_CASE_ERROR: - return GTDEVEL("identifier used with two differing spellings: "); - case UTL_Error::EIDL_ENUM_VAL_EXPECTED: - return GTDEVEL("enumerator expected: "); - case UTL_Error::EIDL_ENUM_VAL_NOT_FOUND: - return GTDEVEL("enumerator by this name not defined: "); - case UTL_Error::EIDL_AMBIGUOUS: - return GTDEVEL("ambiguous definition: "); - case UTL_Error::EIDL_DECL_NOT_DEFINED: - return GTDEVEL("forward declared but never defined: "); - case UTL_Error::EIDL_FWD_DECL_LOOKUP: - /* More intelligible message printed by error routine */ - return ""; - case UTL_Error::EIDL_RECURSIVE_TYPE: - return GTDEVEL("illegal recursive use of type: "); - case UTL_Error::EIDL_NONVOID_ONEWAY: - return GTDEVEL("non-void return type in oneway operation: "); - case UTL_Error::EIDL_REDEF_SCOPE: - return GTDEVEL("redefinition inside defining scope: "); - case UTL_Error::EIDL_NOT_A_TYPE: - return GTDEVEL("specified symbol is not a type: "); - case UTL_Error::EIDL_BACK_END: - return GTDEVEL("back end: "); - } - return NULL; -} - -// Print out an error message header on cerr -static void -idl_error_header(UTL_Error::ErrorCode c, long lineno, String *s) -{ - cerr << idl_global->prog_name() - << ": \"" - << (idl_global->read_from_stdin() ? "standard input" : s->get_string()) - << GTDEVEL("\", line ") - << ((lineno == -1) ? idl_global->lineno() : lineno) - << ": " - << error_string(c); -} - -// Convert the type of an AST_Expression to a char * -static char * -exprtype_to_string(AST_Expression::ExprType t) -{ - switch (t) { - case AST_Expression::EV_short: - return "short"; - case AST_Expression::EV_ushort: - return "unsigned short"; - case AST_Expression::EV_long: - return "long"; - case AST_Expression::EV_ulong: - return "unsigned long"; - case AST_Expression::EV_float: - return "float"; - case AST_Expression::EV_double: - return "double"; - case AST_Expression::EV_char: - return "char"; - case AST_Expression::EV_octet: - return "octet"; - case AST_Expression::EV_bool: - return "boolean"; - case AST_Expression::EV_string: - return "string"; - case AST_Expression::EV_any: - return "any"; - case AST_Expression::EV_void: - return "void"; - case AST_Expression::EV_none: - return "none"; - case AST_Expression::EV_longlong: - case AST_Expression::EV_ulonglong: - case AST_Expression::EV_longdouble: - case AST_Expression::EV_wchar: - case AST_Expression::EV_wstring: - return NULL; - } - return NULL; -} - -/* - * Convert a parse state into a possible error message - */ -static char * -parse_state_to_error_message(IDL_GlobalData::ParseState ps) -{ - switch (ps) { - case IDL_GlobalData::PS_NoState: - return GTDEVEL("Statement can not be parsed"); - case IDL_GlobalData::PS_TypeDeclSeen: - return GTDEVEL("Malformed typedef declaration"); - case IDL_GlobalData::PS_ConstDeclSeen: - return GTDEVEL("Malformed const declaration"); - case IDL_GlobalData::PS_ExceptDeclSeen: - return - GTDEVEL("Malformed exception declaration"); - case IDL_GlobalData::PS_InterfaceDeclSeen: - return - GTDEVEL("Malformed interface declaration"); - case IDL_GlobalData::PS_ModuleDeclSeen: - return GTDEVEL("Malformed module declaration"); - case IDL_GlobalData::PS_AttrDeclSeen: - return - GTDEVEL("Malformed attribute declaration"); - case IDL_GlobalData::PS_OpDeclSeen: - return - GTDEVEL("Malformed operation declaration"); - case IDL_GlobalData::PS_ModuleSeen: - return GTDEVEL("Missing module identifier following MODULE keyword"); - case IDL_GlobalData::PS_ModuleIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following module identifier"); - case IDL_GlobalData::PS_ModuleSqSeen: - return GTDEVEL("Illegal syntax following module '{' opener"); - case IDL_GlobalData::PS_ModuleQsSeen: - return GTDEVEL("Illegal syntax following module '}' closer"); - case IDL_GlobalData::PS_ModuleBodySeen: - return GTDEVEL("Illegal syntax following module body statement(s)"); - case IDL_GlobalData::PS_InterfaceSeen: - return GTDEVEL("Missing interface identifier following INTERFACE keyword"); - case IDL_GlobalData::PS_InterfaceIDSeen: - return GTDEVEL("Illegal syntax following interface identifier"); - case IDL_GlobalData::PS_InheritSpecSeen: - return GTDEVEL("Missing '{' or illegal syntax following inheritance spec"); - case IDL_GlobalData::PS_ForwardDeclSeen: - return GTDEVEL("Missing ';' following forward interface declaration"); - case IDL_GlobalData::PS_InterfaceSqSeen: - return GTDEVEL("Illegal syntax following interface '{' opener"); - case IDL_GlobalData::PS_InterfaceQsSeen: - return GTDEVEL("Illegal syntax following interface '}' closer"); - case IDL_GlobalData::PS_InterfaceBodySeen: - return GTDEVEL("Illegal syntax following interface body statement(s)"); - case IDL_GlobalData::PS_InheritColonSeen: - return GTDEVEL("Illegal syntax following ':' starting inheritance list"); - case IDL_GlobalData::PS_SNListCommaSeen: - return GTDEVEL("Found illegal scoped name in scoped name list"); - case IDL_GlobalData::PS_ScopedNameSeen: - return GTDEVEL("Missing ',' following scoped name in scoped name list"); - case IDL_GlobalData::PS_SN_IDSeen: - return GTDEVEL("Illegal component in scoped name"); - case IDL_GlobalData::PS_ScopeDelimSeen: - return GTDEVEL("Illegal component in scoped name following '::'"); - case IDL_GlobalData::PS_ConstSeen: - return GTDEVEL("Missing type or illegal syntax following CONST keyword"); - case IDL_GlobalData::PS_ConstTypeSeen: - return GTDEVEL("Missing identifier or illegal syntax following const type"); - case IDL_GlobalData::PS_ConstIDSeen: - return GTDEVEL("Missing '=' or illegal syntax after const identifier"); - case IDL_GlobalData::PS_ConstAssignSeen: - return GTDEVEL("Missing value expr or illegal syntax following '='"); - case IDL_GlobalData::PS_ConstExprSeen: - return GTDEVEL("Missing ';' or illegal syntax following value expr in const"); - case IDL_GlobalData::PS_TypedefSeen: - return GTDEVEL("Missing type or illegal syntax following TYPEDEF keyword"); - case IDL_GlobalData::PS_TypeSpecSeen: - return GTDEVEL("Missing declarators or illegal syntax following type spec"); - case IDL_GlobalData::PS_DeclaratorsSeen: - return GTDEVEL("Illegal syntax following declarators in TYPEDEF declaration"); - case IDL_GlobalData::PS_StructSeen: - return GTDEVEL("Missing struct identifier following STRUCT keyword"); - case IDL_GlobalData::PS_StructIDSeen: - return GTDEVEL("Missing '{' or illegal syntax following struct identifier"); - case IDL_GlobalData::PS_StructSqSeen: - return GTDEVEL("Illegal syntax following struct '{' opener"); - case IDL_GlobalData::PS_StructQsSeen: - return GTDEVEL("Illegal syntax following struct '}' closer"); - case IDL_GlobalData::PS_StructBodySeen: - return GTDEVEL("Illegal syntax following struct body statement(s)"); - case IDL_GlobalData::PS_MemberTypeSeen: - return GTDEVEL("Illegal syntax of missing identifier following member type"); - case IDL_GlobalData::PS_MemberDeclsSeen: - return GTDEVEL("Illegal syntax following member declarator(s)"); - case IDL_GlobalData::PS_MemberDeclsCompleted: - return GTDEVEL("Missing ',' between member decls of same type(?)"); - case IDL_GlobalData::PS_UnionSeen: - return GTDEVEL("Missing identifier following UNION keyword"); - case IDL_GlobalData::PS_UnionIDSeen: - return GTDEVEL("Illegal syntax following union identifier"); - case IDL_GlobalData::PS_SwitchSeen: - return GTDEVEL("Illegal syntax following SWITCH keyword"); - case IDL_GlobalData::PS_SwitchOpenParSeen: - return GTDEVEL("Illegal syntax following '(' in switch in union"); - case IDL_GlobalData::PS_SwitchTypeSeen: - return GTDEVEL("Illegal syntax following type decl in switch in union"); - case IDL_GlobalData::PS_SwitchCloseParSeen: - return GTDEVEL("Missing union '{' opener"); - case IDL_GlobalData::PS_UnionSqSeen: - return GTDEVEL("Illegal syntax following union '{' opener"); - case IDL_GlobalData::PS_UnionQsSeen: - return GTDEVEL("Illegal syntax following union '}' closer"); - case IDL_GlobalData::PS_DefaultSeen: - return GTDEVEL("Illegal syntax or missing ':' following DEFAULT keyword"); - case IDL_GlobalData::PS_UnionLabelSeen: - return GTDEVEL("Illegal syntax following branch label in union"); - case IDL_GlobalData::PS_LabelColonSeen: - return GTDEVEL("Illegal syntax following ':' in branch label in union"); - case IDL_GlobalData::PS_LabelExprSeen: - return GTDEVEL("Illegal syntax following label expression in union"); - case IDL_GlobalData::PS_UnionElemSeen: - case IDL_GlobalData::PS_UnionElemCompleted: - return GTDEVEL("Illegal syntax following union element"); - case IDL_GlobalData::PS_CaseSeen: - return GTDEVEL("Illegal syntax following CASE keyword in union"); - case IDL_GlobalData::PS_UnionElemTypeSeen: - return GTDEVEL("Illegal syntax following type decl in union element"); - case IDL_GlobalData::PS_UnionElemDeclSeen: - return GTDEVEL("Illegal syntax following declarator in union element"); - case IDL_GlobalData::PS_UnionBodySeen: - return GTDEVEL("Illegal syntax following union body statement(s)"); - case IDL_GlobalData::PS_EnumSeen: - return GTDEVEL("Illegal syntax or missing identifier following ENUM keyword"); - case IDL_GlobalData::PS_EnumIDSeen: - return GTDEVEL("Illegal syntax or missing '{' following enum identifier"); - case IDL_GlobalData::PS_EnumSqSeen: - return GTDEVEL("Illegal syntax following enum '{' opener"); - case IDL_GlobalData::PS_EnumQsSeen: - return GTDEVEL("Illegal syntax following enum '}' closer"); - case IDL_GlobalData::PS_EnumBodySeen: - return GTDEVEL("Illegal syntax following enum body statement(s)"); - case IDL_GlobalData::PS_EnumCommaSeen: - return GTDEVEL("Illegal syntax or missing identifier following ',' in enum"); - case IDL_GlobalData::PS_SequenceSeen: - return GTDEVEL("Illegal syntax or missing '<' following SEQUENCE keyword"); - case IDL_GlobalData::PS_SequenceSqSeen: - return GTDEVEL("Illegal syntax or missing type following '<' in sequence"); - case IDL_GlobalData::PS_SequenceQsSeen: - return GTDEVEL("Illegal syntax following '>' in sequence"); - case IDL_GlobalData::PS_SequenceTypeSeen: - return GTDEVEL("Illegal syntax following sequence type declaration"); - case IDL_GlobalData::PS_SequenceCommaSeen: - return - GTDEVEL("Illegal syntax of missing size expr following ',' in sequence"); - case IDL_GlobalData::PS_SequenceExprSeen: - return - GTDEVEL("Illegal syntax or missing '>' following size expr in sequence"); - case IDL_GlobalData::PS_StringSeen: - return GTDEVEL("Illegal syntax or missing '<' following STRING keyword"); - case IDL_GlobalData::PS_StringSqSeen: - return GTDEVEL("Illegal syntax or missing size expr following '<' in string"); - case IDL_GlobalData::PS_StringQsSeen: - return GTDEVEL("Illegal syntax following '>' in string"); - case IDL_GlobalData::PS_StringExprSeen: - return GTDEVEL("Illegal syntax or missing '>' after size expr in string"); - case IDL_GlobalData::PS_StringCompleted: - return GTDEVEL("Illegal syntax after string declaration"); - case IDL_GlobalData::PS_ArrayIDSeen: - return GTDEVEL("Illegal syntax or missing dimensions after array identifier"); - case IDL_GlobalData::PS_ArrayCompleted: - return GTDEVEL("Illegal syntax after array declaration"); - case IDL_GlobalData::PS_DimSqSeen: - return - GTDEVEL("Illegal syntax or missing size expr after '[' in array declaration"); - case IDL_GlobalData::PS_DimQsSeen: - return GTDEVEL("Illegal syntax after ']' in array declaration"); - case IDL_GlobalData::PS_DimExprSeen: - return - GTDEVEL("Illegal syntax or missing ']' after size expr in array declaration"); - case IDL_GlobalData::PS_AttrROSeen: - return GTDEVEL("Illegal syntax after READONLY keyword"); - case IDL_GlobalData::PS_AttrSeen: - return GTDEVEL("Illegal syntax after ATTRIBUTE keyword"); - case IDL_GlobalData::PS_AttrTypeSeen: - return GTDEVEL("Illegal syntax after type in attribute declaration"); - case IDL_GlobalData::PS_AttrDeclsSeen: - return GTDEVEL("Illegal syntax after attribute declarators"); - case IDL_GlobalData::PS_AttrCompleted: - return GTDEVEL("Illegal syntax after attribute declaration"); - case IDL_GlobalData::PS_ExceptSeen: - return - GTDEVEL("Illegal syntax or missing identifier after EXCEPTION keyword"); - case IDL_GlobalData::PS_ExceptIDSeen: - return GTDEVEL("Illegal syntax or missing '{' after exception identifier"); - case IDL_GlobalData::PS_ExceptSqSeen: - return GTDEVEL("Illegal syntax after exception '{' opener"); - case IDL_GlobalData::PS_ExceptQsSeen: - return GTDEVEL("Illegal syntax after exception '}' closer"); - case IDL_GlobalData::PS_ExceptBodySeen: - return GTDEVEL("Illegal syntax after exception body statement(s)"); - case IDL_GlobalData::PS_OpAttrSeen: - return GTDEVEL("Illegal syntax or missing type after operation attribute"); - case IDL_GlobalData::PS_OpTypeSeen: - return GTDEVEL("Illegal syntax or missing identifier after operation type"); - case IDL_GlobalData::PS_OpIDSeen: - return GTDEVEL("Illegal syntax or missing '(' after operation identifier"); - case IDL_GlobalData::PS_OpParsCompleted: - return GTDEVEL("Illegal syntax after operation parameter list"); - case IDL_GlobalData::PS_OpRaiseCompleted: - return - GTDEVEL("Illegal syntax after optional RAISES in operation declaration"); - case IDL_GlobalData::PS_OpContextCompleted: - return - GTDEVEL("Illegal syntax after optional CONTEXT in operation declaration"); - case IDL_GlobalData::PS_OpCompleted: - return GTDEVEL("Illegal syntax after operation declaration"); - case IDL_GlobalData::PS_OpSqSeen: - return GTDEVEL("Illegal syntax after operation parameter list '(' opener"); - case IDL_GlobalData::PS_OpQsSeen: - return GTDEVEL("Illegal syntax after operation parameter list ')' closer"); - case IDL_GlobalData::PS_OpParCommaSeen: - return - GTDEVEL("Illegal syntax or missing direction in parameter declaration"); - case IDL_GlobalData::PS_OpParDirSeen: - return GTDEVEL("Illegal syntax or missing type in parameter declaration"); - case IDL_GlobalData::PS_OpParTypeSeen: - return - GTDEVEL("Illegal syntax or missing declarator in parameter declaration"); - case IDL_GlobalData::PS_OpParDeclSeen: - return GTDEVEL("Illegal syntax following parameter declarator"); - case IDL_GlobalData::PS_OpRaiseSeen: - return GTDEVEL("Illegal syntax or missing '(' after RAISES keyword"); - case IDL_GlobalData::PS_OpRaiseSqSeen: - return GTDEVEL("Illegal syntax after RAISES '(' opener"); - case IDL_GlobalData::PS_OpRaiseQsSeen: - return GTDEVEL("Illegal syntax after RAISES ')' closer"); - case IDL_GlobalData::PS_OpContextSeen: - return GTDEVEL("Illegal syntax or missing '(' after CONTEXT keyword"); - case IDL_GlobalData::PS_OpContextSqSeen: - return GTDEVEL("Illegal syntax after CONTEXT '(' opener"); - case IDL_GlobalData::PS_OpContextQsSeen: - return GTDEVEL("Illegal syntax after CONTEXT ')' closer"); - case IDL_GlobalData::PS_OpContextCommaSeen: - return - GTDEVEL("Illegal syntax after ',' in CONTEXT in operation declaration"); - case IDL_GlobalData::PS_DeclsCommaSeen: - return GTDEVEL("Illegal syntax after ',' in declarators list"); - case IDL_GlobalData::PS_DeclsDeclSeen: - return GTDEVEL("Illegal syntax after declarator in declarators list"); - - case IDL_GlobalData::PS_PragmaPrefixSyntax: - return GTDEVEL ("Illegal syntax for #pragma prefix"); - default: - return GTDEVEL("Some syntax error"); - } -} -/* - * Public methods - */ - -// Report error messages with various numbers of arguments - -void -UTL_Error::syntax_error(IDL_GlobalData::ParseState ps) -{ - idl_error_header(EIDL_SYNTAX_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << parse_state_to_error_message(ps) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error0(UTL_Error::ErrorCode c) -{ - idl_error_header(c, idl_global->lineno(), idl_global->filename()); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error1(UTL_Error::ErrorCode c, AST_Decl *d) -{ - idl_error_header(c, d->line(), d->file_name()); - d->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error2(UTL_Error::ErrorCode c, AST_Decl *d1, AST_Decl *d2) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::error3(UTL_Error::ErrorCode c, - AST_Decl *d1, - AST_Decl *d2, - AST_Decl *d3) -{ - idl_error_header(c, d1->line(), d1->file_name()); - d1->name()->dump(cerr); cerr << ", "; - d2->name()->dump(cerr); cerr << ", "; - d3->name()->dump(cerr); cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed coercion attempt -void -UTL_Error::coercion_error(AST_Expression *v, AST_Expression::ExprType t) -{ - idl_error_header(EIDL_COERCION_FAILURE, v->line(), v->file_name()); - v->dump(cerr); - cerr << GTDEVEL(" to ") << exprtype_to_string(t) << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a failed name lookup attempt -void -UTL_Error::lookup_error(UTL_ScopedName *n) -{ - idl_error_header(EIDL_LOOKUP_ERROR, - idl_global->lineno(), - idl_global->filename()); - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from an interface which was only -// declared forward but not yet defined -void -UTL_Error::inheritance_fwd_error(UTL_ScopedName *n, AST_Interface *f) -{ - idl_error_header(EIDL_INHERIT_FWD_ERROR, f->line(), f->file_name()); - cerr << "interface "; - n->dump(cerr); - cerr << GTDEVEL(" cannot inherit from forward declared interface "); - f->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an attempt to inherit from something other than an interface -void -UTL_Error::inheritance_error(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CANT_INHERIT, d->line(), d->file_name()); - cerr << " interface "; - n->dump(cerr); - cerr << GTDEVEL(" attempts to inherit from "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an error while evaluating an expression -void -UTL_Error::eval_error(AST_Expression *v) -{ - idl_error_header(EIDL_EVAL_ERROR, v->line(), v->file_name()); - v->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where a constant was expected but we -// got something else. This may occur in a union when a label -// evaluates to a non-constant -void -UTL_Error::constant_expected(UTL_ScopedName *n, AST_Decl *d) -{ - idl_error_header(EIDL_CONSTANT_EXPECTED, d->line(), d->file_name()); - n->dump(cerr); - cerr << GTDEVEL(" bound to "); - d->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was expected but we -// got something else. This may occur in a union with an enum -// discriminator where a label did not evaluate to a constant -// enumerator -void -UTL_Error::enum_val_expected(AST_Union *u, AST_UnionLabel *l) -{ - idl_error_header(EIDL_ENUM_VAL_EXPECTED, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - l->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a situation where an enumerator was received but we -// could not find it (by name) in an enum. This occurs when -// a union with an enum discriminator is being parsed, and a -// label evaluates to an enumerator which is not a member of -// the enum discriminator type -void -UTL_Error::enum_val_lookup_failure(AST_Union *u, - AST_Enum *e, - UTL_ScopedName *n) -{ - idl_error_header(EIDL_ENUM_VAL_NOT_FOUND, u->line(), u->file_name()); - cerr << " union " << u->local_name()->get_string() << ", "; - cerr << " enum " << e->local_name()->get_string() << ", "; - cerr << " enumerator "; - n->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report two or more spellings for an identifier -void -UTL_Error::name_case_error(char *b, char *n) -{ - idl_error_header(EIDL_NAME_CASE_ERROR, - idl_global->lineno(), - idl_global->filename()); - cerr << "\"" << b << GTDEVEL("\" and ") << "\"" << n << "\"\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report an ambiguous definition of a name -void -UTL_Error::ambiguous(UTL_Scope *s, AST_Decl *l, AST_Decl *d) -{ - idl_error_header(EIDL_AMBIGUOUS, d->line(), d->file_name()); - cerr << GTDEVEL(" scope: ") - << (ScopeAsDecl(s))->local_name()->get_string() - << ", "; - cerr << GTDEVEL(" collision: "); - d->name()->dump(cerr); - cerr << " vs. "; - l->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a forward declared interface which was never defined -void -UTL_Error::fwd_decl_not_defined(AST_Interface *d) -{ - idl_error_header(EIDL_DECL_NOT_DEFINED, d->line(), d->file_name()); - cerr << "interface "; - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report lookup in undefined forward declared but undefined interface -void -UTL_Error::fwd_decl_lookup(AST_Interface *d, UTL_ScopedName *n) -{ - idl_error_header(EIDL_FWD_DECL_LOOKUP, - idl_global->lineno(), - idl_global->filename()); - cerr << GTDEVEL("trying to look up "); - n->dump(cerr); - cerr << GTDEVEL(" in undefined forward declared interface "); - d->local_name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report a redefinition inside its own scope -void -UTL_Error::redefinition_in_scope(AST_Decl *d, AST_Decl *s) -{ - idl_error_header(EIDL_REDEF_SCOPE, d->line(), d->file_name()); - d->name()->dump(cerr); - cerr << ", "; - s->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -// Report not a type error -void -UTL_Error::not_a_type(AST_Decl *d) -{ - idl_error_header(EIDL_NOT_A_TYPE, - idl_global->lineno(), - idl_global->filename()); - if (d == NULL || d->name() == NULL) - cerr << GTDEVEL("unknown symbol"); - else - d->name()->dump(cerr); - cerr << "\n"; - idl_global->set_err_count(idl_global->err_count() + 1); -} - -void -UTL_Error::back_end(long lineno, String *s) -{ - idl_error_header(EIDL_BACK_END, lineno, s); - idl_global->set_err_count(idl_global->err_count() + 1); -} diff --git a/TAO/TAO_IDL/util/utl_exceptlist.cpp b/TAO/TAO_IDL/util/utl_exceptlist.cpp deleted file mode 100644 index e291f95a82e..00000000000 --- a/TAO/TAO_IDL/util/utl_exceptlist.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_exceptlist.cc -// -// Implementation of a list of exceptions - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_exceptlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_ExceptList::UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -AST_Exception * -UTL_ExceptList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExceptList active iterator - -/* - * Constructor - */ - -UTL_ExceptlistActiveIterator::UTL_ExceptlistActiveIterator(UTL_ExceptList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -AST_Exception * -UTL_ExceptlistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_ExceptList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_exprlist.cpp b/TAO/TAO_IDL/util/utl_exprlist.cpp deleted file mode 100644 index ad710e53ae2..00000000000 --- a/TAO/TAO_IDL/util/utl_exprlist.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_exprlist.cc -// -// Implementation of a list of strings - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_exprlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_ExprList::UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -AST_Expression * -UTL_ExprList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExprList active iterator - -/* - * Constructor - */ - -UTL_ExprlistActiveIterator::UTL_ExprlistActiveIterator(UTL_ExprList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -AST_Expression * -UTL_ExprlistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_ExprList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp deleted file mode 100644 index f9f98e3bc6e..00000000000 --- a/TAO/TAO_IDL/util/utl_global.cpp +++ /dev/null @@ -1,951 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_global.cc - Implementation of class IDL_GlobalData -// - -#include "idl.h" -#include "idl_extern.h" -#include "ace/OS.h" - -ACE_RCSID(util, utl_global, "$Id$") - -// Define an increment for the size of the array used to store names of -// included files -#undef INCREMENT -#define INCREMENT 64 - -IDL_GlobalData::IDL_GlobalData() - : pd_scopes(NULL), - pd_root(NULL), - pd_gen(NULL), - pd_err(NULL), - pd_err_count(0), - pd_lineno(0), - pd_filename(NULL), - pd_main_filename(NULL), - pd_real_filename(NULL), - pd_in_main_file(I_FALSE), - pd_prog_name(NULL), - pd_cpp_location(NULL), - pd_compile_flags(0), - pd_be(NULL), - pd_local_escapes(NULL), - pd_indent(NULL), - pd_pragmas(NULL), - pd_read_from_stdin(I_FALSE), - pd_include_file_names(NULL), - pd_n_include_file_names(0), - pd_n_alloced_file_names(0), - included_idl_files_ (0), - n_included_idl_files_ (0), - n_allocated_idl_files_ (0), - pd_parse_state(PS_NoState), - pd_idl_src_file (0), - export_macro_ (0), - export_include_ (0), - client_hdr_ending_ (ACE::strnew ("C.h")), - client_stub_ending_ (ACE::strnew ("C.cpp")), - client_inline_ending_ (ACE::strnew ("C.i")), - server_hdr_ending_ (ACE::strnew ("S.h")), - server_template_hdr_ending_ (ACE::strnew ("S_T.h")), - server_skeleton_ending_ (ACE::strnew ("S.cpp")), - server_template_skeleton_ending_ (ACE::strnew ("S_T.cpp")), - server_inline_ending_ (ACE::strnew ("S.i")), - server_template_inline_ending_ (ACE::strnew ("S_T.i")), - perfect_hasher_ (0), - output_dir_ (0) -{ - // Path for the perfect hash generator(gperf) program. Default - // is $ACE_ROOT/bin/gperf. - // Form the absolute pathname. - char* ace_root = ACE_OS::getenv ("ACE_ROOT"); - if (ace_root == 0) - // This may not cause any problem if -g option is used to specify - // the correct path for the gperf program. Let us ignore this - // error here. It will be caught when we check the existence of - // the perfect hasher and at that time, we can switch over to some - // other scheme. - { - this->perfect_hasher_ = 0; - } - else - { - // Set it to the default value. - ACE_NEW (this->perfect_hasher_, - char [strlen (ace_root) + strlen ("/bin/gperf") + 1]); -#if defined (ACE_WIN32) - ACE_OS::sprintf (this->perfect_hasher_, - "%s\\bin\\gperf", - ace_root); -#else /* Not ACE_WIN32 */ - ACE_OS::sprintf (this->perfect_hasher_, - "%s/bin/gperf", - ace_root); -#endif /* ACE_WIN32 */ - } -} - -// Get or set scopes stack -UTL_ScopeStack * -IDL_GlobalData::scopes() -{ - return pd_scopes; -} - -void -IDL_GlobalData::set_scopes(UTL_ScopeStack *s) -{ - pd_scopes = s; -} - -// Get or set root of AST -AST_Root * -IDL_GlobalData::root() -{ - return pd_root; -} -void -IDL_GlobalData::set_root(AST_Root *r) -{ - pd_root = r; -} - -// Get or set generator object -AST_Generator * -IDL_GlobalData::gen() -{ - return pd_gen; -} -void -IDL_GlobalData::set_gen(AST_Generator *g) -{ - pd_gen = g; -} - -// Get or set error object -UTL_Error * -IDL_GlobalData::err() -{ - return pd_err; -} -void -IDL_GlobalData::set_err(UTL_Error *e) -{ - pd_err = e; -} - -// Get or set error count -long -IDL_GlobalData::err_count() -{ - return pd_err_count; -} -void -IDL_GlobalData::set_err_count(long c) -{ - pd_err_count = c; -} - -// Get or set line number -long -IDL_GlobalData::lineno() -{ - return pd_lineno; -} -void -IDL_GlobalData::set_lineno(long n) -{ - pd_lineno = n; -} - -// Get or set file name being read now -String * -IDL_GlobalData::filename() -{ - return pd_filename; -} -void -IDL_GlobalData::set_filename(String *f) -{ - pd_filename = f; -} - -// Get or set main file name -String * -IDL_GlobalData::main_filename() -{ - return pd_main_filename; -} -void -IDL_GlobalData::set_main_filename(String *n) -{ - pd_main_filename = n; -} - -// Get or set real file name -String * -IDL_GlobalData::real_filename() -{ - return pd_real_filename; -} -void -IDL_GlobalData::set_real_filename(String *n) -{ - pd_real_filename = n; -} - -// Get or set indicator whether import is on -idl_bool -IDL_GlobalData::imported() -{ - return pd_in_main_file ? I_FALSE : pd_import; -} -idl_bool -IDL_GlobalData::import() -{ - return pd_import; -} -void -IDL_GlobalData::set_import(idl_bool is_in) -{ - pd_import = is_in; -} - -// Get or set indicator whether we're reading the main file now -idl_bool -IDL_GlobalData::in_main_file() -{ - return pd_in_main_file; -} -void -IDL_GlobalData::set_in_main_file(idl_bool is_in) -{ - pd_in_main_file = is_in; -} - -// Get or set stripped file name -String * -IDL_GlobalData::stripped_filename() -{ - return pd_stripped_filename; -} -void -IDL_GlobalData::set_stripped_filename(String *nm) -{ - pd_stripped_filename = nm; -} - -// Get or set cache value for argv[0] -char * -IDL_GlobalData::prog_name() -{ - return pd_prog_name; -} -void -IDL_GlobalData::set_prog_name(char *pn) -{ - pd_prog_name = pn; -} - -// Get or set location to find C preprocessor -char * -IDL_GlobalData::cpp_location() -{ - return pd_cpp_location; -} -void -IDL_GlobalData::set_cpp_location(char *l) -{ - pd_cpp_location = l; -} - -// Get or set IDL compiler flags -long -IDL_GlobalData::compile_flags() -{ - return pd_compile_flags; -} -void -IDL_GlobalData::set_compile_flags(long cf) -{ - pd_compile_flags = cf; -} - -// Get or set BE to be used -char * -IDL_GlobalData::be() -{ - return pd_be; -} -void -IDL_GlobalData::set_be(char *nbe) -{ - pd_be = nbe; -} - -// Get or set local escapes string. This provides additional mechanism -// to pass information to a BE. -char * -IDL_GlobalData::local_escapes() -{ - return pd_local_escapes; -} -void -IDL_GlobalData::set_local_escapes(char *e) -{ - pd_local_escapes = e; -} - -// Get or set indent object -UTL_Indenter * -IDL_GlobalData::indent() -{ - return pd_indent; -} -void -IDL_GlobalData::set_indent(UTL_Indenter *i) -{ - pd_indent = i; -} - -// Get or set list of pragmas being parsed -UTL_StrList * -IDL_GlobalData::pragmas() -{ - UTL_StrList *p = pd_pragmas; - - pd_pragmas = NULL; - return p; -} -void -IDL_GlobalData::set_pragmas(UTL_StrList *p) -{ - pd_pragmas = p; -} - -// Get or set indicator whether we're reading from stdin. -idl_bool -IDL_GlobalData::read_from_stdin() -{ - return pd_read_from_stdin; -} -void -IDL_GlobalData::set_read_from_stdin(idl_bool r) -{ - pd_read_from_stdin = r; -} - -// Have we seen this include file name before? -long -IDL_GlobalData::seen_include_file_before(String *n) -{ - unsigned long i; - - for (i = 0; i < pd_n_include_file_names; i++) - if (n->compare(pd_include_file_names[i])) - return I_TRUE; - return I_FALSE; -} - -// Store a name of an #include file -void -IDL_GlobalData::store_include_file_name(String *n) -{ - String **o_include_file_names; - unsigned long o_n_alloced_file_names, i; - - /* - * Check if we need to store it at all or whether we've seen it already - */ - if (seen_include_file_before(n)) - return; - /* - * OK, need to store. Make sure there's space for one more string - */ - if (pd_n_include_file_names == pd_n_alloced_file_names) - { - // Allocating more space. - - if (pd_n_alloced_file_names == 0) - { - pd_n_alloced_file_names = INCREMENT; - pd_include_file_names = new String *[pd_n_alloced_file_names]; - } - else - { - o_include_file_names = pd_include_file_names; - o_n_alloced_file_names = pd_n_alloced_file_names; - pd_n_alloced_file_names += INCREMENT; - pd_include_file_names = new String *[pd_n_alloced_file_names]; - for (i = 0; i < o_n_alloced_file_names; i++) - pd_include_file_names[i] = o_include_file_names[i]; - delete [] o_include_file_names; - } - } - - // Store it. - pd_include_file_names[pd_n_include_file_names++] = n; -} - -void -IDL_GlobalData::set_include_file_names(String **ns) -{ - pd_include_file_names = ns; -} - -String ** -IDL_GlobalData::include_file_names() -{ - return pd_include_file_names; -} - -void -IDL_GlobalData::set_n_include_file_names(unsigned long n) -{ - pd_n_include_file_names = n; -} - -unsigned long -IDL_GlobalData::n_include_file_names() -{ - return pd_n_include_file_names; -} - -// Access methods to deal with other IDL files included in the main -// IDL file. - -void -IDL_GlobalData::add_to_included_idl_files (char* file_name) -{ - // Is there enough space there to store one more file. - if (this->n_included_idl_files_ == this->n_allocated_idl_files_) - { - // Allocating more space. - if (this->n_allocated_idl_files_ == 0) - { - // First time creation. - this->n_allocated_idl_files_ = INCREMENT; - ACE_NEW (this->included_idl_files_, - char *[this->n_allocated_idl_files_]); - } - else - { - // Adding more storage. - - char** old_included_idl_files; - size_t n_old_allocated_idl_files; - - old_included_idl_files = this->included_idl_files_; - n_old_allocated_idl_files = this->n_allocated_idl_files_; - this->n_included_idl_files_ += INCREMENT; - ACE_NEW (this->included_idl_files_, - char *[this->n_allocated_idl_files_]); - for (size_t i = 0; i < n_old_allocated_idl_files; i++) - this->included_idl_files_ [i] = old_included_idl_files [i]; - delete [] old_included_idl_files; - } - } - - // Store it. - this->included_idl_files_ [this->n_included_idl_files_++] = - file_name; -} - -char** -IDL_GlobalData::included_idl_files (void) -{ - return this->included_idl_files_; -} - -size_t -IDL_GlobalData::n_included_idl_files (void) -{ - return this->n_included_idl_files_; -} - -void -IDL_GlobalData::set_parse_state(ParseState ps) -{ - pd_parse_state = ps; -} - -IDL_GlobalData::ParseState -IDL_GlobalData::parse_state() -{ - return pd_parse_state; -} - -/* - * Convert a PredefinedType to an ExprType - */ -AST_Expression::ExprType -IDL_GlobalData::PredefinedTypeToExprType(AST_PredefinedType::PredefinedType pt) -{ - switch (pt) { - case AST_PredefinedType::PT_long: - return AST_Expression::EV_long; - case AST_PredefinedType::PT_ulong: - return AST_Expression::EV_ulong; - case AST_PredefinedType::PT_short: - return AST_Expression::EV_short; - case AST_PredefinedType::PT_ushort: - return AST_Expression::EV_ushort; - case AST_PredefinedType::PT_float: - return AST_Expression::EV_float; - case AST_PredefinedType::PT_double: - return AST_Expression::EV_double; - case AST_PredefinedType::PT_char: - return AST_Expression::EV_char; - case AST_PredefinedType::PT_octet: - return AST_Expression::EV_octet; - case AST_PredefinedType::PT_boolean: - return AST_Expression::EV_bool; - default: - return AST_Expression::EV_any; - } -} - -// returns the IDL source file being copiled -String* IDL_GlobalData::idl_src_file() -{ - return this->pd_idl_src_file; -} - -// set the source IDL file that is being parsed -void IDL_GlobalData::idl_src_file(String *s) -{ - this->pd_idl_src_file = s; -} - -/************ Helper functions **************/ -static const char* -be_change_idl_file_extension (String* idl_file, - const char *new_extension, - int base_name_only = 0) -{ - // @@ This shouldn't happen anyway; but a better error handling - // mechanism is needed. - if (idl_file == 0 || new_extension == 0) - return 0; - - static char fname[MAXPATHLEN]; - ACE_OS::memset (fname, 0, MAXPATHLEN); - - // Get the char* from the String. - const char* string = idl_file->get_string (); - - // Get the base part of the filename. - const char *base = ACE_OS::strstr (string, ".idl"); - - if (base == 0) - return 0; - - if ((!base_name_only) && (idl_global->output_dir () != 0)) - { - // Path info should also be added to fname. - - // Add path and "/". - ACE_OS::sprintf (fname, "%s/", idl_global->output_dir ()); - - // Append the base part to fname. - ACE_OS::strncpy (fname + strlen (fname), string, base - string); - } - else - // Base_name_only or no putput_dir specified by user. JUST put the - // base part to fname. - ACE_OS::strncpy (fname, string, base - string); - - // Turn '\' and '\\' into '/'. - char* i = fname; - for (char* j = fname; *j != 0; ++i, ++j) - { - if (*j == '\\') - { - *i = '/'; - if (*(j+1) == '\\') - ++j; - } - else - *i = *j; - } - *i = 0; - - // Append the newextension. - ACE_OS::strcat (fname, new_extension); - - return fname; -} - -const char * -IDL_GlobalData::be_get_client_hdr (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->client_hdr_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_client_stub (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->client_stub_ending ()); -} - -const char * -IDL_GlobalData::be_get_client_inline (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->client_inline_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_hdr (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->server_hdr_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_template_hdr (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->server_template_hdr_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_skeleton (String *idl_file_name) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->server_skeleton_ending ()); -} - -const char * -IDL_GlobalData::be_get_server_template_skeleton (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->server_template_skeleton_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_inline (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->server_inline_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_template_inline (String *idl_file_name, - int base_name_only) -{ - return be_change_idl_file_extension (idl_file_name, - idl_global->server_template_inline_ending (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_client_hdr_fname (int base_name_only) -{ - return be_get_client_hdr (idl_global->stripped_filename (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_client_stub_fname () -{ - return be_get_client_stub (idl_global->stripped_filename ()); -} - -const char * -IDL_GlobalData::be_get_client_inline_fname (int base_name_only) -{ - return be_get_client_inline (idl_global->stripped_filename (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_hdr_fname (int base_name_only) -{ - return be_get_server_hdr (idl_global->stripped_filename (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_template_hdr_fname (int base_name_only) -{ - return be_get_server_template_hdr (idl_global->stripped_filename (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_skeleton_fname () -{ - return be_get_server_skeleton (idl_global->stripped_filename ()); -} - -const char * -IDL_GlobalData::be_get_server_template_skeleton_fname (int base_name_only) -{ - return be_get_server_template_skeleton (idl_global->stripped_filename (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_inline_fname (int base_name_only) -{ - return be_get_server_inline (idl_global->stripped_filename (), - base_name_only); -} - -const char * -IDL_GlobalData::be_get_server_template_inline_fname (int base_name_only) -{ - return be_get_server_template_inline (idl_global->stripped_filename (), - base_name_only); -} - -const char* -IDL_GlobalData::export_macro (void) const -{ - if (this->export_macro_ == 0) - return ""; - return this->export_macro_; -} - -void -IDL_GlobalData::export_macro (const char *s) -{ - this->export_macro_ = ACE_OS::strdup (s); -} - -const char* -IDL_GlobalData::export_include (void) const -{ - return this->export_include_; -} - -void -IDL_GlobalData::export_include (const char *s) -{ - this->export_include_ = ACE_OS::strdup (s); -} - -// Set the client_hdr_ending. -void -IDL_GlobalData::client_hdr_ending (const char* s) -{ - delete [] this->client_hdr_ending_; - this->client_hdr_ending_ = ACE::strnew (s); -} - -// Get the client_hdr_ending. -const char* -IDL_GlobalData::client_hdr_ending (void) const -{ - return this->client_hdr_ending_; -} - -void -IDL_GlobalData::client_inline_ending (const char* s) -{ - delete [] this->client_inline_ending_; - this->client_inline_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::client_inline_ending (void) const -{ - return this->client_inline_ending_; -} - -// Set the client_stub_ending. -void -IDL_GlobalData::client_stub_ending (const char* s) -{ - delete [] this->client_stub_ending_; - this->client_stub_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::client_stub_ending (void) const -{ - return this->client_stub_ending_; -} - -void -IDL_GlobalData::server_hdr_ending (const char* s) -{ - delete [] this->server_hdr_ending_; - this->server_hdr_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::server_hdr_ending (void) const -{ - return this->server_hdr_ending_; -} - -void -IDL_GlobalData::server_template_hdr_ending (const char* s) -{ - delete [] this->server_template_hdr_ending_; - this->server_template_hdr_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::server_template_hdr_ending (void) const -{ - return this->server_template_hdr_ending_; -} - -void -IDL_GlobalData::server_skeleton_ending (const char* s) -{ - delete [] this->server_skeleton_ending_; - this->server_skeleton_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::server_skeleton_ending (void) const -{ - return this->server_skeleton_ending_; -} - -void -IDL_GlobalData::server_template_skeleton_ending (const char* s) -{ - delete [] this->server_template_skeleton_ending_; - this->server_template_skeleton_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::server_template_skeleton_ending (void) const -{ - return this->server_template_skeleton_ending_; -} - -void -IDL_GlobalData::server_inline_ending (const char* s) -{ - delete [] this->server_inline_ending_; - this->server_inline_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::server_inline_ending (void) const -{ - return this->server_inline_ending_; -} - -void -IDL_GlobalData::server_template_inline_ending (const char* s) -{ - delete [] this->server_template_inline_ending_; - this->server_template_inline_ending_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::server_template_inline_ending (void) const -{ - return this->server_template_inline_ending_; -} - -void -IDL_GlobalData::output_dir (const char* s) -{ - delete [] this->output_dir_; - this->output_dir_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::output_dir (void) const -{ - return this->output_dir_; -} - -void -IDL_GlobalData::perfect_hasher (const char* s) -{ - delete [] this->perfect_hasher_; - this->perfect_hasher_ = ACE::strnew (s); -} - -const char* -IDL_GlobalData::perfect_hasher (void) const -{ - return this->perfect_hasher_; -} diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp deleted file mode 100644 index 185cd23f413..00000000000 --- a/TAO/TAO_IDL/util/utl_identifier.cpp +++ /dev/null @@ -1,124 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_identifier - Implementation of identifiers - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_identifier, "$Id$") - -/* - * Constructors - */ - -Identifier::Identifier () - : pv_string (NULL) -{ -} - -Identifier::Identifier (char *s, long, long, long) - : pv_string (ACE_OS::strdup (s)) -{ -} - -Identifier::~Identifier () -{ - if (this->pv_string != 0) - { - // The string was allocated using strdup, which uses malloc. - ACE_OS::free (this->pv_string); - } -} - -// Operations - -char * -Identifier::get_string () -{ - return pv_string; -} - -// Compare two Identifier * -long -Identifier::compare (Identifier *o) -{ - if (o == NULL) return I_FALSE; - if (pv_string == NULL || o->get_string() == NULL) - return I_FALSE; - return (ACE_OS::strcmp (pv_string, o->get_string ()) == 0) ? I_TRUE : I_FALSE; -} - -// Dumping - -void -Identifier::dump (ostream &o) -{ - if (pv_string == NULL) return; - - o << get_string(); -} - diff --git a/TAO/TAO_IDL/util/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_idlist.cpp deleted file mode 100644 index 93fd57bd468..00000000000 --- a/TAO/TAO_IDL/util/utl_idlist.cpp +++ /dev/null @@ -1,191 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_idlist.cc -// -// Implementation of a list of utl_string nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_idlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_IdList::UTL_IdList (Identifier *s, UTL_IdList *cdr) - : UTL_List ((UTL_List *) cdr), - pd_car_data (s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Copy a list -UTL_List * -UTL_IdList::copy () -{ - if (tail () == NULL) - return (UTL_List *) new UTL_IdList (head (), NULL); - return (UTL_List *) new UTL_IdList (head (), (UTL_IdList *) tail ()->copy ()); -} - -// Get list item -Identifier * -UTL_IdList::head () -{ - return pd_car_data; -} - -// Get last item of this list -Identifier * -UTL_IdList::last_component () -{ - if (tail()== NULL) - return head (); - return ((UTL_IdList *) tail ())->last_component (); -} - -// AST Dumping -void -UTL_IdList::dump (ostream &o) -{ - UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator (this); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done ())) - { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - i->item ()->dump (o); - if (first) - { - if (ACE_OS::strcmp (i->item ()->get_string (), "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next (); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_IdList active iterator - -/* - * Constructor - */ - -UTL_IdListActiveIterator::UTL_IdListActiveIterator (UTL_IdList *s) - : UTL_ListActiveIterator (s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -Identifier * -UTL_IdListActiveIterator::item () -{ - if (source == NULL) - return NULL; - return ((UTL_IdList *) source)->head (); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_indenter.cpp b/TAO/TAO_IDL/util/utl_indenter.cpp deleted file mode 100644 index 852e5c203f6..00000000000 --- a/TAO/TAO_IDL/util/utl_indenter.cpp +++ /dev/null @@ -1,135 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_indenter.cc - Implementation of indenter for dumping IDL AST -// - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_indenter, "$Id$") - -/* - * Constructors - */ -UTL_Indenter::UTL_Indenter () - : pd_indent_level (0) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Reset indentation level -void -UTL_Indenter::reset () -{ - pd_indent_level = 0; -} - -// Increase indentation level -void -UTL_Indenter::increase () -{ - pd_indent_level++; -} - -// Decrease indentation level -void -UTL_Indenter::decrease () -{ - if (pd_indent_level > 0) - pd_indent_level--; -} - -// Produce white space to indent to current indentation level on ostream o -void -UTL_Indenter::skip_to (ostream &o) -{ - long i; - - for (i = 0; i < pd_indent_level; i++) - o << " "; -} - -// Produce white space to indent to current indentation level on ostream o -void -UTL_Indenter::skip_to (FILE *fp) -{ - long i; - - for (i = 0; i < pd_indent_level; i++) - ACE_OS::fprintf (fp, " "); -} - -/* - * Redefined virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_labellist.cpp b/TAO/TAO_IDL/util/utl_labellist.cpp deleted file mode 100644 index 8dfa1b4907f..00000000000 --- a/TAO/TAO_IDL/util/utl_labellist.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_labellist.cc -// -// Implementation of a list of scoped names - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_labellist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_LabelList::UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -AST_UnionLabel * -UTL_LabelList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_LabelList active iterator - -/* - * Constructor - */ - -UTL_LabellistActiveIterator::UTL_LabellistActiveIterator(UTL_LabelList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -AST_UnionLabel * -UTL_LabellistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_LabelList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_list.cpp b/TAO/TAO_IDL/util/utl_list.cpp deleted file mode 100644 index ffbbe4e52f4..00000000000 --- a/TAO/TAO_IDL/util/utl_list.cpp +++ /dev/null @@ -1,199 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_list.cc -// -// Implementation of generic single-linked lists - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_list, "$Id$") - -/* - * Constructor(s) - */ - -UTL_List::UTL_List(UTL_List *c) - : pd_cdr_data(c) -{ -} - -/* - * Private operations - */ - -// Compute list length -long -UTL_List::list_length(long n) -{ - if (pd_cdr_data == NULL) - return n; - else - return pd_cdr_data->list_length(n+1); -} - -/* - * Public operations - */ - -// Smash last cdr with l -void -UTL_List::nconc(UTL_List *l) -{ - if (pd_cdr_data == NULL) - pd_cdr_data = l; - else - pd_cdr_data->nconc(l); -} - -/* - * Override this operation to copy lists of other types - */ -// Copy a list -UTL_List * -UTL_List::copy() -{ - if (pd_cdr_data == NULL) - return new UTL_List(NULL); - return new UTL_List(pd_cdr_data->copy()); -} - -// Get next list -UTL_List * -UTL_List::tail() -{ - return pd_cdr_data; -} - -// Set next list -void -UTL_List::set_tail(UTL_List *l) -{ - pd_cdr_data = l; -} - -// Compute list length -long -UTL_List::length() -{ - return list_length(1); -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_List active iterator - -/* - * Constructor - */ - -UTL_ListActiveIterator::UTL_ListActiveIterator(UTL_List *s) - : source(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Is iterator done? -long -UTL_ListActiveIterator::is_done() -{ - return (source == NULL) ? I_TRUE : I_FALSE; -} - -// Advance to next item -void -UTL_ListActiveIterator::next() -{ - if (source != NULL) - source = source->tail(); -} - -/* - * Redefinition of inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_namelist.cpp b/TAO/TAO_IDL/util/utl_namelist.cpp deleted file mode 100644 index d0f34fbf3f7..00000000000 --- a/TAO/TAO_IDL/util/utl_namelist.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_namelist.cc -// -// Implementation of a list of scoped names - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_namelist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_NameList::UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -UTL_ScopedName * -UTL_NameList::head() -{ - return pd_car_data; -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_NameList active iterator - -/* - * Constructor - */ - -UTL_NamelistActiveIterator::UTL_NamelistActiveIterator(UTL_NameList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -UTL_ScopedName * -UTL_NamelistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_NameList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp deleted file mode 100644 index a44ffaedd0f..00000000000 --- a/TAO/TAO_IDL/util/utl_scope.cpp +++ /dev/null @@ -1,1208 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * utl_scope.cc - Implementation of class UTL_Scope - */ - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_scope, "$Id$") - -#undef INCREMENT -#define INCREMENT 64 - -/* - * Static functions - */ -static Identifier *_global_scope_name = NULL; -static Identifier *_global_scope_root_name = NULL; - -/* - * Determines if a name is global - */ -static long -is_global_name(Identifier *i) -{ - long comp_result = 0; - char *s; - - if (i == NULL) return comp_result; - s = i->get_string(); - - if (_global_scope_name == NULL) - _global_scope_name = new Identifier("::", 1, 0, I_FALSE); - - if (_global_scope_root_name == NULL) - _global_scope_root_name = new Identifier("", 1, 0, I_FALSE); - - comp_result = i->compare(_global_scope_name); - if (!comp_result) - comp_result = i->compare(_global_scope_root_name); - - return comp_result; -} - -/* - * Helper function for lookup_by_name. Iterates doing local lookups of - * subsequent components of a scoped name - */ -static AST_Decl * -iter_lookup_by_name_local(AST_Decl *d, UTL_ScopedName *e, - idl_bool treat_as_ref) -{ - Identifier *s; - AST_Typedef *td; - UTL_IdListActiveIterator *i; - UTL_Scope *sc; - - i = new UTL_IdListActiveIterator(e); - for (i->next(); !(i->is_done()); ) { - s = i->item(); - /* - * Update iterator before loop. This is needed for the check for - * typedef, since we only want to look at the base type if there - * actually are more components of the name to resolve. - */ - i->next(); - /* - * Next component in name was not found - */ - if (d == NULL) { - return NULL; - } - /* - * If this is a typedef and we're not done, we should get the - * base type to get the scope it defines (if any) - */ - if (!(i->is_done())) { - while (d != NULL && d->node_type() == AST_Decl::NT_typedef) { - td = AST_Typedef::narrow_from_decl(d); - if (td == NULL) - return NULL; - d = td->base_type(); - } - if (d == NULL) - return NULL; - } - /* - * Try to convert the AST_Decl to a UTL_Scope - */ - sc = DeclAsScope(d); - if (sc == NULL) - return NULL; - /* - * Look up the next element - */ - d = sc->lookup_by_name_local(s, treat_as_ref); - } - /* - * OK, done with the loop - */ - return d; -} - -/* - * Constructor(s) - */ -UTL_Scope::UTL_Scope() - : pd_scope_node_type(AST_Decl::NT_module), - pd_decls(NULL), - pd_decls_allocated(0), - pd_decls_used(0), - pd_local_types(NULL), - pd_locals_allocated(0), - pd_locals_used(0), - pd_referenced(NULL), - pd_referenced_allocated(0), - pd_referenced_used(0) -{ -} - -UTL_Scope::UTL_Scope(AST_Decl::NodeType nt) - : pd_scope_node_type(nt), - pd_decls(NULL), - pd_decls_allocated(0), - pd_decls_used(0), - pd_local_types(NULL), - pd_locals_allocated(0), - pd_locals_used(0), - pd_referenced(NULL), - pd_referenced_allocated(0), - pd_referenced_used(0) -{ -} - -/* - * Private operations - */ - -static -AST_Decl * add_type(AST_Type *type) -{ - AST_Decl * result = 0; - UTL_Scope * scope = 0; - switch (type->node_type()) { - case AST_Decl::NT_array: - result = - idl_global->root()->add_array(AST_Array::narrow_from_decl(type)); - break; - case AST_Decl::NT_enum: - result = type->defined_in()->add_enum(AST_Enum::narrow_from_decl(type)); - scope = AST_Enum::narrow_from_decl(type); - break; - case AST_Decl::NT_sequence: - result = - idl_global->root()->add_sequence(AST_Sequence::narrow_from_decl(type)); - break; - case AST_Decl::NT_string: - result = - idl_global->root()->add_string(AST_String::narrow_from_decl(type)); - break; - case AST_Decl::NT_struct: - result = - type->defined_in()-> - add_structure(AST_Structure::narrow_from_decl(type)); - scope = AST_Structure::narrow_from_decl(type); - break; - case AST_Decl::NT_union: - result = - type->defined_in()->add_union(AST_Union::narrow_from_decl(type)); - scope = AST_Union::narrow_from_decl(type); - break; - default: - // for non-complex types, like predefined types - // no additional add needed, assume everything is ok - result = (AST_Decl *) 1; - break; - } - if (scope) - result = scope->call_add(); - return result; -} - -/* - * Protected operations - */ - -/* - * Special version of lookup which only looks at the local name instead of - * the fully scoped name, when doing lookups. This version is intended to - * be used only by the CFE add_xxx functions - */ -AST_Decl * -UTL_Scope::lookup_for_add(AST_Decl *d, idl_bool treat_as_ref) -{ - if (d == NULL) - return NULL; - return lookup_by_name_local(d->local_name(), treat_as_ref); -} - -/* - * Public operations - */ - -// Narrowing -IMPL_NARROW_METHODS0(UTL_Scope) -IMPL_NARROW_FROM_SCOPE(UTL_Scope) - -// Scope Management Protocol -// -// All members of the protocol defined in UTL_Scope simply return the node -// and don't do a thing. These members are simply dummies to retain -// compatibility with pre-two-pass compiler back-ends. - -AST_PredefinedType *UTL_Scope::add_predefined_type(AST_PredefinedType *p) -{ - if (p == NULL) return NULL; - p->set_added(I_TRUE); - return p; -} - -AST_Module *UTL_Scope::add_module(AST_Module *m) -{ - if (m == NULL) return NULL; - m->set_added(I_TRUE); - return m; -} - -AST_Interface *UTL_Scope::add_interface(AST_Interface *i) -{ - if (i == NULL) return NULL; - i->set_added(I_TRUE); - return i; -} - -AST_InterfaceFwd *UTL_Scope::add_interface_fwd(AST_InterfaceFwd *i) -{ - if (i == NULL) return NULL; - i->set_added(I_TRUE); - return i; -} - -AST_Exception *UTL_Scope::add_exception(AST_Exception *e) -{ - if (e == NULL) return NULL; - e->set_added(I_TRUE); - return e; -} - -AST_Constant *UTL_Scope::add_constant(AST_Constant *c) -{ - if (c == NULL) return NULL; - c->set_added(I_TRUE); - return c; -} - -UTL_StrList *UTL_Scope::add_context(UTL_StrList *c) -{ - return c; -} - -UTL_NameList *UTL_Scope::add_exceptions(UTL_NameList *e) -{ - return e; -} - -AST_Attribute *UTL_Scope::add_attribute(AST_Attribute *a) -{ - if (a == NULL) return NULL; - a->set_added(I_TRUE); - if (!a->field_type()->added()) { - return add_type(a->field_type()) ? a : 0 ; - } else - return a; -} - -AST_Operation *UTL_Scope::add_operation(AST_Operation *o) -{ - if (o == NULL) return NULL; - o->set_added(I_TRUE); - if (!o->return_type()->added()) { - return add_type(o->return_type()) ? o : 0 ; - } else - return o; -} - -AST_Argument *UTL_Scope::add_argument(AST_Argument *a) -{ - if (a == NULL) return NULL; - a->set_added(I_TRUE); - if (!a->field_type()->added()) { - return add_type(a->field_type()) ? a : 0 ; - } else - return a; -} - -AST_Union *UTL_Scope::add_union(AST_Union *u) -{ - if (u == NULL) return NULL; - u->set_added(I_TRUE); - return u; -} - -AST_UnionBranch *UTL_Scope::add_union_branch(AST_UnionBranch *u) -{ - if (u == NULL) return NULL; - u->set_added(I_TRUE); - if (!u->field_type()->added()) { - return add_type(u->field_type()) ? u : 0 ; - } else - return u; -} - -AST_Structure *UTL_Scope::add_structure(AST_Structure *s) -{ - if (s == NULL) return NULL; - s->set_added(I_TRUE); - return s; -} - -AST_Field *UTL_Scope::add_field(AST_Field *f) -{ - if (f == NULL) return NULL; - f->set_added(I_TRUE); - if (!f->field_type()->added()) { - return add_type(f->field_type()) ? f : 0 ; - } else - return f; -} - -AST_Enum *UTL_Scope::add_enum(AST_Enum *e) -{ - if (e == NULL) return NULL; - e->set_added(I_TRUE); - return e; -} - -AST_EnumVal *UTL_Scope::add_enum_val(AST_EnumVal *e) -{ - if (e == NULL) return NULL; - e->set_added(I_TRUE); - return e; -} - -AST_Typedef *UTL_Scope::add_typedef(AST_Typedef *t) -{ - if (t == NULL) return NULL; - t->set_added(I_TRUE); - if (!t->base_type()->added()) { - return add_type(t->base_type()) ? t : 0 ; - } else - return t; -} - -AST_Sequence *UTL_Scope::add_sequence(AST_Sequence *s) -{ - if (s == NULL) return NULL; - s->set_added(I_TRUE); - if (!s->base_type()->added()) { - return add_type(s->base_type()) ? s : 0 ; - } else - return s; -} - -AST_String *UTL_Scope::add_string(AST_String *s) -{ - if (s == NULL) return NULL; - s->set_added(I_TRUE); - return s; -} - -AST_Array *UTL_Scope::add_array(AST_Array *a) -{ - if (a == NULL) return NULL; - a->set_added(I_TRUE); - if (!a->base_type()->added()) { - return add_type(a->base_type()) ? a : 0 ; - } else - return a; -} - -AST_Native *UTL_Scope::add_native (AST_Native *n) -{ - if (n == NULL) return NULL; - n->set_added (I_TRUE); - return n; -} - -// Protected Front End Scope Management Protocol -// -// All members of the protocol defined in UTL_Scope simply return NULL -// and don't do a thing. This ensures that runtime errors will discover -// operations which should have been redefined to allow certain kinds of -// AST nodes to appear in a given context - -AST_PredefinedType *UTL_Scope::fe_add_predefined_type(AST_PredefinedType *) -{ - return NULL; -} - -AST_Module *UTL_Scope::fe_add_module(AST_Module *) -{ - return NULL; -} - -AST_Interface *UTL_Scope::fe_add_interface(AST_Interface *) -{ - return NULL; -} - -AST_InterfaceFwd *UTL_Scope::fe_add_interface_fwd(AST_InterfaceFwd *) -{ - return NULL; -} - -AST_Exception *UTL_Scope::fe_add_exception(AST_Exception *) -{ - return NULL; -} - -AST_Constant *UTL_Scope::fe_add_constant(AST_Constant *) -{ - return NULL; -} - -UTL_StrList *UTL_Scope::fe_add_context(UTL_StrList *) -{ - return NULL; -} - -UTL_NameList *UTL_Scope::fe_add_exceptions(UTL_NameList *) -{ - return NULL; -} - -AST_Attribute *UTL_Scope::fe_add_attribute(AST_Attribute *) -{ - return NULL; -} - -AST_Operation *UTL_Scope::fe_add_operation(AST_Operation *) -{ - return NULL; -} - -AST_Argument *UTL_Scope::fe_add_argument(AST_Argument *) -{ - return NULL; -} - -AST_Union *UTL_Scope::fe_add_union(AST_Union *) -{ - return NULL; -} - -AST_UnionBranch *UTL_Scope::fe_add_union_branch(AST_UnionBranch *) -{ - return NULL; -} - -AST_Structure *UTL_Scope::fe_add_structure(AST_Structure *) -{ - return NULL; -} - -AST_Field *UTL_Scope::fe_add_field(AST_Field *) -{ - return NULL; -} - -AST_Enum *UTL_Scope::fe_add_enum(AST_Enum *) -{ - return NULL; -} - -AST_EnumVal *UTL_Scope::fe_add_enum_val(AST_EnumVal *) -{ - return NULL; -} - -AST_Typedef *UTL_Scope::fe_add_typedef(AST_Typedef *) -{ - return NULL; -} - -AST_Sequence *UTL_Scope::fe_add_sequence(AST_Sequence *) -{ - return NULL; -} - -AST_String *UTL_Scope::fe_add_string(AST_String *) -{ - return NULL; -} - -AST_Array *UTL_Scope::fe_add_array(AST_Array *) -{ - return NULL; -} - -AST_Native *UTL_Scope::fe_add_native (AST_Native *) -{ - return NULL; -} - -// This is the second pass of the front end -// It calls the public add protocol on everything in scope. -// It calls the add_xx functions of the most derived AST_Node. - -AST_Decl *UTL_Scope::call_add() -{ - AST_Decl *result = NULL; - AST_Decl *decl; - - UTL_ScopeActiveIterator *i; - UTL_Scope *scope; - - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_decls); - while(!(i->is_done())) { - decl = i->item(); - scope = 0; - switch (decl->node_type()) { - case AST_Decl::NT_argument: - result = add_argument(AST_Argument::narrow_from_decl(decl)); - break; - case AST_Decl::NT_array: - result = add_array(AST_Array::narrow_from_decl(decl)); - break; - case AST_Decl::NT_attr: - result = add_attribute(AST_Attribute::narrow_from_decl(decl)); - break; - case AST_Decl::NT_const: - result = add_constant(AST_Constant::narrow_from_decl(decl)); - break; - case AST_Decl::NT_enum: - scope = AST_Enum::narrow_from_decl(decl); - result = add_enum(AST_Enum::narrow_from_decl(decl)); - break; - case AST_Decl::NT_enum_val: - result = add_enum_val(AST_EnumVal::narrow_from_decl(decl)); - break; - case AST_Decl::NT_except: - scope = AST_Exception::narrow_from_decl(decl); - result = add_exception(AST_Exception::narrow_from_decl(decl)); - break; - case AST_Decl::NT_field: - result = add_field(AST_Field::narrow_from_decl(decl)); - break; - case AST_Decl::NT_interface: - scope = AST_Interface::narrow_from_decl(decl); - result = add_interface(AST_Interface::narrow_from_decl(decl)); - break; - case AST_Decl::NT_interface_fwd: - result = add_interface_fwd(AST_InterfaceFwd::narrow_from_decl(decl)); - break; - case AST_Decl::NT_module: - scope = AST_Module::narrow_from_decl(decl); - result = add_module(AST_Module::narrow_from_decl(decl)); - break; - case AST_Decl::NT_native: - result = add_native (AST_Native::narrow_from_decl(decl)); - break; - case AST_Decl::NT_op: - result = add_operation(AST_Operation::narrow_from_decl(decl)); - scope = AST_Operation::narrow_from_decl(decl); - break; - case AST_Decl::NT_pre_defined: - result = - add_predefined_type(AST_PredefinedType::narrow_from_decl(decl)); - break; - case AST_Decl::NT_sequence: - result = add_sequence(AST_Sequence::narrow_from_decl(decl)); - break; - case AST_Decl::NT_string: - result = add_string(AST_String::narrow_from_decl(decl)); - break; - case AST_Decl::NT_struct: - result = add_structure(AST_Structure::narrow_from_decl(decl)); - scope = AST_Structure::narrow_from_decl(decl); - break; - case AST_Decl::NT_typedef: - result = add_typedef(AST_Typedef::narrow_from_decl(decl)); - break; - case AST_Decl::NT_union: - result = add_union(AST_Union::narrow_from_decl(decl)); - scope = AST_Union::narrow_from_decl(decl); - break; - case AST_Decl::NT_union_branch: - result = add_union_branch(AST_UnionBranch::narrow_from_decl(decl)); - break; - default: - return NULL; - } - if (scope) - scope->call_add(); - i->next(); - } - return result; -} - -// Private lookup mechanism - -/* - * Lookup the node for a primitive (built in) type - */ -AST_Decl * -UTL_Scope::lookup_primitive_type(AST_Expression::ExprType et) -{ - AST_Decl *as_decl; - UTL_Scope *ancestor; - AST_PredefinedType *t; - UTL_ScopeActiveIterator *i; - AST_PredefinedType::PredefinedType pdt; - - as_decl = ScopeAsDecl(this); - if (as_decl == NULL) - return NULL; - ancestor = as_decl->defined_in(); - if (ancestor != NULL) - return ancestor->lookup_primitive_type(et); - - switch (et) { - case AST_Expression::EV_short: - pdt = AST_PredefinedType::PT_short; - break; - case AST_Expression::EV_ushort: - pdt = AST_PredefinedType::PT_ushort; - break; - case AST_Expression::EV_long: - pdt = AST_PredefinedType::PT_long; - break; - case AST_Expression::EV_ulong: - pdt = AST_PredefinedType::PT_ulong; - break; - case AST_Expression::EV_longlong: - pdt = AST_PredefinedType::PT_longlong; - break; - case AST_Expression::EV_ulonglong: - pdt = AST_PredefinedType::PT_ulonglong; - break; - case AST_Expression::EV_float: - pdt = AST_PredefinedType::PT_float; - break; - case AST_Expression::EV_double: - pdt = AST_PredefinedType::PT_double; - break; - case AST_Expression::EV_longdouble: - pdt = AST_PredefinedType::PT_longdouble; - break; - case AST_Expression::EV_char: - pdt = AST_PredefinedType::PT_char; - break; - case AST_Expression::EV_wchar: - pdt = AST_PredefinedType::PT_wchar; - break; - case AST_Expression::EV_octet: - pdt = AST_PredefinedType::PT_octet; - break; - case AST_Expression::EV_bool: - pdt = AST_PredefinedType::PT_boolean; - break; - case AST_Expression::EV_any: - pdt = AST_PredefinedType::PT_any; - break; - case AST_Expression::EV_void: - pdt = AST_PredefinedType::PT_void; - break; - case AST_Expression::EV_string: - case AST_Expression::EV_wstring: - case AST_Expression::EV_none: - default: - return NULL; - } - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_decls); - while (!(i->is_done())) { - as_decl = i->item(); - if (as_decl->node_type() == AST_Decl::NT_pre_defined) { - t = AST_PredefinedType::narrow_from_decl(as_decl); - if (t == NULL) { - i->next(); - continue; - } - if (t->pt() == pdt) { - delete i; - return t; - } - } - i->next(); - } - delete i; - return NULL; -} - -/* - * Look through inherited interfaces - */ -AST_Decl * -UTL_Scope::look_in_inherited(UTL_ScopedName *e, idl_bool treat_as_ref) -{ - AST_Decl *d = NULL; - AST_Interface *i = AST_Interface::narrow_from_scope(this); - AST_Interface **is; - long nis; - - /* - * This scope is not an interface.. - */ - if (i == NULL) - return NULL; - /* - * Can't look in an interface which was not yet defined - */ - if (!i->is_defined()) { - idl_global->err()->fwd_decl_lookup(i, e); - return NULL; - } - /* - * OK, loop through inherited interfaces. Stop when you find it - */ - for (nis = i->n_inherits(), is = i->inherits(); nis > 0; nis--, is++) { - d = (*is)->lookup_by_name(e, treat_as_ref); - if (d != NULL) - return d; - } - /* - * Not found - */ - return NULL; -} - -/* - * Look up a String * in local scope only - */ -AST_Decl * -UTL_Scope::lookup_by_name_local(Identifier *e, idl_bool) -{ - UTL_ScopeActiveIterator *i = new UTL_ScopeActiveIterator(this, - UTL_Scope::IK_both); - AST_Decl *d; - AST_InterfaceFwd *fwd; - - /* - * Iterate over this scope - */ - while (!(i->is_done())) { - d = i->item(); - if (d->local_name() != NULL && d->local_name()->compare(e)) { - delete i; - /* - * Special case for forward declared interfaces. Look through the - * forward declaration and retrieve the full definition - */ - if (d->node_type() == AST_Decl::NT_interface_fwd) { - fwd = AST_InterfaceFwd::narrow_from_decl(d); - if (fwd == NULL) - d = NULL; - else - d = fwd->full_definition(); - } - return d; - } - i->next(); - } - /* - * OK, not found, return NULL - */ - return NULL; -} - -/* - * Implements lookup by name for scoped names - */ -AST_Decl * -UTL_Scope::lookup_by_name(UTL_ScopedName *e, idl_bool treat_as_ref) -{ - AST_Decl *d; - UTL_Scope *t = NULL; - - /* - * Empty name? error - */ - if (e == NULL) { - return NULL; - } - /* - * If name starts with "::" or "" start look up in global scope - */ - if (is_global_name(e->head())) { - /* - * Get parent scope - */ - d = ScopeAsDecl(this); - if (d == NULL) - return NULL; - t = d->defined_in(); - /* - * If this is the global scope.. - */ - if (t == NULL) { - /* - * Look up tail of name starting here - */ - d = lookup_by_name((UTL_ScopedName *) e->tail(), treat_as_ref); - /* - * Now return whatever we have - */ - return d; - } - /* - * OK, not global scope yet, so simply iterate with parent scope - */ - d = t->lookup_by_name(e, treat_as_ref); - /* - * If treat_as_ref is true and d is not NULL, add d to - * set of nodes referenced here - */ - if (treat_as_ref && d != NULL) - add_to_referenced(d, I_FALSE); - /* - * Now return what we have - */ - return d; - } - /* - * The name does not start with "::" - * - * Is name defined here? - */ - d = lookup_by_name_local(e->head(), treat_as_ref); - if (d == NULL) { - /* - * OK, not found. Go down parent scope chain. - */ - d = ScopeAsDecl(this); - if (d != NULL) { - t = d->defined_in(); - if (t == NULL) - d = NULL; - else - d = t->lookup_by_name(e, treat_as_ref); - } - /* - * Special case for scope which is an interface. We have to look - * in the inherited interfaces as well.. - */ - if (d == NULL) { - if (pd_scope_node_type == AST_Decl::NT_interface) - d = look_in_inherited(e, treat_as_ref); - } - /* - * If treat_as_ref is true and d is not NULL, add d to - * set of nodes referenced here - */ - if (treat_as_ref && d != NULL) - add_to_referenced(d, I_FALSE); - /* - * OK, now return whatever we found - */ - return d; - } - /* - * OK, start of name is defined. Now loop doing local lookups - * of subsequent elements of the name - */ - d = iter_lookup_by_name_local(d, e, treat_as_ref); - /* - * If treat_as_ref is true and d is not NULL, add d to set - * of nodes referenced here. - */ - if (treat_as_ref && d != NULL) - add_to_referenced(d, I_FALSE); - /* - * All OK, name fully resolved - */ - return d; -} - -// Add a node to set of nodes referenced in this scope -void -UTL_Scope::add_to_referenced(AST_Decl *e, idl_bool recursive) -{ - UTL_Scope *s; - AST_Decl **tmp; - AST_Interface *itf; - long oreferenced_allocated; - long i; - - if (e == NULL) return; - - // Special case for forward declared interfaces in the - // scope in which they're defined. Cannot add before full - // definition is seen - if (e->node_type() == AST_Decl::NT_interface) { - itf = AST_Interface::narrow_from_decl(e); - if (itf != NULL && itf->defined_in() == this && !itf->is_defined()) - return; - } - // Only insert if it is not there already - if (referenced(e)) - return; - - // Make sure there's space for one more - if (pd_referenced_allocated == pd_referenced_used) { - - oreferenced_allocated = pd_referenced_allocated; - pd_referenced_allocated += INCREMENT; - tmp = new AST_Decl *[pd_referenced_allocated]; - - for (i = 0; i < oreferenced_allocated; i++) - tmp[i] = pd_referenced[i]; - - delete []pd_referenced; - - pd_referenced = tmp; - } - - // Insert new reference - pd_referenced[pd_referenced_used++] = e; - - // Now, if recursive is specified and "this" is not a common ancestor - // of the referencing scope and the scope of definition of "e" then - // add "e" to the set of referenced nodes in the parent of "this" - if (recursive && !(e->has_ancestor(ScopeAsDecl(this)))) { - s = e->defined_in(); - if (s != NULL) - s->add_to_referenced(e, recursive); - } -} - -// Add a node to set of nodes declared in this scope -void -UTL_Scope::add_to_scope(AST_Decl *e) -{ - AST_Decl **tmp; - long odecls_allocated; - long i; - - if (e == NULL) return; - - // Make sure there's space for one more - if (pd_decls_allocated == pd_decls_used) { - - odecls_allocated = pd_decls_allocated; - pd_decls_allocated += INCREMENT; - tmp = new AST_Decl *[pd_decls_allocated]; - - for (i = 0; i < odecls_allocated; i++) - tmp[i] = pd_decls[i]; - - delete []pd_decls; - - pd_decls = tmp; - } - - // Insert new decl - pd_decls[pd_decls_used++] = e; -} - -// Add a node to set of nodes representing manifest types defined in this scope -void -UTL_Scope::add_to_local_types(AST_Decl *e) -{ - AST_Decl **tmp; - long olocals_allocated; - long i; - - if (e == NULL) return; - - // Make sure there's space for one more - if (pd_locals_allocated == pd_locals_used) { - - olocals_allocated = pd_locals_allocated; - pd_locals_allocated += INCREMENT; - tmp = new AST_Decl *[pd_locals_allocated]; - - for (i = 0; i < olocals_allocated; i++) - tmp[i] = pd_local_types[i]; - - delete []pd_local_types; - - pd_local_types = tmp; - } - - // Insert new decl - pd_local_types[pd_locals_used++] = e; -} - -// Has this node been referenced here before? -idl_bool -UTL_Scope::referenced(AST_Decl *e) -{ - long i = pd_referenced_used; - AST_Decl **tmp = pd_referenced; - - for (; i > 0; i--, tmp++) - if (*tmp == e) // Same node? - return I_TRUE; - - return I_FALSE; // Not found -} - -/* - * Redefinition of inherited virtual operations - */ - -// AST Dumping -void -UTL_Scope::dump(ostream &o) -{ - UTL_ScopeActiveIterator *i; - AST_Decl *d; - - if (idl_global->indent() == NULL) - idl_global->set_indent(new UTL_Indenter()); - - idl_global->indent()->increase(); - - if (pd_locals_used > 0) { - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_localtypes); - - o << GTDEVEL("\n/* Locally defined types: */\n"); - while (!(i->is_done())) { - d = i->item(); - if (!d->imported()) { - idl_global->indent()->skip_to(o); - d->dump(o); - o << "\n"; - } - i->next(); - } - delete i; - } - - if (pd_decls_used > 0) { - i = new UTL_ScopeActiveIterator(this, UTL_Scope::IK_decls); - - o << GTDEVEL("\n/* Declarations: */\n"); - while (!(i->is_done())) { - d = i->item(); - if (!d->imported()) { - idl_global->indent()->skip_to(o); - d->dump(o); - o << ";\n"; - } - i->next(); - } - delete i; - } - - idl_global->indent()->decrease(); -} - -// How many entries are defined? -unsigned long -UTL_Scope::nmembers() -{ - return pd_decls_used; -} - -// UTL_SCOPE_ACTIVE_ITERATOR - -/* - * Constructor - */ - -UTL_ScopeActiveIterator::UTL_ScopeActiveIterator( - UTL_Scope *s, - UTL_Scope::ScopeIterationKind i) - : iter_source(s), - ik(i), - stage(i == UTL_Scope::IK_both - ? UTL_Scope::IK_decls - : i), - il(0) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Advance to next iterm -void -UTL_ScopeActiveIterator::next() -{ - il++; -} - -// Get current item -AST_Decl * -UTL_ScopeActiveIterator::item() -{ - if (is_done()) - return NULL; - if (stage == UTL_Scope::IK_decls) - return iter_source->pd_decls[il]; - if (stage == UTL_Scope::IK_localtypes) - return iter_source->pd_local_types[il]; - - return NULL; -} - -// Is this iteration done? -idl_bool -UTL_ScopeActiveIterator::is_done() -{ - long limit; - - limit = (stage == UTL_Scope::IK_decls) - ? iter_source->pd_decls_used - : iter_source->pd_locals_used; - - for (;;) { - if (il < limit) // Last element? - return I_FALSE; - if (stage == UTL_Scope::IK_localtypes) // Already done local types? - return I_TRUE; - if (ik == UTL_Scope::IK_decls) // Only want decls? - return I_TRUE; - - // Switch to next stage - stage = UTL_Scope::IK_localtypes; - il = 0; - limit = iter_source->pd_locals_used; - } -} - -// What kind of iterator is this? -UTL_Scope::ScopeIterationKind -UTL_ScopeActiveIterator::iteration_kind() -{ - return ik; -} - -// And where are we in the iteration? -UTL_Scope::ScopeIterationKind -UTL_ScopeActiveIterator::iteration_stage() -{ - return stage; -} diff --git a/TAO/TAO_IDL/util/utl_stack.cpp b/TAO/TAO_IDL/util/utl_stack.cpp deleted file mode 100644 index 2e70c1bb7c5..00000000000 --- a/TAO/TAO_IDL/util/utl_stack.cpp +++ /dev/null @@ -1,258 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -/* - * utl_stack.cc - Implementation of class UTL_ScopeStack - */ - -#include "idl.h" -#include "ast_decl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_stack, "$Id$") - -// Class UTL_ScopeStack - -#undef INCREMENT -#define INCREMENT 64 - -/* - * Constructor(s) and destructor - */ - -UTL_ScopeStack::UTL_ScopeStack() - : pd_stack_data(new UTL_Scope *[INCREMENT]), - pd_stack_data_nalloced(INCREMENT), - pd_stack_top(0) -{ -} - -UTL_ScopeStack::~UTL_ScopeStack() -{ - if (pd_stack_data != NULL) - delete pd_stack_data; -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Push an element on the stack -UTL_ScopeStack * -UTL_ScopeStack::push(UTL_Scope *el) -{ - UTL_Scope **tmp; - AST_Decl *d = ScopeAsDecl(el); - long ostack_data_nalloced; - long i; - - // Macro to avoid "warning: unused parameter" type warning. - ACE_UNUSED_ARG (d); - - // Make sure there's space for one more - if (pd_stack_data_nalloced == pd_stack_top) { - ostack_data_nalloced = pd_stack_data_nalloced; - pd_stack_data_nalloced += INCREMENT; - tmp = new UTL_Scope *[pd_stack_data_nalloced]; - - for (i = 0; i < ostack_data_nalloced; i++) - tmp[i] = pd_stack_data[i]; - - delete []pd_stack_data; - pd_stack_data = tmp; - } - - // Insert new scope - pd_stack_data[pd_stack_top++] = el; - - return this; -} - -// Pop an element from the stack -void -UTL_ScopeStack::pop() -{ - if (pd_stack_top <= 0) - return; - pd_stack_data[--pd_stack_top]; -} - -// Return top element on stack -UTL_Scope * -UTL_ScopeStack::top() -{ - if (pd_stack_top <= 0) - return NULL; - return pd_stack_data[pd_stack_top - 1]; -} - -// Return bottom element on stack -UTL_Scope * -UTL_ScopeStack::bottom() -{ - if (pd_stack_top == 0) - return NULL; - return pd_stack_data[0]; -} - -// Clear entire stack -void -UTL_ScopeStack::clear() -{ - pd_stack_top = 0; -} - -// How deep is the stack? -unsigned long -UTL_ScopeStack::depth() -{ - return pd_stack_top; -} - -// Return (top - 1) element on stack -UTL_Scope * -UTL_ScopeStack::next_to_top() -{ - UTL_Scope *tmp, *retval; - - if (depth() < 2) - return NULL; - - tmp = top(); // Save top - (void) pop(); // Pop it - retval = top(); // Get next one down - (void) push(tmp); // Push top back - return retval; // Return next one down -} - -// Return topmost non-NULL element -UTL_Scope * -UTL_ScopeStack::top_non_null() -{ - long i; - - for (i = pd_stack_top - 1; i >= 0; i--) - if (pd_stack_data[i] != NULL) - return pd_stack_data[i]; - return NULL; -} - -/* - * Redefinition of inherited virtual operations - */ - -// Class UTL_ScopeStackActiveIterator - -/* - * Constructor(s) - */ - -UTL_ScopeStackActiveIterator::UTL_ScopeStackActiveIterator(UTL_ScopeStack *s) - : source(s), - il(s->pd_stack_top - 1) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Advance to next item -void -UTL_ScopeStackActiveIterator::next() -{ - il--; -} - -// Get current item -UTL_Scope * -UTL_ScopeStackActiveIterator::item() -{ - if (il >= 0) - return source->pd_stack_data[il]; - return NULL; -} - -// Is this iteration done? -long -UTL_ScopeStackActiveIterator::is_done() -{ - if (il >= 0) - return I_FALSE; - return I_TRUE; -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp deleted file mode 100644 index 692c5ba37a6..00000000000 --- a/TAO/TAO_IDL/util/utl_string.cpp +++ /dev/null @@ -1,214 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_string.cc - Implementation of quick and dirty TEMPORARY String -// for IDL compiler - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_string, "$Id$") - -/* - * Constructors - */ - -UTL_String::UTL_String (void) - : p_str (NULL), - len (0), - alloced (0) -{ -} - -UTL_String::UTL_String (char *str) -{ - if (str == NULL) - { - len = alloced = 0; - p_str = c_str = NULL; - } - else - { - len = ACE_OS::strlen (str); - alloced = len + 1; - p_str = new char [alloced]; - c_str = new char [alloced]; - ACE_OS::strcpy (p_str, str); - canonicalize (); - } -} - -UTL_String::UTL_String (unsigned long maxlen) -{ - len = maxlen; - alloced = maxlen + 1; - p_str = new char [alloced]; - c_str = new char [alloced]; - p_str[0] = '\0'; - c_str[0] = '\0'; -} - -UTL_String::UTL_String (UTL_String *s) -{ - char *b; - - if (s == NULL) - { - p_str = c_str = NULL; - alloced = len = 0; - } - else - { - b = s->get_string (); - if (b == NULL) - { - p_str = c_str = NULL; - alloced = len = 0; - } - else - { - len = ACE_OS::strlen (b); - alloced = len + 1; - p_str = new char [alloced]; - c_str = new char [alloced]; - ACE_OS::strcpy (p_str, b); - canonicalize (); - } - } -} - -/* - * Private operations - */ - -// Compute a canonical form for this string. This is (implemented as) -// a corresponding string with all upper case characters where the -// original has lower case characters, identical characters otherwise. -void -UTL_String::canonicalize (void) -{ - unsigned long i; - - for (i = 0; i < len; i++) - c_str[i] = isalpha (p_str[i]) ? toupper (p_str[i]) : p_str[i]; - - c_str[i] = '\0'; -} - -/* - * Public operations - */ - -// Compare two String * -long -UTL_String::compare (UTL_String *s) -{ - char *s_c_str; - long result; - - if (c_str == NULL || s == NULL || (s_c_str = s->get_canonical_rep ()) == NULL) - result = I_FALSE; - else - result = (ACE_OS::strcmp (c_str, s_c_str) == 0) ? I_TRUE : I_FALSE; - - /* - * Check that the names are typed consistently - */ - if (result == I_TRUE && ACE_OS::strcmp (p_str, s->get_string ()) != 0) - idl_global->err ()->name_case_error (p_str, s->get_string ()); - - return result; -} - -// Get the char * from a String -char * -UTL_String::get_string (void) -{ - return p_str; -} - -// Get the canonical representation from a String -char * -UTL_String::get_canonical_rep (void) -{ - if (c_str == NULL) - { - c_str = new char [alloced]; - canonicalize (); - } - return c_str; -} - -/* - * Redefined virtual operations - */ - -// AST Dumping -void -UTL_String::dump (ostream &o) -{ - o << p_str; -} diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp deleted file mode 100644 index 115a9b04898..00000000000 --- a/TAO/TAO_IDL/util/utl_strlist.cpp +++ /dev/null @@ -1,198 +0,0 @@ -// $Id$ - -/* - -COPYRIGHT - -Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United -States of America. All Rights Reserved. - -This product is protected by copyright and distributed under the following -license restricting its use. - -The Interface Definition Language Compiler Front End (CFE) is made -available for your use provided that you include this license and copyright -notice on all media and documentation and the software program in which -this product is incorporated in whole or part. You may copy and extend -functionality (but may not remove functionality) of the Interface -Definition Language CFE without charge, but you are not authorized to -license or distribute it to anyone else except as part of a product or -program developed by you or with the express written consent of Sun -Microsystems, Inc. ("Sun"). - -The names of Sun Microsystems, Inc. and any of its subsidiaries or -affiliates may not be used in advertising or publicity pertaining to -distribution of Interface Definition Language CFE as permitted herein. - -This license is effective until terminated by Sun for failure to comply -with this license. Upon termination, you shall destroy or return all code -and documentation for the Interface Definition Language CFE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF -ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS -FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF -DEALING, USAGE OR TRADE PRACTICE. - -INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT -ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES -TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. - -SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH -RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY -INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF. - -IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR -ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL -DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -Use, duplication, or disclosure by the government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR -52.227-19. - -Sun, Sun Microsystems and the Sun logo are trademarks or registered -trademarks of Sun Microsystems, Inc. - -SunSoft, Inc. -2550 Garcia Avenue -Mountain View, California 94043 - -NOTE: - -SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are -trademarks or registered trademarks of Sun Microsystems, Inc. - - */ - -// utl_strlist.cc -// -// Implementation of a list of utl_string nodes - -// NOTE: This list class only works correctly because we use single public -// inheritance, as opposed to multiple inheritance or public virtual. -// It relies on a type-unsafe cast from UTL_List to subclasses, which -// will cease to operate correctly if you use either multiple or -// public virtual inheritance. -// -// For portability reasons we have decided to provide both this and -// an implementation of the list classes in terms of templates. If -// your compiler supports templates, please use the files in the -// include/utl_tmpl and util/utl_tmpl directories instead of the -// files by the same names in the include and util directories. - -#include "idl.h" -#include "idl_extern.h" - -ACE_RCSID(util, utl_strlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_StrList::UTL_StrList(String *s, UTL_StrList *cdr) - : UTL_List(cdr), - pd_car_data(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get list item -String * -UTL_StrList::head() -{ - return pd_car_data; -} - -// Set list item -void -UTL_StrList::set_head(String *s) -{ - pd_car_data = s; -} - -// Get last item of this list -String * -UTL_StrList::last_component() -{ - if (tail() == NULL) - return pd_car_data; - return ((UTL_StrList *) tail())->last_component(); -} - -// Copy a list -UTL_List * -UTL_StrList::copy() -{ - if (tail() == NULL) - return new UTL_StrList(head(), NULL); - return new UTL_StrList(head(), (UTL_StrList *) tail()->copy()); -} - -// AST Dumping -void -UTL_StrList::dump(ostream &o) -{ - char *s; - UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator(this); - idl_bool first = I_TRUE; - idl_bool second = I_FALSE; - - while (!(i->is_done())) { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - s = i->item()->get_string(); - o << s; - if (first) { - if (strcmp(s, "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next(); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_StrList active iterator - -/* - * Constructor - */ - -UTL_StrlistActiveIterator::UTL_StrlistActiveIterator(UTL_StrList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get current item -String * -UTL_StrlistActiveIterator::item() -{ - if (source == NULL) - return NULL; - return ((UTL_StrList *) source)->head(); -} - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp deleted file mode 100644 index 8d15d072d72..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_decllist.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_decllist.cc -// -// Implementation of a list of declarators - -#include -#include - -ACE_RCSID(utl_tmpl, utl_decllist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_DeclList::UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_DeclList active iterator - -/* - * Constructor - */ - -UTL_DecllistActiveIterator::UTL_DecllistActiveIterator(UTL_DeclList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefined inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp deleted file mode 100644 index f9752591fae..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_exceptlist.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_exceptlist.cc -// -// Implementation of a list of exceptions - -#include -#include - -ACE_RCSID(utl_tmpl, utl_exceptlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_ExceptList::UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExceptList active iterator - -/* - * Constructor - */ - -UTL_ExceptlistActiveIterator::UTL_ExceptlistActiveIterator(UTL_ExceptList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp deleted file mode 100644 index 5fb0bfc514c..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_exprlist.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_exprlist.cc -// -// Implementation of a list of strings - -#include -#include - -ACE_RCSID(utl_tmpl, utl_exprlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_ExprList::UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_ExprList active iterator - -/* - * Constructor - */ - -UTL_ExprlistActiveIterator::UTL_ExprlistActiveIterator(UTL_ExprList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp deleted file mode 100644 index 2ed64484720..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp +++ /dev/null @@ -1,139 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_idlist.cc -// -// Implementation of a list of utl_string nodes - -#include -#include - -ACE_RCSID(utl_tmpl, utl_idlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_IdList::UTL_IdList(Identifier *s, UTL_IdList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get last item of this list -Identifier * -UTL_IdList::last_component() -{ - if (tail() == NULL) - return head(); - return tail()->last_component(); -} - -// AST Dumping -void -UTL_IdList::dump(ostream &o) -{ - UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator(this); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done())) { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - i->item()->dump(o); - if (first) { - if (strcmp(i->item()->get_string(), "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next(); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_IdList active iterator - -/* - * Constructor - */ - -UTL_IdListActiveIterator::UTL_IdListActiveIterator(UTL_IdList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp deleted file mode 100644 index 9b71db9b83d..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_labellist.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_labellist.cc -// -// Implementation of a list of scoped names - -#include -#include - -ACE_RCSID(utl_tmpl, utl_labellist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_LabelList::UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_LabelList active iterator - -/* - * Constructor - */ - -UTL_LabellistActiveIterator::UTL_LabellistActiveIterator(UTL_LabelList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp deleted file mode 100644 index 997b1301d41..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp +++ /dev/null @@ -1,213 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_list.cc -// -// Implementation of generic single-linked lists - -#include -#include -#include - -ACE_RCSID(utl_tmpl, utl_list, "$Id$") - -/* - * Constructor(s) - */ - -template -UTL_List::UTL_List(T *c, L *l) - : pd_car_data(c), - pd_cdr_data(l) -{ -} - -/* - * Private operations - */ - -// Compute list length -template -long -UTL_List::list_length(long n) -{ - if (pd_cdr_data == NULL) - return n; - else - return pd_cdr_data->list_length(n+1); -} - -/* - * Public operations - */ - -// Smash last cdr with l -template -void -UTL_List::nconc(L *l) -{ - if (pd_cdr_data == NULL) - pd_cdr_data = l; - else - pd_cdr_data->nconc(l); -} - -/* - * Override this operation to copy lists of other types - */ -// Copy a list -template -L * -UTL_List::copy() -{ - if (pd_cdr_data == NULL) - return new L(head(), NULL); - return new L(head(), pd_cdr_data->copy()); -} - -// Get list item -template -T * -UTL_List::head() -{ - return pd_car_data; -} - -// Get next list -template -L * -UTL_List::tail() -{ - return pd_cdr_data; -} - -// Set list item -template -void -UTL_List::set_head(T *s) -{ - pd_car_data = s; -} - -// Set next list -template -void -UTL_List::set_tail(L *l) -{ - pd_cdr_data = l; -} - -// Compute list length -template -long -UTL_List::length() -{ - return list_length(1); -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_List active iterator - -/* - * Constructor - */ - -template -UTL_ListActiveIterator::UTL_ListActiveIterator(UTL_List *s) - : source(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Is iterator done? -template -long -UTL_ListActiveIterator::is_done() -{ - return (source == NULL) ? I_TRUE : I_FALSE; -} - -// Get current item -template -T * -UTL_ListActiveIterator::item() -{ - if (source == NULL) - return NULL; - return source->head(); -} - -// Advance to next item -template -void -UTL_ListActiveIterator::next() -{ - if (source != NULL) - source = source->tail(); -} - -/* - * Redefinition of inherited operations - */ - diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp deleted file mode 100644 index f181d60648a..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_namelist.cpp +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_namelist.cc -// -// Implementation of a list of scoped names - -#include -#include - -ACE_RCSID(utl_tmpl, utl_namelist, "$Id$") - -typedef UTL_List _dummy_; - -/* - * Constructor(s) - */ - -UTL_NameList::UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_NameList active iterator - -/* - * Constructor - */ - -UTL_NamelistActiveIterator::UTL_NamelistActiveIterator(UTL_NameList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp deleted file mode 100644 index 2d79f76a3b1..00000000000 --- a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp +++ /dev/null @@ -1,141 +0,0 @@ -// $Id$ - -/* - *====================================================================== - * - *Copyright 1992 Sun Microsystems, Inc. - * - *The Interface Definition Language Compiler Front End (CFE) is made - *available for use provided that this legend is included on all media and - *documentation and as a part of the software program in whole or part. - *Users may copy and extend functionality (but may not remove - *functionality) of the Interface Definition Language CFE without charge, - *but are not authorized to license or distribute it to anyone else except - *as part of a product or program developed by the user or with the express - *written consent of Sun Microsystems, Inc. - * - *The names of Sun Microsystems, Inc. and any of its subsidiaries may not - *be used in advertising or publicity pertaining to distribution of - *Interface Definition Language CFE as permitted herein. - * - *The Interface Definition Language CFE may not be exported outside the - *United States without first obtaining the appropriate government - *approvals. - * - *INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES - *OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND - *FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A - *COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - *Interface Definition Language CFE is provided with no support and - *without any obligation on the part of Sun Microsystems, Inc. or any of - *its subsidiaries or affiliates to assist in its use, correction, - *modification or enhancement. - * - *SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL - *HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE - *SECRETS OR ANY PATENTS BY INTERFACE DEFINITION LANGUAGE CFE OR ANY PART - *THEREOF. - * - *IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS SUBSIDIARIES OR - *AFFILIATES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, - *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE - *POSSIBILITY OF SUCH DAMAGES. - * - *SunSoft, Inc. - *2550 Garcia Avenue - *Mountain View, California 94043 - * - * - * - * - *====================================================================== - */ - -// utl_strlist.cc -// -// Implementation of a list of utl_string nodes - -#include -#include - -ACE_RCSID(utl_tmpl, utl_strlist, "$Id$") - -/* - * Constructor(s) - */ - -UTL_StrList::UTL_StrList(String *s, UTL_StrList *cdr) - : UTL_List(s, cdr) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -// Get last item of this list -String * -UTL_StrList::last_component() -{ - if (tail() == NULL) - return head(); - return tail()->last_component(); -} - -// AST Dumping -void -UTL_StrList::dump(ostream &o) -{ - char *s; - UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator(this); - long first = I_TRUE; - long second = I_FALSE; - - while (!(i->is_done())) { - if (!first) - o << "::"; - else if (second) - first = second = I_FALSE; - s = i->item()->get_string(); - o << s; - if (first) { - if (strcmp(s, "::") != 0) - first = I_FALSE; - else - second = I_TRUE; - } - i->next(); - } -} - -/* - * Redefinition of inherited virtual operations - */ - -// UTL_StrList active iterator - -/* - * Constructor - */ - -UTL_StrlistActiveIterator::UTL_StrlistActiveIterator(UTL_StrList *s) - : UTL_ListActiveIterator(s) -{ -} - -/* - * Private operations - */ - -/* - * Public operations - */ - -/* - * Redefinition of inherited virtual operations - */ diff --git a/TAO/VERSION b/TAO/VERSION deleted file mode 100644 index de5f18eeb11..00000000000 --- a/TAO/VERSION +++ /dev/null @@ -1,5 +0,0 @@ -This is TAO version 0.2.12, released Fri Sep 18 02:15:23 1998. - -If you have any problems with ACE, please send email to the ACE -mailing list (ace-users@cs.wustl.edu). Make sure to include the -version of ACE/TAO, the OS platform, and the C++ compiler you used. diff --git a/TAO/announcement b/TAO/announcement deleted file mode 100755 index f9d33c28e9e..00000000000 --- a/TAO/announcement +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -VERSION=`cat VERSION` -URL="http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO.tar.gz" - - -cat <<@EOM - -The first official beta release of The ACE ORB (TAO) has been released -by the Distributed Object Computing (DOC) Group at Washington -University in St. Louis. TAO is a freely available CORBA -2.x-compliant ORB with real-time extensions that can be downloaded -from the Internet at - -http://www.cs.wustl.edu/~schmidt/ACE_wrappers/TAO.tar.gz - -$VERSION - -TAO uses IIOP 1.0 as its inter-ORB communication protocol and provides -the first implementation of the OMG's Portable Object Adapter (POA) -specification and latest IDL->C++ mappings. For more information -about the POA, please see - -http://www.cs.wustl.edu/~schmidt/C++-report-col11.ps.gz -http://www.cs.wustl.edu/~schmidt/C++-report-col12.ps.gz - -For more information on TAO, please see - -http://www.cs.wustl.edu/~schmidt/TAO.html - -TAO has been ported to a range of OS platforms including Windows NT -4.x using MSVC++ 4.x and 5.x, several versions of UNIX (e.g., Solaris -2.x, SGI IRIX 6.x, Linux, SCO, NetBSD, and FreeBSD), and Real-Time -OS's (RTOSs) (e.g., VxWorks and Chorus). Ultimately, TAO will be -ported to all OS platforms on which ACE runs. We have used TAO to -interwork with other ORBs (e.g., Orbix, COOL, CORBAPlus, and -VisiBroker), so we're confident that its IIOP implementation is robust -and interoperable. - -For information on installation and system requirements, please see -http://www.cs.wustl.edu/~schmidt/TAO-INSTALL.html (or INSTALL) in the -root directory of the unpacked tar file. - -Note that ACE is required to build TAO. Typically the most recent -beta release is required, which you can obtain at - -http://www.cs.wustl.edu/~schmidt/ACE.html - -Please see the installation notes for more details. - -Other HTML documentation is available in the '$TAO_ROOT/docs/' -directory. - -We welcome suggestions for improvement, bug fixes, portability -enhancements, etc. If you have any questions or problems with TAO, -please post them to the ACE mailing list (ace-users@cs.wustl.edu) or -send email to Douglas C. Schmidt (schmidt@cs.wustl.edu) and Chris -Cleeland (cleeland@cs.wustl.edu). - -The TAO Team -@EOM diff --git a/TAO/docs/DIFFERENCES b/TAO/docs/DIFFERENCES deleted file mode 100644 index 0a8dd343d4d..00000000000 --- a/TAO/docs/DIFFERENCES +++ /dev/null @@ -1,360 +0,0 @@ -@(#)DIFFERENCES 1.1 95/09/13 - -[ NOTE that the CORBA 2.0 specifications have now been published, but are -not yet sufficiently available that this document can usefully just list -any differences between that specification and this software. As a rule, -there are no differences between this software and CORBA 2.0 in areas -where CORBA 2.0 has specified an interface. ] - - -This document summarizes known differences between what is implemented in -this software and currently available OMG specifications. As a rule, these -establish compatibility with revised specifications that are currently being -prepared for publication. However, in some cases the differences resolve -problems that are currently being addressed by ORB taskforces. When those -revised CORBA specifications are published, this document will be updated to -reflect any remaining differences from them. - -The reason for those changes is that different specifications were adopted -at the same time and there were in some cases subtle differences which need -to be resolved. Minor errata have also been fixed. None of these changes -are substantial, with the exception of the TypeCode interpreter API which -was added to the C++ mapping. - -Also, note that the goal of this software is fidelity to the IIOP, so that -issues relating (in particular) to the C++ language mapping or other OMG -specifications were judged to be of less importance at this time. - - -DIFFERENCES from IIOP in UNO Spec (95-3-10) -------------------------------------------- -Some changes to the original specification (94-9-32) for the IIOP protocol -were found to be necessary; most related to the subsequently adopted Interface -Repository (IFR) specification (94-11-7). Others resulted from correction -of minor editorial errors, and experience gained as multiple teams implement -to that specification. - -The bulk of those changes have been incorporated into the 95-3-10 document, -but these few have not. - - -CDR TYPECODE INDIRECTION - -An additional constraint on the use of typecode indirection has been -identified. Specifically, the typecode to which an indirection points -be "self-sufficient", and may not point "outside of itself" for any -further indirections. For example, always indirections occur within -encapsulations, so it's OK for the indirection to point anywhere in -that encapsulation, or at the encoded TCKind enum value immediately -before the encapsulation's length. For typecode encapsulations nested -inside other typecode encapsulations, the indirection may point no -further than the outermost encapsulation. - -Also, when an indirection points to another typecode, the byte order -of that other typecode must be deduced from the encoded value found -there. This is straightforward for encoded TCKind values, all of which -fit into a single byte: if the first byte of the word is zero, then -the encoding is big-endian, else it's little-endian. - -Indirecting to another indirection is not allowed, since the byte order -of the encoded offset can't consistently be deduced. - - -MISCELLANY - -The type GIOP::Version is assumed to be identical to IIOP::Version. -As part of the editorial separation of GIOP from its Internet version -IIOP, this typedef was accidentally omitted. - -This implementation of IIOP supports the OMG-IDL Primitive Data Types as -defined in Appendix A of 94-9-32, but with TCKind numbers following the new -tk_exception and tk_alias codes. (That is, rather than using range 21-25, -these TCKind values are in the range 23-27.) - -These data types are currently the topic of an RFP in process in the OMG, -and are not currently defined as part of a current OMG specification. -Clients and servers using these extended data types are relying on CORBA -extensions that are not yet standardized; and should be prepared to change. - - -CORBA 2.0/CORE Differences --------------------------- -As of this writing, the new CORBA 2.0/CORE document has not yet been made -available. This is a modification of the CORBA 1.2 document, with the -addition of (mandatory) extensions from the UNO (94-9-32) specification: -notably DSI and some new object reference operations. This summarizes -differences between the as-yet-unpublished CORBA 2.0/CORE document and -the original text in the UNO specification. - - -DYNAMIC SKELETON INTERFACE - -Since the new "tk_except" typecodes now include the exception ID (this is -the repository ID describing the exception's type) the "exception" operation -used to report an exception through a ServerRequest no longer includes the -exception ID. - -Since the OperationDef entries for attributes are no longer found in the -interface repositories, the ServerRequest convenience operation to return -this has been removed. Application programs (such as bridges) must compare -the operation name string with the prefixes "_get_" and "_set_" to see if -any given operation applies to an attribute. If an operation is one of the -two for which an OMG-IDL "attribute" declaration is shorthand, then the -application must search the interface repository for that attribute. - -(There are in fact three categories of operations on which an object adapter -and implementation collaborate to handle: user defined operations, user -defined attributes, and operations defined by CORBA such as "is_a" and -"get_implementation". Some object adapters, like the BOA, handle this last -category directly, rather than exposing it to applications.) - -The "non_existent" objref operation accidentally used attribute syntax; this -has been corrected. All operations on CORBA::Object references now use -normal operation syntax in their (pseudo) IDL definitions, and are uniformly -prefixed with underscores as part of their C++ mapping. - - -DIFFERENCES from IDL C++ Mapping (94-9-14) ------------------------------------------- -There are four basic ways in which the IIOP framework does not comply -with the OMG's IDL C++ mapping specification, beyond the use of the CORBA2 -module/namespace rather than the CORBA module/namespace. (CORBA2 is used -so that this software can be linked with existing ORBs, which should be -using the CORBA module/namespace already.) - -These ways are beyond the portability-derived use of the "class" construct -(instead of the C++ namespace construct), and the use of CORBA2::Environment -(rather than C++ exceptions), both of which are accomodated by the mapping: - - (1) This framework does not attempt to be complete. - - Completeness is not required to implement the Internet IOP, - so time was not spent in providing a complete mapping. - - (2) In some cases the API provided is not the one in the mapping. - For example CORBA2::Environment is not always passed in all - operations. This was done to promote ease of implementation - and coding. - - (3) Implementation details are generally exposed. - - This isn't so much a noncompliance issue (it's not specified - that such details must be hidden) as an issue of allowing - noncompliant applications. The effort required to actively - prevent use of implementation details by higher level code - would be nontrivial, and could slow down IIOP code, so no - time was applied to hiding such details. - - (However, note that when the software was modified to use COM, - standard C++ techniques were used to hide most such details.) - - (4) The C++ mapping needs completion in some areas. - - Notably, 94-9-14 does not satisfy requirements to provide - support for for all data types in an "Any" or exception without - needing any precompiled data type support routines. The - TypeCode interpreter addresses this issue. - - Some additional operations were not adopted at the time 94-9-14 - was defined; both 94-9-32 and 94-11-7 added new ORB interfaces - which are not found in the initial C++ mapping document. - -With respect to this fourth issue, descriptions of the API extensions -used is provided later in this file. The additional CORBA operations -are not described since their mapping is straightforward if it isn't given -in those documents. - - -ACCESS TO ALL DATA IN "ANY" AND EXCEPTIONS - -The "void *" value in an "Any", and any "CORBA2::Exception *" value, may -always be passed to the TypeCode interpreter (see next). This allows access -to all data held within an "Any" and an Exception. The "void *" value in an -Any with an exception TypeCode is of type CORBA2::Exception *". Due to -the way CORBA is specified, it is not possible to tell whether an "Any" -holding an exception denotes a user or standard (system-defined) exception -except by exhaustive comparison against exception IDs. - -Also, _all_ legal OMG-IDL data types may be held in an "Any", and may be -manipulated using the TypeCode interpreter. This satisfies a language -mapping requirement that DII (and DSI) be able to manipulate all OMG-IDL -data types without requiring compiler generated support for them. - - -TYPECODE INTERPRETER - -In any given C/C++ execution environment there is a binary standard for how -data is represented. While that standard will differ between execution -environments, there are a very limited number of ways in which those -representations differ. Those differences are encapsulated only in the -TypeCode interpreter, so that portable applications using the dynamic -typing infrastructure in the ORB can completely ignore how it's done in -any particular environment. - -The APIs in this software distribution have been suggested for adoption as -part of the OMG specification suite. The two APIs are nonstatic member -functions in the C++ mapping's TypeCode pseudo-object, and are augmented -by a single new enumeration type. - - unsigned long size() - - This returns the size of an instance of the type that is - described by the TypeCode. - - For example, when invoked on the typecode constant CORBA::_tc_Short, - the value returned is sizeof(CORBA::Short); and when invoked on the - typecode for a structure, it is the size of that structure (including - any internal and tail padding needed). When invoked on a sequence - typecode, it returns a value that does not include the size for - any embedded buffer. - - enum traverse_status {TRAVERSE_STOP, TRAVERSE_CONTINUE }; - - This is a data type used in the traverse() member function. - It allows data type traversal to be terminated early for - non-exceptional conditions, and eliminates the confusion - that some similar APIs have created when they use a single - boolean value (does TRUE mean to stop, or to continue?). - - traverse_status traverse ( - const void *value1; - const void *value2 - traverse_status visit ( - TypeCode_ptr tc, - const void *visit_value1, - const void *visit_value2, - void *visit_context - ), - void *context - ); - - (In the current language mapping, CORBA2::Environment references - are passed as the final parameter to the 'traverse' and 'visit' - routines for use when reporting exceptions.) - - The pointers "value1" and "value2" point to instances of the - data type described by the typecode (or are null pointers). - - For each constituent of that data type (e.g. structure member) - the visit() routine is called once. The constituent's type - is described by "tc"; "visit_value1" points to the constituent - of that type in "value1" (assuming the traverse routine was - not passed a null pointer) and similarly for "visit_value2". - The "visit_context" parameter is the context parameter passed - to the traverse() routine, and can point to whatever data is - needed by the visit() routine. - - Members are traversed in first-to-last order, as defined in the - IDL specification for the data type. So for example, the - visit routine for a structure could print out each element - on a IO stream passed through the context parameter, perhaps in - a neatly formatted form intended for human consumption. - - The visit() function may choose to recursively traverse() each - element. So for example if "tc->kind()" in a visit routine - returned CORBA::tk_struct, the contents of that struct would - be ignored unless the visit routine invoked traverse() using - the typecode and values passed to it. - - If the visit() routine returns TRAVERSE_CONTINUE, succeeding - constituents of the data type are visited in turn; if it - returns TRAVERSE_STOP, the traverse() routine returns that - value to its caller. Of course, if a visit() routine calls - traverse() itself, it may choose to ignore TRAVERSE_STOP. - -The traverse() routine is a powerful tool. It is used in the IIOP code -itself in several ways; look at such use for tutorial details. You could -implement data value comparison and "debug" data dumping as simple exercises -in the use of these APIs. - -The "marshaling interpreter" (marshal.cc) uses it to encode and decode -values according to the IIOP protocol specification. The "Any" code -(any.cc) uses traverse() both to free embedded pointers, and to make "deep" -copies of any data structure given its TypeCode. - -Only that "deep copy" visit routine uses "value2" as anything other than a -null pointer; it allows efficient construction of "deep copies" without -needing extra space for temporary values or coroutine stacks. (A general -purpose two-value comparison could also use "value2".) Most uses of the API -only manipulate a single data value at a time; no realistic need has yet -been seen for manipulating more than two data values at once. - -With respect to the OMG C and C++ mappings, it is clear that this style API -must be provided for the C mapping, but some people have noted that a -"purer" object oriented style API could also be provided in C++. That style -would use another internal visit routine, performing the requisite "switch" -over the fixed number of TCKind values, and then make a virtual function -call to an instance of a C++ class whose private state was the "context" and -whose member functions matched the arms of the switch. - - -MEMORY ALLOCATION - -In order to dynamically manipulate instances of arbitrary data types, -applications need to be able to allocate and free memory. The OMG C++ -mapping only says how to do this for data types which have static C++ -interfaces defined, which is clearly inadequate for using constructed -types with the DII/DSI/Any family of interfaces. - -This infrastructure requires the standard "malloc" and "free" primitives to -be used, and cast to the appropriate type. Data allocated using malloc -will normally be sized according to TypeCode::size(), and then be stored -inside an Any. When the Any is deleted, if the ORB deallocates the memory -it always uses "free" (including for any nested pointers, and correctly -handling cases such as arrays and sequences). - -Note that to support implementations where C and C++ language bindings -share the same ORB infrastructure, this solution is inadequate. This is -because the C binding's CORBA_free() interface would have no way to -determine the type of the data being freed. Instead, typed allocation -APIs will need to be used even when using the dynamically typed CORBA -subsystem ... a TypeCode::malloc() routine would suffice, if it returned -memory that was internally tagged with that TypeCode. In such a case, -the CORBA_free() routine could use that TypeCode to "deep free" data as -required, and C++ "new" and "delete" operators would need to know about -the internal tagging for all those data types. Such tagged allocation -would need to be used for all data that was to be freed by the ORB. - -(Having the C mapping require use of "typed free" routines, instead of the -CORBA_free interface, is sufficient to eliminate this problem.) - - -PASSING EXCEPTIONS THROUGH THE DII - -The C++ mapping's Dynamic Invocation Interface (DII) has key omissions -in that it doesn't say how to access to user-defined exception values, -and implicitly requires ORBs either to pass "excess" data on the wire -or else to consult an interface repository to deal with exceptions or -(deprecated) "context" strings. - -This software changes the DII specification in two ways to support the -requirement for DII users to be able to see user-defined exceptions, yet -not to violate the OMG-IDL type model by reporting illegal exceptions: - - * The Object::_create_request() member function, through which DII - users provide all the information included in an IDL operation's - signature, has an additional parameter. - - That parameter is a sequence of exception typecodes, describing - the user-defined exceptions that the operation can return. (The - standard exceptions defined in CORBA may always be returned.) - When any other exception is returned, the client's ORB reports that - the object's type definition has been violated by the server's ORB. - - * The TypeCode interpreter (see above) may be used to examine all - exception values reported through a CORBA::Environment. A new - Exception::id() operation may be used to determine which typecode - should be used. - -Note that a number of portability and specification problems have been -identified in the current C++ mapping for DII, e.g. for details of memory -management. Later versions of this code may attempt to closely comply -with an improved mapping for DII, to the extent that the interpretation -used here differs from that more unambiguous specification. - -Since there is no efficient way to distinguish typecodes for user defined -exceptions from ones for system-defined ("standard") exceptions (comparing -the exception ID against all the system defined ones is inefficient :-) -a new enum type "ExceptionType" is defined. (An analogous type is already -defined for the C language mapping.) This is used to report exceptions -through DII and DSI. diff --git a/TAO/docs/HISTORY b/TAO/docs/HISTORY deleted file mode 100644 index d97a8e35b2e..00000000000 --- a/TAO/docs/HISTORY +++ /dev/null @@ -1,44 +0,0 @@ -@(#)HISTORY 1.1 95/09/13 - -Mmmmmmmm DD, 1995 -- RELEASE 1.3: ---------------------------------- -Release 1.3 includes bugfixes, and support for the COM binary interface -model, both on UNIX and on MS-Windows platforms. The source tree has -been considerably restructured, with the goal of enabling addition of -other components at both the binary and source levels. - - -September 1, 1995 -- RELEASE 1.2: ---------------------------------- -Release 1.2 includes fixes for problems noted in the recent multivendor -interoperability testing at Object World, and as reported by other users on -the Internet. The most notable of these is that in some cases, when using -multiple connections to IIOP servers and clients, the connection management -code previously would get confused about which connection was which. (One -consequence of fixing this is that an old test has been removed.) Also, -there was no simple way to use Solaris 2.4 threads; see the Makefile for -details. A few other minor features were added to facilitate use of this -code for more than just protocol testing. - - -June 28, 1995 -- RELEASE 1.1: ------------------------------ -Release 1.1 includes support for several new platforms. Particular thanks -go to the team at APM, which contributed the bulk of the new "autoconf" -support (substantially enhancing portability), support for DEC Alpha and -HP 9000 platforms, runtime initialization of the size and alignment table -used to drive the typecode interpreter, and more; see README.apm for details. - -Release 1.1 includes POSIX.1c threading support; on platforms which provide -POSIX.1c threads, applications will be able to take advantage of them. - -Union and indirection support has been added to the TypeCode interpreter, -and more typecode utility APIs have been implemented. Various bugfixes and -cleanup have also been provided. Unfinished stubs for the COS Naming service -are included; these rely on C++ exception support. - - -March 21, 1995 -- RELEASE 1.0: ------------------------------- -The original release ran on a set of UNIX platforms (including Solaris, -SunOS, Linux, and NEXTSTEP) as well as with 16-bit and 32-bit MS-Windows. diff --git a/TAO/docs/Options.html b/TAO/docs/Options.html deleted file mode 100644 index 5db3224c8eb..00000000000 --- a/TAO/docs/Options.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - Options for TAO Components - - - - -


-

Options for TAO Components

- -

Overview

-
- -

Certain components in TAO such as the ORB Core or Object Adapter -can be tuned by users by providing value for options or environment -variables to them. These options are commonly specified as (1) -environment variables or (2) strings passed on the command-line. They -are generally passed to component initialization methods for -consumption.

- -

Programmer's Note: the internal structure for options is -the traditional argc/argv vector of strings -style popularized by C and Unix. By convention, an initialization -method will consume, i.e., remove from the vector, any -options that it recognizes.

- -

-

Environment Variables

- -The following environment variables are supported by TAO: - -
-

- - - - - - - - - - - - - - - - - - -
Environment VariableDescription
NameServiceIOR which -Specifies which IOR the Naming Service is listening on. -
NameServicePort which -Specifies which port the Naming Service is listening on. -
TradingServiceIOR which -Specifies which IOR the Trading Service is listening on. -
TradingServicePort which -Specifies which port the Trading Service is listening on. -
TAO_ORB_DEBUG which -Enables TAO debugging mode. -
-

-
- -

- -

Types of Options

- -
-

The following components can be tuned via options:

- - -
- -
-

CORBA::ORB

- -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
-ORBsvcconf config file nameSpecifies the name of the file from which it will read dynamic service configuration -directives ala ACE's Service Configurator.
-ORBsvcconfdirective directivestringSpecifies a service configuration -directive, which is passed to ACE's Service Configurator.
-ORBdaemonSpecifies that the ORB should daemonize itself.
-ORBdebugTurns on the output of debugging messages within ACE's Service Configurator -componentry.
-ORBhost hostnameTells the Object Adapter to listen for requests on the interface associated -with the host named hostname.
-ORBport portspecTells the Object Adapter to listen for requests on the port specified by -portspec, which can be a name as found in /etc/services -or a number. The default is 10013.
-ORBobjrefstyle whichSpecifies the user-visible style of object references. The range of values -is IOR, which is the traditional nonsensical object reference, -or URL, which looks more like a URL.
-ORBobjdemux demux_methodSpecifies the method used to demultiplex to an object. The range of values -is dynamic, linear, active, or user.
-ORBtablesize object table sizeSpecifies the size of the object table as a positive, non-zero integer. -If not specified, the default is 64.
-ORBrcvsock receive buffer sizeSpecify the size of the socket receive buffer as a positive, non-zero integer. -If not specified, the system-dependent default is used.
-ORBsndsock send buffer sizeSpecify the size of the socket send buffer as a positive, non-zero integer. -If not specified, the system-dependent default is used.
-ORBnameserviceport portspecSpecifies which port the Naming Service is listening on.
-ORBnameserviceior iorSpecifies the IOR for the Naming Service.
-ORBcollocation yes/noSpecifies the use of collocation object optimization. Default is yes.
-ORBpreconnect host:port[,host:port...]Pre-establishes a blocking connection to each listed -host:port combination. If a connection cannot -be established, a warning is announced and it continues with the -next listed. Listing the same combination multiple times will -properly establish multiple connections to that endpoint.
-ORBCDRtradeoff maxsizeControl the strategy to tradeoff -between copy vs no copy marshalling of octet sequences. -If an octet sequence is smaller than maxsize and the current -message block contains enough space for it the octet sequence is -copied instead of appended to the CDR stream.
-ORBiiopliteEnable a lightweight version of the - IIOP protocol. This protocol removes some of the fields in - the GIOP and the Request header. It only works on - homogenous environments..
-ORBdotteddecimaladdresses Use the dotted decimal - notation for addresses.
-

-
- -

CORBA::POA

- -
-

- - - - - - -
OptionDescription
-OAid OA IdentifierAssociates OA Identifier with the Object Adapter.
-

-
- -

TAO_Resource_Factory

- -
-

- - - - - - - - - - - - - - - -
OptionDescription
-ORBresources whichSpecify whether each thread uses a global -(which = global) or a thread-specific -(which = tss) instance for the resources it returns.
-ORBpoa whichSpecify whether each thread uses a global -(which = global) or a thread-specific -(which = tss) instance for the Root POA.
-ORBreactorlock whichSpecify whether the ORB reactor is thread-safe -(which = token) or not -(which = null). Default is token
-ORBcoltable whichSpecify whether each ORB uses a global -(which = global) or a per-ORB -(which = orb) collocation table.
-

-
- -

TAO_Default_Server_Strategy_Factory

- -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
-ORBconcurrency whichSpecify which concurrency strategy to use. Range of values is reactive -for a purely Reactor-driven concurrency strategy or -thread-per-connection for creating a new thread to service each connection.
-ORBtablesize object table sizeSpecify the size of the object table. If not specified, the default value -is 64.
-ORBdemuxstrategy demultiplexing strategySpecify the demultiplexing lookup strategy. The demultiplexing strategy -can be one of dynamic, linear, active, -or user.
-ORBthreadflags thread flagsSpecify the flags used for thread creation. Flags can be any logical-OR -combination of THR_DETACHED, THR_BOUND, THR_NEW_LWP, -THE_SUSPENDED.
-ORBpoalock lock typeSpecify the type of lock to be used for -POA accesses. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -thread.
-ORBcoltbllock lock typeSpecify the type of lock to be used for -the global collocation table. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -thread.
-ORBconnectorlock lock type Specify the type of lock to be used by -the connector. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -thread.
-ORBpoamgrlock lock typeSpecify the type of lock to be used for -POA Manager accesses. Possible values for lock type are -thread, which specifies that an inter-thread mutex is -used to guarantee exclusive acccess, and null, which -specifies that no locking be performed. The default is -null.
-

-
- -

TAO_Default_Client_Strategy_Factory

- -
-

- - - - - - -
OptionDescription
-ORBiiopprofilelock which -Specify, whether to use a lock for accessing the IIOP Profile or not. -Default is thread, which means that a lock is used. The -second option is null, which means a null lock is used. -This makes sense in case of optiziations and is allowed when -no forwarding is used or only a single threaded client. -
-

-
-
- -


-Back to the TAO components documentation. - - - diff --git a/TAO/docs/REFERENCES b/TAO/docs/REFERENCES deleted file mode 100644 index a44ef31c16e..00000000000 --- a/TAO/docs/REFERENCES +++ /dev/null @@ -1,91 +0,0 @@ -@(#)REFERENCES 1.2 95/11/08 - -REFERENCES -========== -Most of the relevant references here are to OMG documents, however there -are a few external references of some note: - - * http://www.uci.agh.edu.pl/research/cs/TOCOOS/COPERNICUS.html - - -OMG REFERENCES --------------- -As of this writing, OMG is in the process of publishing new versions of the -base CORBA specifications, merging specifications as needed into single -documents and splitting out the C mapping from the CORBA/CORE specification. - -This software has made every effort to track both the base documents and the -agreed corrections and revisions. Since those documents have not yet been -published, there will inevitably be areas in which it does not reflect the -versions yet to be published. See the "DIFFERENCES" file for information -about where this software differs from these current base documents: - -* CORBA 2.0/Interoperability: Universal Networked Objects (UNO), OMG - TC Document 95-3-10. This includes the mandatory IIOP and bridging - support, as well as the optional DCE-CIOP protocol. - -* CORBA 1.2 specification, OMG TC Document 93-12-43. This is the - base document on which the CORBA 2.0 CORE specifications build. - -* Universal Networked Objects (UNO), OMG TC Document 94-9-32. Until - the CORBA 2.0/CORE document is published, replacing the CORBA 1.2, - initialisation, and IFR specifications, you must use this earlier - version of UNO to see (only!) the specification for DSI and several - other CORBA CORE extensions (for bridging) adopted by the OMG. - [ NOTE: use the IIOP specification in 95-3-10, not the one here; - 95-3-10 has changes required by the IFR specification, 95-11-7. ] - -* Initialisation, OMG TC Document 94-10-24. This defines the portable - APIs for initialising ORBs. - -* Interface Repository, OMG TC Document 94-11-7. This updates the - CORBA specifications above and is referenced by the UNO document. - -* IDL C++ Language Mapping Specification, OMG TC Document 94-9-14. - This defines the mapping of CORBA 1.2, including OMG-IDL, onto C++. - -There are a few inconsistencies between these documents, which are in the -process of being resolved. The inconsistencies arose because different -groups worked on different parts of the system, at different times and -with some different goals. Contact the various revision committees to -find out how these differences are being resolved: - - - interop@omg.org ... the interop revision task force (RTF) - - cxx_revision@omg.org ... the C++ RTF - - orb_revision@omg.org ... the general ORB RTF - -Also, note that these ORB specifications correspond to only the lowest levels -of OMG's Object Management Architecture. In particular, the "Object Services" -define object interfaces for naming, events, persistence, relationships, -lifecycle, externalization, transactions, and concurrency control. Also, -"Common Facilities" objects will address such things as compound document -architecture. If you intend to develop software based on ORBs, these -specifications are likely to be of interest. The OMA is available in -technical bookstores: - - Richard Soley (ed.), Object Management Architecture Guide, - Second Edition, John Wiley & Sons, New York, 1992. - - -ACQUIRING REFERENCE DOCUMENTS ------------------------------ -To acquire those reference documents, use the OMG document server through -Internet email. Send a message to "server@omg.org", with content lines -such as - - send help - -to get directions about how to use the server, or - - send docs/95-3-10.ps - -to get a PostScript copy of any particular document. (OMG specifications -are available only in PostScript.) - -The OMG document server is maintained for use by OMG members, but is also -available for general Internet access. Only members will be supported in -the case of problems. - -To find out more about the OMG, send email to "omg@omg.org", or look -at the Web page at "http://www.omg.org". - diff --git a/TAO/docs/compiler.html b/TAO/docs/compiler.html deleted file mode 100644 index 4645790beb9..00000000000 --- a/TAO/docs/compiler.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - TAO IDL compiler User's Guide - - - - -


-

-TAO IDL compiler User's Guide

- -

-Scope

-This document describes the options and features of TAO IDL compiler, it -is not a reference manual or tutorial on IDL. -

-Generated Files

-The IDL compiler generates 6 files from each .idl file, the file -names are obtained by taking the IDL basename and appending C.h, -C.i, C.cpp, S.h, S.i and S.cpp; -the client stubs are declared in the C.h file, the skeletons in -the S.h file. Please see the Options list on how to get different -suffixes for these files. - -

Both clients and servers should link against the object files for the -stubs and skeletons, this is needed to transparently support collocated -objects. -

-Operation Lookup Strategies

-The server skeleton can make use of different lookup strategies to match -the incoming operation with the correct operation at the servant. -
Dynamic Hashing and Perfect Hashing are the two different operation -lookup strategies that are currently supported in tao_idl. -
By default, tao_idl tries to use Perfect Hashing strategy. gperf -generates the lookup methods for this strategy. -
ACE_HAS_GPERF has been defined for the platforms where gperf works. -This includes Solaris and NT. - -

To make use of Perfect Hashing: -

    -
  • -Build the gperf program at $ACE_ROOT/apps/gperf. (This build also leaves -a copy/link of the gperf program at the $ACE_ROOT/bin directory).
  • - -
  • -Set the environment variable $ACE_ROOT appropriately or add $ACE_ROOT/bin -to the PATH.
  • - -
  • -Use -g option for the tao_idl or set the PATH accordingly to use gperf -located at other places other than $ACE_ROOT/bin.
  • -
- -

-Options

-The IDL compiler invokes your C (or C++) preprocessor -to resolve included IDL files, it receives the common options for preprocessors -(such as -D or -I); but also receives other options that -are specific to it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OptionDescription
-VThe compiler printouts its version and exits
-Wb,option_list Pass options to the backend.
export_macro=macro_nameThe compiler will emit macro_name right after each class - or extern keyword, this is needed for Windows/NT that requires - special directives to export symbols from DLLs, usually the definition - is just a space on unix platforms. 
export_include=include_pathThe compiler will generate code to include include_path at the - top of the client header, this is usually a good place to define the export - macro. 
-EOnly invoke the preprocessor
-Wp,option_list Pass options to the preprocessor.
-Dmacro_definitionIt is passed to the preprocessor
-Umacro_nameIt is passed to the preprocessor
-Iinclude_pathIt is passed to the preprocessor
-AassertionIt is passed to the preprocessor
-YIt is passed to the preprocessor
-H perfectTo specify the IDL compiler to generate skelton code that uses perfect - hashed operation lookup strategy, which is the default strategy. Perfect - hashing uses gperf - program, to generate lookup methods. 
-H dynamicTo specify the IDL compiler to generate skelton code that uses dynamic - hashed operation lookup strategy. 
-gTo specify the path for the perfect hasing program (GPERF). Default - is $ACE_ROOT/bin/gperf. 
-oTo specify the output directory to IDL compiler as to where all the - IDL-compiler-generated files are to be put. By default, all the files are - put in the current directory from where is called. 
-hcClient's header file name ending. Default is "C.h".
-hsServer's header file name ending. Default is "S.h".
-hTServer's template header file name ending. Default is "S_T.h".
-csClient stub's file name ending. Default is "C.cpp".
-ciClient inline file name ending. Default is "C.i".
-ssServer skeleton file name ending. Default is "S.cpp".
-sTServer template skeleton file name ending. Default is "S_T.cpp".
-siServer inline skeleton file name ending. Default is "S_i.cpp".
-stServer's template inline file name ending. Default is "S_T.i".
- -
-
-Carlos O'Ryan
- - - diff --git a/TAO/docs/components.html b/TAO/docs/components.html deleted file mode 100644 index 5a1d34631d0..00000000000 --- a/TAO/docs/components.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - TAO Component Documentation - - - - -
-

Component Documentation

- -

The following documentation is available on certain TAO components:

- -
    -
  • Options ­ describes the - options available to customize various components within TAO. - These customizations can be done by an end-user and do not - require C++ programming.

    - -

  • Configuration ­ - describes how to mix and match component options to customize - how TAO processes requests. For example, this - document explains how to configure TAO to process - all request in one thread, each request in a separate thread, or each connection - in a separate thread, etc.

    - -

  • Mapping of all TAO files - into a manageable set of inheritance -hierarchies.

    -

- - -


-Back to the TAO documentation index. - - - - diff --git a/TAO/docs/configurations.html b/TAO/docs/configurations.html deleted file mode 100644 index a7075551b4c..00000000000 --- a/TAO/docs/configurations.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - Configuring TAO's Components - - - - -


- -

Configuring TAO's Components

- -

Overview

- -

As described in the options -documentation, various components in TAO can be customized by -specifying options for those components. This document illustrates -how to combine these options in order to affect ORB behavior and -performance, particularly its concurrency -model.

- -

TAO configures itself using the ACE -Service Configurator framework. Thus, options are specified in -the familiar svc.conf file (if you want to use a -different file name, use the -ORBsvcconf option).

- -

- -

Roadmap

- -
-

Details for the following configurations are provided.

- - - - -
- -

-

Configuring key components

- -
    -
  • Server concurrency strategy - specifies the concurrency strategy an ORB uses. It says nothing - about how many ORBs (or, threads) are there in a process.

    - -

      -
    • reactive: The ORB handles requests - reactively, i.e., the ORB runs in one thread and service - multiple requests/connections simultaneously using - "select" call. You can have multiple ORBs - accepting requests reactively and running in separate - threads.

      - -

    • thread-per-connection: The ORB handles new - connections by spawning a new thread whose job is to - service requests coming from the connection. The new - threads inherits all properties from the ORB threads (see - below.)

      - -

    • thread-pool (not yet implemented): ... to be - continued ...

      - -

    - -

  • ORB and other resources.

    - -

      -
    • global: There's only one ORB process-wide. - ORB_init () must be called only once. Every - thread accesses the same ORB.

      - -

    • tss: When using tss ORB, the - programmer is responsible for spawning the ORB threads and - setting up the ORB by calling ORB_init () for - each ORB threads. Any ORB spawned thread (i.e., thru - thread-per-connection) shares the same resource the - spawning ORB uses.

      - -

    - -

  • POA.

    - -

      -
    • global: All ORBs share the same POA. The - advantage of using a global POA is that once an object is - registered to the POA under an ORB, it can be externalized - from other ORB.

      - -

    • per ORB (tss): Each ORB has its own POA, - which means, the programmer should also instantiate the POA - for each ORB (otherwise, a default RootPOA gets created, - which might not be what you what and thus, is discouraged.)

      - -

    - -

  • Collocation Table: *Care - must be taken when using CORBA objects to control the ORB - directly. For you are actually executing the collocated object, - not in the object's ORB context, but in the calling ORB's - context.

    - -

      -
    • global: Process keeps a global collocation - table which contains tuples of listening endpoint and its - corresponding RootPOA.

      - -

    • per ORB (tss): At this moment, since TAO only - supports one listening endpoint per ORB, there is no - per-ORB collocation Table. Checking of collocated objects - is done by comparing object's IIOP profile and the calling - ORB's listening endpoint.

      - -

    - -

  • Forwarding IIOP Profile: - In the case of multiple threads using the same CORBA::Object and - using forwarding, it is necessary to protect the forwarding - IIOP_Profile, which is part of the IIOP_Object, - which is part of the CORBA::Object against multiple access. Therefore - a mutex lock is used by default to ensure proper access. Using - the switch -ORBiiopprofilelock this policy can - be deactivated specifying -ORBiiopprofilelock null. - A motivation to do this might be performance reasons in cases, - where no forwarding is used or no multithreading with access - to shared CORBA::Object's. Deactivating forces the ORB - to use a null mutex, which does introduce only a very small - overhead, compared with overhead introduced by a regular mutex lock. -

    - - -

- - - -

-

Configuration Example

- -
    -
  • Single-threaded, reactive model. - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Typical Use - This is the default configuration of TAO, where one thread handles - requests from multiple clients via a single Reactor. It is - appropriate when the requests (1) take a fixed, relatively uniform - amount of time and (2) are largely compute bound. -
    Number of Threads1
    Thread CreatorOS or whomever creates the main ORB thread in a process.
    Resource LocationResources are stored process-wide.
    Thread taskThe single thread processes all connection requests and CORBA messages.
    Options - TAO_Resource_Manager: -ORBresources global
    - TAO_Server_Strategy_Factory: -ORBconcurrency reactive -
    -

    - -
  • Multiple threads, thread-per-connection model. - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Typical UseThis configuration spawns a new thread to serve requests - from a new connection. This approach works well when - there are multiple connections active simultaneously and each - request-per-connection may take a fair amount of time to - execute. -
    Number of Threads1 plus the number of connections.
    Thread CreatorProgrammer must set up the main thread which is - responsible to create new threads for new connections.
    Resource LocationProcess-wise.
    Thread taskThe main thread handles new connections and spawns new - threads for them. Other threads handle requests for - established connections.
    Options - TAO_Resource_Manager: -ORBresources global
    - TAO_Server_Strategy_Factory: -ORBconcurrency thread-per-connection -
    -

    - -
  • Multiple threads, ORB-per-thread model. - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Typical UseIn this configuration, there multiple ORBs per process each - running in its own thread. Each thread handles requests - reactively. It's good for hard real-time applications that require - different thread priorities for the various ORBs.
    Number of ThreadsThe number of ORBs.
    Thread CreatorThe main process (thread).
    Resource LocationThread specific.
    Thread taskService the requests from associating ORB.
    Options - TAO_Resource_Manager: -ORBresources tss
    - TAO_Server_Strategy_Factory: -ORBconcurrency reactive -
    -

    - -
  • Multiple threads, ORB-per-thread, thread-per-connection -model. - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Typical UseThis approach provides a range of thread priorities plus connections - that don't interfere with each others.
    Number of ThreadsNumber of ORBs plus number of connections.
    Thread CreatorMain threads creates threads running ORBs. They, in - turns, create connection handling threads.
    Resource LocationThread specific.
    Thread taskThere are ORB threads which handle connection requests - and handler threads which service requests form - establiched connections.
    Options - TAO_Resource_Manager: -ORBresources tss
    - TAO_Server_Strategy_Factory: -ORBconcurrency thread-per-connection -
    -

    - -
  • Multiple threads, thread-pool model. -(Not yet implemented.) - -

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Typical UseThis model implements a highly optimized thread pool that - minimizes context switching, synchronization, dynamic memory - allocations, and data movement between threads.
    Number of ThreadsThe number of threads used by ORB-related activities.
    Thread CreatorIdentifies the creator of the threads discussed above.
    Resource LocationWhere information on various resources is stored.
    Thread taskDescribes what task is undertaken for each thread.
    -

    - -
  • Multiple threads, ORB-per-thread, thread-pool model. (Not yet implemented.) - -

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Typical UseA brief description of the scenario and its typical use.
    Number of ThreadsThe number of threads used by ORB-related activities.
    Thread CreatorIdentifies the creator of the threads discussed above.
    Resource LocationWhere information on various resources is stored.
    Thread taskDescribes what task is undertaken for each thread.
    -

    - -
- - -

-

Configuration for homogenous systems

- -
    -
  • Compile time options

    -

    Many real-time applications run on homogenous environments, - TAO can take advantage of this fact by simplifying the server - side demarshaling; - to enable this feature you have to edit the - $TAO_ROOT/tao/orbconf.h file and enable the macro - TAO_DISABLE_SWAP_ON_READ. -

    -

    In this systems it is also common that server and the - client startup and shutdown simultaneously, - in those circumstances there is no need to check the - timestamps in the POA, - another macro (POA_NO_TIMESTAMP) can be used for - this purpose. -

    -

    Users running in embebbed systems may also need to modify - the default options for TAO, - the macros TAO_DEFAULT_RESOURCE_FACTORY_ARGS, - TAO_DEFAULT_CLIENT_STRATEGY_FACTORY_ARGS - and TAO_DEFAULT_SERVER_STRATEGY_FACTORY_ARGS - can be used for those purposes. - If the footprint size is an issue users may consider writing - custom strategy factories that only create the right - strategies, this eliminates the parsing code for the - different options. -

    -
  • -
  • Runtime options

    -

    If the only ORB running is TAO and there is no need to be - IIOP interoperable the option -ORBiioplite can - be used to reduce the message size and the processing time. -

    -

    Some embedded systems run without the benefit of a DNS - server, in that case they can use the - -ORBdotteddecimaladdresses option; - the ORB will avoid the use of hostnames in the profiles it - generates, - thus clients don't need to do any name resolution. -

    -
  • -
- -
- -

Hints

- -

- Choosing the right configuration is hard and, - of course, - depends on your application. - In the following section we will attempt to describe some - motivations for features in TAO, - hopefully that can guide you through the choice of your - configuration options. -

- -
    -
  • -

    ORB-per-thread - The main motivation behind this options - is to minimize priority invertion, - since threads share no ORB resources no locking is required - and thus, - priority is preserved in most cases (assuming proper support - from the OS). - If you are not too concerned about priority inversion try to - use a global ORB, - using ORB-per-thread has some tradeoffs - (like calling ORB_init on each thread, activation of a servant - is more complicated, etc.) - Some of the problems, can be minimized, but they require - even more careful analysis. - For example, - object activation can be simplified by using a global POA; - the careful reader will wonder how could global POA be - useful in anyway since it will require locks and thus - introduce priority inversions again; - some applications activate all their objects beforehand so - locks in the POA are not always needed; - other applications only activate a few objects after - startup, - so they can use a child POA with the right locking policy - for the dynamic servants and the root poa (with no locking) - for the majority of the servants. -

    -

    - As the reader will note this is a delicate configuration - option, the rule of thumb should be not to use - ORB-per-thread unless it is really required. -

    -
  • - -
  • Collocation tables - Why could the application what a non-global collocation table? - If objects are to serve requests only at a well known priority - the application can be configured with the ORB-per-thread - option, and the object is activated only in the thread (ORB) - corresponding to the desired priority. - But using a global table would subert the priority assignment - (because calls would run at the priority of the client). -

    -
  • - -
- -


-Back to the TAO components documentation. - - - - diff --git a/TAO/docs/forwarding.html b/TAO/docs/forwarding.html deleted file mode 100644 index 16b3406a733..00000000000 --- a/TAO/docs/forwarding.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - Implementation of location forwarding - - - - - -


-

Location forwarding

-
-

Context

- The motivation to support location forwarding for objects is - to allow objects to move or forward certain requests to other objects. - Moving of objects is very important for the Common Object Services - LifeCycle Service. An objet complying to the LifeCycleObject interface, - defined by the LifeCycle Service should support the move operation. The move - operation allows the client to keep its object reference to the object, - but the object is going to be relocated on the same or a different server. - Making location forwarding transparent to the client is the most important - issue. - -

Communication between server and client

- GIOP defines a message named "LOCATION_FORWARD", which should be used to - inform the client stub, that the object has been moved. The message body - has to contain an object reference to the new location of the forwarded - object. - - -

Server side implementation

- Two approaches are possible, one is that the POA replaces the object with - a forwarding servant, which knows the new location. This servant will then - raise an exception each it time it is called, as supposed to be the - actual object. The exception will be a user exception and will be caught - in the marshalling code of the server request "IIOP_ServerRequest". The involved - methods are "set_exception", "marshall" and "init_reply". "set_exception" will - check the user exceptions for the special one, only raised by the forwarding - servant and will extract the new location. "init_reply" will then create - the proper GIOP Reply message with the message type set to LOCATION_FORWARD. - The message is encoded into a CDR (Common Data Representation) stream. - - The second approach is to use a POA servant locator for the child POA, where - the object resides on. The servant locator will be used each time the object - will be accessed. Basically two methods, named "preinvoke" and "postinvoke" - are called each time before and after the actual upcall to the object. - Forwarding using the servant locator works in the following way. The object - tells its servant locator that it has moved and supports the servant locator - with the new object reference. The object locator then raises a special system - exception "forward_request" in "preinvoke" each time the object is called from now on. - The exception is then caught by the lowest possible level, when the - system exceptions are going to be marshalled. Which is in "TAO_Server_Connection_Handler", - the involved methods are "handle_input" and "send_error". "handle_input" - checks for errors (involving exceptions) and calls "send_error" to create - the proper GIOP Reply containing either the system exception or - the location forwarding in case the system exception was the - "forward_request" exception. - -

Client side implementation

- The client has to expect the location forwarding GIOP message and should - respond to it in setting the IIOP_Profile of its IIOP_Object right. - The IIOP_Object is a low level object, to which CORBA::Object has a - pointer to. The reply type is determined by "TAO_GIOP_Invocation::invoke" - which then calls "TAO_GIOP_Invocation::location_forward". "location_forward" - sets the changes the IIOP_Profile of the object. The call is then - reissued by "TAO_IIOP_Object::do_static_call". - - -

Conclusion

- Changing the IIOP_Profile is transparent to the client. So the - client gets no idea, that the object now resides somewhere else. - - The result of the above mentioned solution is that - if an object moves the client will notice it with the next call to the - object. If the object moves again, the original location is not - bothered at all again. Say if the original location was A, then - it moved to B and finally to C. First location A responeded with - a GIOP Location Forward to the client, then B gets used and finally - after moving the object to C, B will send a GIOP Location - Forward and location C gets used. - - There is "no" concept of a home location. If the object moves - very often and old servers die it might be a problem, because - clients, which did not call on the object lately will not know - where to search. Though in the situation of a home location, there - is also the risk that this server might die and the object - is not reachable any more. - -

Optimization

- In the case, when the object moves several times, a chain - of forwarding servers is created. But this chain might be - easily disturbed by just one server failing. A good idea - is to give the servant locator more intelligence to - tell all the oter/previous servers where the object is now. - This will of course increase the communication overhead - in the case of a move, but we get a high reliability - against dying hosts. - -
- For more details and questions, -

- -

Michael Kircher
-

-

Irfan Pyarali
- - - diff --git a/TAO/docs/implrepo.html b/TAO/docs/implrepo.html deleted file mode 100644 index 3d4e5e016f7..00000000000 --- a/TAO/docs/implrepo.html +++ /dev/null @@ -1,677 +0,0 @@ - - - - - -TAO Implementation Repository - - - - -
- -

TAO Implementation Repository

- -

Revision 3.04 - August 5, 1998

- -
- -

Table of Contents

- - - -
- -

Recent Changes

- -

Since 3.03 - -

    -
  • Added information on the new POA policy where the format of the persistent IOR can be - changed from that of both the last-known-server-IOR and Implementation Repository to that - just of the Implementation Repository
  • -
  • TAO is now fork-safe, with the introduction of the CLOEXEC flag through ACE_CLOEXEC.
  • -
- -

Since 3.02 - -

    -
  • Added a section to give more detailed information on how Ping Objects work.
  • -
  • Rewrote the Virtual Server section
  • -
- -
- -

Overview

- -

This document describes the proposed design of the TAO Implementation Repository, which -was originally known as the reactivator/activation service. If you have any questions or -comments on our design, please post them to the ACE mailing list <ace-users@cs.wustl.edu> or send email to -Darrell Brunsch <brunsch@cs.wustl.edu>.

- -

Persistent and Transient IORs

- -

CORBA defines two types of object references: persistent and transient. -The difference between the two stems from the lifetime of the reference in relation to the -lifetime of the server process that created it. The lifetime of a transient object -reference is limited to the lifetime of its server process. Once the server process exits -the transient object reference no longer exists. All references to this object should now -be invalid, even if the server is restarted. In contrast, persistent object references can -outlive their originating server process. Therefore, the server can exit and be restarted -without invalidating its persistent object references. This enables the implementation of -features like automatic server activation and object migration.

- -

Note that both persistent and transient object references can refer to objects that -reside in manually activated servers, i.e., the so-called ``persistent -servers.'' A persistent server is a server that is launched manually, i.e., it is -always running. A persistent server can generate transient references and/or persistent -references.

- -

Developers should be aware that persistence of the object reference does not imply any -persistence on the object implementation state. It is certainly possible to provide -persistent object references for objects whose state is not persistent. Therefore, servant -implementors are responsible for preserving the state of their servants, e.g., -using a database or file.

- -

The Implementation Repository

- -

According to the CORBA specification, "The Implementation Repository contains -information that allows the ORB to locate and activate implementations of objects" -[CORBA Spec Rev. 2.2: 2.1.14] In earlier revisions of the specification, there was a -method get_implementation in the CORBA Object interface. This has been -deprecated as of the CORBA 2.2 specification, leaving both the interface and -implementation of the Implementation Repository to the ORB vendor.

- -

A good paper describing the functionality of the CORBA Implementation Repository is -"Binding, Migration, and -Scalability in CORBA" [Henning]. This paper describes the following three -functions of the Implementation Repository: - -

    -
  1. Maintain a registry of known servers.
  2. -
  3. Record which server is currently running, and which port and host it uses.
  4. -
  5. Starts servers on demand if they are registered with the Implementation Repository.
  6. -
- -

The TAO Implementation Repository is based on the design in this paper. The next -section details our goals and plans for the implementation.

- -
- -

TAO's Implementation Repository

- -

The following is an brief outline of TAO'S Implementation Repository. - -

    -
  • Use of TAO's Implementation Repository will be optional. Real-time applications can - choose not to use the Implementation Repository according to their - performance/predictability/footprint requirements.
  • -
  • Use of TAO's Implementation Repository will be invisible to clients and servers for - common use-case. For more complicated behavior, programs can use Implementation Repository - extensions of the POA.
  • -
  • TAO's Implementation Repository will work with any CORBA client that supports LOCATION_FORWARD - IIOP messages and multiple profiles in IORs, even if the client is not implemented using - TAO.
  • -
  • TAO's Implementation Repository will know if one of the servers registered with it is - running by the use of a "ping"-like service in the server. This service allows - the Implementation Repository to know when it should restart the server.
  • -
  • TAO will be fork-safe. Since there will be an open connection to the client while the - server is restarted (via fork or CreateProcess) then care will be needed to make sure that - the open sockets will be closed in the client process. The addition of CLOEXEC feature to - TAO will cover this problem.
  • -
  • TAO will exploit features of IIOP 1.1 to safely and efficiently verify if an IOR was - generated by TAO itself on the client side. The server will still determine this through - the object key, since that is all that is passed in a request.
  • -
  • TAO will support multiple profiles in IORs. A profile contains the host/port and object - key of a CORBA Object. An optimization that will be possible is to have a last known - profile of the object as the first profile and an Implementation Repository as the second - profile in an IOR. The client will first try the object to see if it still active at the - host/port before it contacts the Implementation Repository. This strategy will reduce - latency.
  • -
- -

Virtual Servers

- -

TAO's Implementation Repository must keep track of whether an object's implementation -is currently running or is stopped. To have a record for every object would require too -much overhead, but having a record for every executable server would be inflexible and -prevent the migration of objects. In the Henning paper, he mentions the use -of a server name as the index for the table maintained by the Implementation -Repository.

- -

The virtual server does not refer to the executable but instead to a group of objects. -An executable may have one or more virtual servers on it. This allows one virtual server -to be moved off the executable to another executable (for instance, onto another machine) -without affecting the objects in other virtual servers on the original executable.

- -

Each virtual server will be indexed in the Implementation Repository by a name that is -given to it by the user. It is also the users responsibility to make sure that each -virtual server name is unique. By default, this name is the name of the executable (since -by default there is only one virtual server per executable). However, this default -behavior can be overridden.

- -

Ping Object

- -

Ping objects are simple objects that reside in the server, one for every virtual -server. It is contacted by the Implementation Repository to determine if the virtual -server is still running and responding. At certain intervals the Implementation Repository -will invoke a one-way method on the ping object, and then will expect a "pong" -message to be sent back. Different strategies for pinging will be used by the -implementation repository. If a server is expected to be responsive, the Implementation -Repository will not wait long for a response before considering the server to be gone. -Other servers may be computationally-intensive and need to be held under less stringent -expectations.

- -

We chose the ping method to be a one-way (instead of two-way) because if the server -became unresponsive, it would not return from the method invocation. The Implementation -Repository needs some form of a timeout with the ping to be able to determine if the -server is unresponsive or not.

- -

New IORs

- -

Standard CORBA IORs contain the following two sections:

- - - - - - -
Type IDSequence of Tagged Profiles
- -

The Type ID is an indicator for the most derived type known at the time of the -reference creation. It is used as a hint for the client in determining what interfaces the -object can support. The Sequence of Tagged Profiles consist of one or more profiles that -encapsulate information used by the associated protocol in order to communicate with the -object (host, port, object id, etc.).

- -

Currently, TAO uses only one IIOP 1.0 Tagged Profile, which is defined as follows:

- - - - - - - - -
VersionHostPortObject Key
- - - - - - -
Object Key: - - - - - - -
Transient/Persistent FlagTimeStampPOA IDOBJ ID
-
- -

To accomodate the Implementation Repository and IIOP 1.1, the Profile was changed -according to the CORBA specification as follows:

- - - - - - - - - -
VersionHostPortObject KeyComponents
- - - - - - -
Object Key: - - - - - - - -
TAOTAO versionTimeStamp/Server NamePOA IDOBJ ID
-
- -

In TAO, Transient object references will have a TimeStamp to ensure uniqueness. -Likewise, persistent object references will have a server name to identify them in the -Implementation Repository.

- -

TAO will support two difference classes of Persistent IORs.  For servers that move -around or need to be restarted often, the IOR will actually contain a reference to the -Implementation Repository with the object key of the server and the server name imbedded. -  Once the client contacts the Implementation Repository, it will be forwarded to the -correct object.

- - - - - - - - - -
VersionHostPortObject KeyComponents
- - - - - - -
Object Key: - - - - - - - -
TAOTAO versionServer NamePOA IDOBJ ID (actually the OBJ Key of the Server)
-
- -

If the server is expected to remain in the same host/port for a long time, then the IOR -can be optimized by placing the server profile in the IOR before the Implementation -Repository profile.  TAO clients will first try the server, and if that fails, then -try the Implementation Repository.  Clients from other ORBs may behave the same way, -but this isn't guaranteed since the handling of multiple profiles is not yet in the CORBA -spec.

- -

There will be a POA policy to determine which type of Persistent IOR to use.  By -default, the Implementation Repository alone version will be used.

- -

What was wrong with the old IOR?

- -

We need a place to put a TAO marker in the IOR it so TAO servers can differentiate TAO -IORs from IORs of other vendors. In the original scheme used in TAO, Persistent IORs had a -null timestamp. To support virtual servers, we will use that slot to store the server name -so the Implementation Repository knows which server to launch.

- -

Why does the Implementation Repository -profile contain an Object Key?

- -

It needs to know what the object key of the object when forwarding is used. A server -may contain more than one object, so the object key is needed to forward to the correct -object on the server.

- -

POA Extensions

- -

TAO's POA will contain a new TAO-specific method called create_reference_with_virtual_server[_and_id] -(...). This method takes additional arguments for a virtual server name and a -sequence of Implementation Repository IORs. The POA will register the virtual server name -with each of the Implementation Repositories in the sequence passed in. Several -Implementation Repositories can be specified to enhance availability through redundancy.

- -

TAO's POA will also contain a policy for the type of IOR created with create_reference. -  It can either produce the standard type, with just a reference to the -Implementation Repository, or it can produce one also containing a reference to the -current server.

- -

Possible Future Goals

- -

The following are features that may be added to support TAO's Implementation -Repository: - -

    -
  • Optimization on TAO clients to recognize when a server is restarted, and change all - other IORs that contain the server instead of going through the Implementation Repository
  • -
  • Some sort of server security that checks the executable to make sure it is the correct - executable (checksum, signatures, etc).
  • -
  • Add the ability to put servers into DLLs or Shared Object files so the Implementation - Repository can load it via those methods.
  • -
  • GUI interface for such things as the helper application.
  • -
  • Federations of Implementation Repositories.
  • -
  • The ability to start a remote server (possibly with rsh, ssh, rexec, etc)
  • -
- -

Server Restrictions

- -

Most often servers that have Persistent IORs will save their state to secondary -storage. Databases are a good example of this, where the server can be stopped and -restarted with all the information remaining on disk.

- -

The server must also make sure it creates the POA and Object in a way that does not -change the POA ID and Object ID. The Implementation Repository forwards requests based on -the information in the IOR; if the POA ID or Object ID changes, then the Implementation -Repository will be unable to sucessfully forward requests. If the server implements -dynamic servants and dynamic POA activations, then this is not an issue since the -necessary POAs and servants will be created on demand.

- -

Preliminary Interface

- -

The following is a proposed IDL interface for the TAO Implementation Repository:

- -
module TAO
-{
-  // ....
-
-  exception Already_Registered {};
-  // Object already bound in the Implementation Repository
-
-  exception Cannot_Activate
-  {
-    string reason_;
-  };
-
-  exception Not_Found {};
-  // Object not found in the Implementation Repository  
-  
-  struct Environment_Variable
-  {
-    string name_;
-    string value_;
-  };
-  // One environment variable
-  
-  struct INET_Addr
-  {
-    unsigned short port_;
-    unsigned long host_;
-  };      
-  // The location of a server
-
-  typedef sequence<Environment_Variable> Environment;
-  // Complete environment
-
-  typedef sequence<string> Command_Line_Options;
-  // Command line options
-
-  struct Process_Options
-  {
-    string executable_name_;
-    // Executable name
-
-    Command_Line_Options command_line_options_; 
-    // Command line options
-
-    Environment environment_; 
-    // Environment
-
-    string working_directory_;  
-    // Working directory
-
-    unsigned long creation_flags_;
-    // Creation flags
-  };
-
-  interface Ping_Object
-  {
-    oneway void ping ();
-    // Used for checking for liveness of a server.  When the server receives
-    // this, it should send back a response indicating it is sill alive.  
-    // Depending on the policy specified, a timeout can be reached where the
-    // Implementation Repository will restart the server.
-  };
-
-  interface Implementation_Repository
-  {
-    Object activate_object (in Object obj)
-      raises (Not_Found,
-              Cannot_Activate);
-      // Restart server that will contain this persistent object and return the
-      // new Object reference.
-      //
-      // The <Not_Found> exception is raised when <obj> is not found
-      // in the Implementation Repository.  The <Cannot_Activate> exception
-      // is raised when <obj> is found in the Repository but could not be
-      // activated.
-
-    INET_Addr activate_server (in string server)
-      raises (Not_Found,
-              Cannot_Activate);
-      // Restart server that is named <server> and return the host/port
-      // 
-      //
-      // The <Not_Found> exception is raised when <server> is not found
-      // in the Implementation Repository.  The <Cannot_Activate> exception
-      // is raised when <server> is found in the Repository but could not be
-      // activated.
-
-    void register_server (in string server,
-                          in Process_Options options)
-      raises (Already_Registered);
-      // Restart server process when client is looking for <server>.
-      //
-      // The <Already_Registered> exception is raised when <server> has
-      // already been registered with the Implementation Repository.
-      // 
-      // The <Object_Not_Persistent> exception is raised when <server> is
-      // not a Persistent Object Reference.
-
-    void reregister_server (in string server,
-                            in Process_Options options)
-      raises (Already_Registered);
-      // Restart server process when client is looking for <server>.
-      //
-      // The <Already_Registered> exception is raised when <server> has
-      // already been registered with the Implementation Repository.
-      // 
-      // The <Object_Not_Persistent> exception is raised when <server> is
-      // not a Persistent Object Reference.
-
-    void remove_server (in string server)
-      raises (Not_Found);
-      // Remove <server> from the Implementation Repository.
-      //
-      // The <Not_Found> exception is raised when <server> is not found
-      // in the Implementation Repository.
-
-    Profile server_is_running (in string server,
-                               in INET_Addr addr, 
-                               in Ping_Object ping);
-      // Used to notify the Implementation Repository that <server> is alive and
-      // well at <addr>.
-
-    void server_is_shutting_down (in string server);
-      // Used to tell the Implementation Repository that <server> is shutting
-      // down.
-    };
-};
- -
- -

Alternate Implementations

- -

Other ORB vendors use alternative techniques for their Implementation Repositories. -These techniques usually require new naming techniques to access persistent object -references and new client-side APIs to bind to persistent object references. TAO's -Implementation Repository will not require such extensions.

- -

Another design of an Implementation Repository uses an Object Reference that points to -the Implementation Repository instead of pointing directly to the persistent object. This -extra level of indirection is used by the Implementation Repository to start the server -(if needed), and then uses the Location Forwarding mechanism to forward the client request -to the server. The difference between this design and TAO's design is that the persistent -IOR in TAO will contain a profile pointing to a location of the server (where it still -might be running) to try first, and then only if that fails does the client contact the -Implementation Repository. This is an optimization for case where the server does not shut -down often, and most requests do not need to be forwarded to a new address.

- -

In cases where most requests will require a forward, TAO can support a policy that is -just like this alternative, where the Implmentation Repository will be contacted first.

- -
- -

Accessing the Implementation Repository -

- -

The Implementation Repository will be transparent to the clients and the servers. -Clients will only deal with IIOP 1.1 IORs, and in the default case all the Implementation -Repository logic on the server side will be handled internally by the ORB and the POA.

- -

Helper Application

- -

A helper application will be included with the Implementation Repository. It will be a -command-line utility that will assist users with adding and removing server records -(containing virtual server names and executable name/options) from the Implementation -Repository.

- -

Locating an Instance of the Implementation -Repository

- -

Server-side

- -

In the default case, the Implementation Repository will be found via the command-line, -environment variables, and multicast (in that order). This location strategy is consistent -with that used by TAO to local its default Naming Service instance. Using the POA -extensions, other Implementation Repositories can be specified in the call to POA::create_reference_with_virtual_server. -The default port of the Implementation Repository can be overridden through command-line -options or environment variables.

- -

Client-side

- -

One or more Implementation Repositories will be stored in additional profiles in the -IOR. Other Implementation Repositories can also be located by multicasting (on a default -multicast group) the server name of the Persistent Object the client is interested in. The -default multicast group and default port of the Implementation Repository can be -overridden through command line options or environment variables.

- -

In most cases, one Implementation Repository will be enough. For redundancy, several -Implementation Repositories can be specified.

- -
- -

How It Works

- -

How a server produces a Persistent IOR -(in the default case)

- -

Before a server starts, it must be registered (via a command-line utility) with an -implementation repository. On platforms that don't support multicast, the Implementation -Repository must be specified on the command line or in an environment variable. - -

    -
  1. Now the server will start up and call ORB_init. ORB_init, if - not passed a server name, will take argv[0] and use that as a default server name (TAO - expects this to be the executable name).
  2. -
  3. ORB_init will create a ping object.
  4. -
  5. ORB_init will look for Implementation Repositories on the command-line, - environmental variables, and then through multicast (in that order). Once it finds one it - registers itself and passes the ping object to the implementation repository with server_is_running - operation.
  6. -
  7. The profile returned by registration will be stored for later use.
  8. -
  9. Client later can call the POA::create_reference operation.
  10. -
  11. The create_reference operation will create the local profile.
  12. -
  13. The stored Implementation Repository profile will have its object id changed to be the - object key just created.
  14. -
  15. Both profiles will be joined together if the multiple profile IOR policy is set, and - then returned.
  16. -
- -

How a server produces a Persistent IOR -(in complex cases)

- -

As with the default case, the server must be registered with an Implementation -Repository, although it does not need to be multicast aware since the IORs will be passed -to the POA by the program. - -

    -
  1. ORB_init is called and does the default work (if it has Implementation - Repositories to contact).
  2. -
  3. POA::create_reference_with_virtual_server[_and_id] will be called with a - server name and list of Implementation Repositories.
  4. -
  5. The profile for the object is created.
  6. -
  7. The ping object created in ORB_init and the object key is passed to the - Implementation Repositories, and their profiles are returned.
  8. -
  9. Both profiles will be joined together if the multiple profile IOR policy is set, and - then returned.
  10. -
- -

How a client uses a Persistent IOR

- -

For all Clients: - -

    -
  • Client obtains a Persistent Object Reference, which contains multiple profiles to both - regular objects and Implementation Repositories.
  • -
  • It will now make a request on the first profile.
  • -
  • If the first profile if the server profile, and the server is still there, then it will - be successful.  If the server has moved (or shut down), then the next profile will be - tried.
  • -
  • If the first profile is the Implementation Repository, or if the server profile failed, - then it will be contacted.  The Implemenation Repository will then return NOT_FOUND - or will start up the server and return a Location Forward message.
  • -
- -

If everything fails, then most clients will return failure for the request. TAO clients -will also have added functionality where other Implementation Repositories that are -specified on the command-line, in environment variables, or found through multicast will -also be contacted. - -

    -
  • If all of the profiles fail, then contact the other Implementation Repositories. First - get those specified on the command line or in environment variables.
  • -
  • Then, if multicast is available:
      -
    • Multicast the Object Reference to a group of Implementation Repositories
    • -
    • Wait until response or a timeout. The response will contain the Object Reference of a - Implementation Repository that knows about the Object Reference
    • -
    -
  • -
  • Now connect to any Implementation Repositories that have been found.
  • -
  • Call activate passing the Persistent Object Reference.
  • -
  • If a new Object Reference was sent back then retry the request using the it. If this - request fails, then fail (no more retries).
  • -
  • If a null reference was sent back, then fail.
  • -
- -

TAO clients will have an optimization where if there are several IORs that have the -same server name, and one of them gets forwarded, then the client will be able to change -its other IORs without going through the overhead of contacting Implementation Repository.

- -
- -

Back to the TAO documentation page.

- - - diff --git a/TAO/docs/index.html b/TAO/docs/index.html deleted file mode 100644 index ed4e9bb731a..00000000000 --- a/TAO/docs/index.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - -TAO Documentation - - - - -
- -

TAO Documentation

- - -


- -

Back to the TAO home page.

- - diff --git a/TAO/docs/leader_follower.html b/TAO/docs/leader_follower.html deleted file mode 100644 index beb09eb92b3..00000000000 --- a/TAO/docs/leader_follower.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - Implementation of leader follower model for global resources - - - - - -
-

Leader follower model for global resources

-
-

Context

- Global resources in TAO mean one ORB and using the reactive strategy - one Reactor. TAO uses the ACE Select Reactor for this purpose. - One main problem with multithreading and only one Reactor is that - only one thread can wait in handle_events at a time. - Handle_events is called, when a thread expects input, meaning - it is blocking to wait for it. - -

Idea

- One solution to this problem is to use a leader-follower model, - which partitions the set of threads wanting to wait for input - into one leader and followers. Every thread is eligible to become - a leader. A thread wanting to wait while nobody else is waiting - becomes the leader. If the leader gets its input, which is in - this case its response, it will select a new leader out of the - set of followers. The followers wait on a condition variable they - own and register it with the ORB core. The ORB core is thereby - responsible for making this access thread-save by providing - a lock for the list of followers with some flags, like - leader_available. - -

Implementation

- The above mentioned condition variables are owned by the - connection handlers, because reponses are expected per connection, - not necessarily, thinking about other resource models, per thread. -

- The involved classes are TAO_ORB_Core, TAO_Client_Connection_Handler - and TAO_ORB. In the TAO_ORB_Core class the list of followers, a lock, - a leader reference counter and a leader thread ID were added. - The handle_input and send_request methods on the TAO_Client_Connection_Handler - contain 95% of the code used for implementing the leader-follower - model. Care has to be taken, that the connection handlers are - suspended and resumed, properly. A special concern is that - no deadlocking occurs. - -


- For more details and questions, -

- -

Michael Kircher
-

-

Irfan Pyarali
- - - diff --git a/TAO/docs/locate_request.html b/TAO/docs/locate_request.html deleted file mode 100644 index 1978b2f3336..00000000000 --- a/TAO/docs/locate_request.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - Implementation of locate requests - - - - - -
-

Locate requests

-
-

Context

- The CORBA specification describes locate requests as a way to - find out if an object is available at the other end of the wire - or not without invoking an actual method on it. - This way expensive marshalling and demarshalling can be prohibited. - Locate requests are part of GIOP. - -

Implementation

- The main classes involved in locate requests are the Server_Connection_Handler - to do check for the object. This is done by invoking the non standard - "non_existent" method on it. If it fails an exception will be thrown, - if the exception is not the Forward_Request exception of the POA, - the object is not there. If it is this specific exception, the new - forwarded location can be extracted and returned in the locate reply. - If the call on "non_existent" succeeds, we know the object is there and - return that. - - The client part of the locate request is handled int Locate_Request_Invocation. - The response is checked on the answer. If there, we go on and invoke the - actual method on the distant object. If not there, we fail and throw the proper - exception and if we get forwarded we replace our IIOP profile acordingly. - -

API

- To activate the locate requests, please invoke the non standard method - "_use_locate_requests (CORBA::B_TRUE)" on your CORBA::Object or any - object which inherits form this object. This will activate the locate - request on the first call to the object. The second time and on all - following calls "no" locate request will be used any more. To switch - it on again use "_use_locate_requests (CORBA::B_TRUE)" again. - You can also switch it of by "_use_locate_requests (CORBA::B_FALSE)". - -
- For more details and questions, -

-

Irfan Pyarali
-

-

Michael Kircher
-

- - - diff --git a/TAO/docs/orbsvcs.html b/TAO/docs/orbsvcs.html deleted file mode 100644 index f16fcafd7b5..00000000000 --- a/TAO/docs/orbsvcs.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - TAO's CORBA Object Services Documentation - - - - - -


-

TAO's CORBA Object Services Directory Hierarchy

- -

The file and directory organization for TAO services can be - confusing at first glance (and even on subsequent ones to be - honest), - so we felt like some rationale and explanation of the directory - hierarchy was needed.

- -

For general sanity all TAO services files are located under - $TAO_ROOT/orbsvcs.

- -

It is expected that clients use more - than one service at the same time - (in fact some of the services already do, for instance the - Event Service uses the Naming Service and the - Scheduling Service). - For this reason all the services stubs are grouped in one - library. - This library is located in - $TAO_ROOT/orbsvcs/orbsvcs. - Usually the include path is only $TAO_ROOT/orbsvcs, - so files are included like this:

- -

-#include "orbsvcs/CosNamingC.h" -

- -

To simplify the IDL generation the skeletons are also on the - library, - this is not a problem for client programs and most services need - to link the library anyway - (since they use other services.) - Further, - the current support for collocation requires that clients link - the skeleton files anyway. -

- -

In the future we intend to use ACE Service Configurator to give - the users control over collocation of the services implementation. - As a first cut all the service implementations are included in the - orbsvcs library $TAO_ROOT/orbsvcs/orbsvcs. - Since there are serveral services and each one is implemented - using several files we have given a different directory to each - service. - This structure could also simplify a future split into several - libraries (if it proves necessary). -

- -

The complete list of directories is:

- -

- - - - - - - - - - - - - - - - - - - - - - -
ServiceImplementation Sub-directory
A/V Streams Serviceorbsvcs/AV
Concurrency Serviceorbsvcs/Concurrency
Event Serviceorbsvcs/Event
LifeCycle Serviceorbsvcs/LifeCycle
Logging Serviceorbsvcs/Log
Naming Serviceorbsvcs/Naming
Property Serviceorbsvcs/Property
Scheduling Serviceorbsvcs/Sched
Trading Serviceorbsvcs/Trader
-

- -

Note that in the current version of TAO we still have standalone - binaries for some of the services. However, some applications - may want to control what process implements a particular service. - Therefore, it has proved useful for - debugging purposes to keep the most used services separated. - The binaries in question are located in - $TAO_ROOT/orbsvcs, and the list includes: -

- -
    -
  • Concurrenty_Service
  • -
  • Dump_Schedule
  • -
  • LifeCycle_Service
  • -
  • Event_Service
  • -
  • Naming_Service
  • -
  • Scheduling_Service
  • -
  • Trading_Service
  • -
- -

In the future we plan to use a single binary and ACE Service - Configurator and keep a single binary.

- -

Finally the tests and example programs are located in - $TAO_ROOT/orbsvcs/tests; - once more each may involves more than a single binary, - so each one is kept in its own directory; - the following list describes the contents of each one: -

- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Test directoryPurpose
AVStreamsA complete A/V server and client.
ConcurrencyTest the Concurrency Service.
Event_LatencyTest the Event Service and measure end-to-end latency, - it also uses the Scheduling and Naming services.
EC_MultipleConnect two Event Channels using the - EC_Gateway, - measure latency, utilization and minimum spacing.
LoggerAn example logging service using the Naming Service to - locate a factory.
NamingAn advanced test of the Naming Service.
PropertyTesting for the Property Service.
SchedA test of the Scheduling Service.
Simple_NamingA very simple Naming Service test.
SimulatorPrototype implementation of DOVE (DOVE Agent, DOVE - Browser, DOVE MIB, DOVE Application). The DOVE Agent - consists of the Event Channel, which is then connected to - a DOVE Browser implemented in Java.
Trading_ServiceImplementation of the Trading Service.
-

- -

SEE ALSO

- -

You may you to check TAO - release notes - for up to date information on status, changes, future work, etc.

- -
- -
Carlos O'Ryan
- - diff --git a/TAO/docs/poa_migration.html b/TAO/docs/poa_migration.html deleted file mode 100644 index 5623a283698..00000000000 --- a/TAO/docs/poa_migration.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - Migrating from the BOA to the POA - - - - -

-

Migrating from BOA to POA

- -
    -
  • Client side

    -

      -
    • Very little has changed, and some have not needed any changes.
    • -

    • You'll have to insure that the Makefile includes .o's for both the server -and client; this is necessary to support collocation.
    • -

    - -
  • Server side

    -

      -
    • POA_init() is replaced with resolve_initial_references("RootPOA") followed -by a _narrow operation.
    • -

    • The implementation no longer inherits from the client-side stub; they -inherit from PortableServer::ServantBase. The implications of this are (a) if -you want a object reference for that, you must use the _this() method.
    • -

    • Object ID's are assigned by the POA unless you activate the servant with a -specific ID; IDL_Cubit has examples on how to do this.
    • -

    • Unlike the BOA, the POA explicitly addresses the temporal nature of servants -and declares that a POA can service either transient or persistent servants -(not both). The root POA's (mandated, unchangeable) policy is "transient". -The implications of this are that in order for a client to be able to -manufacture an object reference on its own and use that to access an object, -the servant for that object must be registered with a POA whose policy is -"persistent". Thus, you must create a child POA with that policy and register -the servant with that POA. NOTE: when the POA declares something as -"persistent", it is only stating that the key is valid between different runs -of the server; it makes no claims that state or anything else is persistent.
    • - -

        -
      • Servants are not automatically activated, hence you must register - them by calling some of the activate_object* methods on a POA or - calling _this() on the servant; with the latest you have no control on - the ObjectId (which sometimes is good), and the POA must support the - right policies (the RootPOA does).
      • - -

      • Servant constructors use to take a parameter to set - they object id, this is not needed now, in fact in many cases they use - to pass this argument to the skeleton class: this will fail now.
      • -

      -This list is not intended to be exhaustive, but should give you a good -starting point. If you find things along the way which have to change and I -didn't note them, please send them to me. Perhaps we can work together on the -ultimate migration document.

      -

    -
- -

- -Back to the TAO -documentation page. - - - - diff --git a/TAO/docs/reactivator.html b/TAO/docs/reactivator.html deleted file mode 100644 index e4abd9788ae..00000000000 --- a/TAO/docs/reactivator.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - TAO Reactivation Service - - - - - -


- -

TAO Reactivator

- -

Has moved to here as the Implementation Repository

- -
- -

Back to the TAO -documentation page.

- - diff --git a/TAO/docs/releasenotes.html b/TAO/docs/releasenotes.html deleted file mode 100644 index 21854918af1..00000000000 --- a/TAO/docs/releasenotes.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - TAO Release Information and TODO List - - - -
-

-Release Information for The ACE ORB (TAO)

- -
-

-Version 0.0.12

- -
-

-17-October-1997

- -
- -This document has moved here. - - diff --git a/TAO/docs/releasenotes/TODO.html b/TAO/docs/releasenotes/TODO.html deleted file mode 100644 index 8bb6285d2b0..00000000000 --- a/TAO/docs/releasenotes/TODO.html +++ /dev/null @@ -1,1086 +0,0 @@ - - - TAO TO-DO List - - - -

- -
-

General TO-DO list for TAO

-
- -

- This document presents our TO-DO list for TAO. - Currently, the list is not very well organized or prioritized. - It started as a personal TODO list for Carlos, so it is biased - towards the Event Service and related components. - As more people get involved it will become more - organized. -

-

- Last Updated: $Date$ $Revision$ -

- -
-

-

Work in progress

-

- -
    -
  1. EC: Automate EC multicast group usage. This probably - requires some kind of server that mantains the relation - between event type/source and the mcast groups. -
    [STATUS] Carlos is working on this. -
    [STATUS] An advanced example that uses multiple mcast - groups per process was developed; this example would be used - to test the required features for general mcast support. -

    -
  2. - - -
  3. Add compiled marshalling -
    [STATUS] Andy is working on this. -

    -
  4. - -
  5. Implement the new DynAny types. -
    [STATUS] Jeff is working on this. -

    -
  6. - -
  7. Implement an Implementation Repository for TAO. -
    [STATUS] Darrell is working on this. -

    -
  8. - -
- -
-

-

Pending Tasks

-

- -

Performance optimizations

- -
    -
  1. Use active demuxing in the POA to locate servants in - constant time, as well as active demuxing - in the skeletons to locate operations in constant time. -

  2. - -
  3. Optimize twoways by delaying memory allocation for the - incoming data buffer, thus improving interleaving between the - client and server (the client does something useful before - starting to wait for the server). -

  4. - -
  5. Further optimize memory allocation by using a memory pool - for the incoming CDR stream. -

  6. - -
  7. Further optimize the outgoing memory allocation by adding - support for message blocks allocated from a pool (the - Message_Block class itself not the Data_Block or the buffer it - contains). -

  8. - -
  9. The data blocks and their buffers could be allocated in a - single operation, using the beginning of a buffer to contain - the data block and the rest of it to contain the actual buffer -

  10. - -
  11. Parameterize support for location forwarding since some - applications don't need this feature. -

    -
  12. - -
  13. Parameterized support nested upcalls, some applications - don't need this feature. It seems like the right way to - strategize this by changing the Client_Connection_Handlers. -

    -
  14. - -
  15. Some applications cannot afford compiled marshaling for - all the stubs and skeletons, - the generated code size would be too big. - Yet some operations could be critical and require code as - efficient as possible; - a #pragma can be added to give users - fine-grained control over code generation. -

    -
  16. - -
  17. For extremely low latency applications we could remove - some fields from the IIOP protocol, for instance: -

      -
    • The first four bytes are always 'GIOP' -
    • -
    • In homogeneous environments sending the byte order is a - waste -
    • -
    • Fields like the Principal, the services - context list, the versions can also be removed -
    • -
    -
    [STATUS] Most of this optimizations were implemented, - and can be enabled using the -ORBiioplite command - line option. -

    -
  18. - -
  19. Once the memory for incoming data is taken from an - allocator we can implement different approaches to manage - that memory: -

      -
    • The allocator is global, allowing applications to keep - the incoming buffer even after the upcall has finished. -
    • -
    • The allocator is TSS, giving maximum performance for - applications that do not wish to preserve the buffer - after the upcall. -
    • -
    • The allocator is a TSS cache for a global memory pool, - this tries to strike a balance, by practically eliminating - the locking on each allocator/deallocation. Some strategy - is required to return the memory to the global pool, - consider, for example, - an application that will always allocate memory from one - thread and deallocate it in another thread. -
    • -
    -

    -
  20. - -
  21. Optimize marshaling for TypeCode, by not - including the optional fields on the wire; - this fields are useful (in some cases), so they should be - present for the "on memory" representation. -

    -
  22. - -
  23. In some cases it is possible to marshal a complete - structure in a single operation to allow this the structure - must have fixed size (in the CDR spec sense) and its memory - layout must match the CDR layout. -

    -
  24. - -
  25. If all the arguments to an operation are fixed size then - the header can be sent before the rest of the data, if the - data is big enoug this can represent a performance - improvement (because we increase overlapping between client - and server); further if the arguments also have the proper - layout they can be sent without copying to a temporary - buffer. -

    -

    If the arguments are not fixed size the header could be - sent before, but two passes over the data will be required. -

    -
  26. -
- -

New features

-
    -
  1. EC: Improve configuration support in the EC, give an - example of a single threaded EC, support different dispatching - strategies, etc. -

  2. - -
  3. Support native C++ exceptions. - This entails the following subtasks:

    -

      -
    1. Create exceptions with the right dynamic type on the - client side. - For SII this should be simple: - the stub give us a list of the - possible user exceptions together with the factory methods - to allocate an exception of each type; - if the exception is not on that list we throw a - CORBA::UNKNOWN. - For DII we have to throw a - CORBA::UnknownUserException; - the user will receive the real exception inside an - Any then and she will have to extract it - either using the >>= operator or using the - forthcoming DynAny. - System exceptions are even easier, we always know how - to create them. -
      [STATUS] SII is working OK, we still need to complete - the support for DII. -
      [STATUS] The DII support was completed, but remains - untested. -

    2. - -
    3. Add the _raise() method to the exceptions. -
      [DONE] -

    4. - -
    5. On the server side: catch any CORBA exceptions thrown by - the upcall, and then transform that into the - proper Reply to the client side. - In the case of another C++ exception should we do - something? -
      [DONE] -

    6. - -
    7. On the client side, after creating the exception with - the right dynamic type we must invoke - _raise() on it. -
      [DONE] -

    8. - -
    9. Provide a TSS default value for the CORBA_Environment, - all the methods in the ORB library should use this - default. -
      [DONE] -

    10. - -
    11. The IDL compiler should be able to generate the - alternative mapping, but with the TSS default for the env - argument. -
      [DONE] -

    12. - -
    13. The IDL compiler should generate the standard mapping, - without the environment argument. -

    14. - -
    15. In general we will need to complete and debug the - TAO_TRY macros; - they have limitations when dealing with the - alternative mapping, but are very useful. -
      [STATUS] This seems to be OK now, the code seems to - compile and work correctly now. -
      [STATUS] We need a new macro (TAO_TRY_THROW) to use - inside the TAO_TRY blocks, because TAO_THROW will not go - into the TAO_CATCH blocks, even if the exceptions match. -

    16. - -
    17. We need to test the ORB for resource leaking in the - presence of exceptions. -

    18. - -
    19. We could write portable server side code with - any of the mappings above if we use a macro for the env - argument, but the results are ugly: -
      -// IDL
      -interface Foo {
      -  void bar (in long x);
      -};
      -
      -// C++ 
      -class Foo {
      -  void bar (CORBA::Long x TAO_ENV_ARG)
      -               TAO_THROW_SPEC ((CORBA::SystemException));
      -};
      -	    
      - note the missing comma before the TAO_ENV_ARG parameter. -

    20. - -
    -
    [STATUS] Carlos is working on this. -
    [STATUS] The main task ahead is to generate the conforming - mapping for the server side, i.e. remove the - CORBA::Environment argument and generate the - throw specs. -

    -
  4. - -
  5. Add support for multiple Profiles in the ORB (completing the - IIOP 1.0 support) -

  6. - -
  7. Support IIOP 1.1 in the ORB -

  8. - -
  9. Support IIOP 1.2 in the ORB -

  10. - -
  11. Support GIOP 1.1 in the ORB (fragments) -

  12. - -
  13. Use the IIOP 1.1 profile info to pass QoS info and use it to - preserve end-to-end QoS. -

  14. - -
  15. The size of pre-allocated buffer for the outgoing CDR - streams is defined at compilation time; but if we use an - efficient enough allocator we could make its size configurable - via the svc.conf file. In any case the *second* (and - subsequent) buffers come out of the allocator, so their sizes - could be configured in the already mentioned file. -
    [NOTE] We have to be able to do this while minimizing the - number of calls to ORB_Core_instance() -

  16. - -
  17. The TypeCode internal (private) state needs locking, double - checked locking is needed to avoid excessive overhead, there - is potential for memory leaks if this locking is not used. -

  18. - -
  19. IDL compiler front-end should be case insensitive (actually - it should flag identifiers that only differ by case as a - conflict). -

  20. - -
  21. The operation tables do not need to be statics, they could - be created on creation of the first servant of that type. -

  22. - -
  23. Support for unions with default cases (implicit or explicit) - in the IDL compiler is incomplete. -

  24. - -
  25. It seems that some memory is leaked from the ORB cached - connector. -

  26. - -
  27. Support for the fixed data type in the IDL compiler -

  28. - -
  29. CDR stream support for wchar is flaky or at least untested. -

  30. - -
  31. Add a corbafwd.h header file to eliminate the deep (and - recursive) header dependencies in TAO. -

  32. - -
  33. Add << and >> operators to the - CORBA::Request class, to simplify DII invocations - (this is an Orbix-sism). - The IDL compiler has to generate them for the user defined - types. -

  34. - -
  35. Several helper structs for Any have to be - added, mainly: to_object, to_wchar, - to_wstring and their from_ -
    [STATUS] Jeff added several of them, I need to check what - is missing. -

  36. - -
  37. The IDL compiler could generate files with empty - implementation classes, just to make the life of implementors - a bit easier.

    -
  38. - -
  39. Prepare the 1.0 release:

    -

      -
    1. Integrate the compiled marshalling approach. -
    2. -
    3. Verify the GPERF is working in all the relevant - platforms. -
    4. -
    5. Integrate active demux of operations? -
    6. -
    -

  40. - -
  41. Support the Sun bootstrapping mechanism for the Naming - Service -

  42. - -
  43. Add a -ORBlogfile flag so we can set the ACE_ERROR and - ACE_DEBUG output destination in all TAO applications -

  44. - -
  45. EC: Purify, purify, purify the EC -

  46. - -
  47. EC: Quantify the EC. -

  48. - -
  49. Support several calls to ORB_init() on the same thread. -

  50. - -
  51. EC: Call ORB_init() in the EC threads? - [The dispatching threads for Boeing] -

  52. - -
  53. EC: Build an EC example that uses all the cool features - (multiple ORBs on each process, collocated EC and Scheduling - service, Naming, etc.) -

  54. - -
  55. EC: Extend the Concurrency Service (or create a new - one) that allow us to have global "barriers" to synchronize EC - startup/shutdown. -

  56. - -
  57. EC: Correlation in the EC has a bug [?] - Build regression tests for the EC features (filtering, - correlation, timers, etc). -

  58. - -
  59. EC: Build a COS Event Channel on top of the RTEC - Event Service. -

  60. - -
  61. Check what is failing in $TAO_ROOT/tests/CDR/tc. -

  62. - -
  63. EC: Debug interval computation in Linux (and NT?) -

  64. - -
  65. EC: Improve support for fragmentation and reassembly - in the multicast implementation of the EC. -

  66. - -
  67. Remove the uneeded methods from CORBA::Object -

  68. - -
  69. The IDL compiler could generate a static method to access - the interface repository ID of a class. -

  70. - -
  71. The IDL compiler should support - #include "orb.idl" properly. - IMHO it should not - add any #include to the generated code and the - orb.idl file should contain all the declarations, - except for the pseudo objects that are should be hardcoded - into the compiler. -

  72. - -
  73. Cleanup memory managment in some of the servers, for - instance: Naming still believes that controlling the memory - for a stub will control the servants, this is not true - anymore. -

  74. - -
  75. The current scheme for the orbsvcs leaves the user without - control over collocation of servants, we need to move to a scheme - similar to the one in $ACE_ROOT/netsvcs. -
    [STATUS] The user can control collocation, but we need a - dynamic way to do it (or an example) that exploits the Service - Configurator. We also may need to split the library. -

  76. - -
  77. EC: Use the Service_Configurator to dynamically load - the EC Module_Factory thus making it really configurable. -

  78. - -
  79. EC: Cleanup the IDL structures for subscriptions, - publications, etc. (in the EC). -

  80. - -
  81. Resolve the Typecode::equal dilemma: is it structural or - type equivalence? Or a mixin? -
    [STATUS] The correct interpretation seems to be: -
      -
    • If the interface repository ID is not present and/or the - optional field name is not present then TypeCode::equal - should just test for structural equivalence. -

    • -
    • If the interface repository ID is present then type - structural equivalence is not enough -

    • -
    • The spec (2.2 or 2.3?) will add a - equivalent method to check for structural - equivalence modulo aliases -

    • -
    -

  82. - -
  83. The methods on the server side must have a throw - spec, check CORBA 2.2, 20.35

    -
  84. - -
  85. According to Vinoski and Henning the - CORBA::Policy objects are also locality - constrained. - I could not find a references in the spec.

    -
  86. - -
  87. Exercise the insertion and extraction operators for - Any in the Param_Test, - for example, provide a new -i dii_any_op - testing mode. -

    -
  88. - -
  89. Improve the connection recycling strategies, for - instance, - several strategies are possible: limit the maximum number of - open sockets, probably with both HWM and LWM bounds, - with different policies to choose the socket to close (LFU, - MRU?); - or maybe be more aggresive and recycle a socket once - all the object references pointing to a server are closed. - The later approach could be easily implemented if each - IIOP_Object held a reference to the set of sockets opened to - a certain TCP/IP address. -

    -
  90. - -
  91. Test Any with variable sized types, such as structures - that contain a string inside. Jeff reports that there is a - problem when destroying Anys initialized with this types, - even if the IDL compiler generated <<= operator is used. -

    -
  92. - -
  93. Include a regression test to verify that - octet is not a valid discriminator for - unions -

    -
  94. - -
  95. Verify that the typecode for unions use a - octet with value 0 for the default - discriminator -

    -
  96. - -
  97. Add the CORBA::TypeCode::_tc_Bounds and the - CORBA::TypeCode::_tc_BadKind type codes. - Currently they are in the wrong namespace (just - CORBA::_tc_Bounds). -

    -
  98. - -
  99. Is the client side in TAO handling a - CloseConnection GIOP message properly? -

    -
  100. - -
  101. If the connection to the server cannot be established the - right exception is TRANSIENT, not - COMM_FAILURE; this and other exception - inconsistencies have to be checked -

    -
  102. - -
  103. The spec (CORBA 2.2, 20.17) defines accesor methods for the - fields of a SystemException. -

    -
  104. - -
  105. In some platforms it may be necessary to add an extra - value to an enum to force it to be 32-bits wide. -

    -
  106. - -
  107. The spec requires that strings as fields of structures be - initialized to the empty (not the null) string. -

    -
  108. - -
  109. The SINGLE_THREAD_MODEL for the POA requires - that the execution for all request on that POA happen on the - same thread. -

    -
  110. - -
  111. The methods in CORBA::TypeCode should be - const. -

    -
  112. - -
  113. Some ORBs (Visibroker is one example) incorrectly send a - SYSTEM_EXCEPTION status reply when they are actually - throwing a user exception. - TAO is not handling this condition gracefully (this is a - critical problem), but further, it could be interesting to - support a "compatibility with broken ORBs" mode, - and possibly strategize it. -

    -
  114. - -
  115. Many of the test programs in the - $TAO_ROOT/tests hierarchy are actually sample - programs or performance tests. -

    -

    We need to re-organize this hierarchy, following the ACE - scheme: -

      -
    • tests for programs that do regression testing. -
    • -
    • examples for programs that illustrate how to use - TAO, a service or a component -
    • -
    • performace-tests for programs that are used in - performance measurements -
    • -
    - the same hierarchy may be needed in - $TAO_ROOT/orbsvcs. -

    -
  116. - - - - - -
  117. The ORB should support server side and client side - interceptors

    -
  118. - -
  119. The ORB does not have an interface repository

    -
  120. - -
  121. Once the interface repository is in place we could add - support for CORBA script -

    -
  122. - -
  123. The current scheme for Typecode (keeping a CDR buffer with - their representation) is broken; we should use classes for - each variant of a TypeCode; but initialization would be - complicated then. -

  124. - -
  125. The CORBAlite RFP is very interesting IMHO we just need to - remove features from TAO to make it a CORBAlite - implementation. The problem is how to keep the full blown - CORBA implementation also, this is an idea: - Write the TAOlite version of a class (example TypeCode):

    - -
    -	class TAO_CORBAlite_TypeCode {
    -	// Just the CORBAlite methods are implemented.
    -	};
    -	
    - -

    Derive the full blown implementation:

    - -
    -	  class TAO_CORBA_TypeCode : public TAO_CORBAlite_TypeCode {
    -          // Declare all the other methods.
    -	  };
    -	
    - -

    create two namespaces:

    - -
    -	  // in tao/CORBAlite.h
    -	  class CORBA {
    -	    tyedef TAO_CORBAlite_TypeCode TypeCode;
    -	  };
    -	
    -	  // in tao/CORBAfull.h
    -	  class CORBA {
    -	    typedef TAO_CORBAfull_TypeCode TypeCode;
    -	  };
    -	
    - -

    then (at compile time) the users chooses between the CORBAlite - or CORBAfull implementations:

    - -
    -	// In $TAO_ROOT/tao/corba.h
    -	#if USERS_WANTS_FAT_FREE_CORBA
    -	#include "tao/CORBAlite.h"
    -	#else
    -	#include "tao/CORBAfull.h"
    -	#endif
    -	
    - -

    We need to consider how to support even smaller profiles that - the CORBAlite RFP, like removing Any or - fixed<> support. - We also need to come out with a scheme to support - interpretive marshalling in the CORBAlite framework (where - TypeCodes don't have enough methods as to traverse them). -

    -

  126. - -
  127. Consider decompositions of the ORB that would allow - dynamically linked plug-ins, examples of things that would be - easy to implement as plugins: -
      -
    • SSL support -

    • -
    • UNIX socket support -

    • -
    - Things that would be really hard: -
      -
    • Dynamically load the support for costly features, as the - ImplRepo or Location Forwarding. -

    • -
    • Dynamically configure POA with or without support for - holding state. -

    • -
    -

  128. - -
  129. Currently the IDL compiler creates an operation table that - includes all the base classes operations; this permits the - generation of efficient code that does not rely in - dynamic_cast or the _downcast() method for Servants (which - compare strings, hence it is slow). - It could be interesting to implement the alternative approach - were the class only looks its own operations and then tries - the parent. This will reduce code size, but will probably - decrease performance. -

  130. - -
  131. Server_Request objects in TAO are magical, the _duplicate() - method returns 0 and release() does nothing. - The problem starts because Server_Request is allocated from the - stack (to speed up things), hence reference counting would be - useless. Adding a clone() method will work better, but the - Server_Request holds pointers to several positions in the CDR - stream, we could clone the CDR stream, but a normal - Server_Request does not own it.... In our opinion (Carlos and - Irfan) we need not worry about this until we find a use case for - it. -

  132. - -
  133. - The current implementation of collocation is optimal for - hard-real-time - applications, but in some cases it may be desirable to follow - the normal execution path yet minize costs for collocated - calls. - An example would include an application that activates the - objects on demand. - It would be interesting to have a half-collocated stub - implementation, that will marshall the request and then - invokes the normal path on the "server" side, but without - crossing the kernel boundary. Ideally even the serialization - could be minimized or avoided. -

  134. - -
- - -

-

Completed Tasks

- -
    -
  1. The mapping for the CORBA boolean type does - not require the CORBA::TRUE constant, - but it never mentions the CORBA::B_TRUE constant - either; in fact it recommends the usage of the literals - 0 and 1. - We should move to use the CORBA::TRUE style, - because other ORBs offer the same feature, - but only use the literals, - to show the "Right Way"[tm] of doing CORBA things. -

    -
    [DONE] Irfan removed the CORBA::B_TRUE and - CORBA::B_FALSE constants and replaced them with - the compliant 0 and 1 -
  2. - -
  3. Add an option to the IDL-compiler (e.g. -rp) meaning - "generate relative include paths". -
    [STATUS] Alex is working on this. -
    [DONE] -

    -
  4. - -
  5. Add the <<= and >>= operators for - CORBA::TypeCode -
    [DONE] Jeff added the operators

    -
  6. - -
  7. The IDL compiler should generate the code locally (not in - the directory where the .idl resides) or at least give an - option to do so -
    [DONE] Alex completed this, he even added an option to - select the output directory. -

  8. - -
  9. Are nested upcalls in different concurrency models, like - thread-per-connection working? -
    [STATUS] Irfan reports that this works correctly with - thread-per-connection -
    [DONE] The NestedUpcall/Reactor test is - giving the same results with either - thread-per-connection or reactive - strategies. -

  10. - -
  11. Normalize the compiled marshalling interface: the IDL - compiler is going to generate a different interface than the - code I showed in the EC_Custom_Marshal example; we need to - make all the code consistent so users have easy access to it. -
    [DONE] -

  12. - -
  13. Object references inside structures or sequences are not - decoded properly, the problem starts because the interpreter - expects a CORBA::Object_ptr, but the real type is a T_var; - virtual inheritance adds the last ingredient to the poison. -
    [STATUS] A possible solution is to use a T_manager_var that - has two fields a Object_ptr and a T_ptr.... -
    [DONE] The solution was to use - TAO_Object_Field_T<T>, that - behaves like the _var classes, but extends them to provide - virtual methods to _upcast() and - _downcast() to and from - CORBA_Object_ptr. - Similar methods were added to sequences of objects. -

  14. - -
  15. Add options to the IDL compiler to set the suffixes. -
    [DONE] Alex finished this. -

  16. - -
  17. Support for 64bit longs in the IDL compiler -
    [DONE] They were supported already, but we had to test - them, I added a test to Param_Test. -

  18. - -
  19. The do_static_call() and do_dynamic_call() methods should - use an array of void* (in the first case static and generated - by the IDL compiler); - this will remove the problems with g++ and probably work - faster. -
    [DONE] -

  20. - -
  21. The IDL compiler gets confused with paths in NT, this may be - due to my changes to report errors correctly (coryan). -
    [STATUS] Creating a Win32 workspace to try it. -
    [DONE] -

  22. - -
  23. The current implementation of octet sequences based on - message blocks has a few problems, it cannot marshall - chains of message blocks properly. - Notice that complete support for chains of message blocks will - complicate the sequence of octets implementation (like - operator[]) and will make others either hard or expensive - (like get_buffer ()). -
    [STATUS] It seems like the best tradeoff would be to - support the chain during marshalling, but disable or give no - warranties for operator[] and get_buffer(). -
    [DONE] -

  24. - -
  25. Debug Memory Pools in the EC there seem to be a problem when - sending multiple events in a row (a memory leak, limit or - corruption). -
    [DONE] -

  26. - -
  27. Add suspend and resume operations to the PushConsumerProxy - and PushSupplierProxy interfaces, following the Notification - Service spec. -
    [DONE] -

  28. - -
  29. Optimize connection lookup in the client side, using "hints" - from the previous lookup, or keeping smaller sets on each IIOP - profile or a combination of both. -
    [STATUS] Irfan is working on - this. -
    [DONE] -

  30. - -
  31. Optimize the outgoing CDR streams by using TSS memory pools - for both the data blocks and the buffers. -
    [DONE] But we may consider strategizing the kind of allocator - we use (like using a free list instead of a generic - ACE_Malloc). -

  32. - -
  33. Optimize Octet Sequences. -
    [DONE] -

  34. - -
  35. Obtain results for the EC_Multiple test. -
      -
    • Latency seems OK. -

    • -
    • Overhead: need lower priority for scavenger thread. -

    • -
    -

  36. - -
  37. Debug EC_Multiple. -

  38. - -
  39. Your next assignment: Regenerate all methods in - _tao_collocated to avoid "inherit via dominance" warnings. -
    [STATUS] The IDL compiler was modified to generate a - suitable - #pragma that removes the warning, it reenables - the warning when leaving the file -

  40. - -
  41. Remove the SOLARIS2 macro from the TAO_IDL compilation. -
    [DONE] -

  42. - -
  43. Remove the preemption_prio message from Scheduling_Service. -

  44. - -
  45. The ORB core should be able to choose the right port for us - (in other words -ORBport 0) should work. -
    [DONE] -

  46. - -
  47. Client side optimization for Octet Sequences. -
    [DONE] -

  48. - -
  49. Minimize memory allocation in TAO -
    [STATUS] Down to 3 on the client side and 4 on the server - side. -
    [STATUS] For oneways it is down to 0 (for the common case) - on the client side and 2 on the server side. For twoways it is - 2 on both sides. -

  50. - -
  51. Automate subscription and publication list generation in the - EC_Gateway. - [VERY important for Boeing] -
    [STATUS] Completed and debugged, but the EC is still - buggy. -

  52. - -
  53. Debug EC shutdown and startup.... - [Specially startup for Boeign, but shutdown is important for - Purify and Quantify] -
    [STATUS] Shutdown is clean and startup of threads can be - controlled by the user. -

  54. - -
  55. Support a chain of Message Blocks in Output CDRs and use - writev() to write them. -
    [DONE] -

  56. - -
  57. Memory managment in the demarshalling engine, it is not - clear that the current scheme works in all cases (like - sequences of unions of anys). - We also need to fix sequences of object references: how does - the demarshalling engine learn about the dynamic type of the - objects? - Closely related to this is the problem of memory alignment for - different architectures, we need to develop strategies for each - one (they should only be a few) and choose the right one. -
    [STATUS] This seems to be working for most of the cases, the - main idea is to delay demarshalling until enough information - is available, for instance, when decoding an Any just a - reference to the CDR stream is stored, decoding actually - happens when the user invokes >>= on the any (at that point - all the info is there). -

  58. - -
  59. Add a new Profile type that includes the QoS info and using - for end-to-end QoS preservation. - [DEPRECATED] The IIOP 1.1 Profiles can handle that. -

  60. - -
  61. Show an example of the - sequence<octet> and CDR streams. -
    [DONE] But the example could also include the marshalling of - plain C++ types. -
    [DONE too] -

  62. - -
  63. Test anys in the EC. -
    [DONE] Michael reported that they work OK on NT. -

  64. - -
  65. UDP for event channel and Multicast support in the EC. -
    [STATUS] Manual configuration using Suppliers and Consumers is - possible, automation is under research. -

  66. - -
  67. Unbind the EC and scheduling service from the Naming - Service. -
    [DONE] For the Event_Service and the examples. -

  68. - -
  69. Optimize oneways by not allocating the memory for the return - buffers. -
    [DONE] Added different Invocation classes for each case. -

  70. - -
  71. Fix the _non_existent call. -
    [DONE] The client side semantics match the new clarifications - of the C++ RTF, the server side is implemented by the IDL - compiler, though t could be a good idea to put that in the - POA. -

  72. - -
  73. Simplify EC configuration, a Factory class must provide the - Dispatching, Supplier, Correlation and any other Modules that - are required. - This is the right spot to add trivial Dispatching or - Correlation Modules and to dynamically load and configure the - EC. -
    [DONE] A Factory class is used to create the modules, only the - default factory is implemented so far. -

  74. - -
  75. Fix the ACE_Thread_Condition madness. -
    [DONE] We changed ACE so ACE_SYNCH_CONDITION expands to - ACE_Condition_Thread_Mutex -

  76. - -
  77. Reference counting should have locks, but we should remove - all the QueryInterface madness to make that work. The policy - for references in multiple threads is: the reference count - must be >2 if that happens. -
    [STATUS] The QueryInterface method (all the COM stuff for that - matter) was removed... -
    [DONE] -

  78. - -
  79. Reference counting for Typecodes is completely broken. -
    [DONE] -

  80. - -
  81. Under g++(2.7.2) the use of multiple inheritance in IDL - triggers some compiler bug, if the IDL explictly generated the - copy constructor for the skeletons (the POA_ classes) the - problem would go away. -
    [DONE] Fixed, Seth is testing the fixes and will commit them - soon (Tue Jul 21 14:24:56 CDT 1998) -

  82. - -
  83. The octet sequence optimization causes problems when Anys - get into the game. -
    [DONE] Seth reported that the problem was not real. -

  84. - -
  85. The DEEP_FREE method is also broken, sometimes we need to - release the top-level memory, sometimes not. -
    [DONE] We always release the memory in the Any, it was failing - due to weird interactions between the Environment containing - an exception and the Any that also did. -

  86. - -
  87. Improve error messages in the IDL compiler. -
    [DONE] At least the filename is correct now. -

  88. - -
  89. Support for arrays in the IDL compiler is incomplete, - specially anonymous arrays. -
    [DONE] According to Andy this is properly supported by the IDL - compiler now. -

  90. - -
  91. Prepare the 0.2 release:

    -

      -
    1. Execute all the tests in $TAO_ROOT/tests -
    2. -
    3. Run Param_Test (SII) and record what fails and what works. -
    4. -
    5. Run Param_test (DII) and record what fails and what works. -
    6. -
    7. Run Param_Test across Endian Borders. -
    8. -
    -
    [DONE] At last! -

  92. - -
  93. Move this list to the release notes. -

  94. -
- -
- -

Back to the TAO documentation index - - diff --git a/TAO/docs/releasenotes/ec.html b/TAO/docs/releasenotes/ec.html deleted file mode 100644 index 3f796d9e44d..00000000000 --- a/TAO/docs/releasenotes/ec.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - Event Service Status - - - -

Event Service Status

- Point of contact: Carlos O'Ryan - -

Last Updated: $Date$

- -

New on this release

- -
    -
  • - Added a prototype Consumer and Supplier that can send events - though multicast groups (or regular UDP sockets). -
  • -
  • - The Event Channel can be configured using a Factory that - constructs the right modules (like changing the dispatching - module), - in the current release only the default Factory is - implemented. -
  • -
- -

Known issues:

-
-
The schedule cannot be downloaded
-
- The Scheduling Service seems to compute proper schedules, - but it is not possible to download them, - apparently there is a marshalling problem for sequences of - complex structures. - -

Due to this problem we have been unable to test the - run-time scheduler and performance it is impossible to - complete performance measurements and optimizations: - the (global) scheduling service latency and overhead is at - least as large as the EC itself.

-

Note: This does not seem to be the case - anymore, but the comment will remain here until I can - confirm that the problem dissapeared.

-
- -
Run-time scheduler requires re-link
-
- During a normal execution of the system - there is no - need to use the a global Real-time Scheduling Service, - a faster, - collocated implementation for the service is available. - Obviously the scheduling information is precomputed in some - config run. - -

Unfortunately the current scheme requires a relink of all the - involved applications against the generated tables for the - run-time scheduling service.

- -

We should be able to download the schedule to the interested - parties, - without need for a separate link phase. - This will simplify and speed up the developing cycle, - but requires a (small and fixed) amount of dynamic memory - allocation. - It could be interesting to "save" the schedule computation in - some persistent form, - so startup cost are lower too.

- -

The current design contemplates a config run were a global - consumer accumulates the QoS requirements of all the objects, - next an external utility is used to force a computation and - save of the schedule. - In future executions - the global scheduler pre-loads this schedule and - the clients simply download the precomputed schedule, - and all scheduling queries are to a local scheduling service, - without any further contact to the global instance.

-
- -
Users have no control over service - collocations
-
- The user should have complete control of services collocation, - using ACE Service Configurator; - currently the services must be explicitly instantiated by the - user. -
- -
Further details:
-
- Many lower level issues and tasks can be found in the - TODO list. -
- -
- -

Examples

- -

For general documentation on the Event Service please read - - The Design and Performance of a Real-time CORBA Event - Service. - -

The simplest test for the Event Channel is - Event_Latency, - below are the basic instructions to run it:

- -
    -
  1. Compile everything under $TAO_ROOT/orbsvcs, this - needs, obviously, $TAO_ROOT/tao and - the IDL compiler in $TAO_ROOT/TAO_IDL.
  2. - -
  3. Run the naming service, the scheduling service, the event service - and the test in - $TAO_ROOT/TAO/orbsvcs/tests/Event_Latency; - remember to give a different port to each one, - using the -ORBport option. As in:

    - - -

    - $ cd $TAO_ROOT/orbsvcs -

    -

    -$ cd Naming_Service ; ./Naming_Service -ORBport 10000 & -

    -

    -$ cd Event_Service ; ./Event_Service -ORBport 0 & -

    -

    -$ cd tests/Event_Latency ; ./Event_Latency -ORBport 0 -m 20 -j & -

    -
    - -

    - You may want to run each program in a separate window. - Try using a fixed port number for the Naming - Service so you can use the NameService - environment variable. -

    - -

    - The script start_services - in $TAO_ROOT/orbsvcs/tests can help with - this. -

    - -
  4. - -
  5. If you want real-time behavior on Solaris you may need to run - these programs as root; on the other hand, this particular - example really has no priority inversion, since only one - thread runs at a time.
  6. -
- -

Another example is EC_Multiple, - numerous examples on how to run this test can be found in the - scripts located in - $TAO_ROOT/orbsvcs/tests/EC_Multiple.

- -

Features in previous releases

- -
    -
  • -

    - When several suppliers are consumers are distributed over the - network it could be nice to exploit locality and have a - separate Event Channel on each process (or host). - Only when an event is required by some remote consumer we need - to send it through the network.

    - -

    - The basic architecture to achieve this seems very simple, - each Event Channel has a proxy that connects to the EC peers, - providing a "merge" of its (local) consumer subscriptions as - its own subscription list.

    - -

    - Locally the proxy connects as a supplier, - publishing all the events it has register for.

    - -

    - To avoid event looping the events carry a time-to-live field - that is decremented each time the event goes through a proxy, - when the TTL gets to zero the event is not propagated by the - proxy.

    - -

    - In the current release an experimental implementation is - provided, - it basically hardcodes all the subscriptions and publications, - we are researching on how to automatically build the - publication list.

    -
  • - -
  • - We use the COS Time Service types (not the services) to - specify time for the Event Service and Scheduling Service.

    -
  • - -
  • The Gateway to connect two event channels was - moved from a test to the library. - The corresponding test (EC_Multiple) has been - expanded and improved.
  • - -
  • - The user can register a set of EC_Gateways with - the EventChannel implementation, the event - channel will automatically update the subscription list as - consumers subscribe to the EC. -
  • -
  • - The code for consumer and supplier disconnection was - improved and seems to work without problems now -
  • -
  • - The Event_Service program creates a collocated - Scheduling Service this works around a problem - in the ORB when running on multiprocessor. -
  • -
  • - Startup and shutdown were revised, the event channel - shutdown cleanly now. -
  • -
  • - Added yet another example - ($TAO_ROOT/orbsvcs/tests/EC_Throughput), this - one ilustrate how to use the - TAO extensions to create octet sequences based on CDR - streams, without incurring in extra copies. - This is useful to implement custom marshalling or late - dermashalling of the event payload. - Future versions of the test will help measuring the EC - throughput, hence the name. -
  • -
- - - diff --git a/TAO/docs/releasenotes/index.html b/TAO/docs/releasenotes/index.html deleted file mode 100644 index 3da73090a8c..00000000000 --- a/TAO/docs/releasenotes/index.html +++ /dev/null @@ -1,763 +0,0 @@ - - - - - TAO Release Information and TODO List - - - -
-
- -
-

-Release Information for The ACE ORB (TAO)

-Information is available on the following topics related to the current -release of TAO: - - -A complete list of all modifications to TAO is available in the ChangeLog.

- -


-
-

-IDL Compiler

-Point of contact: Aniruddha Gokhale - -

Current status: (As of August 26th, 1998.) -

    -
  • The problem of "#include"ing the relative path of the header - files rather than the paths of their corresponding IDL files - has been fixed. tao_idl now generates #include path names - that are derived from the IDL files that are #include'd in - the main idl file. - -
  • Added options to IDL compiler to specify file name endings - for the IDL-generated stubs, skeletons and the various - header files. Please refer to the IDL compiler options for details. -
  • -
  • Added partial native C++ exception support: -
      -
    • The ORB can be configured to catch native C++ exceptions - thrown on the server side and transmit them to the client - side. - On the client side exceptions received from the wire are - thrown using native C++ exceptions also. -
    • -
    • To facilitate portability between the standard and - alternative C++ mapping the - CORBA::Environment has a default value. - The IDL compiler generates code using that default value - and the TAO library methods also have the default. -
    • -
    • Some macros are provided to facilitate portability - between platforms with and without macros. -
    • -
    - There is still some work to do, mainly provide complete - support for the standard mapping, i.e. remove the - CORBA::Environment argument completely. -
  • - -
  • Verified support for the "long long" and "unsigned long long" - datatypes. On platforms that do not support 64 bit longs we - provided partial emulation through ACE_U_LongLong. -
  • - -
  • -Anonymous arrays inside structs are supported. However, they are not yet -supported inside unions.
  • - -
  • -Perfect Hashed Operation Lookup Strategy has been added to the IDL Compiler. --P flag to the enables the perfect hased lookup strategy. -This strategy uses GPERF, -the GNU's Perfect Hash Function Generator written by Dr.Douglas C. Schmidt. -Right now, GPERF works only on Solaris. Any work on porting GPERF to other -platforms will be highly appreciated. 
  • - -
  • -Support for Arrays is refined in terms of the code generated for parameters -inside stubs and skeletons.
  • - -
  • -Significantly improved the support for unions. The default case is yet -to be handled.
  • - -
  • -Added support for Arrays. Right now, support for typedefed arrays is in. -Still needs testing.
  • - -
  • -Added support for TIE classes. If the interfaces are defined inside modules, -then the TIE class and its code gets generated inside a conditional macro. -For platforms that support namespaces, this macro will allow these TIE -classes else they get commented out. The reason to do this is because nested -templates have problems on most compilers.
  • - -
  • -The <<= and >>= operators for user-defined types are now generated.
  • - -
  • -Completely redesigned the IDL compiler using the Visitor patterns. Many -incomplete issues have been resolved. These include support for "sequence -of typecodes", passing object references as in, inout, and out parameters. -Code generation for sequences is also properly handled i.e., for a named -sequence such as "typedef sequence CharSeq;", we now generate -a new class (and hence a type) called "class CharSeq". Arrays are still -being worked out and will be done soon. An important difference in the -generated code is that the skeletons now use a table driven approach very -similar to the stubs.
  • - -
  • -Support for the "native" keyword added.
  • - -
  • -Introduced tests for object references to TAO. Still incomplete.
  • - -
  • -Param_Test example is able to test string sequences, fixed structs, variable -sized structs and nested structs
  • - -
  • -Param_Test test suite can now test fixed structs and string sequences.This -needed bug fixes to TAO ORB core.
  • - -
  • -A new test to test all the parameter passing modes for a number of data -types has been added. At this point in time, it tests primitive types and -strings. Other tests will be added. Bugs discovered thru these tests have -been fixed.
  • - -
  • -Very preliminary support for arrays. Not working yet.
  • - -
  • -Many bugs associated with stub generation fixed. This included support -for return values that are variable sized IDL types. Unions improved.
  • - -
  • -Support for sequences of strings and object references added. However, -it is not tested yet so there may be some bugs. We should have these fixed -in a day or so.
  • - -
  • -Sequences as out parameters have been tested in the IDL_Cubit example. -A test suite is currently being built to test all the parameter passing -modes on a variety of IDL data types.
  • - -
  • -Support for attributes completed. Not tested yet.
  • - -
  • -The problem of incorrect code generation for typedefs defined in an imported -file is resolved.
  • - -
  • -Problems when interfaces use single or multiple inheritance solved. The -problem was with the demultiplexing code, the generated operation tables, -and the dispatching mechanism. We are currently testing this with the Event -Channel code.
  • - -
  • -The problems arising due to public virtual inheritance when casting from -an interface class to CORBA::Object_ptr has been solved. We do this casting -inside the stubs/skeletons rather than first converting an interface class -pointer to a void*, storing it in an Any, and casting it to CORBA::Object_ptr -in the encode/decode methods. The casting inside the stubs/skeletons work -because the compiler has knowledge of both types.
  • - -
  • -The compiler generates correct code for COSS Naming service and it runs -properly. Correct code also gets generated for the Event Channel program
  • - -
  • -Include files are handled properly. So are the definitions used inside -the include files that are used in the currently parsed files.
  • - -
  • -IN, INOUT, and OUT object reference parameters are now supported properly. -We think the same approach should work for sequences, structs, and unions.
  • - -
  • -Many IDL constructs supported including primitive types, typedefs, sequences, -structures, and unions.
  • - -
  • -Generates C++ stubs and skeletons that use TAO's interpretive -IIOP protocol engine.
  • - -
  • -Generated code closely follows the C++ Mapping specified in the POA Specification -(ORBOS/97-05-15).
  • - -
  • -Support dynamic libraries on NT, i.e., marking classes for DLL export was -added. Two backend options control the name of the export macro, and the -name of an extra include file were the macro is defined; the options are --Wp,export_macro=MACRO_NAME -Wp,export_include=INCLUDE_NAME.
  • - -
  • -The IDL compiler generates now source code for sequences. The user has -now the option to use these generated sequence classes or to use, as up -to now, the template instatiation. If TAO_LACKS_TEMPLATE_SPECIALIZATION -is defined, then template instantiation will be used, else not. The reason -for this was, that some C++ compilers did not support template instantiation -properly and sequences were based on templates. The generated source code -is mainly contained in the generated header file directly in the class -declaration.
  • -
-Known bugs/unimplemented constructs: -
    -
  • -Generation of Managed types must somehow be moved to the ORB Core
  • - -
  • -We need support for ``TIEs'' (i.e., the object form of the Adapter pattern).
  • - -
  • -TypeCode generation for multidimensional arrays and indirected typecodes -is still a problem.
  • - -
  • -Unions with default cases yet to be handled
  • - -
  • -Deal with names in the IDL definition that are C++ keywords.
  • - -
  • -IDL is case-insensitive. However, it looks like our front-end is case-sensitive. -Thanks to Anil Gopinath (anil@ittc.ukans.edu) for pointing this out.
  • - -
  • -tao_idl generates code for a *.idl file only inside the directory where -the *.idl resides. However, it may be required to generate code elsewhere -i.e., in the directory where the compiler was invoked. Thanks to Tom Richards -(tomr@MCMEnterprise.com) for this suggestion.
  • -
-Future work: -
    -
  • -Need to relocate the various libraries used by the IDL compiler out of -the ACE directory. Having them here can cause problems when working with -multiple versions of TAO and a single version of ACE.
  • - -
  • -Improve IDL compiler to generate compiled form of stubs/skeletons.
  • - -
  • -Fix bugs in the SunSoft IDL front-end we've uncovered. These primarily -include support for Unions.
  • - -
  • -Add command line options to TAO IDL. These options will decide what strategy -to use for operation name demultiplexing. Another option may decide whether -to use the interpretive IIOP engine or generate compiled stubs/skeletons.
  • - -
  • -Use Flick (from -the University of Utah) to generate compiled stubs.
  • - - -

    Goal is to measure the code size of the interpretive stubs generated -by TAO IDL compiler vs code size of compiled stubs. Then compare -the performance of each. We want to prove the thesis that TAO IDL compiler -generated interpretive stubs have a small code size, yet are comparable -in performance (or slightly less) than compiled stubs. Hence, it will be -useful for small distributed equipment such as handsets, PDAs, etc. - -

    In doing the above, improvements to the IIOP protocol engine in terms -of size/performance/determinism will be made. -

  • -Tweak the IDL compiler to generate code that's more easily integrated back -into the ORB Core, e.g., POA, etc. This will depend largely on our ability -to generalize the changes necessary to generated code.
  • -
- -
  • -The generated sequence classes should not be generated per sequence, but -per type and parent scope. Which means, that the overhead of having the -source code generated serveral times should be reduced. To do this, an -extra pass over the internal representation of the IDL file has to be done.  -
  • - -

    -Portable Object Adapter

    -Point of contact: Irfan Pyarali - -

    Current Status: -

      -
    • -TAO fully supports the POA spec. This section will carry updates as available.
    • -
    -Known issues: -
    -
    -Support for collocation is not complete.
    - -
    -If an object which should be collocated is created via string_to_object, -it is created as a remote object rather than collocated.
    -
    -Critical work: -
      -
    • -None.
    • -
    -Future work: -
      -
    • -Determine the degree to which we will support the full semantics of remote -objects on a collocated object. The spec mandates that collocated object -should behave exactly like remote objects, but that means that request -will have to be queued rather than calling a method directly, and this -could be hazardous to our quest for real-time ORB status.
    • - -
    • -Provide extensions of the specification to ensure real-time delivery of -messages.
    • -
    - -
    -
    -

    -CORBA Naming Service

    -Point of contact: Sergio Flores-Gaitan -and Marina Spivak - -

    Current status (as of Feb 27th): -

      -
    • -The Naming Service implementation is complete.
    • -
    -Future work: -
      -
    • -Currently the bindings are stored as a table in memory. Future work will -include a persistent database to store the bindings.
    • - -
    • -Replication of the bindings to other Naming Service's currently running. -It will probably be modeled after the LDAP Multi-Master Replication Protocol. -For more information on this replication protocol please read LDAP -Multi-Master Replication Protocol
    • -
    -For general documentation on the Naming Service please read The -Naming Service Specification. - -

    -


    -

    -CORBA Trading Service

    -Point of contact: Seth Widoff - -

    The TAO Trading Service is a transient implementation of the COS Trading -Service speficiation that meets the Linked Trader conformance criteria ---- it implements the Lookup, Register, Admin, -and Link interfaces, but not the Proxy interface. Notably, -the TAO trader supports the following features: -

      -
    • -Multithreaded operation;
    • - -
    • -Trader federations and distributed queries;
    • - -
    • -Dynamic properties;
    • - -
    • -Modifiable properties;
    • - -
    • -All policies described in the specification;
    • - -
    • -Preference sorting;
    • - -
    • -Service type inheritance hierarchies and subtype searching.
    • -
    -Trading Service documentation is also available. - -

    Future Work: -

      -
    • -The Proxy Interface.
    • - -
    • -Persistent storage of service types and offers.
    • -
    -For general documentation of the Trading Service, please read The -Trading Service Specification. - -

    -


    -

    -CORBA Property Service

    -Point of contact: Alexander Babu Arulanthu - -

    Current status (as of May  02, 1998) -
      -
    All the interfaces of this service have been implemented.  Please -go through the  test examples at  $TAO/orbsvcs/tests/CosPropertyService.  -Property Service is  now used by the AVStreams that is currently being -developed for TAO. More testing is being done. - -

    For general documentation of the Property Service, please read The -Property Service Specification. - -

    -


    -

    -Implementation Repository

    -Point of contact: Darrell Brunsch - -

    Current status (as of August 10, 1998) - -

    Here is a brief list of my goals (and the dates completed). For more -information, please see the Implementation Repository -documentation. - -

      -
    • [7/17] Create the base test client and server programs
    • -
    • [7/23] Add an IR that forwards server requests
    • -
    • [8/10] Have the server register its IOR with the IR
    • -
    • Have the server exit after every call, so it is restarted each time
    • -
    • Add the ping object to the server
    • -
    • Add in shutdown calls to test ping objects
    • -
    • Change IOR format
    • -
    • Add in support for server names
    • -
    • Make the IR forward any request
    • -
    • Add another server
    • -
    - -Other goals: - -
      -
    • Implement the IDL Interface for the IR
    • -
    • Move this stuff into the POA
    • -
    • Multiple Profiles
    • -
    • POA extension
    • -
    • Persistence
    • -
    - -Future Goals: - -
      -
    • TAO client-side optimization with restarted servers
    • -
    • Server security (checksums)
    • -
    • Helper Application
    • -
    • Federation of IRs
    • -
    • DLLs
    • -
    - -
    -

    -CORBA Concurrency Control Service

    -Point of contact: Torben Worm - -

    Current status (as of May 3rd): -

      -
    • -A simple version of the concurrency service has been implemented, i.e. -a version without transactions. It is currently being tested.
    • -
    -Future Work: -
      -
    • -Implementation of the Concurrency Control Service with transactions
    • -
    -For general documentation of the Concurrency Control Service, please read -The Concurrency -Control Service Specification. - -

    -


    -

    -CORBA Logging Service

    -Point of contact:  Matt Braun - -

    Current status (as of August 4'th): -

      -
    • -The basic logging service has been implemented. It can log basic messages -from multiple clients. It is currently in the testing stage.
    • -
    -Future work: -
      -
    • - Add increased functionality. Requests and suggestions are welcome.
    • -
    -     -
    -

    -CORBA Audio/Video Control Service

    -Point of contact: Nagarajan Surendran - -

    This is an implementation of the OMG spec addressing the Control -and Management of Audio/Video Streams. - -

    The audio/video streaming service has been implemented in the light -profile. An MPEG-1 application which streams mpeg-1 video and mpeg-1 audio -separately has been developed using the service. This application currently -works only for Unix platforms. - -

    Work in progress: -

      -
    • -Implementing the SFP protocol
    • - -
    • -Integrating the mpeg-1 streaming application with the trading service.
    • -
    - -
    -

    -Test & Example Applications

    -Point of contact: Nagarajan Surendran - -

    Current Status: - -

    The TAO IDL_Cubit test application makes use of the Naming Service and -the server holds a TAO_Naming_Server component.Just running server and -client is enough to test the application. - -

    The various tests in the tests/POA test the different features of the -Portable Object Adapter interface like Explicit Activation, On Demand Activation,etc.. - -

    MT_Cubit: - -

    Current status: - -

    The TAO MT_Cubit test application is meant to serve as a starting point -for real-time tests on the TAO system. It comprises the following parts: -

      -
    • -Server. The server creates multiple CORBA objects (servants), each -with different real-time priorities. This priority is implemented by using -real-time thread support provided by the operating system. Thus, requests -sent to a high-priority servant are handled by a high-priority real-time -thread, and those sent to a lower priority servant are handled by correspondingly -lower priority threads.
    • - -
    • -Client. The client component binds to the servants, and sends a -stream of CORBA requests to the servants. It measures the response time, -i.e. the time taken for the request to complete successfully. In particular, -it measures the time taken for requests sent to the high priority servant -to complete. The volume of lower priority requests is configurable. The -client is thus able to measure the performance of the high-priority servant -in the presence of competition from several lower-priority servants.
    • -
    -Clearly, if the ORB endsystem handles the priorities of the various requests -correctly, increasing the volume of lower priority requests should not -affect the performance seen by the higher priority requests. The application -thus serves as a tool to measure and confirm this behavior. - -

    Future work: -

      -
    • -Study the impacts of scheduling & concurrency strategies on performance.
    • - -
    • -Evolve into a testbed for discovering sources of performance non-determinism -& priority inversion.
    • -
    - -
    -

    -ORB-related ACE Changes

    -Points of contact: Nanbor Wang -and Irfan Pyrarli - -

    Recently Completed Work: -

      -
    • -Added special declaration to OS.h for inet_ntoa and other functions -because VxWorks doesn't provide full argument prototypes for these library -functions.
    • - -
    • -The current caching connector behaves properly in the face of a non-blocking -connect request. The "fix" is simply to not support non-blocking connects -through the cache. When the connect() fails with EWOULDBLOCK, -morph the error to -1 and clean up the request.
    • - -
    • -Service handlers obtained from the caching connector are now cleaned up. -The application needs to be able to signal that it's not using it any longer, -and, when the application encounters an error, needs to effectively close -down that connection for good so that a new connection can be initiated.
    • - -
      Added the ability for a Svc_Handler to recycle itself. idle() can be -called when the Svc_Handler is done serving a particular connection and -can how be recycled. The Svc_Handler now also has a pointer to a recycler -that is responsible for managing the connections. The recycler is usually -a Cached_Connector. -
      Added new class ACE_Recycling_Strategy. It defines the interface (and -default implementation) for specifying a recycling strategy for a Svc_Handler. -This strategy acts as a consular to the Svc_Handler, preparing it for the -tough times ahead when the Svc_Handler will be recycled. -
      Added new class ACE_NOOP_Concurrency_Strategy. It implements a no-op -activation strategy in order to avoid calling open on a recycled svc_handler -multiple times. -
      ACE_Cached_Connect_Strategy now implements the ACE_Connection_Recycling_Strategy -interface. This allows Svc_Handlers to cache themselves with ACE_Cached_Connect_Strategy -when they become idle. It also allows them to purge themselves from the -connection cache when the Svc_Handlers close down. -
      Also added ~ACE_Cached_Connect_Strategy that will cleanup up the connection -cache.
    -Future work: -
    None currently scheduled.
    - -
    -

    -The DOVE Demo

    -Point of contact: Michael Kircher. - -

    DOVE is -documented in detail online. -This discussion focuses on the following goals:

    - -

      -
    • -Have a DOVE Browser running using Java Beans as vizualization components.
    • - -
    • -Have the Event Channel as DOVE Agent running with an Event Consumer in -the DOVE Browser.
    • - -
    • -Having a DOVE Management Information Base (MIB), which dumps all events -transfered on the Event Channel into a file on persistent storage for later -reuse.
    • -
    -The DOVE Browser uses independent visualization components (Java Beans) -and the Event Channel as DOVE Agent. Connections can be established between -monitored metrics and the visualization components. - -

    We have three major components: Observables (monitored metrics), -Observers (a Java Bean for displaying the metric) and a DataHandler -(for demultiplexing the monitored metrics to the appropriate -Observables). Each component inherits from a base class, so that a -certain behavior of the components can be assured for each -component. Relationships between components are based on these base -classes. - -

    The used Java Beans are required to conform to some standards, as -they have to support a function called "getProperty" which allows the -DOVE Browser to determine if the vizualization capabilities of a -specific Java Bean are sufficient to display the metric. A JavaBean is -for example a Java Panel which shows a Graph of the delivered -doubles. So all metrics can be displayed by this visualization -component which can be expressed by a single double. - -

    The DataHandler is connected to the Event Push Consumer (PUSH, -because we use the push concept of the Event Service). The Event Push -Consumer does not know what kind of data is transported. The only -component knowing all the details about the dependencies of the -metrics is the DataHandler. This separation allows easy extension and -change of the demo. - -

    Object Diagrams -are available about this new concept. - -

    Event Service events are used as communication between DOVE -Applications and the DOVE Browser. The DOVE MIB analyses the event -data field of all events and stores this information into a file. The -event data filed is of type CORBA::Any and the DOVE MIB has no notion -of what is conveyed in this field. So the DOVE MIB has to discover the -content via the embedded type code information. Future work includes: - -

      -
    • -Enhancing MIB functionality
    • - -
    • -Monitoring the AV Streaming Service
    • -
    - -
    -

    -Location Forwarding

    -Point of contact: Irfan Pyarali, -Michael Kircher. - -

    For more information see Location forwarding

    -


    -

    -Global Resources and Leader-Follower Model

    -Point of contact: Irfan Pyarali, -Michael Kircher. - -

    For more information see Leader-follower -model

    -


    -

    -Implementation of locate request

    -Point of contact: Irfan Pyarali, -Michael Kircher. - -

    For more information see Locate request

    -


    - -

    Back to the TAO documentation index - - diff --git a/TAO/docs/releasenotes/orbcore.html b/TAO/docs/releasenotes/orbcore.html deleted file mode 100644 index 7672d7d8a09..00000000000 --- a/TAO/docs/releasenotes/orbcore.html +++ /dev/null @@ -1,513 +0,0 @@ - - - - - - - ORB Core Status - - - -

    ORB & ORB Core

    Point of - contact: Nanbor Wang - -

    Last Update: $Date$

    - -

    -Current status: - -

      -
    • Provides dynamically linked wholesale assignment of ORB - strategies for communication, concurrency, demultiplexing, - scheduling, and dispatching using the ACE Service Configurator - framework.
    • - -
    • Supports several concurrency models out of the box: - Reactive, Thread-per-Connection, and ORB-per-thread. The - ORB-per-thread design is optimized for real-time I/O - subsystems. (See: Configuration - Guide.)
    • - -
    • Supports resolve_initial_references("NameService") - using ACE support for multicast.
    • -

    - -Known issues: -

      -
    • Some CORBA objects need to have access to the ORB. We tend to - use TAO_ORB_Core_instance ()->orb () to fetch the right ORB the - object is using. This is most often true when implementing the - shutdown method which allow other process to shutdown a remote - ORB. Althought this may be the "right" thing to do in TAO, it - is not CORBA compliant and hurts the portability of object - implementation. - - A common way of getting around this problem is to cache the ORB - pointer in the object when it is created and simply use the - cached ORB when needed. However, remember that there could be - multiple ORBs in a process and a POA may be shared by several - ORBs. That means, we may not handling the object with the same - ORB it was created. Collocation optimization further complicated - the problem. - - At the moment, using TAO_ORB_Core_instance ()->orb () is the - only sane way to get arond the problem. Though there may be a - better way.

      - -

    • The acceptor on the server side doesn't get opened until calling - CORBA_ORB::run (). And that's when we check whether the port - the server wants to listen on is available or not. (Unless we - specify ORBport to be 0, which implicitly ask the ORB to open - the connection in ORB_init so we know how to export object - IORs.) The problem of this approach is that the port the server - is listen on may not be available. Since we export object IORs - based on the port specified (or the default port,) without - checking the availability of the port, we may announce a bad IOR - end-point which the server will never be able to listen on. - - A possible solution might be opening the server acceptor - whenever it is trying to export an IOR.

      - -

    • The ORB doesn't handle the nested upcalls correctly. This seems - to be stemmed from the incorrect suspension/resumption of file - descriptor in connection management. It appears to work fine - when two client and server calling each other from invoking an - object method. This, however, is broken when a third ORB - makes use of the object exported by the original client when the - nested upcalls are in progress.

      - -

    • The current demarshalling scheme may not work in cases of - complex types such as sequences of unions or anys or object - references. The engine has difficulty determining the dynamic - type of the objects.

      - -

    • Object references for objects dynamically created within - a server may not have proper host. (See also recent fix.) - When an object is dynamically created and its object - reference returned, it simply has to "guess" at the host - information that is returned in the IIOP Profile. Currently, it - guesses using the host name, which is a reasonable guess in most - cases.
      - - However, if there are multiple interfaces on a machine - and they have different host names, it is possible that - the desired effect will not be realized, i.e., the connection to - that new object may use a different interface from the original - object. Currently the only way to change this is to use the -ORBhost option to - manually specify that dynamically-created objects bind to a - specific interface so that their IIOP Profile has the desired - hostname. A more desirable fix is being investigated.

      -

    - -Recently Completed Work: - -
      -
    • Adding a new option into TAO_Resource_Factory to control the - internal lock used by ORB's reacotr. With - "-ORBreactorlock null" added into - svc.conf, you can eliminate the token inside the - Select_Reactor inside the ORB even on multi-threaded platforms. - This eliminate some overheads caused by synchronizing access to - the Select_Reactor. Usually, if you have TSS ORB and are using reactive - concurrency startegy, the ORB are not accessed by multiple - threads, then, you can safely turn the lock off.

      - -

    • Making the collocation table configurable. We can either - use a global collocation table to share objects among ORBs, - or use the per-ORB collocation table. - -
    • Implement the inheritance mechanism in - Default_Server_Connection_Handler to access the parent's - POA. This is necessary when we are using - thread-per-connection concurrency model. - -
    • It is often desireable for a server to start up and not have - to specify the TCP port number on which the ORB will listen, - i.e., let the OS decide. While this works properly (by - providing an argument -ORBport 0), the actual - port number used by the server won't be available after the - server starts listening. TAO now tries to bind the address - when -ORBport 0 is issued so it can get the - actual address to publish the IOR for clients' use. - -
    • Added optimization for collocated objects. This - optimization enables TAO to bypass communication layers and - talks to collocated objects directly.
    • - -
    • Broke the tight coupling between CORBA_Object - and IIOP_Object so that multiple - CORBA_Objects can share a single - IIOP_Object. This has a big win in - _narrow operations.
    • - -
    • Eliminated substantial memory leaks in servers.
    • - -
    • Added documentation for -ORBpoa, which - allows individual tweaking of the POA's locality (global - vs. thread-specific) independent of the locality of other - ORB resources. Also, -ORBpoalock - and -ORBpoamgrlock - control locking in the POA and POA manager, respectively, - according to application needs.
    • - -
    • Began the process of changing the internals of TAO to use - the "underbar" namespace mapping. This should be completed - soon.
    • - -
    • The ORBs manipulation of object keys and object ids is now - consistent. Canonically, everything is managed as an opaque - sequence of octets. Conversion to/from strings is permitted, - with non-printables turning into a trigraph \hl where - h is the high nibble digit in hex, and l is the - low nibble in hex.
    • - -
    • CORBA_ORB::run() should be able to be called - multiply in the same execution path now.
    • - -
    • Fixed the LOCATION_FORWARD capabilities to work as - described in the CORBA 2.1 and the POA specification.
    • - -
    • Fixed problem in the IDL Cubit example which caused the - server to dump core when dealing with _out sequence - types ONLY when compiled with G++. It seems that G++ - decided to interpret the expression output == 0 - (where output is of type vector_out) - differently from Sun's C++ compiler.
    • - -
    • Fixed a slight problem in other recent - work where a servant listening on INADDR_ANY - reported an IOR with address 0.0.0.0. It now reports - the default hostname instead.
    • - -
    • Working version of TAO on VxWorks with VME transport.
    • - -
    • TAO now reacts gracefully in the face of a non-existent - svc.conf file or simply missing entries in the - file. It logs a warning message and uses default values - versions of items which it would normally obtain from the - Service Repository.
    • - -
    • Fixed problem where object references - for objects dynamically created within a server do not have - proper host, at least if the desired host was specified using -ORBhost on the - command line.
    • - -
    • Added support for -ORBsndsock and -ORBrcvsock ORB - options. See options - documentation for details.
    • - -
    • Added support for pre-established connections using the -ORBpreconnect - option. This allows connections to be esablished before any - CORBA requests are made. See options - documentation for details.
    • - -
    • Eliminated deprecated -OAxxx options parsed by the - Object Adapter init method but no longer used by - part of the ORB.
    • - -
    • Made argument parsing within the ORB and POA consume the - arguments it parses.
    • - -
    • Placed an optimization in IIOP::Profile that should speed up - invocations on the client side rather substantially. This was - done by caching an instance of ACE_INET_Addr in - the private portion of Profile because the cost - of constructing one for every invocation (in - TAO_GIOP_Invocation::start) was simply - enormous--the construction was something like 100 cycles on - Solaris. This is all because deep down this ends up calling - gethostbyname(), which can be very costly. Of - course, this is platform-dependent, so the improvements may - not be as great on a different platform.
    • - -
    • Got rid of need to have compile in TSS ORB Core - (-DTAO_HAS_TSS_ORBCORE). This is accomplished by - having a Resource Factory (TAO_Resource_Factory) - singleton which the ORB Core consults in order to get pointers - to resources. The Resource Factory can be configured to - return pointers from thread-specific storage, or - process-global storage. By doing this, the ORB Core is - shielded from ever having to know whether or not its resources - are global or not.
    • - -
    • Made all command-line like options look like the - standard-professed options, i.e., -ORBxxx or - -OAxxxx.
    • - -
    • Moved ORB option parsing into - TAO_ORB_Core::init() rather than in - ORB_init().
    • - -
    • Define _FAR for all cases as an interim fix - for LynxOS.
    • - -
    • Fixed TAO so that the default port of 5001 is defined in - orb_core.h config header somewhere rather than in - orbobj.cpp, and use MAXHOSTNAMELEN ACE - constant for the hostname buffer.
    • - -
    • Eliminated need for CORBA::Object to keep a - pointer to its orb sitting around anywhere.
    • - -
    • Tested CORBA_ORB::shutdown() as a manner in - which a thread of control can request that - CORBA_ORB::run() should return and no longer - service requests. It only honors a - wait_for_completion argument of FALSE right - now because we haven't fully explored the issues which - surround doing all the completion.
    • - -
    • Created a brief section in $TAO_ROOT/TAO-INSTALL.html - that briefly documents installation on Unix - platforms. There is also a brief section which documents - issues that apply across ALL platforms, such as the fact that - TAO and its application will likely not work well if your ACE - is linked through Orbix, VisiBroker, or another ORB. ChangeLog discovery attribution for - this should go to Steve Wohlever - <wohlever@mitre.org>.
    • - -
    • Implemented CORBA_ORB::shutdown() as a manner - in which a thread of control can request that - CORBA_ORB::run() should return and no longer - service requests.
    • - -
    • Validated movement of Strategy Connector into - ORB Core.
    • - -
    • Tested and commited Connector::connect_n - changes to ACE.
    • - -
    • ACE & TAO compiling cleanly using Sun's CC on Solaris and - G++ on Linux. Also, the ACE tests run properly.
    • - -
    • Use truss to verify for Paul Wehlage that - TAO really uses select vs. recv for - -R vs. -T.
    • - -
    • Renamed boa.* to poa.*.
    • - -
    • Renamed following files: Orb_Core.* ->orb_core.* - & orbobj.* -> corba_orb.*.
    • - -
    • The lock used in giop.cpp:626 originally - appeared in the IIOP-1.4 code base. Its purpose was to - protect access to the fwd_profile data member. - The original features are available, but they are currently - not used because none of our concurrency models present a - thread-unsafe condition. The ChangeLog presents more details - on the subject.
    • - -
    • Fixed problems seen by Brian Mendel of - Boeing where the Cubit server application was crashing in - TAO_OA_Connection_Handler::handle_message when it - was trying to call CORBA::POA::handle_request - through a NULL root_poa pointer. The NULL - pointer resulted from the inadvertent use of the - Thread-per-Connection concurrency model, which is currently - incompatible with the ORB-per-thread model. It was not caught - because the change is normally done in configuration files - parsed by the Service Configurator, and VxWorks requires - special code in that area which was not tested until Boeing - got hold of the code.
    • - -
    • Clean up build under g++. All 'function used before - declared inline' warnings have been eliminated. Also, all - other warnings (except for one that is nearly unavoidable) - have been eliminated. -
    • - -
    • Removed BOA and ROA names from the ORB.
    • - -
    • Changed CORBA_ORB::open() to return an error - status (first cut at this already there--needs to be checked - out).
    • - -
    • Added README file to multiCubit test.
    • -

    - -Ongoing Work: - -

      -
    • Verify ACE & TAO on Linux using g++, Solaris using CC, and - Solaris using g++.
    • - -
    • Use Purify to eliminate straggling problems.
    • - -
    • Clean up the internals and analyze for performance - bottlenecks using Quantify.
    • - -
    • Resolve // @@ comment blocks. These are - questions or comments placed in the code by a reviewer - (typically Doug).
    • - -
    • Make more and better documentation on the internals of - TAO.
    • -

    - -Current Work: - -

      -
    • -

      Verify that, in the ORB-per-thread concurrency model, - it's possible to have a factory in each thread that creates - a client and returns an object reference to that client - within that thread. This is different from the model that - Sumedh originally had where the factory was trying to turn - out a client in a separate thread/ORB combination. - -

      There is no application which attempts this at the moment, - so both a client and a server will need to be manufactured. - Using existing Cubit-like examples (that poor app is so - weary) should reduce development time to a couple of - hours. - -

      The real strategy/solution is to make - CORBA::Object not keep a pointer to its orb - sitting around anywhere. It should only get it when it needs - it. This should not be difficult to change. -

    • -

    - -Critical Work: - -

      -
    • Identify/fix the problems in multithreaded client with TSS - resources. This could be done using the leader-follower model - (thread-pool.) -
    • Support new concurrency models, e.g., Thread-per-Request, - thread pool, etc..
    • -
    - -Future work: -
      -
    • Performance optimizations, such as: -
        -
      1. Strategize the connection management scheme so that we - don't always have to pay the price of a look up in the - connection cache. Basically, we want to be able to "hold" a - service handler for a string of requests. And, of course, - do this in a portable manner.
      2. - -
      3. Replace all uses of new and - delete with allocators that can be put into - TSS. The main motivation for this is to eliminate lock - contention when multiple threads need to allocate/deallocate - memory, however it might also be possible to substitute an - allocator better-tuned to an application's specific - usage.
      4. -
      -
    • - -
    • Robustness improvements: -
        -
      1. Improve connection cache so that it won't crash when there - are no more slots or sockets.
      2. - -
      3. Add an option to the ORB core, e.g., - -ORBnameservicetimeout, to allow specification of an - upper bound on the itime-to-wait for a response from the - ORB's multicast "search" for a running name server.
      4. -
      -
    • - -
    • New features: -
        -
      1. Implement ORB::perform_work and - ORB::work_pending so that ORB::run - could be implemented in terms of them.
      2. - -
      3. Improve the Service Configurator service - entry faking on VxWorks.
      4. - -
      5. Integrate with realtime upcalls (RTUs).
      6. - -
      -
    • - -
    • Internal restructuring: -
        -
      1. Remove _FAR from all code.
      2. - -
      3. Rework underlayment to eliminate IUnknown class.
      4. - -
      5. Create some sort of internal "request" object which - carries enough context to suport deferred method invocation - such as one might find in the thread-pool approach or - wherever queuing might occur.
      6. - -
      7. Rethink the entire memory allocation model used by the - ORB. The current one from SSIIOP may no longer be suitable - for our purposes.
      8. -
      -
    • - -
    • Documentation: -
        -
      1. Update ORB Patterns paper to reflect the latest TAO has to - offer. Specifically -
          -
        • sections on the Abstract Factory and Concurrency - strategies need to be updated, and the entire paper needs to - be reviewed for accuracy w.r.t the current TAO.
        • -
        • Metrics must be re-computed.
        • -
        • Tighten existing discussions.
        • -
        • Add information on new patterns (such as TSS) which - have been used since initial work.
        • -
        - -
      2. Make the section in $TAO_ROOT/TAO-Install.html - that documents installation on Unix platforms more complete.
      3. - -
    • - -
    • Miscellany: -
        -
      1. Assist in porting higher level services (e.g., Event Channel) to TAO.
      2. - -
      3. Compile and verify ACE and TAO on Linux using the Kuck and - Associates, Inc. (KAI) compiler tools.
      4. -
      5. CORBA::TypeCode is causing a memory leak. Since objects - of this type are rather static in nature, this is - currently not a big deal. However, it should be fixed - soon.
      6. -
      7. CORBA_Exception::Release is not working correctly as the - memory is never really freed.
      8. -
      -
    • - - -
    • Potential Optimizations: -
        -
      1. There is a certain amount of overhead introduced by the - use of TSS Singletons. TSS singletons are very - convenient as the variable does not have to be passed - from function to function. Even though sort of access is - generally acceptable, the overhead of this approach - maybe too high when used in code which is executed - frequently (e.g., during an upcall). This critical code - may have to be restructured not to use TSS Singletons - because of the high overhead associated with it.
      2. -
      -
    • - - -
    - - - diff --git a/TAO/docs/releasenotes/trader.html b/TAO/docs/releasenotes/trader.html deleted file mode 100644 index 7f4f3a670c6..00000000000 --- a/TAO/docs/releasenotes/trader.html +++ /dev/null @@ -1,1053 +0,0 @@ - - - - -TAO Trading Service Documentation - - - - -
    - -

    TAO Trading Service Documentation

    - -
    - -

    The TAO transient Trading Service implements the COS TradingObject Service -specification, and  conforms to the Linked Trader conformance criteria. This document -details how to use the TAO Trading Service from the following perspectives: - -

      -
    • as an importer bootstrapping to the Trading Service;
    • -
    • as a service offer exporter;
    • -
    • as an administrator;
    • -
    • as an out-of-the-box server process;
    • -
    • as a collocated object.
    • -
    - -

    In addition, it covers running the Trading Service tests and discusses known bugs and -workarounds.

    - -

    This document assumes you are familiar with Trading Service concepts, such as -"importer," "exporter", "service type", "service -offer," and "dynamic property", as well as the roles of each of the Trading -Service's interfaces --- Lookup, Register, Admin, and Link -(the TAO implementation doesn't currently support Proxy). I recommend reading the -first two sections of the Trading -Service specification. This document has the following layout: - -

      -
    1. The Client Role -
    2. -
    3. The Server Role -
    4. -
    5. Running the Trading Service Tests
    6. -
    7. Known Bugs and Workarounds
    8. -
    9. Future Work
    10. -
    - -
    - -

    The Client Role

    - -

    There are three categories of operations that a client can perform on a -Trading Service instance: exporting a service offer to the Trading Service, importing a -list of Service Offers whose properties satisfy a constraint expression, and attending to -administrative duties --- tweaking policies or adjusting links. The first order of -business, of course, is obtaining a reference to a Trading Service instance, assuming that -instance is not colocated with the client.

    - -

    Bootstrapping to the Trading -Service

    - -

    Like with the Naming Service, the ORB will obtain a reference to a Trading -Service instance's Lookup interface when a client invokes the CORBA::ORB::resolve_initial_references -method and passes to it the ObjectID "TradingService". The -following TAO code bootstraps to the Trading Service:

    - - - - - -
    TAO_TRY
    -{
    -  TAO_ORB_Manager orb_manager;
    -  orb_manager.init (argc, argv, TAO_TRY_ENV);
    -  TAO_CHECK_ENV;
    -  CORBA::ORB_var orb = orb_manager.orb ();
    -  CORBA::Object_var trading_obj =
    -    orb->resolve_initial_references ("TradingService");
    -  CosTrading::Lookup_var lookup_if =
    -    CosTrading::Lookup::_narrow (trading_obj.in (), TAO_TRY_ENV);
    -  TAO_CHECK_ENV;
    -}
    -TAO_CATCHANY
    -{
    -  TAO_TRY_ENV.print_exception ("Failed to bootstrap to a trader");
    -}
    -TAO_ENDTRY;
    -
    - -

    The first time resolve_initial_references is called, the ORB uses a multicast -protocol to locate an existing trader. The ORB emits a multicast packet containing a field -identifying the desired service --- Naming or Trading --- and the port number that the -client is listening on for the response (the IP address can be inferred from the packet). -When the trader receives the packet and finds that the id contained within matches its -own, it opens a socket to the client on the designated port, and sends its IOR, which the -ORB converts to an object reference that it caches.

    - -

    If the trader IOR is known ahead of time, the string can be passed to the client in the -environment variable TradingService, or by the command line option -ORBtradingserviceior -<IOR>. Likewise, if the multicast port is known ahead of time and differs from -the default port, the port number can be passed to the client in the environment variable TradingServicePort, -or by the command line option -ORBtradingserviceport <PORTNUM>.  

    - -

    The Importer Role --- Performing a Query

    - -

    Once the importer has obtained a reference to a trader's Lookup interface, it -next needs to fire up a query. The query method takes nine parameters (aside from the CORBA::Environment):

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    const CosTrading::ServiceTypeNameThe Trading Service will search Offers belonging to this subtype. If the exact_type_match - policy wasn't explicitly set to false, then offers belonging to subtypes of this type will - also be searched.
    const CosTrading::ConstraintAn expression in the OMG standard constraint language, where each property - name is a property defined in the Service Type description of the type being searched.
    const CosTrading::PreferenceAn expression in the OMG standard constraint language dictating how offers - in the returned_offers sequence should be ordered.
    const CosTrading::PolicySeqPolicies governing the breadth of search and the type of permissible - offers. A policy is a name/value pair --- a string and an Any --- that affect the - search algorithm.
    const CosTrading::Lookup::SpecifiedPropsA union specifying which properties should be returned in each offer. If - the descriminator is CosTrading::Lookup::some, the union  contains the list - of designated property names. Other options are allor none.
    CORBA::ULong how_manyThe number of offers that should be placed in the returned sequence.
    CosTrading::OfferSeq_outA list of ordered offers whose properties meet the constraints.
    CosTrading::OfferIterator_outIterator over returned offers in excess of how_many --- unordered.
    CosTrading::PolicyNameSeq_outA sequence of policy names for policies that limited the search.
    - -

    Constraints

    - -

    A constraint is a string in the OMG standard constraint language (the BNF can be found -at the end of the specification). The trader iterates over applicable offers, and for each -offer determines if its properties meet the constraints, replacing property names in the -string with their values and computing the result. If the constraint evaluates to true, -the offer is placed in the pool of matched offers. If the constraint string is -syntactically invalid, contains property names not found in the service type description -for the listed service type, or has operators with mismatched operand types, the query -method will throw an InvalidConstraint exception.

    - -

    Operands can be of two types: property names or literals. A property name is an -unquoted string of alphanumeric characters and underscores that begins with a letter. The -service type describes the type of a property. A literal is an signed or unsigned integer, -floating point number --- scientific notation acceptable ---, single-quoted string, or -boolean --- written TRUE or FALSE.

    - -

    The constraint language supports the following operations:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Arithmetic (+, -, *, /)Disk_Space*1000 - Amount_Used/10Accepts two numeric operands.
    Inequality (<,>,<=,>=)Amount_Used < Disk_SpaceAccepts two numeric or two string operands.
    Equality (==, !=)Amount_Used == Disk_SpaceAccepts two numeric, two string, or two boolean operands.
    Substring (~)'.wustl.edu' ~ Domain_NameAccept two string operands. Returns true if the right string contains the - left.
    Sequence inclusion (in)'sbw1' in User_QueueAccepts an operand of a primitive CORBA type on the left, and a sequence - of the same type on the right. Returns true when the sequence contains the value in the - left operand, false otherwise.
    Property existence (exist)exist User_QueueAccepts a property name. Returns true if the property is defined in the - offer.
    - -

    Preferences

    - -

    A preference is a constraint language string that determines the order of offers in the -returned offer sequence. There are five types of preferences:

    - - - - - - - - - - - - - - - - - - - - - - -
    min <expression>Offers are ordered by ascending expression value. The expression must - return a number.
    max <expression> Offers are ordered by descending expression value. The expression must - return a number.
    with <expression>Offers are partitioned into two parts: those offers for which the - expression returns true are placed in the front, the rest in the back. The expression must - return a boolean value.
    randomOffers in the sequence are shuffled.
    firstOffers are placed in the sequence in the order they're evaluated.
    - -

    Policies

    - -

    The following import policies are descibed in the specification and supported by the -TAO Trading Service:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    exact_type_matchCORBA::BooleanTrue --- Search only considers offers belonging to  the given type.
    - False --- Search considers offers belonging to the given type or any of its subtypes.
    search_cardCORBA::ULongSearch ceases after search_card number of offers have been - evaluated.
    match_cardCORBA::ULongSearch ceases after search_card number of offers have been - matched.
    return_cardCORBA::ULongQuery returns at most return_card number of offers.
    support_dynamic_propertiesCORBA::BooleanSearch considers offers with dynamic properties.
    support_modifiable_propertiesCORBA::BooleanSearch considers offers with not readonly properties.
    starting_traderCosTrading::TraderNameQuery is forwarded across all links in the policy, and search begins at - the final trader.
    hop_countCORBA::ULongMaximum depth a query should be propagated in the trader federation.
    link_follow_ruleCosTrading::FollowOptionQuery propagates to other traders if the link_follow_rule permits - it.
    - -

    The TAO Trading Service comes with a handy utility --- TAO_Policy_Manager --- -for creating a policy sequence to pass to the query method that won't incur any -exceptions.   Use the TAO_Policy_Manager in the following way:

    - - - - - -
    TAO_Policy_Manager policies;
    -policies.exact_type_match (CORBA::B_FALSE);
    -policies.search_card (16*NUM_OFFERS);
    -policies.match_card (16*NUM_OFFERS);
    -policies.return_card (16*NUM_OFFERS);
    -policies.link_follow_rule (CosTrading::local_only);
    -const CosTrading::PolicySeq& policy_seq = policies.policy_seq ();
    -
    - -

    Filtering Properties

    - -

    If the client wants only a subset of the properties defined for a service type returned -in matching offers, it can specify those property names in the desired_properties -parameter of the query method. Pass the prop_names method of CosTrading::Lookup::SpecifiedProperties -a CosTrading::PropNameSeq:

    - - - - - -
    char* props[] = {"Name", "Description", "Location", "Host_Name" };
    -CosTrading::Lookup::SpecifiedProps desired_props;      
    -CosTrading::PropertyNameSeq prop_name_seq (4, 4, props, CORBA::B_FALSE);
    -desired_props.prop_names (prop_name_seq);
    -
    - -

    Offer Iterators

    - -

    Those offers returned from the query in excess of how_many are placed in an -offer iterator for deferred retrieval. The CosTrading::OfferIterator::next_n -method will allocate a sequence and fill it with either n offers, or if it has fewer than n -offers, the remaining offers. The next_n method returns true if the iterator -contains more offers, and false if it's been depleted. After finishing with the iterator, -invoke its destroy method to release any server-side resources.

    - -

    The following code is an example of obtaining offers from a CosTrading::OfferIterator:

    - - - - - -
    CORBA::Boolean any_left = CORBA::B_FALSE;
    -CORBA::Environment _env;
    -
    do
    -  {
    -    CosTrading::OfferSeq_ptr iter_offers_ptr;
    -    CosTrading::OfferSeq_out iter_offers_out (iter_offers_ptr);
    -
    -    any_left = offer_iterator->next_n (length,
    -                        	       iter_offers_out,
    -                                       _env);
    -    TAO_CHECK_ENV_RETURN (_env, 0);
    -
    -    CosTrading::OfferSeq_var iter_offers (iter_offers_ptr);
    -    // Process offers...
    -
    -  } while (any_left);
    -
    - -

    Property Evaluation

    - -

    After the client completes a query that used dynamic properties, to review the property -values of the returned offers, it has to distinguish between Anys containing -static properties and Anys containing dynamic property structures. The TAO_Property_Evaluator -class is a handy utility to obtain property values that hides how it evalutes properties -for the client --- by simple Any value extraction for static properties, or by -calling back to a dynamic property interface. The TAO_Property_Evaluator caches -the value of a dynamic property, and frees the allocated Anys during its -destruction.

    - -

    The following code demonstrates how to use the TAO_Property_Evaluator to dump -the properties of an offer to the screen.

    - - - - - -
    TAO_Property_Evaluator prop_eval (prop_seq);
    -for (int length = prop_seq.length (), k = 0; k < length; k++)
    -  {
    -    ACE_DEBUG ((LM_DEBUG, "%-15s: ", prop_seq[k].name.in ()));
    -    TAO_TRY
    -      {
    -        CORBA::Boolean is_dynamic = prop_eval.is_dynamic_property (k);
    -        TAO_CHECK_ENV;
    -
    -	value = prop_eval.property_value(k, env);
    -    	TAO_CHECK_ENV;
    -	
    -	if (value != 0)
    -	  CORBA::Any::dump (*value);
    -      }
    -    TAO_CATCHANY
    -      {
    -        ACE_DEBUG ((LM_DEBUG, "Error retrieving property value.\n"));
    -      }
    -    TAO_ENDTRY;
    -  }
    -
    - -

    The Exporter Role --- Registering a Service Type and Offer

    - -

    Before an exporting client can register a new service offer with the Trading Service, -it needs to ensure first that its service type is present in the service type repository -of the target trader. The most efficient way to do this is to first invoke the export -method on the Register interface, and if it raises an UnknownServiceType -exception, obtain a reference to the Repository, add the Service Type, and attempt the export -a second time. Here's the boilerplate code:

    - - - - - -
    CORBA::Object_var trading_obj = 
    -  orb_ptr->resolve_initial_references ("TradingService");
    -CosTrading::Lookup_var lookup_if = 
    -  CosTrading::Lookup::_narrow (trading_obj.in (), _env);
    -TAO_CHECK_ENV_RETURN (_env, -1);
    -CosTrading::Register_var register_if = lookup_if->register_if (_env);
    -TAO_CHECK_ENV_RETURN (_env, -1);
    -CosTrading::TypeRepository_ptr obj = this->trader_->type_repos (_env);
    -CosTradingRepos::ServiceTypeRepository_var str =
    -  CosTradingRepos::ServiceTypeRepository::_narrow (obj, _env);
    -TAO_CHECK_ENV_RETURN (_env, -1);
    -
    -TAO_TRY
    -  {
    -    // Attempt to export the offer.
    -    offer_id = 
    -      register_id->export (object_ref, type, props, TAO_TRY_ENV);
    -    TAO_CHECK_ENV;
    -  }
    -TAO_CATCH (CosTrading::UnknownServiceType, excp)    
    -  {      
    -    // If the ServiceTypeName wasn't found, we'll have to add the
    -    // type to the Service Type repository ourselves.
    -    str->add_type (type,
    -		   object_ref->_interface_repository_id (),
    -		   prop_struct_seq,
    -		   super_type_name_seq,
    -		   _env);
    -    TAO_CHECK_ENV_RETURN (_env, 0);
    -
    -    // Now we'll try again to register the offer.
    -    offer_id = reg->export (object_ref, type, this->tprops_, _env);
    -    TAO_CHECK_ENV_RETURN (_env, 0);
    -
    -    TAO_TRY_ENV.clear ();
    -  }
    -TAO_CATCHANY
    -  {
    -    // Sigh, all our efforts were for naught.
    -    TAO_RETHROW_RETURN (0);
    -  }  
    -TAO_ENDTRY;
    -
    - -

    The Service Type Repository

    - -

    Creating a service type description is simply a matter of filling in two sequences: a CosTradingRepos::ServiceTypeRepository::PropStructSeq -and a CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq. When filling in -the value_type field, remember to up the reference count of the TypeCode, -since otherwise the TypeCode_var will sieze control of the memory and free it. -Here's a code excerpt taken from export_test showing how to build the first -couple elements of such sequences:

    - - - - - -
    this->type_structs_[TT_Info::PLOTTER].props.length (2);
    -this->type_structs_[TT_Info::PLOTTER].super_types.length (1);
    -this->type_structs_[TT_Info::PLOTTER].super_types[0] =
    -TT_Info::INTERFACE_NAMES[TT_Info::REMOTE_IO]; 
    -this->type_structs_[TT_Info::PLOTTER].props[0].name =
    -TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_NUM_COLORS];
    -this->type_structs_[TT_Info::PLOTTER].props[0].value_type =
    -CORBA::TypeCode::_duplicate (CORBA::_tc_long);
    -this->type_structs_[TT_Info::PLOTTER].props[0].mode =
    -CosTradingRepos::ServiceTypeRepository::PROP_NORMAL;
    -this->type_structs_[TT_Info::PLOTTER].props[1].name =
    -TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_AUTO_LOADING];
    -this->type_structs_[TT_Info::PLOTTER].props[1].value_type =
    -CORBA::TypeCode::_duplicate (CORBA::_tc_boolean);
    -this->type_structs_[TT_Info::PLOTTER].props[1].mode =
    -CosTradingRepos::ServiceTypeRepository::PROP_READONLY;
    -
    - -

    Exporting, Withdrawing, and Modifying -Service Offers

    - -

    Like with adding a Service Type, exporting an offer is just filling in the sequences. -For offers, of course, property values are passed, so this involves employing the Any -insertion operators. Here's a code exerpt from export_test:

    - - - - - -
    CosTrading::PropertySeq prop_seq (2);
    -prop_seq[0].name = 
    -  TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_NUM_COLORS];
    -prop_seq[0].value <<= ACE_static_cast (CORBA::Long, 256);
    -prop_seq[1].name = 
    -  TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_AUTO_LOADING];
    -prop_seq[1].value <<= CORBA::Any::from_boolean (CORBA::B_TRUE);
    -
    - -

    The export_test returns a CosTrading::OfferId string, which is -required to perform the withdraw and modify operations on the exported -offer. withdraw requires that you simply pass the OfferId of the offer -to be withdrawn, while modify takes two additional sequences: a CosTrading::PropertyNameSeq -of property names to be removed from the offer, and a CosTrading::PropertySeq of -offers to be added or changed in the offer.

    - -

    Implementing Dynamic Properties

    - -

    To export an offer with a dynamic property: - -

      -
    • inherit from the TAO_Dynamic_Property class and implement its DP_Eval - method;
    • -
    • create a CosTradingDynamic::DynamicProperty structure using the TAO_Dynamic_Property::construct_dynamic_prop - method;
    • -
    • insert the CosTradingDynamic::DynamicProperty in the value field of the - property.
    • -
    - -

    The following code, taken from the export_test example, illustrates this:

    - - - - - -
    // Step 1: Write the Dynamic Property callback handler.
    -class Simple_DP : public TAO_Dynamic_Property
    -{
    -public: 
    -
    -  virtual CORBA::Any* evalDP (const char* name,
    -                              CORBA::TypeCode_ptr returned_type,
    -                              const CORBA::Any& extra_info,	      
    -			      CORBA::Environment& _env)
    -    TAO_THROW_SPEC ((CosTradingDynamic::DPEvalFailure));
    -};
    -
    -CORBA::Any*
    -Simple_DP::evalDP (const char* name,
    -                   CORBA::TypeCode_ptr returned_type,
    -                   const CORBA::Any& extra_info,
    -                   CORBA::Environment& _env)
    -  TAO_THROW_SPEC ((CosTradingDynamic::DPEvalFailure))
    -{
    -  CORBA::Any* return_value = 0;
    -  ACE_NEW_RETURN (return_value, CORBA::Any, 0);
    -
    -  (*return_value) <<= ACE_static_cast (CORBA::ULong, ACE_OS::rand ());
    -  return return_value;
    -}
    -
    // Step 2: Create the Dynamic Property
    -Simple_DP dp;
    -CORBA::Any extra_info;
    -CosTrading::PropertySeq prop_seq (1);
    -CosTrading::DynamicProp* dp_struct = 
    -  dp.construct_dynamic_prop ("prop_name",
    -                             CORBA::_tc_ulong, 
    -			     extra_info);
    -
    // Step 3: Turn over the dynamic property to the propery value Any.
    -CORBA::Environment env;
    -prop_seq[0].name = "prop_name";
    -prop_seq[0].value.replace (CosTrading::_tc_DynamicProp, 
    -                           dp_struct, 
    -                           CORBA::B_TRUE, 
    -                           env);
    -TAO_CHECK_ENV_RETURN (env, -1);
    -
    - -

    The Administrator Role --- Tweaking Policies and -Adjusting Links

    - -

    The trader can be configured remotely through two interfaces: the Admin -interface, for tweaking global policies, enabling and disabling interfaces, and dumping -the trader contents; and the Link interface, for attaching to and detaching from -other traders.

    - -

    Adjusting policies is straightforward. Here's an example of setting the max_search_card -policy:

    - - - - - -
    // lookup_if returned from resolve_initial_references.
    -CosTrading::Admin_var admin_if = 
    -  lookup_if->admin_if (TAO_TRY_ENV);
    -TAO_CHECK_ENV;
    -
    admin_if->set_max_match_card (200);
    -
    - -

    Here's an example of using the list_offers method on the Admin interface to remove all -offers from the Trader:

    - - - - - -
    TAO_TRY
    -{
    -CosTrading::OfferIdIterator_ptr offer_id_iter;
    -CosTrading::OfferIdSeq_ptr offer_id_seq;
    -
    -// lookup_if returned from resolve_initial_references.
    -CosTrading::Admin_var admin_if = 
    -  lookup_if->admin_if (TAO_TRY_ENV);
    -TAO_CHECK_ENV;
    -
    -CosTrading::Register_var register_if = 
    -  lookup_if->register_if (TAO_TRY_ENV);
    -TAO_CHECK_ENV;
    -
    -admin_if->list_offers (10,
    -                       CosTrading::OfferIdSeq_out (offer_id_seq),
    -                       CosTrading::OfferIdIterator_out (offer_id_iter),
    -                       TAO_TRY_ENV);
    -TAO_CHECK_ENV;
    -
    -if (offer_id_seq != 0)
    - {
    -   CosTrading::OfferIdSeq_var offer_id_seq_var (offer_id_seq);
    -   for (CORBA::ULong i = 0; i < offer_id_seq_var.length (); i++)
    -     {
    -       register_if->withdraw (offer_id_seq_var[i], TAO_TRY_ENV);
    -       TAO_CHECK_ENV;
    -     }
    - }
    -
    -if (offer_id_iter != CosTrading::OfferIdIterator::_nil ())
    - {
    -   CORBA::Boolean any_left = CORBA::B_FALSE;
    -   CosTrading::OfferIdSeq_ptr id_seq = 0;
    -   CosTrading::OfferIdIterator_var offer_id_iter_var (offer_id_iter); 
    -    
    -   do
    -     {
    -       any_left = 
    -         offer_id_iter->next_n (length,
    -                                CosTrading::OfferIdSeq_out (id_seq),
    -                                TAO_TRY_ENV);
    -       TAO_CHECK_ENV;
    -
    -       CORBA::ULong offers = id_seq->length ();
    -       for (CORBA::ULong i = 0; i < offers; i++)
    -        {
    -          register_if->withdraw (id_seq[i], TAO_TRY_ENV);
    -          TAO_CHECK_ENV;
    -        }
    -
    -       delete id_seq;
    -     }
    -   while (any_left);
    -
    -   offer_id_iter->destroy (TAO_TRY_ENV);
    -   TAO_CHECK_ENV;
    - }
    -}
    -TAO_CATCHANY
    -{
    -  // Handle Errors.
    -}
    -TAO_ENDTRY;
    -
    - -

    Here's an example a trader linking itself to another trader (this->trader_ -is a colocated trader --- see the next section for more information):

    - - - - - -
    TAO_TRY
    - {
    -   CosTrading::Link_var link_if =  lookup_if->link_if (TAO_TRY_ENV);
    -   TAO_CHECK_ENV;
    -
    -   TAO_Trading_Components_Impl& trd_comp =
    -     this->trader_->trading_components ();
    -   CosTrading::Lookup_ptr our_lookup = trd_comp.lookup_if ();
    -   CosTrading::Link_ptr our_link = trd_comp.link_if ();
    -
    -   link_if->add_link (this->name_.in (),
    -                      our_lookup,
    -                      CosTrading::always,
    -                      CosTrading::always,
    -                      TAO_TRY_ENV);
    -   TAO_CHECK_ENV;
    -
    -   our_link->add_link ("Bootstrap_Trader",
    -                       lookup_if.in (),
    -                       CosTrading::always,
    -                       CosTrading::always,
    -                       TAO_TRY_ENV);
    - }
    -TAO_CATCHANY
    -{
    -  // Handle Errors.
    -}
    -TAO_ENDTRY;
    -
    - -
    - -

    The Server Role

    - -

    The TAO Trading Service comes with an out-of-the-box executable suitable for common -use. However, it can also easily be colocated with any other TAO server to add Trading -Service functionality to that server.

    - -

    The TAO Trading Service Application

    - -

    This out-of-the-box server takes a number of command line arguments:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -TSthreadsafeThe Trader will use reader/writer locks to protect the offer database and - link collection, and normal thread mutexes for the rest of the shared state --- global - policies, support attributes, and interface accessors. (default is not thread safe; Null - Mutexes are used)
    -TSconformanceDetermines which conformance category the Trading Service will meet:
    - - - - - - - - - - - - - - - - - -
      -
    • query
    • -
    -
    Instantiates the Lookup interface only
      -
    • simple
    • -
    -
    Instantiates the Lookup and Register - interfaces
      -
    • standalone
    • -
    -
    Instantiates the Lookup, Register, - and Admin interfaces
      -
    • linked
    • -
    -
    Instantiates the Lookup, Register, - Admin, and Link interfaces (default)
    -
    -TSsupports_dynamic_properties - - - - - - - - -
      -
    • true
    • -
    -
    Will consider offers with dynamic properties in - queries unless explicitly disabled by a policy passed to the query method. (default)
      -
    • false
    • -
    -
    Will not consider offers with dynamic properties - in queries, unless explicitly enabled by a policy passed to the query method.
    -
    -TSsupports_modifiable_properties - - - - - - - - -
      -
    • true
    • -
    -
    Will consider offers with not explicitly - modifable properties in queries unless explicitly disabled by a policy passed to the query - method. Enables the modify method on the Register interface. (default)
      -
    • false
    • -
    -
    Will not consider dynamic properties in queries, - unless explicitly overridden by a query policy. Diables modify method on the Register - interface.
    -
    -TSdef_search_cardSearch cardinality if none is specified as a query policy. (default is - 200)
    -TSmax_search_cardUpper limit on the search cardinality for a query. (default is 500)
    -TSdef_match_cardMatch cardinality if none is specified as a query policy. (default is 200)
    -TSmax_match_cardUpper limit on the match cardinality for a query. (default is 500)
    -TSdef_return_cardReturn cardinality if none is specified as a query policy. (default is - 200)
    -TSmax_return_cardUpper limit on the return cardinality for a query. (default is 500)
    -TSdef_hop_countThe depths a federated query may go if no query policy is specified. - (default 5)
    -TSmax_hop_countThe maximum number of links a federated query can travel after it passes - through this trader. (default is 10)
    -TSdef_follow_policy - - - - - - - - - - - - -
      -
    • always
    • -
    -
    The trader will always pass a query onto the - next available linked trader.
      -
    • if_no_local
    • -
    -
    The trader will pass a query onto the next - trader only if the local search produced no results. (default)
      -
    • local_only
    • -
    -
    The trader will never pass on a query.
    -
    -TSmax_follow_policy - - - - - - - - - - - - -
      -
    • always
    • -
    -
    The trader doesn't limit the importer to the - local offer space. (default)
      -
    • if_no_local
    • -
    -
    The trader refuses to pass on queries of the - local search matched offers.
      -
    • local_only
    • -
    -
    The trader will never allow federated queries.
    -
    -ORBtradingserviceportPort on which to listen for multicast bootstrap requests.
    - -

    By default the trader will listen for multicast resolve_initial_references -requests, and respond with the IOR of its Lookup inteface. For the purposes of -testing federated queries, when passed the -TSfederate method, instead of -becoming a bootstrappable server, the Trading_Service application will bootstrap -itself to a multicast trader, link itself to that trader and every other trader accessible -through that trader. This protocol will have all traders on the multicast network form a -complete graph.

    - -

    Colocating the Trading Service -in a TAO Application

    - -

    Colocating the Trading Service in a TAO application amounts to constructing a TAO_TRADER -object using the TAO_Trader_Factory::construct_trader call. The argc and -argv parameters to construct_trader contain the configuration parameters -described in the previous section. The trader is also configurable programatically through -its attribute classes. The follow code exerpt demonstrates this.

    - -

    In addition the application will need to create a service type repository -implementation --- TAO's being the TAO_Service_Type_Repository --- and configure -the trader with it. The service type repository is separate from the trader in this way to -allow, for example, multiple traders to share the same service type repository. The -following code exerpt also demontrates configuring the repository:

    - - - - - -
    TAO_TRADER* trader = TAO_Trader_Factory::create_trader (argc, argv);
    -TAO_Support_Attributes_Impl& sup_attr = trader->support_attributes ();
    -TAO_Import_Attributes_Impl& imp_attr = trader->trading_components ();
    -
    -// Configure the trader with a service type repository.
    -CORBA::Environment _env;
    -TAO_Service_Type_Repository type_repos* type_repos = 0;
    -ACE_NEW (type_repos, TAO_Service_Type_Repository); 
    -sup_attr.type_repos (type_repos->_this (_env));
    -TAO_CHECK_ENV_RETURN (_env, -1);
    -
    // Configure other policies, overriding the command line arguments.
    -imp_attr.search_card (20);
    -sup_attr.supports_dynamic_properties (CORBA::B_FALSE);
    -
    - -

    The trader interfaces register themselves with the default POA during the Trading -Service's construction. All that remains is to activate the POA and enter the ORB event -loop.

    - -
    - -

    Running the Trading Service Tests

    - -

    There are two executables that test the Trading Service funtionality --- one to test -the exporter role, and the other, the importer role. To run the tests simply launch the Trading_Service -application, then run the export_test executable found in the orbsvcs/tests/Trading -directory. When the export_test ceases to output data and enters the event loop, -run the import_test found in the same directory.

    - -

    Note: The export_test and the Trading_Service executables are servers ---- the export_test is a server of dynamic properties. Hence, if you run both executables -on the same machine, you must supply them with different ports. For example, add -ORBport -0 to the export_test command line. 

    - -

    To test federated queries, run at least three copies of the Trading_Service -application, each using the -TSfederate flag. The traders will form a complete -graph, with each link follow policy set to CosTrading::always. When run with the -f -flag, the export_test will add the service types and export offers to each of the -traders in the federation. When run with the -f flag, the import_test will -perform a directed query to a trader two links distant from the trader boostrapped to, in -addition to performing federated queries.  

    - -

    By default the tests dump the contents of service types and offers to the screen so the -tester can validate the results. To run the tests in quiet mode, where the results of the -describe and query methods are concealed, use the -q flag.

    - -
    - -

    Known Bugs and Workarounds

    - -

    At this point there are no known problems with TAO that affect the - Trading service.

    - -
    - -

    Future Work

    - -
      -
    • Persistence --- Have the Trading Service offer database and service - type repository survive the lifetime of a single Trading Service process. This would be - accomplished by either taking advantage of the ability to serialize IDL types --- using - CDR streams --- or through memory-mapped files, a la the ACE Naming Service.
    • -
    - -
      -
    • The Proxy Interface --- Should we ever feel so motivated, we - might implement the Proxy interface. 
    • -
    - -
    - -
    - Seth Benjamin Widoff -
    - - - - diff --git a/TAO/examples/Makefile b/TAO/examples/Makefile deleted file mode 100644 index 6ec257ab88a..00000000000 --- a/TAO/examples/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -# Makefile for the TAO examples -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -DIRS = POA \ - Quoter \ - Simple - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/examples/POA/DSI/DSI.DSW b/TAO/examples/POA/DSI/DSI.DSW deleted file mode 100644 index 81ea7e514fa..00000000000 --- a/TAO/examples/POA/DSI/DSI.DSW +++ /dev/null @@ -1,41 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.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/examples/POA/DSI/Database.idl b/TAO/examples/POA/DSI/Database.idl deleted file mode 100644 index ed1a44b971a..00000000000 --- a/TAO/examples/POA/DSI/Database.idl +++ /dev/null @@ -1,73 +0,0 @@ -// $Id$ - -module Database -{ - typedef unsigned long Flags; - - typedef string Identifier; - - exception Unknown_Type - { - string type; - }; - - exception Unknown_Key - { - string key; - }; - - exception Duplicate_Key - { - string key; - }; - - exception Not_Found - { - string key; - }; - - interface Entry - { - readonly attribute string name; - }; - - interface Employee : Entry - { - attribute long id; - }; - - /* - interface Machine : Entry - { - attribute string make; - }; - */ - - struct NamedValue - { - Identifier name; - any value; - Flags flags; - }; - - typedef sequence NVPairSequence; - - interface Agent - { - Entry create_entry (in string key, - in Identifier entry_type, - in NVPairSequence initial_attributes) - raises (Unknown_Type, - Duplicate_Key); - - Entry find_entry (in string key, - in Identifier entry_type) - raises (Unknown_Type, - Not_Found); - - void destroy_entry (in string key, - in Identifier entry_type) - raises (Unknown_Type, - Unknown_Key); - }; -}; diff --git a/TAO/examples/POA/DSI/Database_i.cpp b/TAO/examples/POA/DSI/Database_i.cpp deleted file mode 100644 index 1076bce4276..00000000000 --- a/TAO/examples/POA/DSI/Database_i.cpp +++ /dev/null @@ -1,325 +0,0 @@ -// $Id$ - -#include "Database_i.h" - -ACE_RCSID(DSI, Database_i, "$Id$") - -DatabaseImpl::Simpler_Malloc::Simpler_Malloc (void) - : MALLOC (ACE_DEFAULT_BACKING_STORE) -{ -} - -DatabaseImpl::Entry::Entry (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa) - : orb_ (CORBA::ORB::_duplicate (orb)), - poa_ (PortableServer::POA::_duplicate (poa)) -{ -} - -DatabaseImpl::Entry::~Entry (void) -{ -} - -void -DatabaseImpl::Entry::invoke (CORBA::ServerRequest_ptr request, - CORBA::Environment &env) -{ - // Get the POA Current object reference - CORBA::Object_var obj = this->orb_->resolve_initial_references ("POACurrent"); - - // Narrow the object reference to a POA Current reference - PortableServer::Current_var poa_current = PortableServer::Current::_narrow (obj.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::Current::_narrow"); - return; - } - - // The servant determines the key associated with thex database entry - // represented by self - PortableServer::ObjectId_var oid = poa_current->get_object_id (env); - if (env.exception () != 0) - return; - - // Now convert the id into a string - CORBA::String_var key = PortableServer::ObjectId_to_string (oid.in ()); - - // Get the operation name for this request - const char *operation = request->operation (); - - if (ACE_OS::strcmp (operation, "_is_a") == 0) - this->_is_a (request, env); - else - { - env.exception (new CORBA::NO_IMPLEMENT (CORBA::COMPLETED_NO)); - return; - } -} - -void -DatabaseImpl::Entry::_is_a (CORBA::ServerRequest_ptr request, - CORBA::Environment &env) -{ - CORBA::NVList_ptr list; - this->orb_->create_list (1, list); - - char *value = 0; - CORBA::Any any_1 (CORBA::_tc_string, &value); - - CORBA::NamedValue_ptr named_value_1 = list->add_value ("value", - any_1, - CORBA::ARG_IN, - env); - if (env.exception () != 0) - return; - - request->arguments (list, - env); - if (env.exception () != 0) - return; - - CORBA::Boolean result; - if (!ACE_OS::strcmp (value, "IDL:Database/Employee:1.0") || - !ACE_OS::strcmp (value, "IDL:Database/Entry:1.0") || - !ACE_OS::strcmp (value, CORBA::_tc_Object->id (env))) - result = 1; - else - result = 0; - - CORBA::Any result_any; - CORBA::Any::from_boolean from_boolean (result); - result_any <<= from_boolean; - - request->set_result (result_any, env); -} - -CORBA::RepositoryId -DatabaseImpl::Entry::_primary_interface (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - CORBA::Environment &env) -{ - return 0; -} - -PortableServer::POA_ptr -DatabaseImpl::Entry::_default_POA (CORBA::Environment &env) -{ - ACE_UNUSED_ARG (env); - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -DatabaseImpl::Agent::Agent (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa) - : orb_ (CORBA::ORB::_duplicate (orb)), - poa_ (PortableServer::POA::_duplicate (poa)), - common_servant_ (orb, poa) -{ - CORBA::Environment env; - - this->poa_->set_servant (&this->common_servant_, env); - if (env.exception () != 0) - { - ACE_ERROR ((LM_ERROR, "PortableServer::POA::set_servant\n")); - ACE_OS::exit (-1); - } -} - -DatabaseImpl::Agent::~Agent (void) -{ -} - -Database::Entry_ptr -DatabaseImpl::Agent::create_entry (const char *key, - const char *entry_type, - const Database::NVPairSequence &initial_attributes, - CORBA::Environment &env) -{ - // Create a new entry in the database: - if (ACE_OS::strcmp (entry_type, "Employee") != 0 || - initial_attributes.length () != 2) - { - CORBA::Exception *exception = new Database::Unknown_Type (entry_type); - env.exception (exception); - return Database::Entry::_nil (); - } - - char *name = 0; - CORBA::Long id = 0; - - const Database::NamedValue &first = initial_attributes[0]; - const Database::NamedValue &second = initial_attributes[1]; - if (ACE_OS::strcmp (first.name.in (), "name") != 0 || - ACE_OS::strcmp (second.name.in (), "id") != 0) - { - CORBA::Exception *exception = new Database::Unknown_Type (entry_type); - env.exception (exception); - return Database::Entry::_nil (); - } - - first.value >>= name; - second.value >>= id; - - Employee *new_employee = new Employee (name, id); - DATABASE::instance ()->bind (key, new_employee); - - // creates a reference to the CORBA object used to encapsulate - // access to the new entry in the database. There is an interface - // for each entry type: - PortableServer::ObjectId_var obj_id = PortableServer::string_to_ObjectId (key); - CORBA::String_var repository_id = DatabaseImpl::entry_type_to_repository_id ("Entry"); - CORBA::Object_var obj = this->poa_->create_reference_with_id (obj_id.in (), - repository_id.in (), - env); - Database::Entry_var entry = Database::Entry::_narrow (obj, env); - if (env.exception () != 0) - return Database::Entry::_nil (); - - return entry._retn (); -} - -Database::Entry_ptr -DatabaseImpl::Agent::find_entry (const char *key, - const char *entry_type, - CORBA::Environment &env) -{ - if (ACE_OS::strcmp (entry_type, "Employee") != 0) - { - CORBA::Exception *exception = new Database::Unknown_Type (entry_type); - env.exception (exception); - return Database::Entry::_nil (); - } - - void *temp; - if (DATABASE::instance ()->find (key, temp) == 0) - { - Employee *employee = (Employee *) temp; - - // creates a reference to the CORBA object used to encapsulate - // access to the new entry in the database. There is an interface - // for each entry type: - PortableServer::ObjectId_var obj_id = PortableServer::string_to_ObjectId (key); - CORBA::String_var repository_id = DatabaseImpl::entry_type_to_repository_id ("Entry"); - CORBA::Object_var obj = this->poa_->create_reference_with_id (obj_id.in (), - repository_id.in (), - env); - Database::Entry_var entry = Database::Entry::_narrow (obj, env); - if (env.exception () != 0) - return Database::Entry::_nil (); - - return entry._retn (); - } - - else - { - CORBA::Exception *exception = new Database::Unknown_Key (key); - env.exception (exception); - return Database::Entry::_nil (); - } -} - -void -DatabaseImpl::Agent::destroy_entry (const char *key, - const char *entry_type, - CORBA::Environment &env) -{ - if (ACE_OS::strcmp (entry_type, "Employee") != 0) - { - CORBA::Exception *exception = new Database::Unknown_Type (entry_type); - env.exception (exception); - return; - } - - void *temp; - if (DATABASE::instance ()->unbind (key, temp) == 0) - { - Employee *employee = (Employee *) temp; - delete employee; - } - else - { - CORBA::Exception *exception = new Database::Unknown_Key (key); - env.exception (exception); - return; - } -} - -PortableServer::POA_ptr -DatabaseImpl::Agent::_default_POA (CORBA::Environment &env) -{ - ACE_UNUSED_ARG (env); - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -char * -DatabaseImpl::entry_type_to_repository_id (const char *entry_type) -{ - static const char *prefix = "IDL:Database/"; - static int prefix_length = ACE_OS::strlen (prefix); - static const char *suffix = ":1.0"; - static int suffix_length = ACE_OS::strlen (prefix); - - int len = - prefix_length + - ACE_OS::strlen (entry_type) + - suffix_length + - 1; - - char *result = CORBA::string_alloc (len); - ACE_OS::sprintf (result, - "%s%s%s", - prefix, - entry_type, - suffix); - return result; -} - -DatabaseImpl::Employee::Employee (const char* name, - CORBA::Long id) - : id_ (id), - name_ (0) -{ - this->name (name); -} - -DatabaseImpl::Employee::~Employee (void) -{ - DATABASE::instance ()->free (this->name_); -} - -const char * -DatabaseImpl::Employee::name (void) const -{ - return this->name_; -} - -void -DatabaseImpl::Employee::name (const char* name) -{ - DATABASE::instance ()->free (this->name_); - this->name_ = (char *) DATABASE::instance ()->malloc (ACE_OS::strlen (name) + 1); - ACE_OS::strcpy (this->name_, name); -} - -CORBA::Long -DatabaseImpl::Employee::id (void) const -{ - return this->id_; -} - -void -DatabaseImpl::Employee::id (CORBA::Long id) -{ - this->id_ = id; -} - -void * -DatabaseImpl::Employee::operator new (size_t size) -{ - return DATABASE::instance ()->malloc (size); -} - -void -DatabaseImpl::Employee::operator delete (void *pointer) -{ - DATABASE::instance ()->free (pointer); -} diff --git a/TAO/examples/POA/DSI/Database_i.h b/TAO/examples/POA/DSI/Database_i.h deleted file mode 100644 index c87bf9980ea..00000000000 --- a/TAO/examples/POA/DSI/Database_i.h +++ /dev/null @@ -1,116 +0,0 @@ -// $Id$ - -#include "DatabaseS.h" -#include "ace/Malloc.h" - -class DatabaseImpl -{ -public: - - typedef ACE_Malloc MALLOC; - - class Simpler_Malloc : public MALLOC - { - public: - Simpler_Malloc (void); - }; - - typedef ACE_Singleton DATABASE; - typedef ACE_Malloc_Iterator DATABASE_ITERATOR; - - class Entry : public PortableServer::DynamicImplementation - { - public: - Entry (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa); - ~Entry (void); - - virtual void invoke (CORBA::ServerRequest_ptr request, - CORBA::Environment &env); - // The invoke() method receives requests issued to any CORBA - // object incarnated by the DSI servant and performs the - // processing necessary to execute the request. - - virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - CORBA::Environment &env); - // The _primary_interface() method receives an ObjectId value and - // a POA_ptr as input parameters and returns a valid RepositoryId - // representing the most-derived interface for that oid. - - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - // Returns the default POA for this servant. - - virtual void _is_a (CORBA::ServerRequest_ptr request, - CORBA::Environment &env); - // Handles the _is_a call - - protected: - CORBA::ORB_var orb_; - // ORB (auto) pointer - - PortableServer::POA_var poa_; - // Default POA - }; - - class Agent : public POA_Database::Agent - { - public: - Agent (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa); - ~Agent (void); - - virtual Database::Entry_ptr create_entry (const char *key, - const char *entry_type, - const Database::NVPairSequence &initial_attributes, - CORBA::Environment &env); - - virtual Database::Entry_ptr find_entry (const char *key, - const char *entry_type, - CORBA::Environment &env); - - virtual void destroy_entry (const char *key, - const char *entry_type, - CORBA::Environment &env); - - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - // Returns the default POA for this servant. - - protected: - Entry common_servant_; - - CORBA::ORB_var orb_; - // ORB (auto) pointer - - PortableServer::POA_var poa_; - // Default POA - }; - - static char *entry_type_to_repository_id (const char *entry_type); - - class Employee - { - public: - Employee (const char* name, - CORBA::Long id); - - ~Employee (void); - - const char *name (void) const; - void name (const char* name); - - CORBA::Long id (void) const; - void id (CORBA::Long id); - - void *operator new (size_t); - void operator delete (void *pointer); - - private: - char *name_; - // Employee name. - - CORBA::Long id_; - // Employee ID. - }; - -}; diff --git a/TAO/examples/POA/DSI/Makefile b/TAO/examples/POA/DSI/Makefile deleted file mode 100644 index 08bd749d7d8..00000000000 --- a/TAO/examples/POA/DSI/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -LDLIBS = -lTAO - -IDL_SRC = DatabaseC.cpp DatabaseS.cpp -PROG_SRCS = $(IDL_SRC) server.cpp client.cpp Database_i.cpp - -LSRC = $(PROG_SRCS) - -FILE_SVR_OBJS = DatabaseC.o DatabaseS.o server.o Database_i.o -FILE_CLT_OBJS = DatabaseC.o DatabaseS.o client.o - -BIN = server client -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) -VBIN = $(BIN:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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 -include $(TAO_ROOT)/taoconfig.mk - - -.PRECIOUS: DatabaseC.h DatabaseC.i DatabaseC.cpp DatabaseS.h DatabaseS.i DatabaseS.cpp - -server: $(addprefix $(VDIR),$(FILE_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(FILE_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -realclean: clean - -/bin/rm -rf DatabaseC.* DatabaseS.* - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/DSI/README b/TAO/examples/POA/DSI/README deleted file mode 100644 index 34a850ea3de..00000000000 --- a/TAO/examples/POA/DSI/README +++ /dev/null @@ -1,5 +0,0 @@ -$Id$ -Note: If you run the test, and nothing happens, that's a good thing. This -is more of an example than a test, and therefore is not very -verbose.If you pass the [-d] argument to the server, it will print out -some generic debugging info (multiple [-d]'s alter the output). diff --git a/TAO/examples/POA/DSI/client.cpp b/TAO/examples/POA/DSI/client.cpp deleted file mode 100644 index 88472c14903..00000000000 --- a/TAO/examples/POA/DSI/client.cpp +++ /dev/null @@ -1,169 +0,0 @@ -// $Id$ - -//=================================================================== -// = LIBRARY -// TAO/tests/POA/DSI/client -// -// = FILENAME -// client.cpp -// -// = DESCRIPTION -// A client program for the Database IDL module -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - -#include "ace/Get_Opt.h" -#include "ace/Read_Buffer.h" -#include "DatabaseC.h" - -ACE_RCSID(DSI, client, "$Id$") - -static char *ior = 0; -static char *iorfile = 0; -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "k:d"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'k': - iorfile = ACE_OS::strdup (get_opts.optarg); - break; - case 'd': - TAO_debug_level++; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - "[-k ]" - "\n", - argv [0]), - -1); - } - - if (iorfile == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Please specify the IOR for the servant\n"), -1); - - // Indicates successful parsing of command line. - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Parse the command-line arguments to get the location of the IOR - if (parse_args (argc, argv) == -1) - return -1; - - // Read the file, and get the IOR - ACE_HANDLE input_file = ACE_OS::open (iorfile, 0); - if (input_file == ACE_INVALID_HANDLE) - ACE_ERROR_RETURN ((LM_DEBUG, - "Cannot open input file for reading IOR: %s\n", - iorfile), - -1); - ACE_Read_Buffer ior_buffer (input_file); - char *data = ior_buffer.read (); - if (data == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to read ior\n"), - -1); - ior = ACE_OS::strdup (data); - ior_buffer.alloc ()-> free (data); - ACE_OS::close (input_file); - - // Get the object reference with the IOR - CORBA::Object_var object = orb->string_to_object (ior, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::string_to_object"); - return -1; - } - - // Narrow the object reference to a Database::Agent - Database::Agent_var database_agent = Database::Agent::_narrow (object.in (), env); - if (env.exception () != 0) - { - env.print_exception ("Database::Agent::_narrow"); - return -1; - } - - Database::NVPairSequence employee_attributes (2); - employee_attributes.length (2); - - Database::NamedValue &first = employee_attributes[0]; - Database::NamedValue &second = employee_attributes[1]; - - char *name = "irfan"; - CORBA::Long id = 555; - - first.name = CORBA::string_dup ("name"); - first.value <<= name; - second.name = CORBA::string_dup ("id"); - second.value <<= id; - - // Create an employee - Database::Entry_var entry = database_agent->create_entry ("irfan", - "Employee", - employee_attributes, - env); - if (env.exception () != 0) - { - env.print_exception ("Database::Agent::create_entry"); - return -1; - } - - Database::Employee_var employee = Database::Employee::_narrow (entry.in (), env); - if (env.exception () != 0) - { - env.print_exception ("Database::Employee::_narrow"); - return -1; - } - - /* - * - * NOT IMPLEMENTED YET - * - * - */ - -#if 0 - // Reset the id - employee->id (666, env); - if (env.exception () != 0) - { - env.print_exception ("Database::Employee::id"); - return -1; - } -#endif /* 0 */ - - // Destroy the employee - database_agent->destroy_entry ("irfan", - "Employee", - env); - if (env.exception () != 0) - { - env.print_exception ("Database::Entry::destroy"); - return -1; - } - - return 0; -} diff --git a/TAO/examples/POA/DSI/client.dsp b/TAO/examples/POA/DSI/client.dsp deleted file mode 100644 index 42bc61d8041..00000000000 --- a/TAO/examples/POA/DSI/client.dsp +++ /dev/null @@ -1,209 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA DSI Client" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA DSI 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="POA DSI Client - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA DSI Client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "POA DSI 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)" == "POA DSI 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 "" -# 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 /out:"Release/client.exe" /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA DSI 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" -# 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA DSI Client - Win32 Release" -# Name "POA DSI Client - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\client.cpp -# End Source File -# Begin Source File - -SOURCE=.\DatabaseC.cpp -# End Source File -# Begin Source File - -SOURCE=.\DatabaseS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\DatabaseC.h -# End Source File -# Begin Source File - -SOURCE=.\DatabaseS.h -# End Source File -# Begin Source File - -SOURCE=.\DatabaseS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Database.idl - -!IF "$(CFG)" == "POA DSI Client - Win32 Release" - -USERDEP__DATAB="..\..\..\tao_idl\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Database.idl -InputName=Database - -BuildCmds= \ - ..\..\..\tao_idl\Release\tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA DSI Client - Win32 Debug" - -USERDEP__DATAB="..\..\..\tao_idl\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Database.idl -InputName=Database - -BuildCmds= \ - ..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/DSI/run_test.pl b/TAO/examples/POA/DSI/run_test.pl deleted file mode 100755 index 77416e8c4b5..00000000000 --- a/TAO/examples/POA/DSI/run_test.pl +++ /dev/null @@ -1,21 +0,0 @@ -#$Id$ -# -*- perl -*- -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -unshift @INC, '../../../../bin'; -require ACEutils; - -$iorfile = "server.ior"; -$SV = Process::Create ("server$Process::EXE_EXT", " -o $iorfile"); - -ACE::waitforfile ($iorfile); - -$status = system ("client$Process::EXE_EXT -k $iorfile"); - -$SV->Kill (); $SV->Wait (); - -unlink $iorfile; - -exit $status; diff --git a/TAO/examples/POA/DSI/server.cpp b/TAO/examples/POA/DSI/server.cpp deleted file mode 100644 index 3d1d3536b1a..00000000000 --- a/TAO/examples/POA/DSI/server.cpp +++ /dev/null @@ -1,234 +0,0 @@ -// $Id$ - -//=================================================================== -// = LIBRARY -// TAO/tests/POA/Default_Servant/server -// -// = FILENAME -// server.cpp -// -// = DESCRIPTION -// A server program for the File IDL module -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - -#include "Database_i.h" - -ACE_RCSID(DSI, server, "$Id$") - -static char *ior_output_file = 0; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "o:d"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'o': - ior_output_file = ACE_OS::strdup (get_opts.optarg); - break; - case 'd': - TAO_debug_level++; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "[-oior_output_file]" - "[-d]" - "\n", - argv [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - int result = parse_args (argc, argv); - if (result != 0) - return result; - - // Get the Root POA object reference - CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA"); - - // Narrow the object reference to a POA reference - PortableServer::POA_var root_poa = PortableServer::POA::_narrow (obj.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - PortableServer::POAManager_var poa_manager = root_poa->the_POAManager (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - CORBA::PolicyList policies (5); - policies.length (5); - - // ID Assignment Policy - policies[0] = - root_poa->create_id_assignment_policy (PortableServer::USER_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_assignment_policy"); - return -1; - } - - // Lifespan Policy - policies[1] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Request Processing Policy - policies[2] = - root_poa->create_request_processing_policy (PortableServer::USE_DEFAULT_SERVANT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_request_processing_policy"); - return -1; - } - - // Servant Retention Policy - policies[3] = - root_poa->create_servant_retention_policy (PortableServer::RETAIN, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_servant_retention_policy"); - return -1; - } - - // Id Uniqueness Policy - policies[4] = - root_poa->create_id_uniqueness_policy (PortableServer::MULTIPLE_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_uniqueness_policy"); - return -1; - } - - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = root_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Create a Database Agent Implementation object in first_poa - DatabaseImpl::Agent database_agent_impl (orb.in (), - first_poa.in ()); - - PortableServer::ObjectId_var database_agent_oid = - PortableServer::string_to_ObjectId ("DatabaseAgent"); - - first_poa->activate_object_with_id (database_agent_oid.in (), - &database_agent_impl, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::activate_object_with_id"); - return -1; - } - - CORBA::Object_var database_agent = - first_poa->id_to_reference (database_agent_oid.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::id_to_reference"); - return -1; - } - // Get the IOR for the "DatabaseAgent" object - CORBA::String_var database_agent_ior = - orb->object_to_string (database_agent.in (), env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG,"%s\n", - database_agent_ior.in ())); - - // If the ior_output_file exists, output the ior to it - if (ior_output_file != 0) - { - FILE *output_file= ACE_OS::fopen (ior_output_file, "w"); - if (output_file == 0) - ACE_ERROR_RETURN ((LM_DEBUG, "Cannot open output file for writing IOR: %s", - ior_output_file), - -1); - ACE_OS::fprintf (output_file, "%s", database_agent_ior.in ()); - ACE_OS::fclose (output_file); - } - - // set the state of the poa_manager to active i.e ready to process requests - poa_manager->activate (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - // Run the ORB - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1); - - // Destroy the rootPOA and its children - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} - - diff --git a/TAO/examples/POA/DSI/server.dsp b/TAO/examples/POA/DSI/server.dsp deleted file mode 100644 index 7cc1fd71e25..00000000000 --- a/TAO/examples/POA/DSI/server.dsp +++ /dev/null @@ -1,206 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA DSI Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA DSI 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="POA DSI Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA DSI Server - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA DSI Server - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA DSI 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 "" -# 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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA DSI 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA DSI Server - Win32 Release" -# Name "POA DSI Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\Database_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\DatabaseC.cpp -# End Source File -# Begin Source File - -SOURCE=.\DatabaseS.cpp -# End Source File -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\Database_i.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter ".idl" -# Begin Source File - -SOURCE=.\Database.idl - -!IF "$(CFG)" == "POA DSI Server - Win32 Release" - -USERDEP__DATAB="..\..\..\tao_idl\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Database.idl -InputName=Database - -BuildCmds= \ - ..\..\..\tao_idl\Release\tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA DSI Server - Win32 Debug" - -USERDEP__DATAB="..\..\..\tao_idl\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Database.idl -InputName=Database - -BuildCmds= \ - ..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Default_Servant/Default_Servant.dsw b/TAO/examples/POA/Default_Servant/Default_Servant.dsw deleted file mode 100644 index d17cf7c9604..00000000000 --- a/TAO/examples/POA/Default_Servant/Default_Servant.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/examples/POA/Default_Servant/File.idl b/TAO/examples/POA/Default_Servant/File.idl deleted file mode 100644 index 0caa3792c23..00000000000 --- a/TAO/examples/POA/Default_Servant/File.idl +++ /dev/null @@ -1,52 +0,0 @@ -// $Id$ - -//================================================================= -// -// = FILENAME -// File.idl -// -// = DESCRIPTION -// A simple File Descriptor and File System IDL interface. -// -// = AUTHOR -// Irfan Pyarali -// -//================================================================== - -// IDL - -module File -{ - exception IOError - { - long error; - }; - - interface Descriptor - { - typedef sequence DataBuffer; - - // write buffer to File - long write (in DataBuffer buffer) - raises (IOError); - - // read num_bytes to DataBuffer - DataBuffer read (in long num_bytes) - raises (IOError); - - // seek to offset in File from whence - unsigned long lseek (in unsigned long offset, - in long whence) - raises (IOError); - - // destroy the descriptor - void destroy (); - }; - - interface System - { - // File open operation - Descriptor open (in string file_name, in long flags) - raises (IOError); - }; -}; diff --git a/TAO/examples/POA/Default_Servant/File_i.cpp b/TAO/examples/POA/Default_Servant/File_i.cpp deleted file mode 100644 index 3e4fc0f883f..00000000000 --- a/TAO/examples/POA/Default_Servant/File_i.cpp +++ /dev/null @@ -1,223 +0,0 @@ -// $Id$ - -//=================================================================== -// -// = FILENAME -// File_i.cpp -// -// = DESCRIPTION -// Implementation of the File IDL module and the interfaces -// Descriptor and System in it. -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - -#include "File_i.h" - -ACE_RCSID(Default_Servant, File_i, "$Id$") - -// IDL File::System constructor -FileImpl::System::System (PortableServer::POA_ptr poa) - : poa_ (PortableServer::POA::_duplicate (poa)), - // Create the Default Descriptor Servant - fd_servant_ (poa) -{ - CORBA::Environment env; - // set the default servant of the POA - poa->set_servant (&this->fd_servant_, env); - ACE_ASSERT (env.exception () == 0); -} - -FileImpl::System::~System (void) -{ -} - -PortableServer::POA_ptr -FileImpl::System::_default_POA (CORBA::Environment &env) -{ - ACE_UNUSED_ARG (env); - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -File::Descriptor_ptr -FileImpl::System::open (const char *file_name, - CORBA::Long flags, - CORBA::Environment &env) -{ - // Do an ACE_OS::open - ACE_HANDLE file_descriptor = ACE_OS::open (file_name, - flags); - - if (file_descriptor == ACE_INVALID_HANDLE) - { - CORBA::Exception *exception = new File::IOError (errno); - env.exception (exception); - return 0; - } - - char file_descriptor_buffer[BUFSIZ]; - - // convert ACE_HANDLE to a string - ACE_OS::sprintf (file_descriptor_buffer, - "%ld", - (CORBA::Long) file_descriptor); - - //Create an objectID from the ACE_HANDLE string - PortableServer::ObjectId_var oid = - PortableServer::string_to_ObjectId (file_descriptor_buffer); - - // create an object reference with the specified ObjectID got - // from ACE_HANDLE string - CORBA::Object_var obj = - this->poa_->create_reference_with_id (oid.in (), - "IDL:File/Descriptor:1.0", - env); - if (env.exception () != 0) - return File::Descriptor::_nil (); - - // Narrow the object reference to a File Descriptor - File::Descriptor_var fd = - File::Descriptor::_narrow (obj.in (), env); - - if (env.exception () != 0) - return File::Descriptor::_nil (); - - return fd._retn (); -} - -// IDL File::Descriptor constructor -FileImpl::Descriptor::Descriptor (PortableServer::POA_ptr poa) - : poa_ (PortableServer::POA::_duplicate (poa)) -{ -} - -FileImpl::Descriptor::~Descriptor (void) -{ -} - -PortableServer::POA_ptr -FileImpl::Descriptor::_default_POA (CORBA::Environment &env) -{ - ACE_UNUSED_ARG (env); - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -//Extracts the ACE_HANDLE from the passed object reference -ACE_HANDLE -FileImpl::Descriptor::fd (CORBA::Environment &env) -{ - // Get a reference to myself - File::Descriptor_var me = this->_this (env); - - if (env.exception () != 0) - return ACE_INVALID_HANDLE; - - // Get the ObjectId from the reference - PortableServer::ObjectId_var oid = - this->poa_->reference_to_id (me.in (), env); - - if (env.exception () != 0) - return ACE_INVALID_HANDLE; - - // Convert the ObjectId to a string - CORBA::String_var s = - PortableServer::ObjectId_to_string (oid.in ()); - - // Get the ACE_HANDLE from the string - return (ACE_HANDLE) ::atol (s.in ()); -} - -CORBA::Long -FileImpl::Descriptor::write (const File::Descriptor::DataBuffer &buffer, - CORBA::Environment &env) -{ - ACE_HANDLE file_descriptor = this->fd (env); - - if (env.exception () != 0) - return 0; - - const CORBA::Octet *data = &buffer[0]; - - ssize_t len = ACE_OS::write (file_descriptor, - data, - buffer.length ()); - if (len > 0) - return len; - else - { - CORBA::Exception *exception = new File::IOError (errno); - env.exception (exception); - return 0; - } -} - -File::Descriptor::DataBuffer * -FileImpl::Descriptor::read (CORBA::Long num_bytes, - CORBA::Environment &env) -{ - ACE_HANDLE file_descriptor = this->fd (env); - - if (env.exception () != 0) - return 0; - - CORBA::Octet *buffer = File::Descriptor::DataBuffer::allocbuf (num_bytes); - int length = ACE_OS::read (file_descriptor, buffer, num_bytes); - - if (length > 0) - return new File::Descriptor::DataBuffer (length, - length, - buffer, - 1); - else - { - File::Descriptor::DataBuffer::freebuf (buffer); - CORBA::Exception *exception = new File::IOError (errno); - env.exception (exception); - return 0; - } -} - -CORBA::ULong -FileImpl::Descriptor::lseek (CORBA::ULong offset, - CORBA::Long whence, - CORBA::Environment &env) -{ - ACE_HANDLE file_descriptor = this->fd (env); - - if (env.exception () != 0) - return 0; - - CORBA::Long result = (CORBA::Long) ACE_OS::lseek (file_descriptor, - offset, - whence); - if (result == -1) - { - CORBA::Exception *exception = new File::IOError (errno); - env.exception (exception); - return 0; - } - else - return (CORBA::ULong) result; -} - -void -FileImpl::Descriptor::destroy (CORBA::Environment &env) -{ - // Get the ACE_HANDLE for this object reference - ACE_HANDLE file_descriptor = this->fd (env); - - if (env.exception () != 0) - return; - - //close the file corresponding to this object reference - int result = ACE_OS::close (file_descriptor); - - if (result != 0) - { - CORBA::Exception *exception = new File::IOError (errno); - env.exception (exception); - return; - } -} diff --git a/TAO/examples/POA/Default_Servant/File_i.h b/TAO/examples/POA/Default_Servant/File_i.h deleted file mode 100644 index 4ebbccea87b..00000000000 --- a/TAO/examples/POA/Default_Servant/File_i.h +++ /dev/null @@ -1,89 +0,0 @@ -// $Id$ -//=================================================================== -// -// = FILENAME -// File_i.h -// -// = DESCRIPTION -// Defines the implementation classes for the File IDL -// module -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - - - -#include "FileS.h" - -class FileImpl -// FileImpl class provides the namespace for the File IDL module . -{ -public: - class Descriptor : public POA_File::Descriptor - // Descriptor implements the Descriptor interface in the File Module - // A single Descriptor servant can serve multiple object references - { - public: - //Constructor - Descriptor (PortableServer::POA_ptr poa); - - //Destructor - ~Descriptor (void); - - // Returns the default POA of this object - PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - // write buffer to File corresponding to this Descriptor - virtual CORBA::Long write (const File::Descriptor::DataBuffer &buffer, - CORBA::Environment &env); - - // Reads num_bytes from the file and returns it - virtual File::Descriptor::DataBuffer *read (CORBA::Long num_bytes, - CORBA::Environment &env); - // seek to the offset in file from whence - virtual CORBA::ULong lseek (CORBA::ULong offset, - CORBA::Long whence, - CORBA::Environment &env); - - // closes the file corresponding to the requested ObjectID - virtual void destroy (CORBA::Environment &env); - - private: - - // Extracts the ACE_HANDLE from the objectID - ACE_HANDLE fd (CORBA::Environment &env); - - PortableServer::POA_var poa_; - }; - - class System : public POA_File::System - // File System implementation class - { - public: - // Constructor, Creates a single File Descriptor Servant and - // registers it with the POA as the Default Servant - System (PortableServer::POA_ptr poa); - - //Destructor - ~System (void); - - //Returns the default POA of this object - PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - //Opens a file ,creates a Descriptor reference with the ACE_HANDLE - // and returns that reference - File::Descriptor_ptr open (const char *file_name, - CORBA::Long flags, - CORBA::Environment &env); - - private: - PortableServer::POA_var poa_; - - // The single File Descriptor servant which serves requests for any - // Descriptor object under poa_. - Descriptor fd_servant_; - }; -}; - diff --git a/TAO/examples/POA/Default_Servant/Makefile b/TAO/examples/POA/Default_Servant/Makefile deleted file mode 100644 index 203724a85f9..00000000000 --- a/TAO/examples/POA/Default_Servant/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -LDLIBS = -lTAO - -IDL_SRC = FileC.cpp FileS.cpp -PROG_SRCS = $(IDL_SRC) server.cpp client.cpp File_i.cpp - -LSRC = $(PROG_SRCS) - -FILE_SVR_OBJS = FileC.o FileS.o server.o File_i.o -FILE_CLT_OBJS = FileC.o FileS.o client.o - -BIN = server client -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) -VBIN = $(BIN:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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 -include $(TAO_ROOT)/taoconfig.mk - - -.PRECIOUS: FileC.h FileC.i FileC.cpp FileS.h FileS.i FileS.cpp - -server: $(addprefix $(VDIR),$(FILE_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(FILE_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -realclean: clean - -/bin/rm -rf FileC.* FileS.* FileS_T.* - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/Default_Servant/README b/TAO/examples/POA/Default_Servant/README deleted file mode 100644 index d64c59dbe80..00000000000 --- a/TAO/examples/POA/Default_Servant/README +++ /dev/null @@ -1,45 +0,0 @@ -// $Id$ - - -Default_Servants -================ - - By using the USE_DEFAULT_SERVANT policy, the developer can create - a POA that will use a single servant to implement all of its objects. - This approach is useful when there is very little data associated - with each object, so little that the data can be encoded in the - Object Id. - -Example: -======= - In the example implementation a Single Servant is enough to - serve requests for a File Descriptor interface. The Object Id of the - Descriptor objects are formed from the file handle returned by the - System call. The servant can get the file handle from the object - reference to process the request. Thus a single Descriptor servant - can serve multiple objects. - -SERVER: -====== - - 1. To run the server, type - - % server [-ORBport port] [-ORBobjrefstyle URL] [-ORBhost host] - -CLIENT: -====== - The client tries to create a file "test" and writes a message to - the file and reads it back and prints it. - - 1. To run the client, type - - % client -k IOR - - where the IOR is got from the server output. - - - - - - - diff --git a/TAO/examples/POA/Default_Servant/client.cpp b/TAO/examples/POA/Default_Servant/client.cpp deleted file mode 100644 index 54d90f9acdc..00000000000 --- a/TAO/examples/POA/Default_Servant/client.cpp +++ /dev/null @@ -1,175 +0,0 @@ -// $Id$ - -//=================================================================== -// = LIBRARY -// TAO/tests/POA/Default_Servant/client -// -// = FILENAME -// client.cpp -// -// = DESCRIPTION -// A client program for the File IDL module -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - -#include "ace/streams.h" -#include "ace/Get_Opt.h" -#include "ace/Read_Buffer.h" -#include "ace/OS.h" -#include "FileC.h" - -ACE_RCSID(Default_Servant, client, "$Id$") - -static char *iorfile = 0; -static char *filename = "test"; -static char *message = "POA rules!!"; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "dk:f:m:"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'd': - TAO_debug_level++; - break; - case 'k': - iorfile = ACE_OS::strdup (get_opts.optarg); - break; - case 'f': - filename = get_opts.optarg; - break; - case 'm': - message = get_opts.optarg; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - "[-k ]" - "[-f ]" - "[-m ]" - "\n", - argv [0]), - -1); - } - - if (iorfile == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Please specify the IOR for the servant"), -1); - - // Indicates successful parsing of command line. - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - char* ior=0; - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Parse the command-line arguments to get the IOR - parse_args (argc, argv); - - // parse args should catch this, but just in case... - if (iorfile == 0) - return 0; - - // Read the file, and get the IOR - ACE_HANDLE input_file = ACE_OS::open (iorfile, 0); - if (input_file == ACE_INVALID_HANDLE) - ACE_ERROR_RETURN ((LM_DEBUG, - "Cannot open input file for reading IOR: %s\n", - iorfile), - -1); - ACE_Read_Buffer ior_buffer (input_file); - char *data = ior_buffer.read (); - if (data == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to read ior\n"), - -1); - ior = ACE_OS::strdup (data); - ior_buffer.alloc ()-> free (data); - ACE_OS::close (input_file); - - CORBA::Object_var object = orb->string_to_object (ior, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::string_to_object"); - return -1; - } - - // Narrow the object reference to a File::System - File::System_var file_system = File::System::_narrow (object.in (), env); - if (env.exception () != 0) - { - env.print_exception ("File::System::_narrow"); - return -1; - } - - // Creat the file filename i.e "test" - File::Descriptor_var fd = file_system->open (filename, O_CREAT | O_RDWR, env); - if (env.exception () != 0) - { - env.print_exception ("File::System::open"); - return -1; - } - - int message_length = ACE_OS::strlen (message) + 1; - CORBA::Octet *buffer = File::Descriptor::DataBuffer::allocbuf (message_length); - ACE_OS::strcpy ((char *) buffer, message); - File::Descriptor::DataBuffer data_sent (message_length, message_length, buffer, 1); - - // write the message to the file - fd->write (data_sent, env); - if (env.exception () != 0) - { - env.print_exception ("File::Descriptor::write"); - return -1; - } - - //seek to the beginning of the file - fd->lseek (0, SEEK_SET, env); - if (env.exception () != 0) - { - env.print_exception ("File::Descriptor::lseek"); - return -1; - } - - // Read back the written message - File::Descriptor::DataBuffer_var data_received = fd->read (message_length, env); - if (env.exception () != 0) - { - env.print_exception ("File::Descriptor::read"); - return -1; - } - - char *result = (char *) &data_received[0]; - - // print the read message - ACE_DEBUG((LM_DEBUG,"%s\n", - result)); - - // close the file - fd->destroy (env); - if (env.exception () != 0) - { - env.print_exception ("File::Descriptor::destroy"); - return -1; - } - - return 0; -} diff --git a/TAO/examples/POA/Default_Servant/client.dsp b/TAO/examples/POA/Default_Servant/client.dsp deleted file mode 100644 index 64b760e0600..00000000000 --- a/TAO/examples/POA/Default_Servant/client.dsp +++ /dev/null @@ -1,210 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Default Servant Client" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Default Servant 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="POA Default Servant Client - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Default Servant Client - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA Default Servant Client - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA Default Servant 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 "" -# 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 /GR /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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Default Servant Client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client__" -# PROP BASE Intermediate_Dir "client__" -# 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 /GR /GX /Zi /Od /I "..\..\.." /I "..\..\..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Default Servant Client - Win32 Release" -# Name "POA Default Servant Client - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\client.cpp -# End Source File -# Begin Source File - -SOURCE=.\FileC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FileS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\FileC.h -# End Source File -# Begin Source File - -SOURCE=.\FileS.h -# End Source File -# Begin Source File - -SOURCE=.\FileS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter ".idl" -# Begin Source File - -SOURCE=.\File.idl - -!IF "$(CFG)" == "POA Default Servant Client - Win32 Release" - -USERDEP__FILE_="..\..\..\tao_idl\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\File.idl -InputName=File - -BuildCmds= \ - ..\..\..\tao_idl\Release\tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA Default Servant Client - Win32 Debug" - -USERDEP__FILE_="..\..\..\tao_idl\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\File.idl -InputName=File - -BuildCmds= \ - ..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Default_Servant/run_test.pl b/TAO/examples/POA/Default_Servant/run_test.pl deleted file mode 100755 index 77416e8c4b5..00000000000 --- a/TAO/examples/POA/Default_Servant/run_test.pl +++ /dev/null @@ -1,21 +0,0 @@ -#$Id$ -# -*- perl -*- -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -unshift @INC, '../../../../bin'; -require ACEutils; - -$iorfile = "server.ior"; -$SV = Process::Create ("server$Process::EXE_EXT", " -o $iorfile"); - -ACE::waitforfile ($iorfile); - -$status = system ("client$Process::EXE_EXT -k $iorfile"); - -$SV->Kill (); $SV->Wait (); - -unlink $iorfile; - -exit $status; diff --git a/TAO/examples/POA/Default_Servant/server.cpp b/TAO/examples/POA/Default_Servant/server.cpp deleted file mode 100644 index 856fe6a9d50..00000000000 --- a/TAO/examples/POA/Default_Servant/server.cpp +++ /dev/null @@ -1,235 +0,0 @@ -// $Id$ - -//=================================================================== -// = LIBRARY -// TAO/tests/POA/Default_Servant/server -// -// = FILENAME -// server.cpp -// -// = DESCRIPTION -// A server program for the File IDL module -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - - -#include "ace/streams.h" -#include "File_i.h" - -ACE_RCSID(Default_Servant, server, "$Id$") - -static char *ior_output_file = 0; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "o:d"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'o': - ior_output_file = ACE_OS::strdup (get_opts.optarg); - break; - case 'd': - TAO_debug_level++; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "[-oior_output_file]" - "[-d]" - "\n", - argv [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - int result = parse_args (argc, argv); - if (result != 0) - return result; - - // Get the Root POA object reference - CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA"); - - // Narrow the object reference to a POA reference - PortableServer::POA_var root_poa = PortableServer::POA::_narrow (obj.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - PortableServer::POAManager_var poa_manager = root_poa->the_POAManager (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - CORBA::PolicyList policies (5); - policies.length (5); - - // ID Assignment Policy - policies[0] = - root_poa->create_id_assignment_policy (PortableServer::USER_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_assignment_policy"); - return -1; - } - - // Lifespan Policy - policies[1] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Request Processing Policy - policies[2] = - root_poa->create_request_processing_policy (PortableServer::USE_DEFAULT_SERVANT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_request_processing_policy"); - return -1; - } - - // Servant Retention Policy - policies[3] = - root_poa->create_servant_retention_policy (PortableServer::RETAIN, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_servant_retention_policy"); - return -1; - } - - // Id Uniqueness Policy - policies[4] = - root_poa->create_id_uniqueness_policy (PortableServer::MULTIPLE_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_uniqueness_policy"); - return -1; - } - - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = root_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Create a File System Implementation object in first_poa - FileImpl::System file_system_impl (first_poa.in ()); - - PortableServer::ObjectId_var file_system_oid = - PortableServer::string_to_ObjectId ("FileSystem"); - - first_poa->activate_object_with_id (file_system_oid.in (), - &file_system_impl, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::activate_object_with_id"); - return -1; - } - - CORBA::Object_var file_system = - first_poa->id_to_reference (file_system_oid.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::id_to_reference"); - return -1; - } - // Get the IOR for the "FileSystem" object - CORBA::String_var file_system_ior = - orb->object_to_string (file_system.in (), env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG,"%s\n", - file_system_ior.in ())); - - // If the ior_output_file exists, output the ior to it - if (ior_output_file != 0) - { - FILE *output_file= ACE_OS::fopen (ior_output_file, "w"); - if (output_file == 0) - ACE_ERROR_RETURN ((LM_DEBUG, "Cannot open output file for writing IOR: %s", - ior_output_file), - -1); - ACE_OS::fprintf (output_file, "%s", file_system_ior.in ()); - ACE_OS::fclose (output_file); - } - - // set the state of the poa_manager to active i.e ready to process requests - poa_manager->activate (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - // Run the ORB - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1); - - // Destroy the rootPOA and its children - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} - - diff --git a/TAO/examples/POA/Default_Servant/server.dsp b/TAO/examples/POA/Default_Servant/server.dsp deleted file mode 100644 index 80a536a290e..00000000000 --- a/TAO/examples/POA/Default_Servant/server.dsp +++ /dev/null @@ -1,218 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Default Servant Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Default Servant 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="POA Default Servant Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Default Servant Server - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA Default Servant Server - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA Default Servant 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 "" -# 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 /GR /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 tao.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Default Servant 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 /GR /GX /Zi /Od /I "..\..\.." /I "..\..\..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Default Servant Server - Win32 Release" -# Name "POA Default Servant Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter ".cpp" -# Begin Source File - -SOURCE=.\File_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\FileC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FileS.cpp -# End Source File -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\File_i.h -# End Source File -# Begin Source File - -SOURCE=.\FileC.h -# End Source File -# Begin Source File - -SOURCE=.\FileS.h -# End Source File -# Begin Source File - -SOURCE=.\FileS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\File.idl - -!IF "$(CFG)" == "POA Default Servant Server - Win32 Release" - -USERDEP__FILE_="..\..\..\tao_idl\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\File.idl -InputName=File - -BuildCmds= \ - ..\..\..\tao_idl\Release\tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA Default Servant Server - Win32 Debug" - -USERDEP__FILE_="..\..\..\tao_idl\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\File.idl -InputName=File - -BuildCmds= \ - ..\..\..\tao_idl\tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Default_Servant/svc.conf b/TAO/examples/POA/Default_Servant/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/POA/Default_Servant/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -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 -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/POA/Default_Servant/test b/TAO/examples/POA/Default_Servant/test deleted file mode 100644 index 09ab97bfb35..00000000000 --- a/TAO/examples/POA/Default_Servant/test +++ /dev/null @@ -1 +0,0 @@ -POA rules!! \ No newline at end of file diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsp b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsp deleted file mode 100644 index 23b09a5d323..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsp +++ /dev/null @@ -1,63 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Alt_Resource_Factory" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=Alt_Resource_Factory - 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 "Alt_Resource_Factory.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 "Alt_Resource_Factory.mak"\ - CFG="Alt_Resource_Factory - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Alt_Resource_Factory - Win32 Debug" (based on\ - "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe -# 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 /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\.." /I "..\..\..\..\.." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D Alt_Resource_Factory_HAS_DLL=1 /D "Alt_Resource_Factory_BUILD_DLL" /YX /FD /c -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 -# 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:windows /dll /debug /machine:I386 /pdbtype:sept -# ADD LINK32 TAOd.lib aced.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"Alt_Resource_Factoryd.dll" /pdbtype:sept /libpath:"..\..\..\..\tao" /libpath:"..\..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none -# Begin Target - -# Name "Alt_Resource_Factory - Win32 Debug" -# Begin Source File - -SOURCE=.\Resource_Factory.cpp -# End Source File -# End Target -# End Project diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsw b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsw deleted file mode 100644 index 28c9298ddab..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Alt_Resource_Factory"=.\Alt_Resource_Factory.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h deleted file mode 100644 index 3cc3721c274..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h +++ /dev/null @@ -1,32 +0,0 @@ -// $Id$ - -// Definition for Win32 Export directives. -// This file is generated automatically by -// ${ACE_ROOT}/GenExportH.BAT -// ------------------------------ -#if !defined (Alt_Resource_Factory_EXPORT_H) -#define Alt_Resource_Factory_EXPORT_H - -#include "ace/OS.h" - -#if defined (Alt_Resource_Factory_HAS_DLL) -# if (Alt_Resource_Factory_HAS_DLL == 1) -# if defined (Alt_Resource_Factory_BUILD_DLL) -# define Alt_Resource_Factory_Export ACE_Proper_Export_Flag -# define Alt_Resource_Factory_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) -# else -# define Alt_Resource_Factory_Export ACE_Proper_Import_Flag -# define Alt_Resource_Factory_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) -# endif /* Alt_Resource_Factory_BUILD_DLL */ -# else -# define Alt_Resource_Factory_Export -# define Alt_Resource_Factory_SINGLETON_DECLARATION(T) -# endif /* ! Alt_Resource_Factory_HAS_DLL == 1 */ -#else -# define Alt_Resource_Factory_Export -# define Alt_Resource_Factory_SINGLETON_DECLARATION(T) -#endif /* Alt_Resource_Factory_HAS_DLL */ - -#endif /* Alt_Resource_Factory_EXPORT_H */ - -// End of auto generated file. diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/README b/TAO/examples/POA/Explicit_Activation/Alt_Resources/README deleted file mode 100644 index 9d8ca43abec..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/README +++ /dev/null @@ -1,14 +0,0 @@ -This module shows how to modify the default TAO Resource Factory to do -something user specific. In this example, the reactor() accessor is -modified to provide the ORB with an instance of the WFMO_Reactor -instead of the regular Select_Reactor. - -To use this altered resource factory in the Explicit_Activation -example, please specify the -ORBsvcconf alternate.conf as a additional -parameter to the server at start up. - -Note: Use of WFMO_Reactor is only for demonstration. In general, -WFMO_Reactor will not work for TAO as it cannot handle nested call -correctly. Also, since WFMO_Reactor is limited to Win32, this example -is limited to Win32. - diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.cpp b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.cpp deleted file mode 100644 index 227639a60d4..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.cpp +++ /dev/null @@ -1,26 +0,0 @@ -// $Id$ - -#include "Resource_Factory.h" - -My_Resource_Factory::My_Reactors::My_Reactors (void) - : wfmo_reactor_ (), - reactor_ (&wfmo_reactor_) -{ -} - -ACE_Reactor * -My_Resource_Factory::get_reactor (void) -{ - ACE_DEBUG ((LM_DEBUG, "Using alternate reactor\n")); - - switch (this->resource_source_) - { - case TAO_GLOBAL: - return &GLOBAL_REACTORS::instance ()->reactor_; - case TAO_TSS: - return &TSS_REACTORS::instance ()->reactor_; - } - return 0; -} - -ACE_FACTORY_DEFINE (Alt_Resource_Factory, My_Resource_Factory) diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h deleted file mode 100644 index 2b20061d4db..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h +++ /dev/null @@ -1,25 +0,0 @@ -// $Id$ - -#include "tao/corba.h" -#include "Alt_Resource_Factory.h" - -class Alt_Resource_Factory_Export My_Resource_Factory : public TAO_Resource_Factory -{ -public: - virtual ACE_Reactor *get_reactor (void); - // Return an to be utilized. - -private: - struct My_Reactors - { - My_Reactors (void); - ACE_WFMO_Reactor wfmo_reactor_; - ACE_Reactor reactor_; - }; - - typedef ACE_Singleton GLOBAL_REACTORS; - typedef ACE_TSS_Singleton TSS_REACTORS; -}; - -ACE_FACTORY_DECLARE (Alt_Resource_Factory, My_Resource_Factory) - diff --git a/TAO/examples/POA/Explicit_Activation/Explicit_Activation.dsw b/TAO/examples/POA/Explicit_Activation/Explicit_Activation.dsw deleted file mode 100644 index f121fae15c3..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Explicit_Activation.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "server"=.\server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/POA/Explicit_Activation/Makefile b/TAO/examples/POA/Explicit_Activation/Makefile deleted file mode 100644 index e525d97f48b..00000000000 --- a/TAO/examples/POA/Explicit_Activation/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# -# $Id$ -# - -BIN = server - -LSRC = $(addsuffix .cpp,$(BIN)) - -CPPFLAGS += -I$(TAO_ROOT) -I../Generic_Servant - -LDLIBS = -lserver -lTAO -LDFLAGS += -L$(TAO_ROOT)/tao -L../Generic_Servant - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VBIN) - -INSTALL = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.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 - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/Explicit_Activation/README b/TAO/examples/POA/Explicit_Activation/README deleted file mode 100644 index fdf1a3bf367..00000000000 --- a/TAO/examples/POA/Explicit_Activation/README +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -This application demostrates explicit activation of Servant objects. - -The server program is available here. Use the Generic_Servant/client -program to test this. - -________________________________________ - -To test this example, type run_test.pl -________________________________________ - -Or -________________________________________ - -Run the server as follows: - -% ./server -f output - -This will produce three output files: output_1, output_2, and output_3 - -Run the client as follows: - -% cd $TAO_ROOT/tests/POA/Generic_Servant -% ./client -f ../Explicit_Activation/output_1 -% ./client -f ../Explicit_Activation/output_2 -% ./client -f ../Explicit_Activation/output_3 -________________________________________ - -Or -________________________________________ - -Run the server as follows: - -% ./server -ORBobjrefstyle URL & - -Run the client as follows: - -% cd $TAO_ROOT/tests/POA/Generic_Servant -% ./client -k - -Comments : -========= - - As soon as, the server prints out the IOR, cut it and use it for -running the client. -________________________________________ - - diff --git a/TAO/examples/POA/Explicit_Activation/alternate.conf b/TAO/examples/POA/Explicit_Activation/alternate.conf deleted file mode 100644 index 3871b912452..00000000000 --- a/TAO/examples/POA/Explicit_Activation/alternate.conf +++ /dev/null @@ -1,5 +0,0 @@ -# -# Refer to Alternate_Resource_Factory/README for details -# -dynamic Resource_Factory Service_Object * Alt_Resources/Alt_Resource_Factory:_make_My_Resource_Factory() "-ORBresources global" - diff --git a/TAO/examples/POA/Explicit_Activation/run_test.pl b/TAO/examples/POA/Explicit_Activation/run_test.pl deleted file mode 100755 index a1a94af2239..00000000000 --- a/TAO/examples/POA/Explicit_Activation/run_test.pl +++ /dev/null @@ -1,69 +0,0 @@ -#$Id$ -# -*- perl -*- -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -unshift @INC, '../../../../bin'; -require ACEutils; - -$iorfile = "ior"; - -$oneway = ""; -$iterations = 100; - -# Parse the arguments -for ($i = 0; $i <= $#ARGV; $i++) -{ - SWITCH: - { - if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") - { - print "run_test [-h] [-i iterations] [-o] [-f ior file]\n"; - print "\n"; - print "-h -- prints this information\n"; - print "-f -- ior file\n"; - print "-i iterations -- specifies iterations\n"; - print "-o -- call issued are oneways\n"; - exit; - } - if ($ARGV[$i] eq "-o") - { - $oneway = "-o"; - last SWITCH; - } - if ($ARGV[$i] eq "-i") - { - $iterations = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - if ($ARGV[$i] eq "-f") - { - $iorfile = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - print "run_test: Unknown Option: ".$ARGV[$i]."\n"; - } -} - -$iorfile_1 = $iorfile."_1"; -$iorfile_2 = $iorfile."_2"; -$iorfile_3 = $iorfile."_3"; - -$SV = Process::Create ("server$Process::EXE_EXT", "-f $iorfile -ORBobjrefstyle URL"); - -ACE::waitforfile ($iorfile_1); -ACE::waitforfile ($iorfile_2); -ACE::waitforfile ($iorfile_3); - -$status = system ("../Generic_Servant/client$Process::EXE_EXT -ORBobjrefstyle URL $oneway -i $iterations -f $iorfile_1"); -$status = system ("../Generic_Servant/client$Process::EXE_EXT -ORBobjrefstyle URL $oneway -i $iterations -f $iorfile_2"); -$status = system ("../Generic_Servant/client$Process::EXE_EXT -ORBobjrefstyle URL $oneway -i $iterations -f $iorfile_3 -x"); - -unlink $iorfile_1; -unlink $iorfile_2; -unlink $iorfile_3; - -exit $status; diff --git a/TAO/examples/POA/Explicit_Activation/server.cpp b/TAO/examples/POA/Explicit_Activation/server.cpp deleted file mode 100644 index 6b6db3ca649..00000000000 --- a/TAO/examples/POA/Explicit_Activation/server.cpp +++ /dev/null @@ -1,383 +0,0 @@ -// $Id$ - -// ================================================================ -// -// = LIBRARY -// TAO/tests/POA/Explicit_Activation -// -// = FILENAME -// server.cpp -// -// = DESCRIPTION -// In this example, -// - A new POA ( firstPOA) is created, and the different functions -// for the explicit activation of objects are demonstrated. -// - The Foo application class objects (defined in -// ./../Generic_Servant/MyFooServant) are used as sample objects. -// -// = AUTHOR -// Irfan Pyarali -// -// ================================================================ - -#include "ace/streams.h" -#include "tao/Timeprobe.h" -#include "MyFooServant.h" - -ACE_RCSID(Explicit_Activation, server, "$Id$") - -static char *ior_output_file = 0; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "f:"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'f': - ior_output_file = get_opts.optarg; - break; - - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "[-f ior_output_file]" - "\n", - argv [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -static int -write_iors_to_file (const char *first_ior, - const char *second_ior, - const char *third_ior) -{ - if (ior_output_file == 0) - // No filename was specified; simply return - return 0; - - char ior_output_file_1[BUFSIZ]; - char ior_output_file_2[BUFSIZ]; - char ior_output_file_3[BUFSIZ]; - - ACE_OS::sprintf (ior_output_file_1, "%s_1", ior_output_file); - ACE_OS::sprintf (ior_output_file_2, "%s_2", ior_output_file); - ACE_OS::sprintf (ior_output_file_3, "%s_3", ior_output_file); - - FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, "w"); - FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, "w"); - FILE *output_file_3 = ACE_OS::fopen (ior_output_file_3, "w"); - - if (output_file_1 == 0 || - output_file_2 == 0 || - output_file_3 == 0) - ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output files for writing IORs: %s, %s %s\n", - ior_output_file_1, - ior_output_file_2, - ior_output_file_3), - -1); - - u_int result = 0; - - result = ACE_OS::fprintf (output_file_1, - "%s", - first_ior); - if (result != ACE_OS::strlen (first_ior)) - ACE_ERROR_RETURN ((LM_ERROR, - "ACE_OS::fprintf failed while writing %s to %s\n", - first_ior, - ior_output_file_1), - -1); - - result = ACE_OS::fprintf (output_file_2, - "%s", - second_ior); - if (result != ACE_OS::strlen (second_ior)) - ACE_ERROR_RETURN ((LM_ERROR, - "ACE_OS::fprintf failed while writing %s to %s\n", - second_ior, - ior_output_file_2), - -1); - - result = ACE_OS::fprintf (output_file_3, - "%s", - third_ior); - if (result != ACE_OS::strlen (third_ior)) - ACE_ERROR_RETURN ((LM_ERROR, - "ACE_OS::fprintf failed while writing %s to %s\n", - third_ior, - ior_output_file_3), - -1); - - ACE_OS::fclose (output_file_1); - ACE_OS::fclose (output_file_2); - ACE_OS::fclose (output_file_3); - - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB first. - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - int result = parse_args (argc, argv); - if (result != 0) - return result; - - // Obtain the RootPOA. - CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA"); - - // Get the POA_var object from Object_var. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Get the POAManager of the RootPOA. - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - // Policies for the firstPOA to be created. - CORBA::PolicyList policies (2); - policies.length (2); - - // Id Assignment Policy - policies[0] = - root_poa->create_id_assignment_policy (PortableServer::USER_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_assignment_policy"); - return -1; - } - - // Lifespan policy - policies[1] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Create the firstPOA under the RootPOA. - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = - root_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Create the secondPOA under the firstPOA. - name = "secondPOA"; - PortableServer::POA_var second_poa = - first_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creation of POAs is over. Destroy the Policy objects. - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Create two Objects of Class MyFooServant (defined in - // ./../GenericServant/MyFooServant.h) Create one object at RootPOA - // and the other at firstPOA. - MyFooServant first_foo_impl (orb.in (), root_poa.in (), 27); - MyFooServant second_foo_impl (orb.in (), first_poa.in (), 28); - - // Do "activate_object" to activate the first_foo_impl object. It - // returns ObjectId for that object. Operation Used : - // ObjectId activate_object( in Servant p_servant) - // raises (ServantAlreadyActive, WrongPolicy); - PortableServer::ObjectId_var first_oid = - root_poa->activate_object (&first_foo_impl, env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::activate_object"); - return -1; - } - - // Get Object Reference for the first_foo_impl object. - Foo_var first_foo = first_foo_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_Foo::_this"); - return -1; - } - - // Get ObjectId for object secondFoo and use that ObjectId to - // activate the second_foo_impl object. - // Operation Used : - // void activate_object_with_id( in ObjectId oid, in Servant p_servant) - // raises (ObjectAlreadyActive, ServantAlreadyActive, WrongPolicy); - PortableServer::ObjectId_var second_oid = - PortableServer::string_to_ObjectId ("secondFoo"); - - first_poa->activate_object_with_id (second_oid.in (), - &second_foo_impl, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::activate_object_with_id"); - return -1; - } - - // Get Object reference for second_foo_impl object. - Foo_var second_foo = second_foo_impl._this (env); - if (env.exception () != 0) - { - env.print_exception ("POA_Foo::_this"); - return -1; - } - - // Get ObjectId for the string thirdPOA Create the object reference - // for thirdPOA using that ObjectId. Operation Used : - // Object create_reference_with_id (in ObjectId oid, in CORBA::RepositoryId intf ); - // This operation creates an object reference that encapsulates the - // specified Object Id and interface repository Id values. - /* - PortableServer::ObjectId_var third_oid = - PortableServer::string_to_ObjectId ("thirdFoo"); - */ - - // This will test how the POA handles a user given ID - PortableServer::ObjectId_var third_oid = - PortableServer::string_to_ObjectId ("third Foo"); - - third_oid[5] = (CORBA::Octet) '\0'; - - CORBA::Object_var third_foo = - second_poa->create_reference_with_id (third_oid.in (), - "IDL:Foo:1.0", env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_reference_with_id"); - return -1; - } - - // Stringyfy all the object references and print them out. - CORBA::String_var first_ior = - orb->object_to_string (first_foo.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - CORBA::String_var second_ior = - orb->object_to_string (second_foo.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - CORBA::String_var third_ior = - orb->object_to_string (third_foo.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, - "%s\n%s\n%s\n", - first_ior.in (), - second_ior.in (), - third_ior.in ())); - - int write_result = write_iors_to_file (first_ior.in (), - second_ior.in (), - third_ior.in ()); - if (write_result != 0) - return write_result; - - // Activate thirdPOA using its ObjectID. - MyFooServant third_foo_impl (orb.in (), second_poa.in (), 29); - second_poa->activate_object_with_id (third_oid.in (), - &third_foo_impl, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::activate_object_with_id"); - return -1; - } - - poa_manager->activate (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1); - - // Destroy RootPOA. ( Also destroys firstPOA) - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - ACE_TIMEPROBE_PRINT; - - return 0; -} diff --git a/TAO/examples/POA/Explicit_Activation/server.dsp b/TAO/examples/POA/Explicit_Activation/server.dsp deleted file mode 100644 index 2991d34e701..00000000000 --- a/TAO/examples/POA/Explicit_Activation/server.dsp +++ /dev/null @@ -1,100 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Explicit Activation Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Explicit Activation 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="POA Explicit Activation Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Explicit Activation Server - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA Explicit Activation Server - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA Explicit Activation 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 "" -# 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 "..\..\..\.." /I "..\Generic_Servant\\" /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 tao.lib ace.lib ..\Generic_Servant\Generic_Servant.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Explicit Activation 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 "..\..\..\.." /I "..\Generic_Servant\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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 ..\Generic_Servant\Generic_Servantd.lib TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Explicit Activation Server - Win32 Release" -# Name "POA Explicit Activation Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/FindPOA/FindPOA.cpp b/TAO/examples/POA/FindPOA/FindPOA.cpp deleted file mode 100644 index d8ea74a2e36..00000000000 --- a/TAO/examples/POA/FindPOA/FindPOA.cpp +++ /dev/null @@ -1,179 +0,0 @@ -// $Id$ - -//=========================================================================== -// -// = LIBRARY -// TAO/tests/POA/FindPOA -// -// = FILENAME -// FindPOA.cpp -// -// = DESCRIPTION -// This Program tests the find_POA method of a POA. -// -// = AUTHOR -// Irfan Pyarali -// -//=========================================================================== - -#include "ace/streams.h" -#include "tao/corba.h" - -ACE_RCSID(FindPOA, FindPOA, "$Id$") - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB - - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Get Object reference to RootPOA. - CORBA::Object_var obj = - orb->resolve_initial_references ("RootPOA"); - - // Narrow Object reference to RootPOA to a POA reference. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in(), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Get a TAO_Adapter_Activator reference - TAO_Adapter_Activator activator_impl; - - PortableServer::AdapterActivator_var activator = - activator_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("TAO_Adapter_Activator::_this"); - return -1; - } - - // Register the TAO_Adapter_Activator reference to be the RootPOA's - // Adapter Activator. - - root_poa->the_activator (activator.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_activator"); - return -1; - } - - // Try to find a childPOA of RootPOA named firstPOA - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = - root_poa->find_POA (name.c_str (), - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::find_POA"); - return -1; - } - - // Use the TAO_POA name_separator (which is '/') to find a childPOA - // of firstPOA named secondPOA. - - name += TAO_POA::name_separator (); - name += "secondPOA"; - PortableServer::POA_var second_poa = - root_poa->find_POA (name.c_str (), - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::find_POA"); - return -1; - } - - // Create a hierarchical string of POA names - // eg. thirdPOA/forthPOA/fifthPOA thirdPOA being the root of the - // hierarchy with forthPOA as its child and fifthPOA as its - // grandchild. - - name = "thirdPOA"; - name += TAO_POA::name_separator (); - name += "forthPOA"; - name += TAO_POA::name_separator (); - name += "fifthPOA"; - - // Try to find the fifth_poa by passing the hierarchy of POA names - // resulting in the creation of third and forth POAs as well as the - // fifth POA. - - PortableServer::POA_var fifth_poa = - root_poa->find_POA (name.c_str (), - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::find_POA"); - return -1; - } - - // Get the names of all the POAs - - CORBA::String_var root_poa_name = - root_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var first_poa_name = - first_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var second_poa_name = - second_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var fifth_poa_name = - fifth_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - - ACE_DEBUG((LM_DEBUG,"%s\n%s\n%s\n%s\n", - root_poa_name.in (), - first_poa_name.in (), - second_poa_name.in (), - fifth_poa_name.in ())); - - // This should destroy all its children - - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} diff --git a/TAO/examples/POA/FindPOA/FindPOA.dsp b/TAO/examples/POA/FindPOA/FindPOA.dsp deleted file mode 100644 index 2d27e958be4..00000000000 --- a/TAO/examples/POA/FindPOA/FindPOA.dsp +++ /dev/null @@ -1,99 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA FindPOA Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA FindPOA 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 "FindPOA.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 "FindPOA.mak" CFG="POA FindPOA Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA FindPOA Server - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA FindPOA Server - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA FindPOA 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 "" -# 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 tao.lib aced.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA FindPOA 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA FindPOA Server - Win32 Release" -# Name "POA FindPOA Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FindPOA.cpp -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/FindPOA/FindPOA.dsw b/TAO/examples/POA/FindPOA/FindPOA.dsw deleted file mode 100644 index be061581a49..00000000000 --- a/TAO/examples/POA/FindPOA/FindPOA.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "FindPOA"=.\FindPOA.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/POA/FindPOA/Makefile b/TAO/examples/POA/FindPOA/Makefile deleted file mode 100644 index ebdec7ce096..00000000000 --- a/TAO/examples/POA/FindPOA/Makefile +++ /dev/null @@ -1,271 +0,0 @@ -# -# $Id$ -# - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -BIN = FindPOA - -LSRC = $(addsuffix .cpp,$(BIN)) - -CPPFLAGS += -I$(TAO_ROOT) - -LDLIBS = -lTAO -LDFLAGS += -L$(TAO_ROOT)/tao - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VBIN) - -INSTALL = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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 - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/FindPOA.o .obj/FindPOA.so .shobj/FindPOA.o .shobj/FindPOA.so: FindPOA.cpp \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(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.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/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.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/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc_Base.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/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(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/SString.h \ - $(ACE_ROOT)/ace/SString.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 \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(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/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(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 \ - $(ACE_ROOT)/ace/Strategies.i \ - $(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/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(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 \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/ORB_Core.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/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/ORB_Strategies_T.cpp \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/FindPOA/README b/TAO/examples/POA/FindPOA/README deleted file mode 100644 index e0bc53df588..00000000000 --- a/TAO/examples/POA/FindPOA/README +++ /dev/null @@ -1,52 +0,0 @@ - -FindPOA test: -============ - -Executable: FindPOA - - -Description: -=========== - -This is a program to test the findPOA() method of the POA. It makes -use of TAO_Adapter_Activator. - -Adapter activators are associated with POAs. An adapter activator -supplies a POA with the ability to create child POAs on demand, as a -side-effect of receiving a request that names the child POA (or one of -its children), or when find_POA() is called with an activate parameter -value of TRUE. An application server that creates all its needed POAs -at the beginning of execution does not need to use or provide an -adapter activator; it is necessary only for the case in which POAs -need to be created during request processing. - -TAO_Adapter_Activator takes a '/' (backslash) separated string of POA -names and creates them in a hierarchy with the left most substring as -the root of that hierarchy. - -The test program tests the "findPOA" method in RootPOA with a single -POA named "firstPOA" and then with a POA namestring -"firstPOA/secondPOA". In the second case the secondPOA is -non-existent and is created. - -Finally the findPOA method in RootPOA is called with a string -"thirdPOA/forthPOA/fifthPOA", resulting in the creation of -thirdPOA,forthPOA and a fifthPOA and returns the fifthPOA. - -To check the findPOA method the names of the POA are queried and -printed on the screen. POAs hold only the name relative to its -parent. For eg. the name of fifthPOA is just "fifthPOA" and NOT -"RootPOA/thirdPOA/forthPOA/fifthPOA". - -To Test: -======== - 1. Just run the FindPOA program. - - 2. You should see the following as the output: - - - firstPOA - secondPOA - fifthPOA - - 3. There might be other diagnostic messages. diff --git a/TAO/examples/POA/Forwarding/Foo.idl b/TAO/examples/POA/Forwarding/Foo.idl deleted file mode 100644 index 533c3e164ee..00000000000 --- a/TAO/examples/POA/Forwarding/Foo.idl +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ - -interface Foo -{ - // = TITLE - // Dummy object, doit just reports number, - // do not expect any sense. They are constantly increasing - - long doit (); - - // Raised if it cannot be forwarded - exception Cannot_Forward {}; - - void forward () - raises (Cannot_Forward); - - void shutdown (); -}; - diff --git a/TAO/examples/POA/Forwarding/Forwarding.dsw b/TAO/examples/POA/Forwarding/Forwarding.dsw deleted file mode 100644 index d17cf7c9604..00000000000 --- a/TAO/examples/POA/Forwarding/Forwarding.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/examples/POA/Forwarding/Makefile b/TAO/examples/POA/Forwarding/Makefile deleted file mode 100644 index 82fc7050e4a..00000000000 --- a/TAO/examples/POA/Forwarding/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -LDLIBS = -lTAO - -TAO_IDLFLAGS=-I$(TAO_ROOT)/tao -IDL_SRC = FooC.cpp FooS.cpp -PROG_SRCS = $(IDL_SRC) server.cpp client.cpp \ - MyFooServant.cpp Servant_Locator.cpp - -LSRC = $(PROG_SRCS) - -SVR_OBJS = FooC.o FooS.o server.o MyFooServant.o Servant_Locator.o -CLT_OBJS = FooC.o FooS.o client.o - -BIN = server client -BUILD = $(BIN) -VLDLIBS = $(LDLIBS:%=%$(VAR)) -VBIN = $(BIN:%=%$(VAR)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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 -include $(TAO_ROOT)/taoconfig.mk - -DCFLAGS = -g - -.PRECIOUS: FooC.h FooC.i FooC.cpp FooS.h FooS.i FooS.cpp - -server: $(addprefix $(VDIR),$(SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -realclean: clean - -/bin/rm -rf FooC.* FooS.* - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/Forwarding/MyFooServant.cpp b/TAO/examples/POA/Forwarding/MyFooServant.cpp deleted file mode 100644 index 9e84310d454..00000000000 --- a/TAO/examples/POA/Forwarding/MyFooServant.cpp +++ /dev/null @@ -1,142 +0,0 @@ -// $Id$ - -//========================================================================== -// -// -// = FILENAME -// MyFooServant.cpp -// -// = DESCRIPTION -// This is a simple foo servant implementation -// -// = AUTHOR -// Irfan Pyarali -// -//========================================================================== - -#include "tao/corba.h" -#include "MyFooServant.h" - -ACE_RCSID(Forwarding, MyFooServant, "$Id$") - -// Constructor -MyFirstFooServant::MyFirstFooServant (CORBA::ORB_ptr orb_ptr, - PortableServer::POA_ptr poa_ptr, - CORBA::Long value, - CORBA::Object_ptr forward_to_ptr) - : orb_var_ (CORBA::ORB::_duplicate (orb_ptr)), - poa_var_ (PortableServer::POA::_duplicate (poa_ptr)), - value_ (value), - forward_to_var_ (CORBA::Object::_duplicate (forward_to_ptr)) -{ - if (CORBA::is_nil (this->forward_to_var_.in ())) - ACE_DEBUG ((LM_DEBUG, - "POA approach: Forward_to is nil!\n")); -} - -// Destructor -MyFirstFooServant::~MyFirstFooServant (void) -{ -} - -// Return the Default POA of this Servant -PortableServer::POA_ptr -MyFirstFooServant::_default_POA (CORBA::Environment &/*env*/) -{ - return PortableServer::POA::_duplicate (this->poa_var_.in ()); -} - -// Return this->value -CORBA::Long -MyFirstFooServant::doit (CORBA::Environment &/*env*/) -{ - return this->value_++; -} - -void -MyFirstFooServant::shutdown (CORBA::Environment &/*env*/) -{ - this->orb_var_->shutdown(); -} - - -void -MyFirstFooServant::forward (CORBA::Environment &env) -{ - ACE_DEBUG ((LM_DEBUG, - "MyFirstFooServant::forward: being called\n")); - if (!CORBA::is_nil (this->forward_to_var_.in ())) - { - PortableServer::ObjectId_var oid = - this->poa_var_->servant_to_id (this, env); - - if (env.exception () != 0) - return; - - PortableServer::Servant servant = this->poa_var_->_servant (); - if (servant == 0) - { - CORBA::Exception *exception = new Foo::Cannot_Forward; - env.exception (exception); - return; - } - - void *ptr = servant->_downcast ("IDL:PortableServer/POA:1.0"); - POA_PortableServer::POA *poa = (POA_PortableServer::POA *) ptr; - TAO_POA *tao_poa = ACE_dynamic_cast (TAO_POA *, poa); - - tao_poa->forward_object (oid.in (), - this->forward_to_var_.in (), - env); - } - else - { - ACE_DEBUG ((LM_DEBUG, - "POA approach: Forward_to refenence is nil.\n")); - CORBA::Exception *exception = new Foo::Cannot_Forward; - env.exception (exception); - return; - } -} - -// Second Foo - -// Constructor -MySecondFooServant::MySecondFooServant (CORBA::ORB_ptr orb_ptr, - MyFooServantLocator *locator_ptr, - CORBA::Long value) - : orb_var_ (CORBA::ORB::_duplicate (orb_ptr)), - locator_ptr_ (locator_ptr), - value_ (value) -{ -} - -// Destructor -MySecondFooServant::~MySecondFooServant (void) -{ -} - - -// Return this->value -CORBA::Long -MySecondFooServant::doit (CORBA::Environment &/*env*/) -{ - return this->value_++; -} - -void -MySecondFooServant::forward (CORBA::Environment &env) -{ - // forward the forwarding request to the Servant Locator :-) This is - // kind of a loop back, but it is correct only the IDL interface can - // be assumed !! - this->locator_ptr_->forward (env); -} - - -void -MySecondFooServant::shutdown (CORBA::Environment &/*env*/) -{ - this->orb_var_->shutdown(); -} - diff --git a/TAO/examples/POA/Forwarding/MyFooServant.h b/TAO/examples/POA/Forwarding/MyFooServant.h deleted file mode 100644 index 49bde57fe28..00000000000 --- a/TAO/examples/POA/Forwarding/MyFooServant.h +++ /dev/null @@ -1,84 +0,0 @@ -// $Id$ -//============================================================================= -// -// -// = FILENAME -// MyFooServant.h -// -// = DESCRIPTION -// Defines MyFooServant class for the Foo interface -// -// = AUTHOR -// Irfan Pyarali and Michael Kircher -// -//============================================================================= - -#if !defined (MYFOOSERVANT_H) -#define MYFOOSERVANT_H - -#include "FooS.h" -#include "Servant_Locator.h" - -class MyFirstFooServant : public POA_Foo -{ - // = TITLE - // @@ Michael, please comment me. -public: - // constructor - takes a POA and a value parameter - MyFirstFooServant (CORBA::ORB_ptr orb_ptr, - PortableServer::POA_ptr poa_ptr, - CORBA::Long value, - CORBA::Object_ptr forward_to_ptr); - - // Destructor - virtual ~MyFirstFooServant (void); - - //Returns the Default POA of this Servant object - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - - // Setup forwarding - virtual void forward (CORBA::Environment &env); - - virtual void shutdown (CORBA::Environment &env); - -protected: - // Default poa associated with this servant - CORBA::ORB_var orb_var_; - PortableServer::POA_var poa_var_; - CORBA::Long value_; - CORBA::Object_var forward_to_var_; -}; - -class MySecondFooServant : public POA_Foo -{ - // = TITLE - // @@ Michael, please comment me. -public: - // constructor - takes a POA and a value parameter - MySecondFooServant (CORBA::ORB_ptr orb_ptr, - MyFooServantLocator *locator, - CORBA::Long value); - - // Destructor - virtual ~MySecondFooServant (void); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - - // Setup forwarding - virtual void forward (CORBA::Environment &env); - - virtual void shutdown (CORBA::Environment &env); - -protected: - // Default poa associated with this servant - CORBA::ORB_var orb_var_; - MyFooServantLocator *locator_ptr_; - CORBA::Long value_; -}; - -#endif /* MYFOOSERVANT_H */ - diff --git a/TAO/examples/POA/Forwarding/README b/TAO/examples/POA/Forwarding/README deleted file mode 100644 index aea0bfe129f..00000000000 --- a/TAO/examples/POA/Forwarding/README +++ /dev/null @@ -1,55 +0,0 @@ -$Id$ - -This document describes the location forwarding example. For detailed -explanation on TAO's location forwarding feature, see - -$TAO_ROOT/docs/forwarding.html - -The test sets up two servers, the first writes its servant's object -reference (OR) to a file. The second server reads the OR, recognizes -it as forwarding location, and writes its own to a file too. This OR -is then read by the client, which then issues a number of requests. -Where every third request is a forwarding request to the object. - -Here's an example for 5 requests: - -first call (request no 1) -second call (request no 2) -forwarding call (request no 3) -thrid call (request no 4) -fourth call (request no 5) -(no six would be a forwarding call again) - -Two types of location forwardings are implemented: (1) the POA -approach and (2) the servant locator approach. Both are mentioned in -the above documentation about location forwarding. - -To run the test for the POA approach do the following: - -% server -o server2 -ORBport 10040 -ORBobjrefstyle url -% server -f server2 -o server1 -ORBport 10041 -ORBobjrefstyle url -% client -f server1 -i 5 - -A similar invocation for the servant locator approach can be done as -follows (basically just the switches are different): - -% server -p server2 -ORBport 10040 -ORBobjrefstyle url -% server -g server2 -p server1 -ORBport 10041 -ORBobjrefstyle url -% client -g server1 -i 5 - -For additional features try using the first server with the POA -apporach and the second with the servant locator approach: - -% server -o server3 -ORBport 10040 -ORBobjrefstyle url -% server -g server3 -p server2 -ORBport 10041 -ORBobjrefstyle url -% server -f server2 -o server1 -ORBport 10043 -ORBobjrefstyle url -% client -f server1 -i 8 - -The first two calls will be called on server1, then the location -forwarding is called on this one and the next two calls are going to -be called on the second one. Location forwarding is then called on -the second one and the last two calls are then done on the thrid -server. - - - diff --git a/TAO/examples/POA/Forwarding/Servant_Locator.cpp b/TAO/examples/POA/Forwarding/Servant_Locator.cpp deleted file mode 100644 index 74db96f4f2f..00000000000 --- a/TAO/examples/POA/Forwarding/Servant_Locator.cpp +++ /dev/null @@ -1,117 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/POA/Forwarding/Servant_Locator -// -// = FILENAME -// Servant_Locator.cpp -// -// = DESCRIPTION -// Implementation of MyFooServantLocator class , used with a POA -// having a NON_RETAIN policy. -// -// = AUTHOR -// Irfan Pyarali -// Michael Kircher -// -// ============================================================================ - -#include "Servant_Locator.h" -#include "MyFooServant.h" - -ACE_RCSID(Forwarding, Servant_Locator, "$Id$") - -MyFooServantLocator::MyFooServantLocator (CORBA::ORB_ptr orb_ptr, - CORBA::Object_ptr forward_to_ptr) - : orb_var_ (CORBA::ORB::_duplicate (orb_ptr)), - counter_ (0), - servant_ptr_ (0), - forward_to_var_ (CORBA::Object::_duplicate (forward_to_ptr)), - forwarding_ (0) // by default do not forward -{ -} - -MyFooServantLocator::~MyFooServantLocator () -{ - delete servant_ptr_; -} - - -PortableServer::Servant -MyFooServantLocator::preinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa_ptr, - const char *operation, - PortableServer::ServantLocator::Cookie &cookie, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (operation); - - if (this->forwarding_ == 0) // do not forward - { - - // Convert ObjectID to String. - - CORBA::String_var s = PortableServer::ObjectId_to_string (oid); - - // If ObjectID string has a Foo Substring create and return a - // MyFooServant. - - this->counter_++; - - if (ACE_OS::strstr (s.in (), "Foo") != 0) - { - if (this->servant_ptr_ == 0) - { - this->servant_ptr_ = new MySecondFooServant (orb_var_.in(), - this, - 127); - - // Return the servant as the cookie , used as a check when - // postinvoke is called on this MyFooServantLocator. - // cookie = servant; - } - // reuse the old servant - - return this->servant_ptr_; - } - else - { - CORBA::Exception *exception = new CORBA::OBJECT_NOT_EXIST (CORBA::COMPLETED_NO); - env.exception (exception); - return 0; - } - } - else // now forward, in throwing the ForwardRequest Exception - { - // Throw forward exception - env.exception (new PortableServer::ForwardRequest (this->forward_to_var_.in ())); - - ACE_DEBUG ((LM_DEBUG,"MyFooServantLocator::preinvoke: Threw the ForwardRequest exception.\n")); - return 0; - } -} - -void -MyFooServantLocator::postinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - const char *operation, - PortableServer::ServantLocator::Cookie cookie, - PortableServer::Servant p_servant, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (oid); - ACE_UNUSED_ARG (poa); - ACE_UNUSED_ARG (operation); - ACE_UNUSED_ARG (cookie); - ACE_UNUSED_ARG (p_servant); - ACE_UNUSED_ARG (env); -} - -void -MyFooServantLocator::forward (CORBA::Environment &env) -{ - this->forwarding_ = 1; -} - diff --git a/TAO/examples/POA/Forwarding/Servant_Locator.h b/TAO/examples/POA/Forwarding/Servant_Locator.h deleted file mode 100644 index 256e4176b84..00000000000 --- a/TAO/examples/POA/Forwarding/Servant_Locator.h +++ /dev/null @@ -1,74 +0,0 @@ -// $Id$ - -//================================================================================ -// -// = LIBRARY -// TAO/tests/POA/Forwarding/Servant_Locator -// -// = FILENAME -// Servant_Locator.h -// -// = DESCRIPTION -// Defines a MyFooServantLocator class , used with a POA having -// a NON_RETAIN policy -// -// = AUTHOR -// Irfan Pyarali -// -//================================================================================== - -#if !defined (MYFOOSERVANTLOCATOR_H) -#define MYFOOSERVANTLOCATOR_H - -#include "tao/corba.h" - -class MyFooServantLocator : public POA_PortableServer::ServantLocator -{ - // = TITLE - // This class is used by a POA with USE_SERVANT_MANAGER and - // NON_RETAIN policy. -public: - MyFooServantLocator (CORBA::ORB_ptr orb_ptr, - CORBA::Object_ptr forward_to_ptr); - // constructor - - ~MyFooServantLocator (); - - virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr adapter, - const char *operation, - PortableServer::ServantLocator::Cookie &the_cookie, - CORBA::Environment &env); - // This method is invoked by a POA whenever it receives a request - // for MyFoo object that is not currently active. - - virtual void postinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr adapter, - const char *operation, - PortableServer::ServantLocator::Cookie the_cookie, - PortableServer::Servant the_servant, - CORBA::Environment &env); - // This method is invoked whenever a MyFooServant completes a - // request. - - void forward (CORBA::Environment &env); - -private: - CORBA::ORB_var orb_var_; - - int counter_; - // Counter for number of invocations of this. - - PortableServer::Servant servant_ptr_; - // There really exists only one servant, which is returned all the - // time. - - CORBA::Object_var forward_to_var_; - // location to forward to - - u_int forwarding_; - // flag to tell if to forward or not. -}; - -#endif /* MYFOOSERVANTLOCATOR_H */ - diff --git a/TAO/examples/POA/Forwarding/client.cpp b/TAO/examples/POA/Forwarding/client.cpp deleted file mode 100644 index 56c71aff99c..00000000000 --- a/TAO/examples/POA/Forwarding/client.cpp +++ /dev/null @@ -1,200 +0,0 @@ -// $Id$ - -//========================================================================== -// -// -// = FILENAME -// client.cpp -// -// = DESCRIPTION -// -// This is a simple foo client implementation. Also looks out for -// forwarding exceptions -// -// = AUTHOR -// Irfan Pyarali -// -//========================================================================== - -#include "tao/corba.h" -#include "ace/streams.h" -#include "ace/Get_Opt.h" -#include "ace/Read_Buffer.h" -#include "FooC.h" - -ACE_RCSID(Forwarding, client, "$Id$") - -static char *server_IOR_ = 0; - -static int iterations = 6; - -static int -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 reading: %p\n", - filename), - -1); - ACE_Read_Buffer ior_buffer (f_handle_); - server_IOR_ = ior_buffer.read (); - - if (server_IOR_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to allocate memory to read ior: %p\n"), - -1); - return 0; -} - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "f:i:k:O:"); - int c; - int result; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'f': // read the IOR from the file. - result = 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': - server_IOR_ = get_opts.optarg; - break; - case 'i': - iterations = ::atoi (get_opts.optarg); - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - "-f server_IOR_file" - "\n", - argv [0]), - -1); - } - - if (server_IOR_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Please specify the IOR for the servant\n"), -1); - - // Indicates successful parsing of command line. - return 0; -} - -int do_calls (Foo_ptr foo_ptr) -{ - CORBA::Environment env; - - CORBA::Long result = 0; - - for (int i = 1; i <= iterations; i++) - { - // About half way through - if (i % 3 == 0) - { - foo_ptr->forward (env); - - // If exception - if (env.exception () != 0) - { - env.print_exception ("Foo::forward"); - return -1; - } - } - else - { - // Invoke the doit() method of the foo reference. - result = foo_ptr->doit (env); - - // If exception - if (env.exception () != 0) - { - env.print_exception ("calling doit"); - } - else - // Print the result of doit () method of the foo - // reference. - ACE_DEBUG ((LM_DEBUG, - "doit() returned %d \n", - result)); - } - } - - // In case you want to shutdown your server - // foo_ptr->shutdown (env); - // If exception - // if (env.exception () != 0) - // { - // env.print_exception ("calling shutdown"); - // } - return 0; -} - - -int -main (int argc, char **argv) -{ - // @@ Michael, this function is too long. Can you please break it - // up into multiple smaller functions. - CORBA::Environment env; - - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Initialize options based on command-line arguments. - int parse_args_result = parse_args (argc, argv); - if (parse_args_result != 0) - return parse_args_result; - - // Get an object reference from the argument string. - CORBA::Object_var object = orb->string_to_object (server_IOR_, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::string_to_object"); - return -1; - } - - // Try to narrow the object reference to a Foo reference. - Foo_var foo_var = Foo::_narrow (object.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("Foo::_narrow"); - return -1; - } - - CORBA::String_var original_location = - orb->object_to_string (foo_var.in (), env); - - if (env.exception () == 0) - ACE_DEBUG ((LM_DEBUG, - "original location = %s \n", - original_location.in ())); - else - { - env.print_exception ("ORB::object_to_string"); - return -1; - } - - if (do_calls (foo_var.in()) == -1) - return -1; - - return 0; -} - diff --git a/TAO/examples/POA/Forwarding/client.dsp b/TAO/examples/POA/Forwarding/client.dsp deleted file mode 100644 index 3aabb8fbfd7..00000000000 --- a/TAO/examples/POA/Forwarding/client.dsp +++ /dev/null @@ -1,210 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Forwarding Client" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Forwarding 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="POA Forwarding Client - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Forwarding Client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "POA Forwarding 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)" == "POA Forwarding 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 "" -# 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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Forwarding Client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client__" -# PROP BASE Intermediate_Dir "client__" -# 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" /D TAO_HAS_DLL=1 /FD /c -# SUBTRACT CPP /YX -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Forwarding Client - Win32 Release" -# Name "POA Forwarding Client - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\client.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FooC.h -# End Source File -# Begin Source File - -SOURCE=.\FooS.h -# End Source File -# Begin Source File - -SOURCE=.\FooS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo.idl - -!IF "$(CFG)" == "POA Forwarding Client - Win32 Release" - -USERDEP__FOO_I="..\..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA Forwarding Client - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Forwarding/server.cpp b/TAO/examples/POA/Forwarding/server.cpp deleted file mode 100644 index 02129f14a42..00000000000 --- a/TAO/examples/POA/Forwarding/server.cpp +++ /dev/null @@ -1,560 +0,0 @@ -// $Id$ - -// ======================================================================== -// = LIBRARY -// TAO/tests/POA/Forwarding -// -// = FILENAME -// server.cpp -// -// = DESCRIPTION -// -// = AUTHOR -// Irfan Pyarali and Michael Kircher -// ======================================================================== - -#include "tao/corba.h" -#include "ace/Read_Buffer.h" -#include "MyFooServant.h" - -ACE_RCSID(Forwarding, server, "$Id$") - -static char *first_foo_forward_to_IOR_ = 0; - -static char *second_foo_forward_to_IOR_ = 0; - -static FILE *first_foo_ior_output_file_; - -static FILE *second_foo_ior_output_file_; - -static MyFirstFooServant *myFirstFooServant_ptr; -static MyFooServantLocator *myFooServantLocator_ptr; - - -static int -read_ior (char *filename, - const u_int foo_number) -{ - // 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_); - - if (foo_number == 1) - { - first_foo_forward_to_IOR_ = ior_buffer.read (); - - if (first_foo_forward_to_IOR_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to allocate memory to read ior: %p\n"), - -1); - } - else if (foo_number == 2) - { - second_foo_forward_to_IOR_ = ior_buffer.read (); - - if (second_foo_forward_to_IOR_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to allocate memory to read ior: %p\n"), - -1); - } - - if (foo_number == 1) - ACE_DEBUG ((LM_DEBUG, - "POA approach: Read ior: %s\n", - first_foo_forward_to_IOR_)); - else if (foo_number == 2) - ACE_DEBUG ((LM_DEBUG, - "Locator approach: Read ior: %s\n", - second_foo_forward_to_IOR_)); - return 0; -} - - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "f:g:k:l:o:O:p:"); - int c; - int result; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'f': // read the IOR from the file. - result = read_ior (get_opts.optarg,1); - if (result < 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to read ior from %s : %p\n", - get_opts.optarg), - -1); - break; - case 'g': // read the IOR from the file. - result = read_ior (get_opts.optarg,2); - if (result < 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to read ior from %s : %p\n", - get_opts.optarg), - -1); - break; - case 'k': - first_foo_forward_to_IOR_ = get_opts.optarg; - break; - case 'l': - second_foo_forward_to_IOR_ = get_opts.optarg; - break; - case 'o': // output the IOR to a file. - first_foo_ior_output_file_ = ACE_OS::fopen (get_opts.optarg, "w"); - if (first_foo_ior_output_file_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to open %s for writing: %p\n", - get_opts.optarg), -1); - break; - case 'p': // output the IOR to a file. - second_foo_ior_output_file_ = ACE_OS::fopen (get_opts.optarg, "w"); - if (second_foo_ior_output_file_ == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to open %s for writing: %p\n", - get_opts.optarg), -1); - break; - case 'O': - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "\nusage: %s \n" - "-f forward_to_IOR_file (first foo)\n" - "-g forward_to_IOR_file (second foo)\n" - "-k forward_to_IOR (first foo)\n" - "-l forward_to_IOR (second foo)\n" - "-o file_for_IOR (first foo)\n" - "-p file_for_IOR (second foo)\n" - "\n", - argv [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -static void -get_forward_reference (char *IOR, - CORBA::Object_var &forward_location_var, - CORBA::ORB_ptr orb_ptr, - CORBA::Environment &env) -{ - if (IOR != 0) - { - forward_location_var = orb_ptr->string_to_object (IOR, env); - - if (env.exception () != 0) - { - env.print_exception ("ORB::string_to_object"); - return; - } - - if (CORBA::is_nil (forward_location_var.in ())) - ACE_DEBUG ((LM_DEBUG, - "Error: Forward_to location is wrong\n")); - } -} - - -// Documentation !!!! first_POA will contain an object which will -// use the POA directly to do forwarding - -int setup_first_poa (PortableServer::POA_ptr root_poa_ptr, - PortableServer::POAManager_ptr poa_manager_ptr, - PortableServer::POA_var &first_poa_var) -{ - CORBA::Environment env; - - // Policies for the childPOA to be created. - CORBA::PolicyList policies (2); - policies.length (2); - - // The next two policies are common to both - - // Id Assignment Policy - policies[0] = root_poa_ptr->create_id_assignment_policy (PortableServer::USER_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_assignment_policy"); - return -1; - } - - // Lifespan policy - policies[1] = root_poa_ptr->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - - ACE_CString name = "firstPOA"; - - // Create firstPOA as the child of RootPOA with the above policies - // firstPOA will use SERVANT_ACTIVATOR because of RETAIN policy. - first_poa_var = root_poa_ptr->create_POA (name.c_str (), - poa_manager_ptr, - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - return 0; -} - - -// second_POA will contain an object which will use the -// Servant_Locator to do forwarding - -int setup_second_poa (PortableServer::POA_ptr root_poa, - PortableServer::POAManager_ptr poa_manager_ptr, - PortableServer::POA_var &second_poa_var) -{ - CORBA::Environment env; - - // Policies for the childPOA to be created. - CORBA::PolicyList policies (4); - policies.length (4); - - // The next two policies are common to both - - // Id Assignment Policy - policies[0] = root_poa->create_id_assignment_policy (PortableServer::USER_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_assignment_policy"); - return -1; - } - - // Lifespan policy - policies[1] = root_poa->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Tell the POA to use a servant manager - policies[2] = - root_poa->create_request_processing_policy (PortableServer::USE_SERVANT_MANAGER, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_request_processing_policy"); - return -1; - } - - // Servant Retention Policy -> Use a locator - policies[3] = - root_poa->create_servant_retention_policy (PortableServer::NON_RETAIN, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_servant_retention_policy"); - return -1; - } - - ACE_CString name = "secondPOA"; - - // Create secondPOA as child of RootPOA with the above policies - // secondPOA will use a SERVANT_LOCATOR because of NON_RETAIN - // policy. - second_poa_var = root_poa->create_POA (name.c_str (), - poa_manager_ptr, - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creation of childPOAs is over. Destroy the Policy objects. - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - return 0; -} - -int create_first_servant (PortableServer::POA_ptr first_poa_ptr, - CORBA::ORB_ptr orb_ptr) -{ - CORBA::Environment env; - - // Get the forward_to reference to feed it into object - // implementations - CORBA::Object_var first_foo_forward_to_var; - - get_forward_reference (first_foo_forward_to_IOR_, - first_foo_forward_to_var, - orb_ptr, - env); - - if (env.exception () != 0) - { - env.print_exception ("get_forward_reference"); - return -1; - } - - ACE_NEW_RETURN (myFirstFooServant_ptr, - MyFirstFooServant (orb_ptr, - first_poa_ptr, - 27, - first_foo_forward_to_var.in ()), - -1); - - // Create ObjectId and use that ObjectId to activate the - // first_foo_impl object. - PortableServer::ObjectId_var first_foo_oid_var = - PortableServer::string_to_ObjectId ("firstFoo"); - - first_poa_ptr->activate_object_with_id (first_foo_oid_var.in (), - myFirstFooServant_ptr, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::activate_object_with_id"); - return -1; - } - - // Get Object reference for first_foo_impl object. - Foo_var first_foo_var = myFirstFooServant_ptr->_this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_Foo::_this"); - return -1; - } - - // Stringyfy the object reference and print it out. - CORBA::String_var first_foo_ior_var = - orb_ptr->object_to_string (first_foo_var.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, - "POA approach: Own IOR: %s\n", - first_foo_ior_var.in ())); - - if (first_foo_ior_output_file_) - { - ACE_OS::fprintf (first_foo_ior_output_file_, - "%s", - first_foo_ior_var.in ()); - ACE_OS::fclose (first_foo_ior_output_file_); - - ACE_DEBUG ((LM_DEBUG, "POA approach: Wrote IOR to a file.\n")); - } - return 0; -} - - -int -create_second_servant (PortableServer::POA_ptr second_poa_ptr, - CORBA::ORB_ptr orb_ptr) -{ - CORBA::Environment env; - - CORBA::Object_var second_foo_forward_to_var; - get_forward_reference (second_foo_forward_to_IOR_, - second_foo_forward_to_var, - orb_ptr, - env); - if (env.exception () != 0) - { - env.print_exception ("get_forward_reference"); - return -1; - } - - // instantiate the servant locator and set it for the second child - // POA The locator gets to know where to forward to - - ACE_NEW_RETURN (myFooServantLocator_ptr, - MyFooServantLocator (orb_ptr, - second_foo_forward_to_var.in ()), - -1); - PortableServer::ServantLocator_var servant_locator_var = - myFooServantLocator_ptr->_this (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::_this"); - return -1; - } - - // Set MyFooServantLocator object as the servant Manager of - // secondPOA. - - second_poa_ptr->set_servant_manager (servant_locator_var.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::set_servant_manager"); - return -1; - } - - // Create the second MyFooServant - // ====== - - // Try to create a reference with user created ID in second_poa - // which uses MyFooServantLocator. - - PortableServer::ObjectId_var second_foo_oid_var = - PortableServer::string_to_ObjectId ("secondFoo"); - - CORBA::Object_var second_foo_var = - second_poa_ptr->create_reference_with_id (second_foo_oid_var.in (), - "IDL:Foo:1.0", env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_reference_with_id"); - return -1; - } - - // Invoke object_to_string on the references created in firstPOA and - // secondPOA. - - CORBA::String_var second_foo_ior_var = - orb_ptr->object_to_string (second_foo_var.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, - "Locator approach: Own IOR: %s\n", - second_foo_ior_var.in ())); - - - if (second_foo_ior_output_file_) - { - ACE_OS::fprintf (second_foo_ior_output_file_, - "%s", - second_foo_ior_var.in ()); - ACE_OS::fclose (second_foo_ior_output_file_); - - ACE_DEBUG ((LM_DEBUG, "Locator approach: Wrote IOR to a file.\n")); - } - - return 0; -} - -int -main (int argc, char **argv) -{ - // @@ Michael, this function is WAY too long! Can you please break - // it up into a number of subfunctions and put them into a class or - // something?! It's impossible to tell what's going on here! - int result = parse_args (argc, argv); - - if (result == -1) - return -1; - - CORBA::Environment env; - - // Initialize the ORB first. - CORBA::ORB_var orb_var = CORBA::ORB_init (argc, argv, 0, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Obtain the RootPOA. - CORBA::Object_var obj_var = orb_var->resolve_initial_references ("RootPOA"); - - // Get the POA_var object from Object_var. - PortableServer::POA_var root_poa_var = - PortableServer::POA::_narrow (obj_var.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Get the POAManager of the RootPOA. - PortableServer::POAManager_var poa_manager_var = - root_poa_var->the_POAManager (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - PortableServer::POA_var first_poa_var; - PortableServer::POA_var second_poa_var; - - if (setup_first_poa (root_poa_var.in(), poa_manager_var.in(), first_poa_var) == -1) - return -1; - if (setup_second_poa (root_poa_var.in(), poa_manager_var.in(), second_poa_var) == -1) - return -1; - - // Create the first MyFooServant - // ===== - if (create_first_servant (first_poa_var.in(), orb_var.in()) == -1) - return -1; - - if (create_second_servant (second_poa_var.in(), orb_var.in()) == -1) - return -1; - - poa_manager_var->activate (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - if (orb_var->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "CORBA::ORB::run"), - -1); - - - // Destroy RootPOA. (Also destroys childPOA) - root_poa_var->destroy (1, - 1, - env); - delete myFirstFooServant_ptr; - delete myFooServantLocator_ptr; - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - - return 0; -} diff --git a/TAO/examples/POA/Forwarding/server.dsp b/TAO/examples/POA/Forwarding/server.dsp deleted file mode 100644 index 563e402b979..00000000000 --- a/TAO/examples/POA/Forwarding/server.dsp +++ /dev/null @@ -1,226 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Forwarding Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Forwarding 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="POA Forwarding Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Forwarding Server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "POA Forwarding 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)" == "POA Forwarding 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 "" -# 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 "..\..\..\.." /I "..\Generic_Servant\\" /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 tao.lib ace.lib ..\Generic_Servant\Generic_Servant.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Forwarding 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" /D TAO_HAS_DLL=1 /FD /c -# SUBTRACT CPP /YX -# 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 ..\Generic_Servant\Generic_Servantd.lib TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Forwarding Server - Win32 Release" -# Name "POA Forwarding Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FooC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooS.cpp -# End Source File -# Begin Source File - -SOURCE=.\MyFooServant.cpp -# End Source File -# Begin Source File - -SOURCE=.\Servant_Locator.cpp -# End Source File -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FooC.h -# End Source File -# Begin Source File - -SOURCE=.\FooS.h -# End Source File -# Begin Source File - -SOURCE=.\FooS_T.h -# End Source File -# Begin Source File - -SOURCE=.\MyFooServant.h -# End Source File -# Begin Source File - -SOURCE=.\Servant_Locator.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo.idl - -!IF "$(CFG)" == "POA Forwarding Server - Win32 Release" - -USERDEP__FOO_I="..\..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA Forwarding Server - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Forwarding/svc.conf b/TAO/examples/POA/Forwarding/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/POA/Forwarding/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -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 -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/POA/Generic_Servant/Foo.idl b/TAO/examples/POA/Generic_Servant/Foo.idl deleted file mode 100644 index 7010d9c2133..00000000000 --- a/TAO/examples/POA/Generic_Servant/Foo.idl +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ -// ================================================================ -// -// = FILENAME -// Foo.idl -// -// ================================================================ - -// IDL - -interface Foo -{ - long doit (); - // A simple twoway operation, the idea is to verify that the server - // can be located. - - oneway void simply_doit (); - // A simple oneway operation, the idea is to measure any differences - // to the previous one. - - void shutdown (); - // Shutdown the server. -}; diff --git a/TAO/examples/POA/Generic_Servant/Generic_Servant.dsw b/TAO/examples/POA/Generic_Servant/Generic_Servant.dsw deleted file mode 100644 index 1a172dc6d07..00000000000 --- a/TAO/examples/POA/Generic_Servant/Generic_Servant.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/examples/POA/Generic_Servant/Makefile b/TAO/examples/POA/Generic_Servant/Makefile deleted file mode 100644 index 3a5f0047385..00000000000 --- a/TAO/examples/POA/Generic_Servant/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -# On non-Windows environment, we should at least define -# the export_include IDL flag. -TAO_IDLFLAGS = -Wb,export_macro=GENERIC_SERVANT_Export -Wb,export_include=generic_servant_export.h - -LDLIBS = -lTAO - -LIB = libserver.a - -IDL_SRC = FooC FooS - -BINFILES = $(IDL_SRC) client - -LIB_SRC = $(IDL_SRC) MyFooServant - -POA_CLT_SRCS = $(addsuffix .cpp,$(BINFILES)) -POA_CLT_OBJS = $(addprefix $(VDIR),$(addsuffix .o,$(BINFILES))) - -BIN = client - -BUILD = $(VOBJS) $(VLIB) $(BIN) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -VBIN = $(BIN:%=%$(VAR)) - -LSRC = $(addsuffix .cpp,$(LIB_SRC)) $(POA_CLT_SRCS) -LOBJ = $(addsuffix .o,$(LIB_SRC)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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.lib.GNU -#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -include $(TAO_ROOT)/taoconfig.mk - - -.PRECIOUS: FooC.h FooC.i FooC.cpp FooS.h FooS.i FooS.cpp - -#$(IDL_SRC): cubit.idl -# $(TAO_ROOT)/TAO_IDL/tao_idl cubit.idl - -client: $(POA_CLT_OBJS) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -#clean: -# -/bin/rm -rf *.o $(BIN) obj.* core Templates.DB .make.state - -realclean: clean - -/bin/rm -rf FooC.* FooS.* FooS_T.* - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/Generic_Servant/MyFooServant.cpp b/TAO/examples/POA/Generic_Servant/MyFooServant.cpp deleted file mode 100644 index b01a03271c0..00000000000 --- a/TAO/examples/POA/Generic_Servant/MyFooServant.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -// ================================================================ -// -// -// = FILENAME -// MyFooServant.cpp -// -// = DESCRIPTION -// This is a simple foo servant implementation -// -// = AUTHOR -// Irfan Pyarali -// -// ================================================================ - -#include "MyFooServant.h" - -ACE_RCSID(Generic_Servant, MyFooServant, "$Id$") - -// Constructor -MyFooServant::MyFooServant (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, - CORBA::Long value) - : orb_ (CORBA::ORB::_duplicate (orb)), - poa_ (PortableServer::POA::_duplicate (poa)), - value_ (value) -{ -} - -// Destructor -MyFooServant::~MyFooServant (void) -{ -} - -// Return the Default POA of this Servant -PortableServer::POA_ptr -MyFooServant::_default_POA (CORBA::Environment &/*env*/) -{ - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -CORBA::Long -MyFooServant::doit (CORBA::Environment &/*env*/) -{ - return this->value_; -} - -void -MyFooServant::simply_doit (CORBA::Environment &/*env*/) -{ -} - -void -MyFooServant::shutdown (CORBA::Environment &env) -{ - this->orb_->shutdown (); -} diff --git a/TAO/examples/POA/Generic_Servant/MyFooServant.h b/TAO/examples/POA/Generic_Servant/MyFooServant.h deleted file mode 100644 index 6ab5e0b5ddf..00000000000 --- a/TAO/examples/POA/Generic_Servant/MyFooServant.h +++ /dev/null @@ -1,55 +0,0 @@ -// $Id$ -//============================================================================= -// -// -// = FILENAME -// MyFooServant.h -// -// = DESCRIPTION -// Defines MyFooServant class for the Foo interface -// -// = AUTHOR -// Irfan Pyarali -// -//============================================================================= - -#if !defined (MYFOOSERVANT_H) -#define MYFOOSERVANT_H - -#include "FooS.h" - -class GENERIC_SERVANT_Export MyFooServant : public POA_Foo -{ -public: - // constructor - takes a POA and a value parameter - MyFooServant (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, - CORBA::Long value); - - // Destructor - virtual ~MyFooServant (void); - - // Returns the Default POA of this Servant object - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - - // Even simpler doit method - virtual void simply_doit (CORBA::Environment &env); - - // Shutdown the ORB - virtual void shutdown (CORBA::Environment &env); - -protected: - CORBA::ORB_var orb_; - // Keep a pointer to the ORB so we can shut it down. - - PortableServer::POA_var poa_; - // Implement a different _default_POA() - - CORBA::Long value_; - // The current value. -}; - -#endif /* MYFOOSERVANT_H */ diff --git a/TAO/examples/POA/Generic_Servant/README b/TAO/examples/POA/Generic_Servant/README deleted file mode 100644 index 05ee0f2a18e..00000000000 --- a/TAO/examples/POA/Generic_Servant/README +++ /dev/null @@ -1,24 +0,0 @@ -// $Id$ - -Generic Servant: -=============== - -File Name ---------- - -Foo.idl Simple Foo idl interface -MyFooServant.h Servant definition for the Foo interface -MyFooServant.cpp Servant implementation for the FOO interface -client.cpp A simple Foo client - -Typing - -% Make - - creates an executable client and server library libserver.a. - -To run the client, type - -% client [-ORBport port] -k IOR - -where IOR can be got from the server output. diff --git a/TAO/examples/POA/Generic_Servant/client.cpp b/TAO/examples/POA/Generic_Servant/client.cpp deleted file mode 100644 index dc23c2d4442..00000000000 --- a/TAO/examples/POA/Generic_Servant/client.cpp +++ /dev/null @@ -1,241 +0,0 @@ -// $Id$ - -// ================================================================ -// -// -// = FILENAME -// client.cpp -// -// = DESCRIPTION -// This is a simple foo client implementation. -// -// = AUTHOR -// Irfan Pyarali -// -// ================================================================ - -#include "ace/streams.h" -#include "ace/Get_Opt.h" -#include "ace/Profile_Timer.h" -#include "tao/Timeprobe.h" -#include "ace/Read_Buffer.h" -#include "FooC.h" - -ACE_RCSID(Generic_Servant, client, "$Id$") - -static char *IOR = 0; -static char *IOR_file = 0; -static int iterations = 1; -static int oneway = 0; -static int shutdown_server = 0; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "f:k:i:ox"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'k': - IOR = get_opts.optarg; - break; - - case 'f': - IOR_file = ACE_OS::strdup (get_opts.optarg); - break; - - case 'o': - oneway = 1; - break; - - case 'i': - iterations = ::atoi (get_opts.optarg); - break; - - case 'x': - shutdown_server = 1; - break; - - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "-k IOR " - "-f IOR file " - "-o oneway " - "\n", - argv [0]), - -1); - } - - if (IOR == 0 && IOR_file == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Please specify the IOR or IOR_file for the servant\n"), -1); - - // Indicates successful parsing of command line. - return 0; -} - -void -print_stats (ACE_Profile_Timer::ACE_Elapsed_Time &elapsed_time, - int iterations) -{ - if (iterations > 0) - { - elapsed_time.real_time *= ACE_ONE_SECOND_IN_MSECS; - elapsed_time.user_time *= ACE_ONE_SECOND_IN_MSECS; - elapsed_time.system_time *= ACE_ONE_SECOND_IN_MSECS; - - elapsed_time.real_time /= iterations; - elapsed_time.user_time /= iterations; - elapsed_time.system_time /= iterations; - - double tmp = 1000 / elapsed_time.real_time; - - ACE_DEBUG ((LM_DEBUG, - "\titerations\t = %d, \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", - iterations, - elapsed_time.real_time < 0.0 ? 0.0 : elapsed_time.real_time, - elapsed_time.user_time < 0.0 ? 0.0 : elapsed_time.user_time, - elapsed_time.system_time < 0.0 ? 0.0 : elapsed_time.system_time, - tmp < 0.0 ? 0.0 : tmp)); - } - else - ACE_ERROR ((LM_ERROR, - "\tNo time stats printed. Zero iterations or error ocurred.\n")); -} - -int -read_IOR_from_file (void) -{ - // Open the file for reading. - ACE_HANDLE f_handle = ACE_OS::open (IOR_file, 0); - - if (f_handle == ACE_INVALID_HANDLE) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to open %s for reading\n", - IOR_file), - -1); - - ACE_Read_Buffer ior_buffer (f_handle); - char *data = ior_buffer.read (); - - if (data == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to read ior\n"), - -1); - - IOR = ACE_OS::strdup (data); - ior_buffer.alloc ()->free (data); - - ACE_OS::close (f_handle); - - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Initialize options based on command-line arguments. - int parse_args_result = parse_args (argc, argv); - if (parse_args_result != 0) - return parse_args_result; - - if (IOR == 0) - { - int result = read_IOR_from_file (); - if (result != 0) - ACE_ERROR_RETURN ((LM_ERROR, "Cannot read IOR from %s\n", IOR_file), -1); - } - - // Get an object reference from the argument string. - CORBA::Object_var object = orb->string_to_object (IOR, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::string_to_object"); - return -1; - } - - // Try to narrow the object reference to a Foo reference. - Foo_var foo = Foo::_narrow (object.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("Foo::_narrow"); - return -1; - } - - CORBA::String_var ior = - orb->object_to_string (foo.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, - "\nConnecting to: %s\n\n", - ior.in ())); - - ACE_Profile_Timer timer; - ACE_Profile_Timer::ACE_Elapsed_Time elapsed_time; - - // We start an ACE_Profile_Timer here... - timer.start (); - - CORBA::Long result = 0; - int i = 0; - - for (i = 0; i < iterations && env.exception () == 0; i++) - { - if (oneway) - // Invoke the doit() method of the foo reference. - foo->simply_doit (env); - else - // Invoke the doit() method of the foo reference. - result = foo->doit (env); - } - - // stop the timer. - timer.stop (); - timer.elapsed_time (elapsed_time); - - // compute average time. - print_stats (elapsed_time, i); - - if (shutdown_server && env.exception () == 0) - foo->shutdown (env); - - if (env.exception () != 0) - { - env.print_exception ("Foo::doit"); - return 1; - } - - // Print the result of doit () method of the foo reference. - ACE_DEBUG ((LM_DEBUG, "The result of doit is %d\n", result)); - - ACE_TIMEPROBE_PRINT; - - ACE_OS::free (IOR_file); - - return 0; -} diff --git a/TAO/examples/POA/Generic_Servant/client.dsp b/TAO/examples/POA/Generic_Servant/client.dsp deleted file mode 100644 index 572b8d43af6..00000000000 --- a/TAO/examples/POA/Generic_Servant/client.dsp +++ /dev/null @@ -1,201 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Generic Servant Client" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Generic Servant 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="POA Generic Servant Client - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Generic Servant Client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "POA Generic Servant 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)" == "POA Generic Servant 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 "" -# 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 /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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Generic Servant Client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client__" -# PROP BASE Intermediate_Dir "client__" -# 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" /D GENERIC_SERVANT_HAS_DLL=1 /D "GENERIC_SERVANT_BUILD_DLL" /FD /c -# SUBTRACT CPP /YX -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Generic Servant Client - Win32 Release" -# Name "POA Generic Servant Client - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\client.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FooC.h -# End Source File -# Begin Source File - -SOURCE=.\FooS.h -# End Source File -# Begin Source File - -SOURCE=.\FooS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo.idl - -!IF "$(CFG)" == "POA Generic Servant Client - Win32 Release" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL Compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl -Wb,export_macro=GENERIC_SERVANT_Export -Wb,export_include=generic_servant_export.h $(InputName).idl - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA Generic Servant Client - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL Compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl -Wb,export_macro=GENERIC_SERVANT_Export -Wb,export_include=generic_servant_export.h $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Generic_Servant/generic_servant_export.h b/TAO/examples/POA/Generic_Servant/generic_servant_export.h deleted file mode 100644 index 6c7059c79a2..00000000000 --- a/TAO/examples/POA/Generic_Servant/generic_servant_export.h +++ /dev/null @@ -1,31 +0,0 @@ -// $Id$ - -// Definition for Win32 Export directives. -// This file is generated automatically by -// ${TAO_ROOT}/TAO_IDL/GenExportH.BAT -// ------------------------------ -#if !defined (GENERIC_SERVANT_EXPORT_H) -#define GENERIC_SERVANT_EXPORT_H - -#include "ace/OS.h" - -#if defined (GENERIC_SERVANT_HAS_DLL) -# if (GENERIC_SERVANT_HAS_DLL == 1) -# if defined (GENERIC_SERVANT_BUILD_DLL) -# define GENERIC_SERVANT_Export ACE_Proper_Export_Flag -# define GENERIC_SERVANT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) -# else -# define GENERIC_SERVANT_Export ACE_Proper_Import_Flag -# define GENERIC_SERVANT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) -# endif /* GENERIC_SERVANT_BUILD_DLL */ -# else -# define GENERIC_SERVANT_Export -# define GENERIC_SERVANT_SINGLETON_DECLARATION(T) -# endif /* ! GENERIC_SERVANT_HAS_DLL == 1 */ -#else -# define GENERIC_SERVANT_Export -# define GENERIC_SERVANT_SINGLETON_DECLARATION(T) -#endif /* GENERIC_SERVANT_HAS_DLL */ - -#endif /* GENERIC_SERVANT_EXPORT_H */ - // End of auto generated file. diff --git a/TAO/examples/POA/Generic_Servant/server.dsp b/TAO/examples/POA/Generic_Servant/server.dsp deleted file mode 100644 index 0e0116695d6..00000000000 --- a/TAO/examples/POA/Generic_Servant/server.dsp +++ /dev/null @@ -1,215 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Generic Servant DLL" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=POA Generic Servant DLL - 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="POA Generic Servant DLL - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Generic Servant DLL - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE "POA Generic Servant DLL - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA Generic Servant DLL - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "server__" -# PROP BASE Intermediate_Dir "server__" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\.." /I "..\..\..\.." /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D GENERIC_SERVANT_HAS_DLL=1 /D "GENERIC_SERVANT_BUILD_DLL" /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 -# 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:windows /dll /machine:I386 -# ADD LINK32 ace.lib tao.lib /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\..\..\bin\Generic_Servant.dll" /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none -# Begin Special Build Tool -SOURCE="$(InputPath)" -PostBuild_Desc=Copying DLL to ..\Explicit_Activation and ..\On_Demand_Activation -PostBuild_Cmds=copy Generic_Servant.dll ..\Explicit_Activation copy Generic_Servant.dll ..\On_Demand_Activation -# End Special Build Tool - -!ELSEIF "$(CFG)" == "POA Generic Servant DLL - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "server_0" -# PROP BASE Intermediate_Dir "server_0" -# 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 /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\.." /I "..\..\..\.." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D GENERIC_SERVANT_HAS_DLL=1 /D "GENERIC_SERVANT_BUILD_DLL" /FD /c -# SUBTRACT CPP /YX -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 -# 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:windows /dll /debug /machine:I386 /pdbtype:sept -# ADD LINK32 TAOd.lib aced.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\..\..\bin\Generic_Servantd.dll" /pdbtype:sept /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /profile /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Generic Servant DLL - Win32 Release" -# Name "POA Generic Servant DLL - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FooC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooS.cpp -# End Source File -# Begin Source File - -SOURCE=.\MyFooServant.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter ".h" -# Begin Source File - -SOURCE=.\FooC.h -# End Source File -# Begin Source File - -SOURCE=.\FooS.h -# End Source File -# Begin Source File - -SOURCE=.\FooS_T.h -# End Source File -# Begin Source File - -SOURCE=.\MyFooServant.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo.idl - -!IF "$(CFG)" == "POA Generic Servant DLL - Win32 Release" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL Compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl -Wb,export_macro=GENERIC_SERVANT_Export -Wb,export_include=generic_servant_export.h $(InputName).idl - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA Generic Servant DLL - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL Compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl -Wb,export_macro=GENERIC_SERVANT_Export -Wb,export_include=generic_servant_export.h $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/Makefile b/TAO/examples/POA/Makefile deleted file mode 100644 index 42b631fb286..00000000000 --- a/TAO/examples/POA/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -# Makefile for the POA tests -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -DIRS = Default_Servant \ - FindPOA \ - Forwarding \ - Generic_Servant \ - Explicit_Activation \ - NewPOA \ - On_Demand_Activation \ - RootPOA \ - TIE \ - locking \ - -# The following test hasn't been updated yet -# Demux_Test - -#### Does not compile on UNIX: Forwarding \ - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/examples/POA/NewPOA/Makefile b/TAO/examples/POA/NewPOA/Makefile deleted file mode 100644 index 121c9264a66..00000000000 --- a/TAO/examples/POA/NewPOA/Makefile +++ /dev/null @@ -1,271 +0,0 @@ -# -# $Id$ -# - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -BIN = NewPOA - -LSRC = $(addsuffix .cpp,$(BIN)) - -CPPFLAGS += -I$(TAO_ROOT) - -LDLIBS = -lTAO -LDFLAGS += -L$(TAO_ROOT)/tao - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VBIN) - -INSTALL = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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 - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/NewPOA.o .obj/NewPOA.so .shobj/NewPOA.o .shobj/NewPOA.so: NewPOA.cpp \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(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.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/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.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/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc_Base.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/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(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/SString.h \ - $(ACE_ROOT)/ace/SString.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 \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(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/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(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 \ - $(ACE_ROOT)/ace/Strategies.i \ - $(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/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(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 \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/ORB_Core.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/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/ORB_Strategies_T.cpp \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/NewPOA/NewPOA.cpp b/TAO/examples/POA/NewPOA/NewPOA.cpp deleted file mode 100644 index 75085e9f7cd..00000000000 --- a/TAO/examples/POA/NewPOA/NewPOA.cpp +++ /dev/null @@ -1,193 +0,0 @@ -// $Id$ - -// ========================================================================== -// = LIBRARY -// TAO/tests/POA/NewPOA -// -// = FILENAME -// NewPOA.cpp -// -// = DESCRIPTION -// This program demonstrates creation of new POAs, as children of the root POA or the -// existing POA. -// There are five new POA created in this example. -// The hierarchy of POAs looks like this. -// -// /-->first_poa-->first_poa/second_poa -// RootPOA-- -// \-->third_poa-->third_poa/fourth_poa-->third_poa/fourth_poa/fifth_poa -// -// = AUTHOR -// Irfan Pyarali -// ======================================================================== - -#include "ace/streams.h" -#include "tao/corba.h" - -ACE_RCSID(NewPOA, NewPOA, "$Id$") - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // The first step Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Obtain the object reference to the RootPOA. - CORBA::Object_var obj = - orb->resolve_initial_references ("RootPOA"); - - // _narrow() the Object to get the POA object, i.e., the root_poa. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Policies for the new POAs - CORBA::PolicyList policies (2); - policies.length (2); - - // Threading policy - policies[0] = - root_poa->create_thread_policy (PortableServer::ORB_CTRL_MODEL, env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_thread_policy"); - return -1; - } - - // Lifespan policy - policies[1] = - root_poa->create_lifespan_policy (PortableServer::TRANSIENT, env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Creation of the firstPOA - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = - root_poa->create_POA (name.c_str (), - PortableServer::POAManager::_nil (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creation of the new POA, i.e. firstPOA/secondPOA - name += TAO_POA::name_separator (); - name += "secondPOA"; - PortableServer::POA_var second_poa = - root_poa->create_POA (name.c_str (), - PortableServer::POAManager::_nil (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creating thirdPOA/fourthPOA/fifthPOA. The non-existing thirdPOA - // and thirdPOA/fourthPOA are created automatically. - name = "thirdPOA"; - name += TAO_POA::name_separator (); - name += "forthPOA"; - name += TAO_POA::name_separator (); - name += "fifthPOA"; - - PortableServer::POA_var fifth_poa = - root_poa->create_POA (name.c_str (), - PortableServer::POAManager::_nil (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creation of the new POAs over, so destroy the Policy_ptr's. - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Get the names of all the POAs and print them out. - - CORBA::String_var root_poa_name = - root_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var first_poa_name = - first_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var second_poa_name = - second_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var fifth_poa_name = - fifth_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, - "%s\n%s\n%s\n%s\n", - root_poa_name.in (), - first_poa_name.in (), - second_poa_name.in (), - fifth_poa_name.in ())); - - // This should destroy all its children - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} diff --git a/TAO/examples/POA/NewPOA/NewPOA.dsp b/TAO/examples/POA/NewPOA/NewPOA.dsp deleted file mode 100644 index cf52605aa51..00000000000 --- a/TAO/examples/POA/NewPOA/NewPOA.dsp +++ /dev/null @@ -1,99 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA NewPOA" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA NewPOA - 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 "NewPOA.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 "NewPOA.mak" CFG="POA NewPOA - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA NewPOA - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA NewPOA - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA NewPOA - 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 "" -# 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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA NewPOA - 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA NewPOA - Win32 Release" -# Name "POA NewPOA - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\NewPOA.cpp -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/NewPOA/NewPOA.dsw b/TAO/examples/POA/NewPOA/NewPOA.dsw deleted file mode 100644 index 479df568d1c..00000000000 --- a/TAO/examples/POA/NewPOA/NewPOA.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "NewPOA"=.\NewPOA.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/POA/NewPOA/README b/TAO/examples/POA/NewPOA/README deleted file mode 100644 index 347c22c8df2..00000000000 --- a/TAO/examples/POA/NewPOA/README +++ /dev/null @@ -1,15 +0,0 @@ -This application explains the usage scenario, where new POAs will have -to be created. - -Run this example as follows. - -% NewPOA - -Comments : -========= - - - Creates the POA hierarchy as given in the header of the NewPOA.cpp - file. - - - Prints out names of all the POAs. - diff --git a/TAO/examples/POA/On_Demand_Activation/Makefile b/TAO/examples/POA/On_Demand_Activation/Makefile deleted file mode 100644 index 1366d2c7205..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/Makefile +++ /dev/null @@ -1,276 +0,0 @@ -# -# $Id$ -# - -BIN = server - -MYFILES = Servant_Activator Servant_Locator - -SRC = $(addsuffix .cpp,$(MYFILES)) $(addsuffix .cpp, $(BIN)) -OBJ = $(addsuffix .o,$(MYFILES)) - -CPPFLAGS += -I$(TAO_ROOT) -I../Generic_Servant - -LDLIBS = -lserver -lTAO -LDFLAGS += -L$(TAO_ROOT)/tao -L../Generic_Servant - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VBIN) - -INSTALL = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/server.o .obj/server.so .shobj/server.o .shobj/server.so: server.cpp \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - Servant_Activator.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(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.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/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.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/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc_Base.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/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(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/SString.h \ - $(ACE_ROOT)/ace/SString.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 \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(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/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(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 \ - $(ACE_ROOT)/ace/Strategies.i \ - $(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/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(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 \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/ORB_Core.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/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/ORB_Strategies_T.cpp \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i \ - Servant_Locator.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/On_Demand_Activation/On_Demand_Activation.dsw b/TAO/examples/POA/On_Demand_Activation/On_Demand_Activation.dsw deleted file mode 100644 index f121fae15c3..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/On_Demand_Activation.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "server"=.\server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/POA/On_Demand_Activation/README b/TAO/examples/POA/On_Demand_Activation/README deleted file mode 100644 index b23a801ef6f..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/README +++ /dev/null @@ -1,99 +0,0 @@ -// $Id$ - -On_Demand_Activation Tests: -========================== - -Description: -=========== - -ServantManagers: -=============== - -Servant managers are associated with POAs. A servant manager supplies -a POA with the ability to objects on demand when the POA receives a -request targeted at an inactive object. A servant manager is -registered with a POA as a callback object, to be invoked by the POA -when necessary.An application server that activates all its needed -objects at the beginning of execution does not need to use a servant -manager; it is used only for the case in which an object must be -activated during request processing. - -When the POA has the RETAIN policy it uses servant managers that are -ServantActivators. When the POA has the NON_RETAIN policy it uses -servant managers that are ServantLocators. - -server: -====== - - The test program server creates 2 POAs firstPOA and secondPOA. -firstPOA is created with a RETAIN,USER_ID,USE_SERVANT_MANAGER policy -and MyFooServantActivator is registered as its servant Manager. -secondPOA is created with a NON_RETAIN,USER_ID,USE_SERVANT_MANAGER -policy and MyFooServantLocator is registered as it servant Manager. - - It then creates an object reference from the string "firstFoo" -in firstPOA and prints its IOR.Similarly it creates an object -reference from the string "secondFoo" in secondPOA and prints its -IOR. Finally it changes the state of the POA_Manager to 'active' and -runs the ORB. - -USAGE: -====== - -You can use the run_test.pl perl script or follow these directions: - -%server [-ORBport port] [-ORBobjrefstyle URL] [-f IOR file] - -client: -====== - The Foo client program is in the path - - TAO/tests/POA/Generic_Servant/client - i.e ../Generic_Servant/client - -% client [-k IOR] [-f IOR file] - -where IOR is got from the server output to the screen or to the IOR file. - -To Test: -======= - -1. Run the server - -Servant Activator: -=================== - -2. Get the IOR for "firstFOO" from the server output . - -3. Run client -k IOR - -4. You should get an output - - 27 - -along with some diagnostic messages. - -Servant Locator: -================= - -2. Get the IOR for "secondFoo" from the server output - -3. Run client -k IOR - -4. The first time a client is run you should get an output - - 2 (or 1) - -along with some diagnostic messages. - -5. Subsequent runs of the client program results in the output - incremented by 2 (or 1). - -6. Thus, the second run of client should give you an output 4 (or 2). - - - - - - - diff --git a/TAO/examples/POA/On_Demand_Activation/Servant_Activator.cpp b/TAO/examples/POA/On_Demand_Activation/Servant_Activator.cpp deleted file mode 100644 index 8a82cdaf4d2..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/Servant_Activator.cpp +++ /dev/null @@ -1,71 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/POA/On_Demand_Activation/Servant_Activator -// -// = FILENAME -// Servant_Activator.cpp -// -// = DESCRIPTION -// Implementation of MyFooServantActivator , which is used by a -// POA with a RETAIN policy. -// -// = AUTHOR -// Irfan Pyarali -// -// ============================================================================ - -#include "Servant_Activator.h" -#include "MyFooServant.h" - -ACE_RCSID(On_Demand_Activation, Servant_Activator, "$Id$") - -MyFooServantActivator::MyFooServantActivator (CORBA::ORB_ptr orb) - : orb_ (CORBA::ORB::_duplicate (orb)) -{ -} - -PortableServer::Servant -MyFooServantActivator::incarnate (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - CORBA::Environment &env) -{ - // Convert ObjectId to String. - - CORBA::String_var s = PortableServer::ObjectId_to_string (oid); - - // If ObjectId string has a Foo Substring, create and return a - // MyFooServant. - - if (ACE_OS::strstr (s.in (), "Foo") != 0) - return new MyFooServant (this->orb_.in (), poa, 27); - else - { - CORBA::Exception *exception = new CORBA::OBJECT_NOT_EXIST (CORBA::COMPLETED_NO); - env.exception (exception); - return 0; - } -} - - -void -MyFooServantActivator::etherealize (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - PortableServer::Servant servant, - CORBA::Boolean cleanup_in_progress, - CORBA::Boolean remaining_activations, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (oid); - ACE_UNUSED_ARG (poa); - ACE_UNUSED_ARG (cleanup_in_progress); - ACE_UNUSED_ARG (env); - - // If there are no remaining activations i.e ObjectIds associated - // with MyFooServant delete it. - - if (remaining_activations == 0) - delete servant; -} diff --git a/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h b/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h deleted file mode 100644 index bdf0fdda78a..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/Servant_Activator.h +++ /dev/null @@ -1,45 +0,0 @@ -// $Id$ - -//================================================================================= -// -// = LIBRARY -// TAO/tests/POA/On_Demand_Activation/Servant_Activator -// -// = FILENAME -// Servant_Activator.h -// -// = DESCRIPTION -// Defines a MyFooServantActivator class. -// -// = AUTHOR -// Irfan Pyarali -// -//================================================================================== - -#include "tao/corba.h" - -class MyFooServantActivator : public POA_PortableServer::ServantActivator -{ -public: - MyFooServantActivator (CORBA::ORB_ptr orb); - - virtual PortableServer::Servant incarnate (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - CORBA::Environment &env); - // This method is invoked by a POA with USE_SERVANT_MANAGER and - // RETAIN policies , whenever it receives a request for a MyFoo - // object that is not currently active. - - virtual void etherealize (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr adapter, - PortableServer::Servant servant, - CORBA::Boolean cleanup_in_progress, - CORBA::Boolean remaining_activations, - CORBA::Environment &env); - // This method is invoked whenever a MyFooServant for a MyFoo object - // is deactivated. - -private: - CORBA::ORB_var orb_; - // A reference to the ORB. -}; diff --git a/TAO/examples/POA/On_Demand_Activation/Servant_Locator.cpp b/TAO/examples/POA/On_Demand_Activation/Servant_Locator.cpp deleted file mode 100644 index 52b21000087..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/Servant_Locator.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/POA/On_Demand_Activation/Servant_Locator -// -// = FILENAME -// Servant_Locator.cpp -// -// = DESCRIPTION -// Implementation of MyFooServantLocator class , used with a POA -// having a NON_RETAIN policy. -// -// = AUTHOR -// Irfan Pyarali -// -// ============================================================================ - -#include "Servant_Locator.h" -#include "MyFooServant.h" - -ACE_RCSID(On_Demand_Activation, Servant_Locator, "$Id$") - -MyFooServantLocator::MyFooServantLocator (CORBA::ORB_ptr orb) - : counter_ (0), - orb_ (CORBA::ORB::_duplicate (orb)) -{ -} - - -PortableServer::Servant -MyFooServantLocator::preinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr poa, - const char * /* operation */, - PortableServer::ServantLocator::Cookie &cookie, - CORBA::Environment &env) -{ - // Convert ObjectID to String. - - CORBA::String_var s = PortableServer::ObjectId_to_string (oid); - // If ObjectID string has a Foo Substring create and return a - // MyFooServant. - - if (ACE_OS::strstr (s.in (), "Foo") != 0) - { - PortableServer::Servant servant = - new MyFooServant (this->orb_.in (), poa, ++this->counter_); - - // Return the servant as the cookie , used as a check when - // postinvoke is called on this MyFooServantLocator. - - cookie = servant; - return servant; - } - else - { - CORBA::Exception *exception = - new CORBA::OBJECT_NOT_EXIST (CORBA::COMPLETED_NO); - env.exception (exception); - return 0; - } -} - -void -MyFooServantLocator::postinvoke (const PortableServer::ObjectId & /* oid */, - PortableServer::POA_ptr /* poa */, - const char * /* operation */, - PortableServer::ServantLocator::Cookie cookie, - PortableServer::Servant servant, - CORBA::Environment &/* env */) -{ - // Check the passed servant with the cookie. - - PortableServer::Servant my_servant = (PortableServer::Servant) cookie; - ACE_ASSERT (servant == my_servant); - delete servant; - - // To avoid warning about unused variable with ACE_NDEBUG. - ACE_UNUSED_ARG (my_servant); -} diff --git a/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h b/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h deleted file mode 100644 index b65c72e5886..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/Servant_Locator.h +++ /dev/null @@ -1,53 +0,0 @@ -// $Id$ - -//================================================================================ -// -// = LIBRARY -// TAO/tests/POA/On_Demand_Activation/Servant_Locator -// -// = FILENAME -// Servant_Locator.h -// -// = DESCRIPTION -// Defines a MyFooServantLocator class , used with a POA having -// a NON_RETAIN policy -// -// = AUTHOR -// Irfan Pyarali -// -//================================================================================== - -#include "tao/corba.h" - -class MyFooServantLocator : public POA_PortableServer::ServantLocator -{ - // = TITLE - // This class is used by a POA with USE_SERVANT_MANAGER and - // NON_RETAIN policy. -public: - MyFooServantLocator (CORBA::ORB_ptr orb); - // constructor - - virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr adapter, - const char *operation, - PortableServer::ServantLocator::Cookie &the_cookie, - CORBA::Environment &env); - // This method is invoked by a POA whenever it receives a request - // for MyFoo object that is not currently active. - - virtual void postinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr adapter, - const char *operation, - PortableServer::ServantLocator::Cookie the_cookie, - PortableServer::Servant the_servant, - CORBA::Environment &env); - // This method is invoked whenever a MyFooServant completes a - // request. - -private: - int counter_; - // Counter for number of invocations of this. - - CORBA::ORB_var orb_; -}; diff --git a/TAO/examples/POA/On_Demand_Activation/run_test.pl b/TAO/examples/POA/On_Demand_Activation/run_test.pl deleted file mode 100755 index f8b431cb97a..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/run_test.pl +++ /dev/null @@ -1,65 +0,0 @@ -#$Id$ -# -*- perl -*- -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -unshift @INC, '../../../../bin'; -require ACEutils; - -$iorfile = "ior"; - -$oneway = ""; -$iterations = 100; - -# Parse the arguments -for ($i = 0; $i <= $#ARGV; $i++) -{ - SWITCH: - { - if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") - { - print "run_test [-h] [-i iterations] [-o] [-f ior file]\n"; - print "\n"; - print "-h -- prints this information\n"; - print "-f -- ior file\n"; - print "-i iterations -- specifies iterations\n"; - print "-o -- call issued are oneways\n"; - exit; - } - if ($ARGV[$i] eq "-o") - { - $oneway = "-o"; - last SWITCH; - } - if ($ARGV[$i] eq "-i") - { - $iterations = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - if ($ARGV[$i] eq "-f") - { - $iorfile = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - print "run_test: Unknown Option: ".$ARGV[$i]."\n"; - } -} - -$iorfile_1 = $iorfile."_1"; -$iorfile_2 = $iorfile."_2"; - -$SV = Process::Create ("server$Process::EXE_EXT", "-f $iorfile"); - -ACE::waitforfile ($iorfile_1); -ACE::waitforfile ($iorfile_2); - -$status = system ("../Generic_Servant/client$Process::EXE_EXT $oneway -i $iterations -f $iorfile_1"); -$status = system ("../Generic_Servant/client$Process::EXE_EXT $oneway -i $iterations -f $iorfile_2 -x"); - -unlink $iorfile_1; -unlink $iorfile_2; - -exit $status; diff --git a/TAO/examples/POA/On_Demand_Activation/server.cpp b/TAO/examples/POA/On_Demand_Activation/server.cpp deleted file mode 100644 index 51c71fc9ec4..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/server.cpp +++ /dev/null @@ -1,374 +0,0 @@ -// $Id$ - -//============================================================================ -// -// =FILENAME -// server.cpp -// -// =DESCRIPTION -// Server to test the Servant Activator and Servant Locator for a POA. -// -// =AUTHOR -// Irfan Pyarali -// -//============================================================================= - -#include "ace/streams.h" -#include "Servant_Activator.h" -#include "Servant_Locator.h" - -ACE_RCSID(On_Demand_Activation, server, "$Id$") - -static char *ior_output_file = 0; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "f:"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'f': - ior_output_file = get_opts.optarg; - break; - - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "[-f ior_output_file]" - "\n", - argv [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -static int -write_iors_to_file (const char *first_ior, - const char *second_ior) -{ - if (ior_output_file == 0) - // No filename was specified; simply return - return 0; - - char ior_output_file_1[BUFSIZ]; - char ior_output_file_2[BUFSIZ]; - - ACE_OS::sprintf (ior_output_file_1, "%s_1", ior_output_file); - ACE_OS::sprintf (ior_output_file_2, "%s_2", ior_output_file); - - FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, "w"); - FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, "w"); - - if (output_file_1 == 0 || - output_file_2 == 0) - ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output files for writing IORs: %s, %s\n", - ior_output_file_1, - ior_output_file_2), - -1); - - int result = 0; - - result = ACE_OS::fprintf (output_file_1, - "%s", - first_ior); - if (result != ACE_OS::strlen (first_ior)) - ACE_ERROR_RETURN ((LM_ERROR, - "ACE_OS::fprintf failed while writing %s to %s\n", - first_ior, - ior_output_file_1), - -1); - - result = ACE_OS::fprintf (output_file_2, - "%s", - second_ior); - if (result != ACE_OS::strlen (second_ior)) - ACE_ERROR_RETURN ((LM_ERROR, - "ACE_OS::fprintf failed while writing %s to %s\n", - second_ior, - ior_output_file_2), - -1); - - ACE_OS::fclose (output_file_1); - ACE_OS::fclose (output_file_2); - - return 0; -} - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB. - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - int result = parse_args (argc, argv); - if (result != 0) - return result; - - // Get an Object reference to RootPOA. - CORBA::Object_var obj = - orb->resolve_initial_references ("RootPOA"); - - // Narrow the Object reference to a POA reference - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Get the POAManager of RootPOA - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - CORBA::PolicyList policies (4); - policies.length (4); - - // ID Assignment Policy - policies[0] = - root_poa->create_id_assignment_policy (PortableServer::USER_ID, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_id_assignment_policy"); - return -1; - } - - // Lifespan Policy - policies[1] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Request Processing Policy - policies[2] = - root_poa->create_request_processing_policy (PortableServer::USE_SERVANT_MANAGER, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_request_processing_policy"); - return -1; - } - - PortableServer::POA_var first_poa; - { - // Servant Retention Policy - policies[3] = - root_poa->create_servant_retention_policy (PortableServer::RETAIN, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_servant_retention_policy"); - return -1; - } - - ACE_CString name = "firstPOA"; - - // Create firstPOA as the child of RootPOA with the above policies - // firstPOA will use SERVANT_ACTIVATOR because of RETAIN policy. - first_poa = root_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - } - - PortableServer::POA_var second_poa; - { - // Servant Retention Policy - policies[3] = - root_poa->create_servant_retention_policy (PortableServer::NON_RETAIN, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_servant_retention_policy"); - return -1; - } - - ACE_CString name = "secondPOA"; - - // Create secondPOA as child of RootPOA with the above policies - // secondPOA will use a SERVANT_LOCATOR because of NON_RETAIN - // policy. - second_poa = root_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - } - - // Destroy the policy objects as they have been passed to - // create_POA and no longer needed. - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - MyFooServantActivator servant_activator_impl (orb.in ()); - PortableServer::ServantActivator_var servant_activator = - servant_activator_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::_this"); - return -1; - } - - // Set MyFooServantActivator object as the servant_manager of - // firstPOA. - - first_poa->set_servant_manager (servant_activator.in (), env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::set_servant_manager"); - return -1; - } - - // Create a reference with user created ID in firstPOA which uses - // the MyFooServantActivator. - - PortableServer::ObjectId_var first_foo_oid = - PortableServer::string_to_ObjectId ("firstFoo"); - - CORBA::Object_var first_foo = - first_poa->create_reference_with_id (first_foo_oid.in (), "IDL:Foo:1.0", env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_reference_with_id"); - return -1; - } - - MyFooServantLocator servant_locator_impl (orb.in ()); - PortableServer::ServantLocator_var servant_locator = - servant_locator_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::_this"); - return -1; - } - - // Set MyFooServantLocator object as the servant Manager of - // secondPOA. - - second_poa->set_servant_manager (servant_locator.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::set_servant_manager"); - return -1; - } - - // Try to create a reference with user created ID in second_poa - // which uses MyFooServantLocator. - - PortableServer::ObjectId_var second_foo_oid = - PortableServer::string_to_ObjectId ("secondFoo"); - - CORBA::Object_var second_foo = - second_poa->create_reference_with_id (second_foo_oid.in (), - "IDL:Foo:1.0", env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_reference_with_id"); - return -1; - } - - // Invoke object_to_string on the references created in firstPOA and - // secondPOA. - - CORBA::String_var first_foo_ior = - orb->object_to_string (first_foo.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - CORBA::String_var second_foo_ior = - orb->object_to_string (second_foo.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - // Print the ior's of first_foo and second_foo. - - ACE_DEBUG((LM_DEBUG,"%s\n%s\n", - first_foo_ior.in (), - second_foo_ior.in ())); - - int write_result = write_iors_to_file (first_foo_ior.in (), - second_foo_ior.in ()); - if (write_result != 0) - return write_result; - - // Set the poa_manager state to active, ready to process requests. - poa_manager->activate (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - // Run the ORB. - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1); - - // Destroy the root_poa and also first_poa and second_poa - - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} - diff --git a/TAO/examples/POA/On_Demand_Activation/server.dsp b/TAO/examples/POA/On_Demand_Activation/server.dsp deleted file mode 100644 index 943facf33b8..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/server.dsp +++ /dev/null @@ -1,119 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA On_Demand Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA On_Demand 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="POA On_Demand Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA On_Demand Server - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA On_Demand Server - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA On_Demand 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 "" -# 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 "..\..\..\.." /I "..\Generic_Servant\\" /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 tao.lib ace.lib ..\Generic_Servant\Generic_Servant.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA On_Demand 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 "..\..\..\.." /I "..\Generic_Servant\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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 ..\Generic_Servant\Generic_Servantd.lib TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA On_Demand Server - Win32 Release" -# Name "POA On_Demand Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Servant_Activator.cpp -# End Source File -# Begin Source File - -SOURCE=.\Servant_Locator.cpp -# End Source File -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Servant_Activator.h -# End Source File -# Begin Source File - -SOURCE=.\Servant_Locator.h -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/On_Demand_Activation/svc.conf b/TAO/examples/POA/On_Demand_Activation/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/POA/On_Demand_Activation/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -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 -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/POA/README b/TAO/examples/POA/README deleted file mode 100644 index f7bbc2d70bc..00000000000 --- a/TAO/examples/POA/README +++ /dev/null @@ -1,58 +0,0 @@ -// $Id$ - -The following TAO applications illustate various Portable Object -Adapter (POA) interfaces and their usage scenarios. - - Individual README files in the respective directories explain -these applications further. - - . RootPOA - - This example explains how to obtain the name of the - RootPOA. - - . NewPOA - - This example explains the operations involved in - creation of new POAs. - - . FindPOA - - This example explains registering an adapter activator - for a POA and also the find_POA operation. - - . Generic_Servant - - A simple interface (Foo) is defined here and its - implementations, server and client programs are - available, which can be used for testing POA - applications. Several servers for that interface are - implemented using different POA policies; a common - client for all the servers is also provided. - - . On_Demand_Activation - - Contains programs that test the POA's 2 types of - activation of objects on demand, namely , Servant - Activator approach and Servant Locator , which depend - on the RETAIN/NON-RETAIN policy of a POA. - - . Default_Servant - - Contains a File IDL module and its implementation and - a server,client to test the File Module interfaces. - The System interface uses the USE_DEFAULT_MANAGER policy - to create a POA and registers a single File Descriptor - object as the default servant. The default servant serves - requests for many Descriptor objects. - - . Explicit_Activation - - This application explains various operations involved - in the explicit activation of objects; including the - creation of objects without servants (the servant is - created on demand). NOTE: Currently the example does - not work. < It compiles; but at runtime, _narrow() - raises an exception on the client. > - - diff --git a/TAO/examples/POA/RootPOA/Makefile b/TAO/examples/POA/RootPOA/Makefile deleted file mode 100644 index f294c8d4dcf..00000000000 --- a/TAO/examples/POA/RootPOA/Makefile +++ /dev/null @@ -1,270 +0,0 @@ -# -# $Id$ -# - -BIN = RootPOA - -LSRC = $(addsuffix .cpp,$(BIN)) - -CPPFLAGS += -I$(TAO_ROOT) - -LDLIBS = -lTAO -LDFLAGS += -L$(TAO_ROOT)/tao - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VBIN) - -INSTALL = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.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 - -ifndef TAO_ROOT -TAO_ROOT = $(ACE_ROOT)/TAO -endif - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/RootPOA.o .obj/RootPOA.so .shobj/RootPOA.o .shobj/RootPOA.so: RootPOA.cpp \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(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.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/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.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/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc_Base.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/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(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/SString.h \ - $(ACE_ROOT)/ace/SString.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 \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(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/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(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 \ - $(ACE_ROOT)/ace/Strategies.i \ - $(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/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(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 \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/ORB_Core.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/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/ORB_Strategies_T.cpp \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/RootPOA/README b/TAO/examples/POA/RootPOA/README deleted file mode 100644 index c2f0c5749b4..00000000000 --- a/TAO/examples/POA/RootPOA/README +++ /dev/null @@ -1,11 +0,0 @@ -This program obtains the name of the Root POA. - -Run the application as follows. - -% RootPOA - -Comments: -======== - -- It prints out the name of the Root POA. Currently, the name of the - RootPOA in TAO is an empty string. diff --git a/TAO/examples/POA/RootPOA/RootPOA.cpp b/TAO/examples/POA/RootPOA/RootPOA.cpp deleted file mode 100644 index 7a9e568c478..00000000000 --- a/TAO/examples/POA/RootPOA/RootPOA.cpp +++ /dev/null @@ -1,75 +0,0 @@ -// $Id$ - -//======================================================================== -// -// = LIBRARY -// TAO/tests/POA/RootPOA -// -// -// = FILENAME -// RootPOA.cpp -// -// = DESCRIPTION -// This program gets the name of the Root POA and prints it out on -// the standard output. -// -// = AUTHOR -// Irfan Pyarali -// -//========================================================================= - -#include "ace/streams.h" -#include "tao/corba.h" - -ACE_RCSID(RootPOA, RootPOA, "$Id$") - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initilize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - - TAO_CHECK_ENV_PRINT_RETURN (env, - "CORBA::ORB_init", - -1); - - - // Resolve the initial references for the name RootPOA thus getting - // an object of type CORBA::Object. - CORBA::Object_var obj = - orb->resolve_initial_references ("RootPOA"); - - // apply _narrow on the object of type CORBA::Object, to make it a - // POA class Object. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - TAO_CHECK_ENV_PRINT_RETURN (env, - "PortableServer::POA::_narrow", - -1); - - // Get the name of the root POA. - CORBA::String_var poa_name = - root_poa->the_name (env); - - TAO_CHECK_ENV_PRINT_RETURN (env, - "PortableServer::POA::_narrow", - -1); - - ACE_DEBUG ((LM_DEBUG, - "The RootPOA is : %s\n", - poa_name.in ())); - - // Destroy the POA object,also destroys the child POAs if any. - root_poa->destroy (1, - 1, - env); - - TAO_CHECK_ENV_PRINT_RETURN (env, - "PortableServer::POA::destroy", - -1); - - return 0; -} diff --git a/TAO/examples/POA/RootPOA/RootPOA.dsp b/TAO/examples/POA/RootPOA/RootPOA.dsp deleted file mode 100644 index ac41e5153e4..00000000000 --- a/TAO/examples/POA/RootPOA/RootPOA.dsp +++ /dev/null @@ -1,99 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA RootPOA" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA RootPOA - 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 "RootPOA.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 "RootPOA.mak" CFG="POA RootPOA - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA RootPOA - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA RootPOA - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA RootPOA - 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 "" -# 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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA RootPOA - 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA RootPOA - Win32 Release" -# Name "POA RootPOA - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\RootPOA.cpp -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/RootPOA/RootPOA.dsw b/TAO/examples/POA/RootPOA/RootPOA.dsw deleted file mode 100644 index 124f92637d3..00000000000 --- a/TAO/examples/POA/RootPOA/RootPOA.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "RootPOA"=.\RootPOA.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/POA/TIE/Foo.idl b/TAO/examples/POA/TIE/Foo.idl deleted file mode 100644 index 2ac05a4fcd1..00000000000 --- a/TAO/examples/POA/TIE/Foo.idl +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ -//=============================================================================== -// -// = FILENAME -// Foo.idl -// -//================================================================================== - -// IDL - -interface A -{ - long doit(); -}; - -module Outer -{ - interface B - { - long doit(); - }; - - module Inner - { - interface C - { - long doit(); - }; - }; -}; diff --git a/TAO/examples/POA/TIE/Foo_i.cpp b/TAO/examples/POA/TIE/Foo_i.cpp deleted file mode 100644 index 203ac3aa1a7..00000000000 --- a/TAO/examples/POA/TIE/Foo_i.cpp +++ /dev/null @@ -1,99 +0,0 @@ -// $Id$ - -//=========================================================================== -// -// -// = FILENAME -// Foo_i.cpp -// -// = DESCRIPTION -// This is a simple foo servant implementation -// -// = AUTHOR -// Irfan Pyarali -// -//=========================================================================== - -#include "Foo_i.h" - -ACE_RCSID(TIE, Foo_i, "$Id$") - - // Constructor - Tie_i::Tie_i (CORBA::Long value) - : value_ (value) -{ -} - -// Return this->value -CORBA::Long -Tie_i::doit (CORBA::Environment &/*env*/) -{ - return this->value_; -} - -// Constructor -A_i::A_i (CORBA::Long value, - PortableServer::POA_ptr poa) - : value_ (value), - poa_ (PortableServer::POA::_duplicate (poa)) -{ -} - -// Return this->value -CORBA::Long -A_i::doit (CORBA::Environment &/*env*/) -{ - return this->value_; -} - -// Return the Default POA of this Servant -PortableServer::POA_ptr -A_i::_default_POA (CORBA::Environment &/*env*/) -{ - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -// Constructor -Outer_i::B_i::B_i (CORBA::Long value, - PortableServer::POA_ptr poa) - : value_ (value), - poa_ (PortableServer::POA::_duplicate (poa)) -{ -} - -// Return this->value -CORBA::Long -Outer_i::B_i::doit (CORBA::Environment &/*env*/) -{ - return this->value_; -} - -// Return the Default POA of this Servant -PortableServer::POA_ptr -Outer_i::B_i::_default_POA (CORBA::Environment &/*env*/) -{ - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -// Constructor -Outer_i::Inner_i::C_i::C_i (CORBA::Long value, - PortableServer::POA_ptr poa) - : value_ (value), - poa_ (PortableServer::POA::_duplicate (poa)) -{ -} - -// Return this->value -CORBA::Long -Outer_i::Inner_i::C_i::doit (CORBA::Environment &/*env*/) -{ - return this->value_; -} - -// Return the Default POA of this Servant -PortableServer::POA_ptr -Outer_i::Inner_i::C_i::_default_POA (CORBA::Environment &/*env*/) -{ - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - diff --git a/TAO/examples/POA/TIE/Foo_i.h b/TAO/examples/POA/TIE/Foo_i.h deleted file mode 100644 index 75f4731e1f2..00000000000 --- a/TAO/examples/POA/TIE/Foo_i.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ -//============================================================================= -// -// -// = FILENAME -// Foo_i.h -// -// = DESCRIPTION -// Defines implementation classes for the interfaces -// -// = AUTHOR -// Irfan Pyarali -// -//============================================================================= - -#if !defined (FOO_I_H) -#define FOO_I_H - -#include "FooS.h" - -class Tie_i -{ -public: - // constructor - takes a POA and a value parameter - Tie_i (CORBA::Long value); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - -protected: - - CORBA::Long value_; -}; - -class A_i : public POA_A -{ -public: - // constructor - takes a POA and a value parameter - A_i (CORBA::Long value, - PortableServer::POA_ptr poa); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - - // Returns the Default POA of this Servant object - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - -protected: - - CORBA::Long value_; - - PortableServer::POA_var poa_; - // Default poa associated with this servant -}; - -class Outer_i -{ -public: - - class B_i : public POA_Outer::B - { - public: - // constructor - takes a POA and a value parameter - B_i (CORBA::Long value, - PortableServer::POA_ptr poa); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - - // Returns the Default POA of this Servant object - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - protected: - - CORBA::Long value_; - - PortableServer::POA_var poa_; - // Default poa associated with this servant - }; - - class Inner_i - { - public: - - class C_i : public POA_Outer::Inner::C - { - public: - // constructor - takes a POA and a value parameter - C_i (CORBA::Long value, - PortableServer::POA_ptr poa); - - // Simple doit method - virtual CORBA::Long doit (CORBA::Environment &env); - - // Returns the Default POA of this Servant object - virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - protected: - - CORBA::Long value_; - - PortableServer::POA_var poa_; - // Default poa associated with this servant - }; - }; -}; - -#endif /* FOO_I_H */ diff --git a/TAO/examples/POA/TIE/Makefile b/TAO/examples/POA/TIE/Makefile deleted file mode 100644 index 736a7adbed7..00000000000 --- a/TAO/examples/POA/TIE/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -LDLIBS = -lTAO - -IDL_SRC = FooC.cpp FooS.cpp -PROG_SRCS = $(IDL_SRC) server.cpp client.cpp Foo_i.cpp - -LSRC = $(PROG_SRCS) - -FILE_SVR_OBJS = FooC.o FooS.o server.o Foo_i.o -FILE_CLT_OBJS = FooC.o FooS.o client.o - -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 POA/TIE 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 -include $(TAO_ROOT)/taoconfig.mk - -.PRECIOUS: FooC.h FooC.i FooC.cpp FooS.h FooS.i FooS.cpp - -server: $(addprefix $(VDIR),$(FILE_SVR_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -client: $(addprefix $(VDIR),$(FILE_CLT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -realclean: clean - -/bin/rm -rf FooC.* FooS.* - -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. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/TIE/TIE.dsw b/TAO/examples/POA/TIE/TIE.dsw deleted file mode 100644 index d17cf7c9604..00000000000 --- a/TAO/examples/POA/TIE/TIE.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/examples/POA/TIE/client.cpp b/TAO/examples/POA/TIE/client.cpp deleted file mode 100644 index ca780b649ac..00000000000 --- a/TAO/examples/POA/TIE/client.cpp +++ /dev/null @@ -1,229 +0,0 @@ -// $Id$ - -//=========================================================================== -// -// -// = FILENAME -// client.cpp -// -// = DESCRIPTION -// This is a simple client implementation. -// -// = AUTHOR -// Irfan Pyarali -// -//=========================================================================== - -#include "ace/streams.h" -#include "ace/Get_Opt.h" -#include "ace/Profile_Timer.h" -#include "FooC.h" - -ACE_RCSID(TIE, client, "$Id$") - - static char *IOR[7] = { 0, 0, 0, 0, 0, 0, 0 }; -static int iterations = 1; - -static int -parse_args (int argc, char **argv) -{ - ACE_Get_Opt get_opts (argc, argv, "a:b:c:d:e:f:i:"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'a': - IOR[1] = get_opts.optarg; - break; - case 'b': - IOR[2] = get_opts.optarg; - break; - case 'c': - IOR[3] = get_opts.optarg; - break; - case 'd': - IOR[4] = get_opts.optarg; - break; - case 'e': - IOR[5] = get_opts.optarg; - break; - case 'f': - IOR[6] = get_opts.optarg; - break; - case 'i': - iterations = ::atoi (get_opts.optarg); - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " - "-a IOR 1 " - "-b IOR 2 " - "-c IOR 3 " - "-d IOR 4 " - "-e IOR 5 " - "-f IOR 6 " - "\n", - argv [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -void -print_stats (ACE_Profile_Timer::ACE_Elapsed_Time &elapsed_time, - int iterations) -{ - if (iterations > 0) - { - elapsed_time.real_time *= ACE_ONE_SECOND_IN_MSECS; - elapsed_time.user_time *= ACE_ONE_SECOND_IN_MSECS; - elapsed_time.system_time *= ACE_ONE_SECOND_IN_MSECS; - - elapsed_time.real_time /= iterations; - elapsed_time.user_time /= iterations; - elapsed_time.system_time /= iterations; - - double tmp = 1000 / elapsed_time.real_time; - - ACE_DEBUG ((LM_DEBUG, - "\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", - elapsed_time.real_time < 0.0 ? 0.0 : elapsed_time.real_time, - elapsed_time.user_time < 0.0 ? 0.0 : elapsed_time.user_time, - elapsed_time.system_time < 0.0 ? 0.0 : elapsed_time.system_time, - tmp < 0.0 ? 0.0 : tmp)); - } - else - ACE_ERROR ((LM_ERROR, - "\tNo time stats printed. Zero iterations or error ocurred.\n")); -} - -template -class Test -{ -public: - static void run (CORBA::ORB_ptr orb, - char *IOR, - CORBA::Environment &env) - { - if (IOR != 0) - { - // Get an object reference from the argument string. - CORBA::Object_var object = orb->string_to_object (IOR, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::string_to_object"); - return; - } - - // Try to narrow the object reference to a reference. - T_var foo = T::_narrow (object.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("_narrow"); - return; - } - - ACE_Profile_Timer timer; - ACE_Profile_Timer::ACE_Elapsed_Time elapsed_time; - - // We start an ACE_Profile_Timer here... - timer.start (); - - CORBA::Long result = 0; - int i = 0; - for (i = 0; i < iterations && env.exception () == 0; i++) - { - // Invoke the doit() method on the reference. - result = foo->doit (env); - } - - // stop the timer. - timer.stop (); - timer.elapsed_time (elapsed_time); - - // compute average time. - print_stats (elapsed_time, i); - - if (env.exception () != 0) - { - env.print_exception ("doit"); - return; - } - - // Print the result of doit () method on the reference. - ACE_DEBUG ((LM_DEBUG, - "%d\n", - result)); - } - } -}; - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Initialize options based on command-line arguments. - int parse_args_result = parse_args (argc, argv); - if (parse_args_result != 0) - return parse_args_result; - - int i = 1; - - Test::run (orb.in (), - IOR[i++], - env); - - Test::run (orb.in (), - IOR[i++], - env); - - Test::run (orb.in (), - IOR[i++], - env); - - Test::run (orb.in (), - IOR[i++], - env); - - Test::run (orb.in (), - IOR[i++], - env); - - Test::run (orb.in (), - IOR[i++], - env); - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class Test; -template class Test; -template class Test; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate Test -#pragma instantiate Test -#pragma instantiate Test - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/POA/TIE/client.dsp b/TAO/examples/POA/TIE/client.dsp deleted file mode 100644 index 14e5728d15a..00000000000 --- a/TAO/examples/POA/TIE/client.dsp +++ /dev/null @@ -1,210 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA TIE Client" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA TIE 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="POA TIE Client - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA TIE Client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "POA TIE 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)" == "POA TIE 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 "" -# 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" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA TIE Client - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "client__" -# PROP BASE Intermediate_Dir "client__" -# 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA TIE Client - Win32 Release" -# Name "POA TIE Client - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\client.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\FooC.h -# End Source File -# Begin Source File - -SOURCE=.\FooS.h -# End Source File -# Begin Source File - -SOURCE=.\FooS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo.idl - -!IF "$(CFG)" == "POA TIE Client - Win32 Release" - -USERDEP__FOO_I="..\..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA TIE Client - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/TIE/server.cpp b/TAO/examples/POA/TIE/server.cpp deleted file mode 100644 index 5df931b3beb..00000000000 --- a/TAO/examples/POA/TIE/server.cpp +++ /dev/null @@ -1,306 +0,0 @@ -// $Id$ - -// ========================================================================= -// = LIBRARY -// TAO/tests/POA/TIE -// -// = FILENAME -// server.cpp -// -// = DESCRIPTION -// In this example, -// -// = AUTHOR -// Irfan Pyarali -// ========================================================================= - -#include "ace/streams.h" -#include "Foo_i.h" - -ACE_RCSID(TIE, server, "$Id$") - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // Initialize the ORB first. - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Obtain the RootPOA. - CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA"); - - // Get the POA_var object from Object_var. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Get the POAManager of the RootPOA. - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - // Policies for the firstPOA to be created. - CORBA::PolicyList policies (2); - policies.length (2); - - // Lifespan policy - policies[0] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_lifespan_policy"); - return -1; - } - - // Implicit activation policy - policies[1] = - root_poa->create_implicit_activation_policy (PortableServer::IMPLICIT_ACTIVATION, env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_implicit_activation_policy"); - return -1; - } - - // Create the firstPOA under the RootPOA. - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = - root_poa->create_POA (name.c_str (), - poa_manager.in (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creation of POAs is over. Destroy the Policy objects. - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Create A_i - A_i a_impl (27, first_poa.in ()); - - // Create B_i - Outer_i::B_i b_impl (28, first_poa.in ()); - - // Create C_i - Outer_i::Inner_i::C_i c_impl (29, first_poa.in ()); - - // Create A tie - Tie_i a_tie_i (30); - POA_A_tie a_tie_impl (a_tie_i, first_poa.in ()); - -#if defined (ACE_HAS_USING_KEYWORD) - - // Create B tie - Tie_i b_tie_i (31); - POA_Outer::B_tie b_tie_impl (b_tie_i, first_poa.in ()); - - // Create C tie - Tie_i c_tie_i (32); - POA_Outer::Inner::C_tie c_tie_impl (c_tie_i, first_poa.in ()); - -#endif /* ACE_HAS_USING_KEYWORD */ - - // Get Object Reference for the a_impl object. - A_var a = a_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_A::_this"); - return -1; - } - - // Get Object Reference for the b_impl object. - Outer::B_var b = b_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_Outer::B::_this"); - return -1; - } - - // Get Object Reference for the c_impl object. - Outer::Inner::C_var c = c_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_Outer::Inner::C::_this"); - return -1; - } - - // Get Object Reference for the a_tie_impl object. - A_var a_tie = a_tie_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_A::_this"); - return -1; - } - -#if defined (ACE_HAS_USING_KEYWORD) - - // Get Object Reference for the a_tie_impl object. - Outer::B_var b_tie = b_tie_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_Outer::B::_this"); - return -1; - } - - // Get Object Reference for the c_tie_impl object. - Outer::Inner::C_var c_tie = c_tie_impl._this (env); - - if (env.exception () != 0) - { - env.print_exception ("POA_Outer::Inner::C::_this"); - return -1; - } - -#endif /* ACE_HAS_USING_KEYWORD */ - - // Stringyfy all the object references and print them out. - CORBA::String_var first_ior = - orb->object_to_string (a.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - // Stringyfy all the object references and print them out. - CORBA::String_var second_ior = - orb->object_to_string (b.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - // Stringyfy all the object references and print them out. - CORBA::String_var third_ior = - orb->object_to_string (c.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - // Stringyfy all the object references and print them out. - CORBA::String_var forth_ior = - orb->object_to_string (a_tie.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - -#if defined (ACE_HAS_USING_KEYWORD) - - // Stringyfy all the object references and print them out. - CORBA::String_var fifth_ior = - orb->object_to_string (b_tie.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - // Stringyfy all the object references and print them out. - CORBA::String_var sixth_ior = - orb->object_to_string (c_tie.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - -#endif /* ACE_HAS_USING_KEYWORD */ - - ACE_DEBUG ((LM_DEBUG, - "%s\n%s\n%s\n%s\n", - first_ior.in (), - second_ior.in (), - third_ior.in (), - forth_ior.in ())); - -#if defined (ACE_HAS_USING_KEYWORD) - - ACE_DEBUG ((LM_DEBUG, - "%s\n%s\n", - fifth_ior.in (), - sixth_ior.in ())); - -#endif /* ACE_HAS_USING_KEYWORD */ - - poa_manager->activate (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "CORBA::ORB::run"), -1); - - // Destroy RootPOA. - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class POA_A_tie; -#if defined (ACE_HAS_USING_KEYWORD) -template class POA_Outer::B_tie ; -template class POA_Outer::Inner::C_tie ; -#endif /* ACE_HAS_USING_KEYWORD */ -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate POA_A_tie -#if defined (ACE_HAS_USING_KEYWORD) -#pragma instantiate POA_Outer::B_tie -#pragma instantiate POA_Outer::Inner::C_tie -#endif /* ACE_HAS_USING_KEYWORD */ -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/POA/TIE/server.dsp b/TAO/examples/POA/TIE/server.dsp deleted file mode 100644 index 6657b7de50c..00000000000 --- a/TAO/examples/POA/TIE/server.dsp +++ /dev/null @@ -1,218 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA TIE Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA TIE 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="POA TIE Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA TIE Server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "POA TIE 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)" == "POA TIE 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 "" -# 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 /GR /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 tao.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA TIE 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 /GR /GX /Zi /Od /I "..\..\.." /I "..\..\..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA TIE Server - Win32 Release" -# Name "POA TIE Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooC.cpp -# End Source File -# Begin Source File - -SOURCE=.\FooS.cpp -# End Source File -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo_i.h -# End Source File -# Begin Source File - -SOURCE=.\FooC.h -# End Source File -# Begin Source File - -SOURCE=.\FooS.h -# End Source File -# Begin Source File - -SOURCE=.\FooS_T.h -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Foo.idl - -!IF "$(CFG)" == "POA TIE Server - Win32 Release" - -USERDEP__FOO_I="..\..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputPath)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputPath)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "POA TIE Server - Win32 Debug" - -# PROP Ignore_Default_Tool 1 -USERDEP__FOO_I="..\..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Foo.idl -InputName=Foo - -BuildCmds= \ - tao_idl $(InputName).idl - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/locking/Makefile b/TAO/examples/POA/locking/Makefile deleted file mode 100644 index 65cca97e93a..00000000000 --- a/TAO/examples/POA/locking/Makefile +++ /dev/null @@ -1,271 +0,0 @@ -# -# $Id$ -# - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -BIN = locking - -LSRC = $(addsuffix .cpp,$(BIN)) - -CPPFLAGS += -I$(TAO_ROOT) - -LDLIBS = -lTAO -LDFLAGS += -L$(TAO_ROOT)/tao - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BUILD = $(VBIN) - -INSTALL = - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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 - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/locking.o .obj/locking.so .shobj/locking.o .shobj/locking.so: locking.cpp \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.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/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(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/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(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.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/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.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/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc_Base.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/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(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/SString.h \ - $(ACE_ROOT)/ace/SString.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 \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(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/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(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 \ - $(ACE_ROOT)/ace/Strategies.i \ - $(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/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(TAO_ROOT)/tao/Align.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(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 \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Object_Table.h \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/ORB_Core.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/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.h \ - $(TAO_ROOT)/tao/ORB_Strategies_T.i \ - $(TAO_ROOT)/tao/ORB_Strategies_T.cpp \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/IIOP_Object.h \ - $(TAO_ROOT)/tao/IIOP_Object.i \ - $(TAO_ROOT)/tao/IIOP_ORB.h \ - $(TAO_ROOT)/tao/IIOP_ORB.i \ - $(TAO_ROOT)/tao/IIOP_Interpreter.h \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/POA/locking/locking.cpp b/TAO/examples/POA/locking/locking.cpp deleted file mode 100644 index 11bcee778ab..00000000000 --- a/TAO/examples/POA/locking/locking.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// $Id$ - -// ================================================== -// = LIBRARY -// TAO/tests/POA/NewPOA -// -// = FILENAME -// NewPOA.cpp -// -// = DESCRIPTION -// -// This program demonstrates creation of new POAs using TAO -// specific locking policies -// -// = AUTHOR -// Irfan Pyarali -// ================================================== - -#include "ace/streams.h" -#include "tao/corba.h" - -ACE_RCSID(locking, locking, "$Id$") - -int -main (int argc, char **argv) -{ - CORBA::Environment env; - - // The first step -- Initialize the ORB. - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB_init"); - return -1; - } - - // Obtain the object reference to the RootPOA. - TAO_POA_Policies root_poa_policies; - root_poa_policies.implicit_activation (PortableServer::IMPLICIT_ACTIVATION); - root_poa_policies.lifespan (PortableServer::PERSISTENT); - root_poa_policies.synchronization (PortableServer::NULL_LOCK); - - CORBA::Object_var obj = orb->resolve_root_poa ("RootPOA", - 0, - &root_poa_policies); - - // _narrow () the Object to get the POA object, i.e., the root_poa. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Policies for the new POAs - CORBA::PolicyList policies (1); - policies.length (1); - - // TAO specific threading policy - policies[0] = - root_poa->create_synchronization_policy (PortableServer::THREAD_LOCK, - env); - - if (env.exception () != 0) - { - env.print_exception ("create_synchronization_policy"); - return -1; - } - - // Creation of the firstPOA - ACE_CString name = "firstPOA"; - PortableServer::POA_var first_poa = - root_poa->create_POA (name.c_str (), - PortableServer::POAManager::_nil (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // TAO specific threading policy - policies[0] = - root_poa->create_synchronization_policy (PortableServer::DEFAULT_LOCK, env); - - if (env.exception () != 0) - { - env.print_exception ("create_synchronization_policy"); - return -1; - } - - // Creation of the new POA, i.e. firstPOA/secondPOA - name += TAO_POA::name_separator (); - name += "secondPOA"; - PortableServer::POA_var second_poa = - root_poa->create_POA (name.c_str (), - PortableServer::POAManager::_nil (), - policies, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Creation of the new POAs over, so destroy the Policy_ptr's. - for (CORBA::ULong i = 0; - i < policies.length () && env.exception () == 0; - ++i) - { - CORBA::Policy_ptr policy = policies[i]; - policy->destroy (env); - } - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::create_POA"); - return -1; - } - - // Get the names of all the POAs and print them out. - - CORBA::String_var root_poa_name = - root_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var first_poa_name = - first_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - CORBA::String_var second_poa_name = - second_poa->the_name (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, - "%s\n%s\n%s\n", - root_poa_name.in (), - first_poa_name.in (), - second_poa_name.in ())); - - // This should destroy all its children - root_poa->destroy (1, - 1, - env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::destroy"); - return -1; - } - - return 0; -} diff --git a/TAO/examples/POA/locking/locking.dsp b/TAO/examples/POA/locking/locking.dsp deleted file mode 100644 index c6beec47b6c..00000000000 --- a/TAO/examples/POA/locking/locking.dsp +++ /dev/null @@ -1,99 +0,0 @@ -# Microsoft Developer Studio Project File - Name="POA Locking" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=POA Locking - 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 "locking.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 "locking.mak" CFG="POA Locking - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "POA Locking - Win32 Release" (based on\ - "Win32 (x86) Console Application") -!MESSAGE "POA Locking - Win32 Debug" (based on\ - "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "POA Locking - 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 "" -# 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 tao.lib ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace" -# SUBTRACT LINK32 /pdb:none - -!ELSEIF "$(CFG)" == "POA Locking - 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 -# 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" -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "POA Locking - Win32 Release" -# Name "POA Locking - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\locking.cpp -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/POA/locking/locking.dsw b/TAO/examples/POA/locking/locking.dsw deleted file mode 100644 index d9129842929..00000000000 --- a/TAO/examples/POA/locking/locking.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "locking"=.\locking.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/Quoter/Factory_Finder.cpp b/TAO/examples/Quoter/Factory_Finder.cpp deleted file mode 100644 index 9bb2b2133c0..00000000000 --- a/TAO/examples/Quoter/Factory_Finder.cpp +++ /dev/null @@ -1,228 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// FactoryFinder.cpp -// -// = DESCRIPTION -// A Factory Finder for the Quoter example. This example conforms -// to the CosLifeCycle Factory Finder notion. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "tao/corba.h" -#include "Factory_Finder.h" - -ACE_RCSID(Quoter, Factory_Finder, "$Id$") - -static const char usage [] = "[-? |\n[-O[RBport] ORB port number]]"; - -Quoter_Factory_Finder_Server::Quoter_Factory_Finder_Server (void) -{ -} - -Quoter_Factory_Finder_Server::~Quoter_Factory_Finder_Server (void) -{ - TAO_TRY - { - // Unbind the Quoter Factory Finder. - CosNaming::Name factory_Finder_Name (2); - factory_Finder_Name.length (2); - factory_Finder_Name[0].id = CORBA::string_dup ("IDL_Quoter"); - factory_Finder_Name[1].id = CORBA::string_dup ("Quoter_Factory_Finder"); - this->quoterNamingContext_var_->unbind (factory_Finder_Name,TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - } - TAO_ENDTRY; -} - -int -Quoter_Factory_Finder_Server::init (int argc, char *argv[], CORBA::Environment& env) -{ - if (this->orb_manager_.init (argc, - argv, - env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init"), - -1); - - // Copy them, because parse_args expects them there. - this->argc_ = argc; - this->argv_ = argv; - - this->parse_args (); - - - ACE_NEW_RETURN (this->quoter_Factory_Finder_i_ptr_, - Quoter_Factory_Finder_i(), - -1); - - // Activate the object. - CORBA::String_var str = - this->orb_manager_.activate (this->quoter_Factory_Finder_i_ptr_, - env); - - // Failure while activating the Quoter Factory Finder object - if (env.exception () != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init: Failure while activating the Quoter Factory Finder Impl.\n"), - -1); - - - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", - str.in ())); - - // Register the Quoter Factory Finder with the Naming Service - TAO_TRY - { - ACE_DEBUG ((LM_DEBUG,"Trying to get a reference to the Naming Service.\n")); - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - orb_manager_.orb()->resolve_initial_references ("NameService"); - TAO_CHECK_ENV; - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n")); - - // Narrow the object reference to a Naming Context. - CosNaming::NamingContext_var namingContext_var = - CosNaming::NamingContext::_narrow (namingObj_var.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG,"Have a proper reference to the Naming Service.\n")); - - // Get the IDL_Quoter naming context. - CosNaming::Name quoterContextName (1); // max = 1 - quoterContextName.length (1); - quoterContextName[0].id = CORBA::string_dup ("IDL_Quoter"); - - CORBA::Object_var quoterNamingObj_var = - namingContext_var->resolve (quoterContextName, TAO_TRY_ENV); - TAO_CHECK_ENV; - - quoterNamingContext_var_ = - CosNaming::NamingContext::_narrow (quoterNamingObj_var.in (), - TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, - "Have a proper reference to the Quoter Naming Context.\n")); - - // Bind the QuoterFactory Finder to the IDL_Quoter naming - // context. - CosNaming::Name quoter_Factory_Finder_Name_ (1); - quoter_Factory_Finder_Name_.length (1); - quoter_Factory_Finder_Name_[0].id = CORBA::string_dup ("Quoter_Factory_Finder"); - - quoterNamingContext_var_->bind (quoter_Factory_Finder_Name_, - this->quoter_Factory_Finder_i_ptr_->_this(TAO_TRY_ENV), - TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG, - "Bound the Quoter Factory Finder to the Quoter Naming Context.\n")); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - } - TAO_ENDTRY; - - - return 0; -} - -int -Quoter_Factory_Finder_Server::run (CORBA::Environment& env) -{ - if (orb_manager_.orb()->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "run"), - -1); - return 0; -} - - -// Function get_options. - -u_int -Quoter_Factory_Finder_Server::parse_args (void) -{ - // We need the 'O' in get_opt () because we also want to have ORB - // parameters, they all start with 'O'. - ACE_Get_Opt get_opt (this->argc_, this->argv_, "O?"); - int opt; - - while ((opt = get_opt ()) != EOF) - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - this->argv_[0], usage)); - ACE_OS::exit (0); - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - this->argv_[0], char (opt), - this->argv_[0], - usage), - 1); - } - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - Quoter_Factory_Finder_Server quoter_Factory_Finder_Server; - - ACE_DEBUG ((LM_DEBUG, - "\n\tIDL_Quoter:Quoter_Factory_Finder \n \n")); - TAO_TRY - { - if (quoter_Factory_Finder_Server.init (argc,argv,TAO_TRY_ENV) == -1) - return 1; - else - { - quoter_Factory_Finder_Server.run (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; - return 0; -} diff --git a/TAO/examples/Quoter/Factory_Finder.dsp b/TAO/examples/Quoter/Factory_Finder.dsp deleted file mode 100644 index e8c3f237ce2..00000000000 --- a/TAO/examples/Quoter/Factory_Finder.dsp +++ /dev/null @@ -1,227 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Quoter Factory Finder" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Quoter Factory Finder - 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 "Factory_Finder.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 "Factory_Finder.mak" CFG="Quoter Factory Finder - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Quoter Factory Finder - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "Quoter Factory Finder - 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)" == "Quoter Factory Finder - 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /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 orbsvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ELSEIF "$(CFG)" == "Quoter Factory Finder - 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ENDIF - -# Begin Target - -# Name "Quoter Factory Finder - Win32 Release" -# Name "Quoter Factory Finder - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp" -# Begin Source File - -SOURCE=.\Factory_Finder.cpp -# End Source File -# Begin Source File - -SOURCE=.\Factory_Finder_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h" -# Begin Source File - -SOURCE=.\Factory_Finder.h -# End Source File -# Begin Source File - -SOURCE=.\Factory_Finder_i.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.h -# End Source File -# End Group -# Begin Group "Inline Files" - -# PROP Default_Filter "i" -# Begin Source File - -SOURCE=.\QuoterC.i -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.i -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Quoter.idl - -!IF "$(CFG)" == "Quoter Factory Finder - Win32 Release" - -USERDEP__QUOTE="..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "Quoter Factory Finder - Win32 Debug" - -USERDEP__QUOTE="..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/Quoter/Factory_Finder.h b/TAO/examples/Quoter/Factory_Finder.h deleted file mode 100644 index 09cff9259f8..00000000000 --- a/TAO/examples/Quoter/Factory_Finder.h +++ /dev/null @@ -1,61 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// FactoryFinder.h -// -// = DESCRIPTION -// Server for the Quoter Factory Finder -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/TAO.h" -#include "Factory_Finder_i.h" - -#if !defined (QUOTER_FACTORY_FINDER_H) -#define QUOTER_FACTORY_FINDER_H - -class Quoter_Factory_Finder_Server -{ - // = TILE - // Server object for the Quoter Factory Finder - -public: - Quoter_Factory_Finder_Server (void); - // Default constructor - - ~Quoter_Factory_Finder_Server (void); - // Destructor - - int init (int argc, char *argv[], CORBA::Environment& env); - // Initialize the Quoter_Server state - parsing arguments and ... - - int run (CORBA::Environment& env); - // Run the orb - - u_int parse_args (void); - // parse the passed parameters - -private: - TAO_ORB_Manager orb_manager_; - // instance of the ORB Manager - - Quoter_Factory_Finder_i *quoter_Factory_Finder_i_ptr_; - // instance of the Quoter Factory Finder - - CosNaming::NamingContext_var quoterNamingContext_var_; - // reference to the Quoter naming context - - int argc_; - // Number of commandline arguments. - - char **argv_; - // commandline arguments. -}; - -#endif /* QUOTER_FACTORY_FINDER_H */ diff --git a/TAO/examples/Quoter/Factory_Finder_i.cpp b/TAO/examples/Quoter/Factory_Finder_i.cpp deleted file mode 100644 index 4284f9074ff..00000000000 --- a/TAO/examples/Quoter/Factory_Finder_i.cpp +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// FactoryFinder_i.cpp -// -// = DESCRIPTION -// A Factory Finder for the Quoter example. This example conforms -// to the CosLifeCycle Factory Finder notion. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/corba.h" -#include "Factory_Finder_i.h" -#include "QuoterC.h" - -ACE_RCSID(Quoter, Factory_Finder_i, "$Id$") - -// Constructor -Quoter_Factory_Finder_i::Quoter_Factory_Finder_i (void) -{ -} - -// Destructor. -Quoter_Factory_Finder_i::~Quoter_Factory_Finder_i (void) -{ -} - - -CosLifeCycle::Factories * -Quoter_Factory_Finder_i::find_factories (const CosLifeCycle::Key &factory_key, - CORBA::Environment &_env_there) -{ - CORBA::Environment env_here; - - // Get a reference to the ORB. - CORBA::ORB_ptr orb_ptr = TAO_ORB_Core_instance ()->orb (); - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - orb_ptr->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n")); - - // Narrow the object reference to a Naming Context. - CosNaming::NamingContext_var namingContext_var = - CosNaming::NamingContext::_narrow (namingObj_var.in (), - env_here); - - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - - // Take the key supplied to search for a Quoter Factory - CosNaming::Name factoryName = (CosNaming::Name) factory_key; - - // Try to get a reference to a Quoter Factory - CORBA::Object_var quoterFactoryObject_var = - namingContext_var->resolve (factoryName, env_here); - - // see if there is an exception, if yes then throw the NoFactory exception - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - // were able to get a reference to Quoter Factory - - // Check if it is a valid Quoter Factory reference - if (CORBA::is_nil (quoterFactoryObject_var.in())) - { // throw a NoFactory exception - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - else - { - - // create a sequence of factories object - CosLifeCycle::Factories *factories_ptr = new CosLifeCycle::Factories (1); - - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) - { - // Throw a NoFactory exception. - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - // using the Naming Service only one reference is available - factories_ptr->length (1); - - // Check if it is a valid Quoter Factory reference. - if (CORBA::is_nil (quoterFactoryObject_var.in ())) // throw a NoFactory exception. - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - // insert the object reference - (*factories_ptr)[0] = CORBA::Object::_duplicate (quoterFactoryObject_var.ptr()); - - ACE_DEBUG ((LM_DEBUG, - "Have reference to a Quoter Factory.\n")); - return factories_ptr; - } -} diff --git a/TAO/examples/Quoter/Factory_Finder_i.h b/TAO/examples/Quoter/Factory_Finder_i.h deleted file mode 100644 index 4ce73d28a98..00000000000 --- a/TAO/examples/Quoter/Factory_Finder_i.h +++ /dev/null @@ -1,38 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// FactoryFinder_i.h -// -// = DESCRIPTION -// Factory Finder Implementation for the Quoter example -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "QuoterS.h" - -#if !defined (QUOTER_FACTORY_FINDER_IMPL_H) -#define QUOTER_FACTORY_FINDER_IMPL_H - -class Quoter_Factory_Finder_i : public POA_Stock::Quoter_Factory_Finder -{ - // = TILE - // A CosLifeCycle conforming Factory Finder for the Quoter - // example. It uses the Naming Service to find a fitting factory. - -public: - Quoter_Factory_Finder_i (void); - ~Quoter_Factory_Finder_i (void); - - virtual CosLifeCycle::Factories * find_factories (const CosLifeCycle::Key &factory_key, - CORBA::Environment &_tao_environment); - // Returns a squence of Factories if factories matching the - // factory_key were found. If no factory was found, then the - // NoFactory exception, defined in CosLifeCycle, is raised. -}; - -#endif /* QUOTER_FACTORY_FINDER_IMPL_H */ diff --git a/TAO/examples/Quoter/Generic_Factory.cpp b/TAO/examples/Quoter/Generic_Factory.cpp deleted file mode 100644 index a2badd69620..00000000000 --- a/TAO/examples/Quoter/Generic_Factory.cpp +++ /dev/null @@ -1,282 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Generic_Factory.cpp -// -// = DESCRIPTION -// The server for the GenericFactory for the quoter example. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "tao/corba.h" -#include "orbsvcs/LifeCycleServiceC.h" -#include "Generic_Factory.h" - -ACE_RCSID(Quoter, Generic_Factory, "$Id$") - -static const char usage [] = "[-? |\n[-O[RBport] ORB port number]]"; - -Quoter_Generic_Factory_Server::Quoter_Generic_Factory_Server (void) -: use_LifeCycle_Service_ (0) -{ -} - -Quoter_Generic_Factory_Server::~Quoter_Generic_Factory_Server (void) -{ - TAO_TRY - { - // Unbind the Quoter Factory Finder. - CosNaming::Name generic_Factory_Name (2); - generic_Factory_Name.length (2); - generic_Factory_Name[0].id = CORBA::string_dup ("IDL_Quoter"); - generic_Factory_Name[1].id = CORBA::string_dup ("Quoter_Generic_Factory"); - this->quoterNamingContext_var_->unbind (generic_Factory_Name,TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - } - TAO_ENDTRY; -} - -int -Quoter_Generic_Factory_Server::init (int argc, - char *argv[], - CORBA::Environment& env) -{ - if (this->orb_manager_.init (argc, - argv, - env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init"), - -1); - - // Copy them, because parse_args expects them there. - this->argc_ = argc; - this->argv_ = argv; - - this->parse_args (); - - - ACE_NEW_RETURN (this->quoter_Generic_Factory_i_ptr_, - Quoter_Generic_Factory_i(), - -1); - - // Activate the object. - CORBA::String_var str = - this->orb_manager_.activate (this->quoter_Generic_Factory_i_ptr_, - env); - - // Failure while activating the Quoter Factory Finder object - if (env.exception () != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init: Failure while activating the Quoter Generic Factory Impl.\n"), - -1); - - - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", - str.in ())); - - // Register the Quoter GenericFactory with the Naming Service. - TAO_TRY - { - ACE_DEBUG ((LM_DEBUG, - "Trying to get a reference to the Naming Service.\n")); - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - orb_manager_.orb()->resolve_initial_references ("NameService"); - TAO_CHECK_ENV; - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n")); - - // Narrow the object reference to a Naming Context. - CosNaming::NamingContext_var namingContext_var = - CosNaming::NamingContext::_narrow (namingObj_var.in (), - TAO_TRY_ENV); - - if (CORBA::is_nil (namingContext_var.in ())) - ACE_ERROR ((LM_ERROR, - " (%P|%t) Unable get the Naming Service.\n")); - - - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG, - "Have a proper reference to the Naming Service.\n")); - - // Get the IDL_Quoter naming context. - CosNaming::Name quoterContextName (1); // max = 1 - quoterContextName.length (1); - quoterContextName[0].id = CORBA::string_dup ("IDL_Quoter"); - - CORBA::Object_var quoterNamingObj_var = - namingContext_var->resolve (quoterContextName, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - quoterNamingContext_var_ = - CosNaming::NamingContext::_narrow (quoterNamingObj_var.in (), - TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, - "Have a proper reference to the Quoter Naming Context.\n")); - - // Bind the Quoter GenericFactory to the IDL_Quoter naming - // context. - CosNaming::Name quoter_Generic_Factory_Name (1); - quoter_Generic_Factory_Name.length (1); - quoter_Generic_Factory_Name[0].id = CORBA::string_dup ("Quoter_Generic_Factory"); - - quoterNamingContext_var_->bind (quoter_Generic_Factory_Name, - this->quoter_Generic_Factory_i_ptr_->_this(TAO_TRY_ENV), - TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG, - "Bound the Quoter GenericFactory to the Quoter Naming Context.\n")); - - // now the Quoter GenericFactory is bound to the Naming Context - // the Generic Factory should try to register itself to the closest - // Life Cycle Service is order to be called. - - /* for now as long as the trading service is not ported to NT we skip this */ - - if (this->use_LifeCycle_Service_) - { - // get the Quoter_Life_Cycle_Service - CosNaming::Name life_Cycle_Service_Name (1); - life_Cycle_Service_Name.length (1); - life_Cycle_Service_Name[0].id = CORBA::string_dup ("Life_Cycle_Service"); - - CORBA::Object_var life_Cycle_Service_Obj_var = - namingContext_var->resolve (life_Cycle_Service_Name, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - LifeCycleService::Life_Cycle_Service_var life_Cycle_Service_var = - LifeCycleService::Life_Cycle_Service::_narrow (life_Cycle_Service_Obj_var.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - ACE_DEBUG ((LM_DEBUG, "Have a proper reference to Life Cycle Service.\n")); - - CORBA::Object_var object_var = this->quoter_Generic_Factory_i_ptr_->_this(TAO_TRY_ENV); - - life_Cycle_Service_var->register_factory ("Quoter_Generic_Factory", // name - "Bryan 503", // location - "Generic Factory", // description - object_var.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - ACE_DEBUG ((LM_DEBUG, - "Registered the Quoter GenericFactory to the Life Cycle Service.\n")); - } - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Quoter_Generic_Factory_Server::init: Exception"); - } - TAO_ENDTRY; - - - return 0; -} - -int -Quoter_Generic_Factory_Server::run (CORBA::Environment& env) -{ - if (orb_manager_.orb()->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "run"), - -1); - return 0; -} - -// Function get_options. - -u_int -Quoter_Generic_Factory_Server::parse_args (void) -{ - // We need the 'O' in get_opt () because we also want to have ORB - // parameters, they all start with 'O'. - ACE_Get_Opt get_opt (this->argc_, this->argv_, "Ol?"); - int opt; - - while ((opt = get_opt ()) != EOF) - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - this->argv_[0], usage)); - ACE_OS::exit (0); - break; - case 'l': - this->use_LifeCycle_Service_ = 1; - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - this->argv_[0], char (opt), - this->argv_[0], - usage), - 1); - } - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - Quoter_Generic_Factory_Server quoter_Generic_Factory_Server; - - ACE_DEBUG ((LM_DEBUG, - "\n\tIDL_Quoter: Quoter_Generic_Factory_Server \n\n")); - TAO_TRY - { - if (quoter_Generic_Factory_Server.init (argc, - argv, - TAO_TRY_ENV) == -1) - return 1; - else - { - quoter_Generic_Factory_Server.run (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; - return 0; -} diff --git a/TAO/examples/Quoter/Generic_Factory.dsp b/TAO/examples/Quoter/Generic_Factory.dsp deleted file mode 100644 index 3a642604e7d..00000000000 --- a/TAO/examples/Quoter/Generic_Factory.dsp +++ /dev/null @@ -1,227 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Quoter Generic Factory" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Quoter Generic Factory - 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 "Generic_Factory.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 "Generic_Factory.mak" CFG="Quoter Generic Factory - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Quoter Generic Factory - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "Quoter Generic Factory - 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)" == "Quoter Generic Factory - 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /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 orbsvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ELSEIF "$(CFG)" == "Quoter Generic Factory - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "QuoterGe" -# PROP BASE Intermediate_Dir "QuoterGe" -# 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ENDIF - -# Begin Target - -# Name "Quoter Generic Factory - Win32 Release" -# Name "Quoter Generic Factory - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Generic_Factory.cpp -# End Source File -# Begin Source File - -SOURCE=.\Generic_Factory_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Generic_Factory.h -# End Source File -# Begin Source File - -SOURCE=.\Generic_Factory_i.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.h -# End Source File -# End Group -# Begin Group "Inline Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\QuoterC.i -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.i -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Quoter.idl - -!IF "$(CFG)" == "Quoter Generic Factory - Win32 Release" - -USERDEP__QUOTE="..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "Quoter Generic Factory - Win32 Debug" - -USERDEP__QUOTE="..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/Quoter/Generic_Factory.h b/TAO/examples/Quoter/Generic_Factory.h deleted file mode 100644 index bee301b10b9..00000000000 --- a/TAO/examples/Quoter/Generic_Factory.h +++ /dev/null @@ -1,65 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Generic_Factory.h -// -// = DESCRIPTION -// A generic factory, customized for the use with the Quoter example. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/TAO.h" -#include "Generic_Factory_i.h" - -#if !defined (GENERIC_FACTORY_H) -#define GENERIC_FACTORY_H - -class Quoter_Generic_Factory_Server -{ - // = TILE - // Server object for the Quoter Generic Factory - -public: - Quoter_Generic_Factory_Server (void); - // Default constructor - - ~Quoter_Generic_Factory_Server (void); - // Destructor - - int init (int argc, - char *argv[], - CORBA::Environment& env); - // Initialize the Quoter_Server state - parsing arguments and ... - - int run (CORBA::Environment& env); - // Run the orb. - - u_int parse_args (void); - // Parse the passed parameters. - -private: - TAO_ORB_Manager orb_manager_; - // instance of the ORB Manager - - Quoter_Generic_Factory_i *quoter_Generic_Factory_i_ptr_; - // Instance of the Quoter Generic Factory. - - CosNaming::NamingContext_var quoterNamingContext_var_; - // Reference to the Quoter naming context. - - int argc_; - // Number of commandline arguments. - - char **argv_; - // commandline arguments. - - unsigned char use_LifeCycle_Service_; -}; - -#endif /* GENERIC_FACTORY_H */ diff --git a/TAO/examples/Quoter/Generic_Factory_i.cpp b/TAO/examples/Quoter/Generic_Factory_i.cpp deleted file mode 100644 index 83b560c7e37..00000000000 --- a/TAO/examples/Quoter/Generic_Factory_i.cpp +++ /dev/null @@ -1,198 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Generic_Factory_i.cpp -// -// = DESCRIPTION -// The implementation of a LifeCycle Service GenericFactory for the -// Quoter example. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/corba.h" -#include "Generic_Factory_i.h" -#include "QuoterC.h" - -ACE_RCSID(Quoter, Generic_Factory_i, "$Id$") - -// Constructor -Quoter_Generic_Factory_i::Quoter_Generic_Factory_i (void) -{ -} - -// Destructor. -Quoter_Generic_Factory_i::~Quoter_Generic_Factory_i (void) -{ -} - -CORBA::Boolean -Quoter_Generic_Factory_i::supports (const CosLifeCycle::Key &factory_key, - CORBA::Environment &_env_there) -{ - ACE_UNUSED_ARG (factory_key); - ACE_UNUSED_ARG (_env_there); - - return 0; -} - - - -CosNaming::NamingContext_ptr -Quoter_Generic_Factory_i::get_naming_context (const CosLifeCycle::Key &factory_key, - CORBA::Environment &env_here, - CORBA::Environment &_env_there) -{ - // Get a reference to the ORB. - CORBA::ORB_ptr orb_ptr = - TAO_ORB_Core_instance ()->orb (); - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - orb_ptr->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR ((LM_ERROR, - "(%P|%t) Unable get the Naming Service.\n")); - - // Narrow the object reference to a Naming Context. - CosNaming::NamingContext_var namingContext_var = - CosNaming::NamingContext::_narrow (namingObj_var.in (), - env_here); - - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - // Get the IDL_Quoter naming context. - CosNaming::Name quoterContextName (1); // max = 1 - quoterContextName.length (1); - quoterContextName[0].id = CORBA::string_dup ("IDL_Quoter"); - - CORBA::Object_var quoterNamingObj_var = - namingContext_var->resolve (quoterContextName, env_here); - - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - CosNaming::NamingContext_var quoterNamingContext_var = - CosNaming::NamingContext::_narrow (quoterNamingObj_var.in (), - env_here); - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - - return CosNaming::NamingContext::_duplicate (quoterNamingContext_var.in ()); -} - - - -CORBA::Object_ptr -Quoter_Generic_Factory_i::create_object (const CosLifeCycle::Key &factory_key, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_env_there) -{ - ACE_UNUSED_ARG (the_criteria); - - CORBA::Environment env_here; - - CosNaming::NamingContext_var quoterNamingContext_var = - this->get_naming_context (factory_key, - env_here, - _env_there); - - // ** now a proper reference to the quoter naming context is - // available - - // Fill in the name of the Quoter Factory. - // Take the key supplied to search for a Quoter Factory - CosNaming::Name factory_Name = (CosNaming::Name) factory_key; - - // Try to get a reference to a Quoter Factory - CORBA::Object_var quoterFactoryObject_var = - quoterNamingContext_var->resolve (factory_Name, env_here); - - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - // We were able to get a reference to Quoter Factory. - - // Check if it is a valid Quoter Factory reference - if (CORBA::is_nil (quoterFactoryObject_var.in())) - { // throw a NoFactory exception - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - else - { - // Check if it is a valid Quoter Factory reference. - if (CORBA::is_nil (quoterFactoryObject_var.in ())) // throw a NoFactory exception. - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - Stock::Quoter_Factory_var factory_var = - Stock::Quoter_Factory::_narrow (quoterFactoryObject_var.in (), - env_here); - - // See if there is an exception, if yes then throw the NoFactory - // exception. - if (env_here.exception () != 0) // throw a NoFactory exception - { - _env_there.exception (new CosLifeCycle::NoFactory (factory_key)); - return 0; - } - - if (CORBA::is_nil (factory_var.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - "invalid factory.\n"), - 0); - - ACE_DEBUG ((LM_DEBUG, - "Factory reference OK.\n")); - - // Now retrieve the Quoter obj ref corresponding to the key. - Stock::Quoter_var quoter_var = - factory_var->create_quoter ("test", - _env_there); - ACE_DEBUG ((LM_DEBUG, - "Quoter Created\n")); - - if (CORBA::is_nil (quoter_var.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - "null quoter objref returned by factory\n"), - 0); - - ACE_DEBUG ((LM_DEBUG, - "Return a object reference to a new object.\n")); - - CORBA::Object_ptr object_ptr = - CORBA::Object::_duplicate ((CORBA::Object_ptr) quoter_var.ptr ()); - - return object_ptr; - } -} diff --git a/TAO/examples/Quoter/Generic_Factory_i.h b/TAO/examples/Quoter/Generic_Factory_i.h deleted file mode 100644 index 100b1a6c22e..00000000000 --- a/TAO/examples/Quoter/Generic_Factory_i.h +++ /dev/null @@ -1,52 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Generic_Factory_i.h -// -// = DESCRIPTION -// A LifeCycle Service Generic Factory for the Quoter example. -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "QuoterS.h" - - -#if !defined (QUOTER_GENERIC_FACTORY_IMPL_H) -#define QUOTER_GENERIC_FACTORY_IMPL_H - -class Quoter_Generic_Factory_i : public POA_Stock::Quoter_Generic_Factory -{ - // = TILE - // A CosLifeCycle conforming Generic Factory for the Quoter - // example. It uses the Naming Service to find a fitting factory. - -public: - Quoter_Generic_Factory_i (void); - ~Quoter_Generic_Factory_i (void); - - CORBA::Boolean supports (const CosLifeCycle::Key &factory_key, - CORBA::Environment &_env_there); - // Returns true if the Generic Factory is able to forward a request - // for creating an object described by the . - - CORBA::Object_ptr create_object (const CosLifeCycle::Key &factory_key, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_env_there); - // Returns an object reference to a newly created object, though the - // Generic Factory itself cannot create objects, it will forward the - // request to a more concrete Factory. - -private: - CosNaming::NamingContext_ptr get_naming_context (const CosLifeCycle::Key &factory_key, - CORBA::Environment &env_here, - CORBA::Environment &_env_there); - // a helper to get the proper naming context. - -}; - -#endif /* QUOTER_GENERIC_FACTORY_IMPL_H */ diff --git a/TAO/examples/Quoter/Makefile b/TAO/examples/Quoter/Makefile deleted file mode 100644 index f93b28904f7..00000000000 --- a/TAO/examples/Quoter/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -# $Id$ -# -# needed for the trading service stuff - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # TAO_ROOT - -TAO_IDLFLAGS=-I$(TAO_ROOT)/orbsvcs/orbsvcs - -BIN = client server Factory_Finder Generic_Factory - - -# The following lines tell the souce code that the trading -# service is available. - -ifdef trader - -CPPFLAGS += -DTRADER_AVAILABLE - -endif # trader - - -IDL_SRC = \ - QuoterC.cpp QuoterS.cpp - -CLIENT_SRCS = \ - client.cpp - -SERVER_SRCS = \ - server.cpp Quoter_i.cpp - -FACTORY_FINDER_SRCS = \ - Factory_Finder.cpp Factory_Finder_i.cpp - -GENERIC_FACTORY_SRCS = \ - Generic_Factory.cpp Generic_Factory_i.cpp - - -LSRC= \ - $(IDL_SRC) $(CLIENT_SRCS) $(SERVER_SRCS) \ - $(FACTORY_FINDER_SRCS) $(GENERIC_FACTORY_SRCS) - -COMMON_OBJS = QuoterC.o QuoterS.o -CLIENT_OBJS = $(COMMON_OBJS) client.o -SERVER_OBJS = $(COMMON_OBJS) server.o Quoter_i.o -FACTORY_FINDER_OBJS = $(COMMON_OBJS) Factory_Finder.o Factory_Finder_i.o -GENERIC_FACTORY_OBJS = $(COMMON_OBJS) Generic_Factory.o Generic_Factory_i.o - -ifdef trader - -LDLIBS = -lorbsvcs -lTAO - -else - -LDLIBS = -lorbsvcs -lTAO - -endif - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -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.local.GNU - -#### Local rules and variables... - -TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT)/orbsvcs/orbsvcs \ - -I$(TAO_ROOT) $(TSS_ORB_FLAG) - -realclean: clean - -/bin/rm -rf QuoterC.* QuoterS.* QuoterS_T.* - -$(IDL_SRC): Quoter.idl - $(TAO_ROOT)/TAO_IDL/tao_idl Quoter.idl -I$(TAO_ROOT)/orbsvcs/orbsvcs - -.PRECIOUS: $(IDL_SRC) - -client: $(addprefix $(VDIR),$(CLIENT_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -server: $(addprefix $(VDIR),$(SERVER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -Factory_Finder: $(addprefix $(VDIR),$(FACTORY_FINDER_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - -Generic_Factory: $(addprefix $(VDIR),$(GENERIC_FACTORY_OBJS)) - $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK) - - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/Quoter/Quoter.dsw b/TAO/examples/Quoter/Quoter.dsw deleted file mode 100644 index d76f398199f..00000000000 --- a/TAO/examples/Quoter/Quoter.dsw +++ /dev/null @@ -1,65 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "Quoter Client"=.\client.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Quoter Factory Finder"=.\Factory_Finder.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "Quoter Server"=.\server.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Project: "QuoterGenericFactory"=.\Generic_Factory.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/TAO/examples/Quoter/Quoter.idl b/TAO/examples/Quoter/Quoter.idl deleted file mode 100644 index dcc1f460e89..00000000000 --- a/TAO/examples/Quoter/Quoter.idl +++ /dev/null @@ -1,133 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// quoter.idl -// -// = DESCRIPTION -// Quoter example that illustrate the use of the global POA and -// the CosLifeCycle service. -// -// = AUTHOR -// Darrell Brunsch (brunsch@cs.wustl.edu) -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "CosLifeCycle.idl" - -module Stock -{ - exception Invalid_Stock {}; - exception Invalid_Quoter {}; - - interface Quoter : CosLifeCycle::LifeCycleObject - { - // = TITLE - // Access Stock information. - - long get_quote (in string stock_name) - raises (Invalid_Stock, Invalid_Quoter); - - // Returns the current stock value or throws and exception. - - // LifeCycleObject copy(in FactoryFinder there, - // in Criteria the_criteria) - // raises(NoFactory, NotCopyable, InvalidCriteria, CannotMeetCriteria); - // copies this object to a location "there" using the "the_criteria" - - // void move(in FactoryFinder there, - // in Criteria the_criteria) - // raises(NoFactory, NotMovable, InvalidCriteria, CannotMeetCriteria); - // moves this object to a location "there" using the "the_criteria" - - // void remove() - // raises(NotRemovable); - // removes/deletes this object - - }; - - interface Quoter_Factory - { - // = TITLE - // Creation of Quoter objects - - Quoter create_quoter (in string name) - raises (Invalid_Quoter); - // Returns a new Quoter selected by name e.g., "Dow Jones," - // "Reuters,", etc - }; - - - interface Quoter_Factory_Finder : CosLifeCycle::FactoryFinder - { - // = TITLE - // Wrapper for the CosLifeCycle FactoryFinder - // - // inherits: - // Factories find_factories(in Key factory_key) raises(NoFactory); - }; - - interface Quoter_Generic_Factory : CosLifeCycle::GenericFactory - { - // = TITLE - // Wrapper for the CosLifeCycle GenericFactory - // - // inherits: - // boolean supports(in Key k); - // Object create_object(in Key k, in Criteria the_criteria) - // raises (NoFactory, InvalidCriteria, CannotMeetCriteria); - }; - - interface Quoter_Life_Cycle_Service : CosLifeCycle::GenericFactory - { - // = TITLE - // Wrapper for the CosLifeCycle GenericFactory - // - // inherits: - // boolean supports(in Key k); - // Object create_object(in Key k, in Criteria the_criteria) - // raises (NoFactory, InvalidCriteria, CannotMeetCriteria); - - void register_factory (in string name, - in string location, - in string description, - in Object object); - // provide an method for registering factories with their properties - }; - - interface Criteria_Evaluator - { - // = TITLE - // Criteria Evaluator - // - // = DESCRIPTION - // Interface description for an evaluator of CosLifeCycle - // Criterias. It is mainly a wrapper, which should make - // access easier - // - typedef sequence SeqNamedValuePair; - - typedef CosLifeCycle::Criteria Criteria; - - exception NotAvailable { string reason; }; - // raised if the questioned configuration is not available - - SeqNamedValuePair getInitialization (); - // get the initialization - - string getFilter (); - // get a filter string - - SeqNamedValuePair getLogicalLocation (); - // get the logical location - - string getPreferences (); - // get the preferences, not implemented - - void setCriteria (in Criteria criteria); - // set the Criteria which is searched for keywords - }; -}; - diff --git a/TAO/examples/Quoter/Quoter_i.cpp b/TAO/examples/Quoter/Quoter_i.cpp deleted file mode 100644 index e3e5c488add..00000000000 --- a/TAO/examples/Quoter/Quoter_i.cpp +++ /dev/null @@ -1,348 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Quoter -// -// = FILENAME -// Quoter_i.cpp -// -// = AUTHOR -// Darrell Brunsch -// -// ============================================================================ - -#include "tao/corba.h" -#include "Quoter_i.h" - -ACE_RCSID(Quoter, Quoter_i, "$Id$") - -// Constructor. Create all the quoter factories. - -Quoter_Factory_i::Quoter_Factory_i (size_t num, PortableServer::POA_ptr poa_ptr) - : my_quoters_ (0), - quoter_num_ (num), - next_quoter_ (0) - -{ - { - CORBA::Environment env; - ACE_NEW(this->my_quoters_, Quoter_i *[num]); - - for (size_t i = 0; i < num; i++) - { - ACE_NEW(this->my_quoters_[i], Quoter_i("x", // name - 0, // don't use the LifeCycle_Service - poa_ptr)); // a reference to the poa */ - - - poa_ptr->activate_object (this->my_quoters_[i], env); - if (env.exception () != 0) - { - env.print_exception ("POA::activate"); - } - - // Stringify the object reference and print it out. - CORBA::String_var quoter_ior = - TAO_ORB_Core_instance()->orb()->object_to_string (this->my_quoters_[i]->_this(env), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - } - } - } - -} - - -// Destructor - -Quoter_Factory_i::~Quoter_Factory_i (void) -{ - for (size_t i = 0; i < this->quoter_num_; i++) - delete this->my_quoters_[i]; - delete [] this->my_quoters_; -} - - -// Return the quoter by the id . - -Stock::Quoter_ptr -Quoter_Factory_i::create_quoter (const char *name, - CORBA::Environment &env) -{ - ACE_UNUSED_ARG (name); - - this->next_quoter_ = (this->next_quoter_ + 1) % this->quoter_num_; - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Quoter %d Created\n", this->next_quoter_)); - - return my_quoters_[this->next_quoter_]->_this (env); -} - - -// Constructor - -Quoter_i::Quoter_i (const char *name, - const unsigned char use_LifeCycle_Service, - PortableServer::POA_ptr poa_ptr) - : use_LifeCycle_Service_ (use_LifeCycle_Service), - poa_var_ (PortableServer::POA::_duplicate (poa_ptr)) -{ - ACE_UNUSED_ARG (name); -} - - -// Destructor - -Quoter_i::~Quoter_i (void) -{ -} - - -// Returns the current quote for the stock . -// For now, just return 42. It was a good day on Wall Street. - -CORBA::Long -Quoter_i::get_quote (char const *stock_name, - class CORBA_Environment &env) -{ - ACE_UNUSED_ARG (stock_name); - ACE_UNUSED_ARG (env); - - return 42; -} - - -// Make a copy of this object - -CosLifeCycle::LifeCycleObject_ptr -Quoter_i::copy (CosLifeCycle::FactoryFinder_ptr there, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_env_there) -{ - TAO_TRY - { - // The name of the Generic Factory - CosLifeCycle::Key factoryKey (2); // max = 2 - - if (this->use_LifeCycle_Service_ == 1) - { - // use the LifeCycle Service - factoryKey.length(1); - factoryKey[0].id = CORBA::string_dup ("Life_Cycle_Service"); - } - else - { - // use a Generic Factory - factoryKey.length(2); - factoryKey[0].id = CORBA::string_dup ("IDL_Quoter"); - factoryKey[1].id = CORBA::string_dup ("Quoter_Generic_Factory"); - } - - // Find an appropriate factory over there. - CosLifeCycle::Factories_ptr factories_ptr = - there->find_factories (factoryKey, _env_there); - - // Only a NoFactory exception might have occured, so if it - // occured, then go immediately back. - if (_env_there.exception() != 0) - { - // _env_there contains already the exception. - ACE_ERROR ((LM_ERROR, - "Quoter::copy: Exception occured while trying to find a factory.\n")); - - return CosLifeCycle::LifeCycleObject::_nil(); - } - - // Now it is known that there is at least one factory. - Stock::Quoter_var quoter_var; - - for (u_int i = 0; i < factories_ptr->length (); i++) - { - // Get the first object reference to a factory. - CORBA::Object_ptr generic_FactoryObj_ptr = (*factories_ptr)[i]; - - // Narrow it to a Quoter Factory. - CosLifeCycle::GenericFactory_var generic_Factory_var = - CosLifeCycle::GenericFactory::_narrow (generic_FactoryObj_ptr, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (CORBA::is_nil (generic_Factory_var.in ())) - { - ACE_ERROR ((LM_ERROR, - "Quoter::copy: Narrow failed. Generic Factory is not valid.\n")); - return CosLifeCycle::LifeCycleObject::_nil(); - } - - CosLifeCycle::Key genericFactoryName (1); // max = 1 - genericFactoryName.length(1); - genericFactoryName[0].id = CORBA::string_dup ("Quoter_Factory"); - - CosLifeCycle::Criteria criteria(1); - criteria.length (1); - criteria[0].name = CORBA::string_dup ("filter"); - criteria[0].value <<= CORBA::string_dup ("name=='Quoter_Generic_Factory'"); - - CORBA::Object_var quoterObject_var = - generic_Factory_var->create_object (genericFactoryName, - criteria, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - quoter_var = Stock::Quoter::_narrow (quoterObject_var.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (CORBA::is_nil (quoter_var.in ())) - { - // If we had already our last chance, then give up. - if (i == factories_ptr->length ()) - { - _env_there.exception (new CosLifeCycle::NoFactory (factoryKey)); - ACE_ERROR ((LM_ERROR, - "Quoter::copy: Last factory did not work. \n" - "No more factories are available. I give up.\n")); - return CosLifeCycle::LifeCycleObject::_nil(); - } - else - { - ACE_ERROR ((LM_ERROR, - "Quoter::copy: Factory did not create the Quoter properly.\n")); - // Tell what's wrong and try the next factory. - } - } - else - // if succeeded in creating a new Quoter over there, then stop trying - break; - } - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Quoter copied\n")); - - CosLifeCycle::LifeCycleObject_ptr lifeCycleObject_ptr = - CosLifeCycle::LifeCycleObject::_duplicate ((CosLifeCycle::LifeCycleObject_ptr) quoter_var.in()); - // Duplicate and eturn an object reference to the newly created Quoter. - return lifeCycleObject_ptr; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - // Report a NoFactory exception back to the caller - _env_there.exception (new CosLifeCycle::NoFactory ()); - return CosLifeCycle::LifeCycleObject::_nil(); - } - TAO_ENDTRY; - return CosLifeCycle::LifeCycleObject::_nil(); -} - - -// Move this object using and - -void -Quoter_i::move (CosLifeCycle::FactoryFinder_ptr there, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_env_there) -{ - ACE_DEBUG ((LM_DEBUG,"Quoter_i::move: being called\n")); - - TAO_TRY - { - // We need to have a Factory Finder - if (CORBA::is_nil (there)) - { - ACE_ERROR ((LM_ERROR, - "Quoter_i::move: No Factory Finder, don't know how to go on.\n")); - _env_there.exception (new CosLifeCycle::NoFactory ()); - return; - } - - // We need to have access to the POA - if (CORBA::is_nil (this->poa_var_.in())) - { - ACE_ERROR ((LM_ERROR, - "Quoter_i::move: No access to the POA. Cannot move.\n")); - _env_there.exception (new CosLifeCycle::NotMovable ()); - return; - } - - // Create a new Quoter over there - CosLifeCycle::LifeCycleObject_var lifeCycleObject_var = - this->copy (there, the_criteria, _env_there); - - if (_env_there.exception () != 0) - { - ACE_ERROR ((LM_ERROR, - "Quoter_i::move: Exception while creating new Quoter.\n")); - // The exception is already contained in the right environment - return; - } - - if (CORBA::is_nil (lifeCycleObject_var.in ())) - { - ACE_ERROR ((LM_ERROR, - "Quoter_i::move: Created Quoter is not valid.\n")); - _env_there.exception (new CosLifeCycle::NoFactory ()); - return; - } - - // Set the POA, so that the requests will be forwarded to the new location - - // new location - CORBA::Object_var forward_to_var = CORBA::Object::_duplicate ((CORBA::Object_ptr) lifeCycleObject_var.in()); - - if (!CORBA::is_nil (forward_to_var.in ())) - { - PortableServer::ObjectId_var oid = this->poa_var_->servant_to_id (this, TAO_TRY_ENV); - TAO_CHECK_ENV; - - PortableServer::Servant servant = this->poa_var_->_servant (); - - if (servant == 0) - { - ACE_ERROR ((LM_ERROR,"Quoter_i::move: Could not find servant.\n")); - _env_there.exception (new CosLifeCycle::NotMovable()); - return; - } - - void *ptr = servant->_downcast ("IDL:PortableServer/POA:1.0"); - POA_PortableServer::POA *poa = (POA_PortableServer::POA *) ptr; - TAO_POA *tao_poa = ACE_dynamic_cast (TAO_POA *, poa); - - tao_poa->forward_object (oid.in (), - forward_to_var.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - else - { - ACE_ERROR ((LM_ERROR,"Quoter_i::move: forward_to refenence is nil.\n")); - _env_there.exception (new CosLifeCycle::NotMovable()); - return; - } - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("SYS_EX"); - return; - } - TAO_ENDTRY; -} - - -// Removes the object. Once we shut down the ORB we can call it a day. - -void -Quoter_i::remove (CORBA::Environment &_tao_environment) -{ - ACE_UNUSED_ARG (_tao_environment); - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "I have been asked to shut down.\n")); - - TAO_ORB_Core_instance ()->orb ()->shutdown (); -} diff --git a/TAO/examples/Quoter/Quoter_i.h b/TAO/examples/Quoter/Quoter_i.h deleted file mode 100644 index aa835cad233..00000000000 --- a/TAO/examples/Quoter/Quoter_i.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Quoter -// -// = FILENAME -// Quoter_i.h -// -// = AUTHOR -// Darrell Brunsch -// -// ============================================================================ - -#if !defined (QUOTER_IMPL_H) -#define QUOTER_IMPL_H - -#include "QuoterS.h" - -// Forward declaration. -class Quoter_i; - -// Typedefs. -typedef Quoter_i *Quoter_i_ptr; -typedef Quoter_i_ptr Quoter_i_ref; - -class Quoter_i: public POA_Stock::Quoter -{ - // = TITLE - // Quoter_i - // - // = DESCRIPTION - // Actual Quoter Implementation class. Returns a quoter for a given stock - // and provides an example for the lifecycle functionality. -public: - Quoter_i (const char *obj_name = "", - const unsigned char use_LifeCycle_Service = 0, - PortableServer::POA_ptr poa_ptr = 0); - // Constructor (use_LifeCycle_Service is 1 if the LifeCycle_Service should be used - // instead of the Quoter Generic_Factory - - ~Quoter_i (void); - // Destructor - - virtual CORBA::Long get_quote (const char *stock_name, - CORBA::Environment &env); - // Returns the current quote for the stock - - // = Lifecycle methods - - virtual CosLifeCycle::LifeCycleObject_ptr copy (CosLifeCycle::FactoryFinder_ptr there, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_tao_environment); - // Make a copy of this object - - virtual void move (CosLifeCycle::FactoryFinder_ptr there, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_tao_environment); - // Move this object using - - virtual void remove (CORBA::Environment &_tao_environment); - // Removes the object. - -private: - unsigned char use_LifeCycle_Service_; - // This flag defines if a Generic Factory is used (0 by default) or - // the more sophisticated LifeCycle Service (1) - - PortableServer::POA_var poa_var_; - // Keep a reference to the POA for use by the move operation -}; - -// Forward declaration. -class Quoter_Factory_i; - -typedef Quoter_Factory_i *Quoter_Factory_i_ptr; - -class Quoter_Factory_i: public POA_Stock::Quoter_Factory -{ - // = TITLE - // Quoter_Factory_i - // - // = DESCRIPTION - // Factory object returning the quoter_impl objrefs. -public: - Quoter_Factory_i (size_t num, PortableServer::POA_ptr poa_ptr); - // Constructor that takes in the number of quoters in the pool. - - ~Quoter_Factory_i (void); - // Destructor. - - virtual Stock::Quoter_ptr create_quoter (const char *name, - CORBA::Environment &env); - // Return the quoter by the id . - -private: - Quoter_i **my_quoters_; - // Array of quoters. - - size_t quoter_num_; - // Number of quoters. - - size_t next_quoter_; - // Which quoter to return next. -}; - -#endif /* QUOTER_IMPL_H */ diff --git a/TAO/examples/Quoter/README b/TAO/examples/Quoter/README deleted file mode 100644 index c4206b99ec8..00000000000 --- a/TAO/examples/Quoter/README +++ /dev/null @@ -1,122 +0,0 @@ -// $Id$ - -Here is a Stock Quoter example that features the use of the TAO IDL -compiler, the different types of configuration settings (global vs -tss, etc), and the Life Cycle Service. - -For your convenience, the run_test.btm has been provided. It is a -batch file that runs under 4NT. Work is in progress for a regular -batch file that performs the same action. We'll probably get it -working on other platforms as soon as it is completed. - ----------------------------------------- - -DOCUMENTATION FOR THE EXAMPLE -============================= - -Context: The Quoter example serves several tests, the first is the test - of several multithreading policies and the second is showing the - use of the Life Cycle Service as it is defined in the - CORBA Common Object Services specification. - -Life Cycle Service use-case: - -several processes exist: server, - Factory_Finder, - Generic_Factory, - Life_Cycle_Service - client - -several object exist: Quoter, - Quoter_Factory, - Quoter_Factory_Finder, - Quoter_Generic_Factory, - Quoter_Life_Cycle_Service - -server: The server process contains two kind of objects: Quoter and - Quoter_Factory's. A Quoter is a very simple Object supporting - only one method. The focus is not on a sophisticated object - but on showing how policies work. - The object Quoter_Factory serves as a factory for Quoters. - -Factory_Finder: The COS spec. introduces the concept of a Factory Finder - which is capable to find proper factories. The Naming - Service is used as lookup-mechanism. A reference to - the Factory_Finder is passed as parameter of any copy - or move request. - -Generic_Factory: This process supports the object Quoter_Generic_Factory (QGF). - The QGF supports the GenericFactory interface introduced by - the COS specification. It forwards create_object requests to - more concrete factories, e.g. the Quoter_Factory. The - concrete factories are found via the Naming Service. - -Life_Cycle_Service: This process is very similar to the Generic_Factory - proocess. It also supports an Object, which conforms to - the GenericFactory interface. The Quoter_Life_Cycle_Service - conforms to the idea of a life cycle service as it is - introduced by the COS specification. The Quoter_Life_Cycle_Service - is neutral against the Quoter example. It is not dependent - on it. Only interfaces defined by the CosLifeCycle.idl file - are used. The implemenation uses the COS Trading Service - manage registered Generic Factories, as the Quoter_Generic_Factory - for example. A lookup on the Trading Service is performed - when a create_object request is invoked on it. - -client: Creates one Quoter through using the Quoter_Factory_Finder. After that - the copy method of Quoter is invoked to copy the Quoter to an other - location, which is in this example the same location, but that does - not matter so much. The concept is important in this example. - - The objects are invoked in the following order: - client->Quoter->Quoter_Factory_Finder->Quoter_Life_Cycle_Service - ->Quoter_Generic_Factory->Quoter_Factory - - - -!!!!Note: -To make use of the move operation you need to use the -sm switch on -the perl script. This activates in the server multiple objects, which is needed for -moving. - -RUNNING THE EXAMPLE -=================== - -run_test - -Name Server ------------ - -Found under TAO\Orbsvcs, this is run for connections from the -server, client, and factory finder. Plans to move this into the -server are under consideration. - -To run with the default settings, use - -run_tests /ns - -Quoter Server -------------- - -To run with the default settings, use - -run_tests /sv - - -Quoter Client -------------- - -To run with the default settings, use - -run_tests /cl - -Quoter Factory Finder ---------------------- - -To run with the default settings, use - -run_tests /ff - -Quoter example -------------- - diff --git a/TAO/examples/Quoter/client.conf b/TAO/examples/Quoter/client.conf deleted file mode 100644 index 6eee002c688..00000000000 --- a/TAO/examples/Quoter/client.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources tss" -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 -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/Quoter/client.cpp b/TAO/examples/Quoter/client.cpp deleted file mode 100644 index 052c81f9b94..00000000000 --- a/TAO/examples/Quoter/client.cpp +++ /dev/null @@ -1,415 +0,0 @@ -// $Id$ - -#include "ace/Read_Buffer.h" -#include "orbsvcs/CosNamingC.h" -#include "client.h" - -ACE_RCSID(Quoter, client, "$Id$") - -Quoter_Task::Quoter_Task (int argc, char **argv) - : argc_ (argc), argv_ (argv) -{ - // Nothing -} - -int -Quoter_Task::svc (void) -{ - if (this->quoter_client.init (this->argc_, this->argv_) == -1) - return 1; - else - return this->quoter_client.run (); -} - -// Constructor. -Quoter_Client::Quoter_Client (void) - : quoter_factory_key_ (0), - quoter_key_ (ACE_OS::strdup ("key0")), - shutdown_ (0), - quoter_var_ (Stock::Quoter::_nil ()), - useLifeCycleService_(0) // use the Generic Factory -{ - // Nothing -} - -// Parses the command line arguments and returns an error status. - -int -Quoter_Client::parse_args (void) -{ - ACE_Get_Opt get_opts (argc_, argv_, "n:dlx"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'n': // multiple threads - // ignore it, it was handled already - break; - case 'd': // debug flag - TAO_debug_level++; - break; - case 'l': - this->useLifeCycleService_ = 1; - break; - case 'x': - this->shutdown_ = 1; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - " [-m]" - " [-d]" - " [-l] # use the lifecycle service instead of the generic factory" - " [-x]" - " [-s]" - "\n", - this->argv_ [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -int -Quoter_Client::run (void) -{ - CORBA::Long q = this->quoter_var_->get_quote ("ACE Hardware", this->env_); - if (this->env_.exception () != 0) - { - this->env_.print_exception ("with get_quote."); - this->env_.clear(); - return -1; - } - ACE_DEBUG ((LM_DEBUG, "ACE Hardware = %i\n", q)); - - // Copy the Quoter - - CosLifeCycle::Criteria criteria; - CORBA::Object_var quoterObj_var = - this->quoter_var_->copy (factory_Finder_var_.in (), - criteria, - this->env_); - - if (this->env_.exception () != 0) - { - this->env_.print_exception ("with copy."); - this->env_.clear(); - return -1; - } - - if (CORBA::is_nil (quoterObj_var.in())) - ACE_ERROR_RETURN ((LM_ERROR, - "Quoter_Client::run: Copied Object pointer is nil!"), - -1); - - // Narrow it to the actual Quoter interface - - Stock::Quoter_var copied_quoter_var = - Stock::Quoter::_narrow (quoterObj_var.in (), - this->env_); - - if (this->env_.exception () != 0) - { - this->env_.print_exception ("with narrow."); - this->env_.clear(); - return -1; - } - if (CORBA::is_nil (copied_quoter_var.in())) - ACE_ERROR_RETURN ((LM_ERROR, - "Quoter_Client::run: Copied Quoter is nil!"), - -1); - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Copied object.\n")); - - q = 0; - q = copied_quoter_var->get_quote ("ACE Hardware", this->env_); - if (this->env_.exception () != 0) - { - this->env_.print_exception ("with get_quote on copied object."); - this->env_.clear(); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, "Copied object: ACE Hardware = %i\n", q)); - - // Move the Quoter - this->quoter_var_->move (factory_Finder_var_.in (), - criteria, - this->env_); - if (this->env_.exception () != 0) - { - this->env_.print_exception ("with move."); - this->env_.clear(); - return -1; - } - - // Caution, the object reference stays the same - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Moved object\n")); - - q = 0; - q = this->quoter_var_->get_quote ("ACE Hardware", this->env_); - if (this->env_.exception () != 0) - { - this->env_.print_exception ("with get_quote on moved object."); - this->env_.clear(); - return -1; - } - - ACE_DEBUG ((LM_DEBUG, "Moved object: ACE Hardware = %i\n", q)); - return 0; -} - -Quoter_Client::~Quoter_Client (void) -{ - // Free resources - // Close the ior files - if (this->quoter_factory_key_ != 0) - ACE_OS::free (this->quoter_factory_key_); - if (this->quoter_key_ != 0) - ACE_OS::free (this->quoter_key_); -} - -int -Quoter_Client::init_naming_service (void) -{ - TAO_TRY - { - // Resolve the Naming Service - CORBA::Object_var naming_obj = - orb_->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to resolve the Name Service.\n"), - -1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Have a proper reference to the Naming Service.\n")); - - - CosNaming::Name quoterFactoryFinderName (2); - quoterFactoryFinderName.length (2); - quoterFactoryFinderName[0].id = CORBA::string_dup ("IDL_Quoter"); - quoterFactoryFinderName[1].id = CORBA::string_dup ("Quoter_Factory_Finder"); - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Trying to resolve the Quoter Factory Finder!\n")); - - CORBA::Object_var factory_obj = - naming_context->resolve (quoterFactoryFinderName, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Resolved the Quoter Factory Finder!\n")); - - factory_Finder_var_ = - Stock::Quoter_Factory_Finder::_narrow (factory_obj.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (CORBA::is_nil (factory_Finder_var_.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " could not resolve quoter factory in Naming service <%s>\n"), - -1); - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Have a proper reference to the Quoter Factory Finder.\n")); - - // The name of the Quoter Generic Factory - CosLifeCycle::Key factoryName (2); // max = 2 - - if (this->useLifeCycleService_ == 1) - { - // use the LifeCycle Service - factoryName.length(1); - factoryName[0].id = CORBA::string_dup ("Life_Cycle_Service"); - } - else - { - // use a Generic Factory - factoryName.length(2); - factoryName[0].id = CORBA::string_dup ("IDL_Quoter"); - factoryName[1].id = CORBA::string_dup ("Quoter_Generic_Factory"); - } - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Trying to get a reference of a factory.\n")); - - // Find an appropriate factory over there. - CosLifeCycle::Factories_ptr factories_ptr = - factory_Finder_var_->find_factories (factoryName, TAO_TRY_ENV); - - if (factories_ptr == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Did not get a Generic Quoter Factory.\n"), - -1); - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Got a proper reference of a factory.\n")); - - - // Get the first object reference to a factory. - CORBA::Object_var quoter_FactoryObj_var; - - if (factories_ptr->length () >= 1) - { - // everything is ok, at least one factory is there - quoter_FactoryObj_var = (*factories_ptr)[0]; - } - else - { - ACE_ERROR_RETURN ((LM_ERROR, - "No Factory received.\n"), - -1); - } - - // Narrow it to a Quoter Generic Factory - generic_Factory_var_ = CosLifeCycle::GenericFactory::_narrow (quoter_FactoryObj_var.in (), TAO_TRY_ENV); - - TAO_CHECK_ENV; - - if (CORBA::is_nil (this->generic_Factory_var_.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - "Factory received is not valid.\n"), - -1); - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Have a proper reference to the Quoter Factory.\n")); - } - TAO_CATCH (CosLifeCycle::NoFactory, excpt) - { - TAO_TRY_ENV.print_exception ("Quoter::init_naming_service: No Factory available!"); - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Quoter::init_naming_service"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - -int -Quoter_Client::init (int argc, char **argv) -{ - this->argc_ = argc; - int i; - - // Make a copy of argv since ORB_init will change it. - this->argv_ = new char *[argc]; - - for (i = 0; i < argc; i++) - this->argv_[i] = argv[i]; - - TAO_TRY - { - // Retrieve the ORB. - this->orb_ = CORBA::ORB_init (this->argc_, - this->argv_, - "internet", - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Parse command line and verify parameters. - if (this->parse_args () == -1) - return -1; - - // deprecated - //if (this->use_naming_service_) - //{ - int naming_result = this->init_naming_service (); - if (naming_result == -1) - return naming_result; - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Factory received OK\n")); - - // using the Quoter Generic Factory - CosLifeCycle::Key genericFactoryName (1); // max = 1 - genericFactoryName.length(1); - genericFactoryName[0].id = CORBA::string_dup ("Quoter_Factory"); - // The final factory - - CosLifeCycle::Criteria criteria(1); - criteria.length (1); - criteria[0].name = CORBA::string_dup ("filter"); - criteria[0].value <<= CORBA::string_dup ("name=='Quoter_Generic_Factory'"); - // used to find the last generic factory in the chain - - CORBA::Object_var quoterObject_var = - this->generic_Factory_var_->create_object (genericFactoryName, - criteria, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->quoter_var_ = Stock::Quoter::_narrow (quoterObject_var.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, "Quoter Created\n")); - - if (CORBA::is_nil (this->quoter_var_.in())) - { - ACE_ERROR_RETURN ((LM_ERROR, - "null quoter objref returned by factory\n"), - -1); - } - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Quoter::init"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - - -// This function runs the test. - -int -main (int argc, char **argv) -{ - ACE_Thread_Manager thr_mgr; - - ACE_DEBUG ((LM_DEBUG,"\n\tQuoter: client\n\n")); - - int i; - int threads = 1; - - for (i = 0; i < argc; i++) - if (ACE_OS::strcmp (argv[i], "-n") == 0) - threads = ACE_OS::atoi(argv[i + 1]); - - Quoter_Task **clients = new Quoter_Task*[threads]; - - for (i = 0; i < threads; i++) - clients[i] = new Quoter_Task (argc, argv); - - - for (i = 0; i < threads; i++) - clients[i]->activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, ACE_DEFAULT_THREAD_PRIORITY); - - int result = ACE_Thread_Manager::instance ()->wait (); - - for (i = 0; i < threads; i++) - delete clients[i]; - - delete [] clients; - - return result; -} - diff --git a/TAO/examples/Quoter/client.dsp b/TAO/examples/Quoter/client.dsp deleted file mode 100644 index 5e3dee9617c..00000000000 --- a/TAO/examples/Quoter/client.dsp +++ /dev/null @@ -1,219 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Quoter Client" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Quoter 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="Quoter Client - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Quoter Client - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "Quoter 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)" == "Quoter 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /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 orbsvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ELSEIF "$(CFG)" == "Quoter 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" -# 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ENDIF - -# Begin Target - -# Name "Quoter Client - Win32 Release" -# Name "Quoter Client - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp" -# Begin Source File - -SOURCE=.\client.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h" -# Begin Source File - -SOURCE=.\client.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.h -# End Source File -# End Group -# Begin Group "Inline Files" - -# PROP Default_Filter "i" -# Begin Source File - -SOURCE=.\QuoterC.i -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.i -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Quoter.idl - -!IF "$(CFG)" == "Quoter Client - Win32 Release" - -USERDEP__QUOTE="..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "Quoter Client - Win32 Debug" - -USERDEP__QUOTE="..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/Quoter/client.h b/TAO/examples/Quoter/client.h deleted file mode 100644 index 1e37d188b79..00000000000 --- a/TAO/examples/Quoter/client.h +++ /dev/null @@ -1,112 +0,0 @@ -// -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Quoter -// -// = FILENAME -// quoter_client.h -// -// = DESCRIPTION -// @@ Write this -// -// = AUTHORS -// Darrell Brunsch -// -// ============================================================================ - -#if !defined (QUOTER_CLIENT_H) -#define QUOTER_CLIENT_H - -#include "ace/Get_Opt.h" -#include "ace/Task.h" -#include "ace/Thread_Manager.h" -#include "tao/corba.h" -#include "QuoterC.h" -#include "orbsvcs/CosLifeCycleC.h" - -class Quoter_Client -{ - // = TITLE - // @@ Write this - // - // = DESCRIPTION - // @@ Write this -public: - // = Constructor and destructor. - Quoter_Client (void); - ~Quoter_Client (void); - - int run (void); - // Execute client example code. - - int init (int argc, char **argv); - // Initialize the client communication endpoint with server. - -private: - int init_naming_service (void); - // Function to initialize the naming service. - - int parse_args (void); - // Parses the arguments passed on the command line. - - int argc_; - // # of arguments on the command line. - - char **argv_; - // arguments from command line. - - char *quoter_factory_key_; - // Key of factory obj ref. - - char *quoter_key_; - // Key of the obj ref to be retrieved via the factory. - - int shutdown_; - // Flag to tell server to shutdown. - - Stock::Quoter_Factory_Finder_var factory_Finder_var_; - // Pointer to a factory finder - - Stock::Quoter_Factory_var factory_var_; - // Pointer to a factory - - CosLifeCycle::GenericFactory_var generic_Factory_var_; - // Pointer to a generic factory - - CORBA::Environment env_; - // Environment variable. - - Stock::Quoter_var quoter_var_; - // Quoter obj ref. - - CORBA::ORB_var orb_; - // Remember our orb. - - int useLifeCycleService_; - // Flag to tell if the a Generic Factory is going to be used - // or the LifeCycle Service (0 means Generic Factory, 1 means LCS) -}; - -class Quoter_Task : public ACE_Task -{ - // = TITLE - // @@ Write this - // - // = DESCRIPTION - // @@ Write this -public: - Quoter_Task (int argc, char **argv); - - virtual int svc (void); - -private: - Quoter_Client quoter_client; - int argc_; - char **argv_; - -}; - -#endif /* QUOTER_CLIENT_H */ diff --git a/TAO/examples/Quoter/run_test.pl b/TAO/examples/Quoter/run_test.pl deleted file mode 100755 index 42d1be9df40..00000000000 --- a/TAO/examples/Quoter/run_test.pl +++ /dev/null @@ -1,243 +0,0 @@ -# $Id$ -# -*- perl -*- -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# This is a Perl script that runs the client and all the other servers that -# are needed. - -unshift @INC, '../../../bin'; -require Process; -#require Uniqueid; - -$nsiorfile = "theior"; - -# number of threads to use for multithreaded clients or servers - -$num_threads = 4; - -# amount of delay between running the servers - -$sleeptime = 2; - -# variables for parameters - -#$nsport = 20000 + uniqueid (); -$nsport = 0; -$clport = 0; -$lcport = 0; -$svport = 0; -$ffport = 0; -$gfport = 0; - -# other variables - -$n = 1; -$leave = 1; -$ior = 0; -$done = ""; -$debug = ""; -$cm = ""; -$sm = ""; -$other = ""; -$c_conf = "client.conf"; -$s_conf = "server.conf"; - -sub read_nsior -{ - open (FH, "<$nsiorfile"); - - read (FH, $ior, 255); - - close (FH); -} - -sub name_server -{ - my $args = "$other -ORBport $nsport -ORBobjrefstyle url -o $nsiorfile"; - my $prog = "..$DIR_SEPARATOR..$DIR_SEPARATOR"."orbsvcs$DIR_SEPARATOR". - "Naming_Service$DIR_SEPARATOR". - "Naming_Service$Process::EXE_EXT"; - - $NS = Process::Create ($prog, $args); -} - -sub lifecycle_server -{ - my $args = "$other -ORBport $lcport -ORBobjrefstyle url -ORBnameserviceior ". - "$ior -ORBsvcconf svc.conf"; - my $prog = "..$DIR_SEPARATOR..$DIR_SEPARATOR"."orbsvcs$DIR_SEPARATOR". - "LifeCycle_Service$DIR_SEPARATOR". - "LifeCycle_Service$Process::EXE_EXT"; - - $LC = Process::Create ($prog, $args); -} - -sub server -{ - my $args = "$other $debug $sm -ORBport $svport -ORBobjrefstyle url ". - "-ORBnameserviceior $ior -ORBsvcconf $s_conf"; - - $SV = Process::Create ("server$Process::EXE_EXT", $args); -} - -sub factory_finder -{ - my $args = "$other -ORBport $ffport -ORBobjrefstyle url -ORBnameserviceior ". - "$ior -ORBsvcconf svc.conf"; - - $FF = Process::Create ("Factory_Finder".$Process::EXE_EXT, $args); -} - -sub generic_factory -{ - my $args = "$other -l -ORBport $gfport -ORBobjrefstyle url -ORBnameserviceior ". - "$ior -ORBsvcconf svc.conf"; - - $GF = Process::Create ("Generic_Factory".$Process::EXE_EXT, $args); -} - -sub client -{ - my $exe = "client$Process::EXE_EXT $other -l $debug $cm -ORBobjrefstyle url ". - "-ORBport $clport -ORBnameserviceior $ior -ORBsvcconf $c_conf"; - - for ($j = 0; $j < $n; $j++) - { - system ($exe); - } -} - -# Parse the arguments - -for ($i = 0; $i <= $#ARGV; $i++) -{ - SWITCH: - { - if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") - { - print "run_test [-n num] [-leave] [-onewin] [-d] [-h] [-nt] [-cm] [-sm] [-ns|sv|ff|cl|gf]\n"; - print "\n"; - print "-n num -- runs the client num times\n"; - print "-leave -- leaves the servers running and their windows open\n"; - print "-onewin -- keeps all tests in one window on NT\n"; - print "-d -- runs each in debug mode\n"; - print "-h -- prints this information\n"; - print "-nt num -- number of threads in the client (twice for server)\n"; - print " make sure this is before any -cm or -sm\n"; - print "-cm -- use more than one thread in the client\n"; - print "-sm -- use more than one thread in the server\n"; - print "-ns -sv -ff -gf -cl -- runs only one of the executables\n"; - exit; - } - if ($ARGV[$i] eq "-n") - { - $n = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - if ($ARGV[$i] eq "-nt") - { - $num_threads = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - if ($ARGV[$i] eq "-d") - { - $debug = $debug." -d"; - last SWITCH; - } - if ($ARGV[$i] eq "-cm") - { - $cm = "-n ".$num_threads; - last SWITCH; - } - if ($ARGV[$i] eq "-sm") - { - $sm = "-n ".($num_threads * 3); - last SWITCH; - } - if ($ARGV[$i] eq "-leave") - { - $leave = 0; - last SWITCH; - } - if ($ARGV[$i] eq "-ns") - { - name_server (); - exit; - } - if ($ARGV[$i] eq "-sv") - { - read_nsior (); - server (); - exit; - } - if ($ARGV[$i] eq "-ff") - { - read_nsior (); - factory_finder (); - exit; - } - if ($ARGV[$i] eq "-gf") - { - read_nsior (); - generic_factory (); - exit; - } - if ($ARGV[$i] eq "-cl") - { - read_nsior (); - client (); - exit; - } - if ($ARGV[$i] eq "-customconf") #secret flag from testall.pl - { - #use a different set of *.conf files - $c_conf = "c.conf"; - $s_conf = "s.conf"; - last SWITCH; - } - if ($ARGV[$i] eq "-onewin") - { - if ($^O eq "MSWin32") - { - $Process::newwindow = "no"; - } - last SWITCH; - } - - $other = $other." ".$ARGV[$i]; - } -} - -name_server (); -sleep $sleeptime; -read_nsior (); - -lifecycle_server (); -sleep $sleeptime; - -server (); -sleep $sleeptime; - -factory_finder (); -sleep $sleeptime; - -generic_factory (); -sleep $sleeptime; - -client (); - -if ($leave) -{ - $GF->Kill (); - $FF->Kill (); - $SV->Kill (); - $LC->Kill (); - $NS->Kill (); -} - - -unlink $nsiorfile; diff --git a/TAO/examples/Quoter/server.conf b/TAO/examples/Quoter/server.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/Quoter/server.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -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 -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/Quoter/server.cpp b/TAO/examples/Quoter/server.cpp deleted file mode 100644 index f92de0c4743..00000000000 --- a/TAO/examples/Quoter/server.cpp +++ /dev/null @@ -1,271 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = FILENAME -// Quoter_Server.cpp -// -// = DESCRIPTION -// The Server for the Quoter Factory -// -// = AUTHOR -// Darrell Brunsch (brunsch@cs.wustl.edu) -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "server.h" - -ACE_RCSID(Quoter, server, "$Id$") - -Quoter_Server::Quoter_Server (void) - : num_of_objs_ (1), - quoter_Factory_i_ptr_ (0) -{ -} - -int -Quoter_Server::parse_args (void) -{ - ACE_Get_Opt get_opts (argc_, argv_, "dn:"); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case 'd': // debug flag. - TAO_debug_level++; - break; - case 'n': // number of Quoter objects we export - this->num_of_objs_ = ACE_OS::atoi (get_opts.optarg); - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - " [-d]" - " [-n] " - "\n", - argv_ [0]), - 1); - } - - - // Indicates successful parsing of command line. - return 0; -} - -int -Quoter_Server::init (int argc, - char* argv[], - CORBA::Environment& env) -{ - if (this->orb_manager_.init (argc, - argv, - env) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "init"), - -1); - - // Copy them, because parse_args expects them there. - this->argc_ = argc; - int i; - - // Make a copy of argv since ORB_init will change it. - this->argv_ = new char *[argc]; - - for (i = 0; i < argc; i++) - this->argv_[i] = argv[i]; - - this->parse_args (); - - // Obtain the RootPOA. - CORBA::Object_var obj = this->orb_manager_.orb()->resolve_initial_references ("RootPOA"); - - // Get the POA_var object from Object_var. - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::_narrow"); - return -1; - } - - // Get the POAManager of the RootPOA. - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (env); - - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POA::the_POAManager"); - return -1; - } - - ACE_NEW_RETURN (quoter_Factory_i_ptr_, - Quoter_Factory_i(this->num_of_objs_, - root_poa.in()), - 0); - - PortableServer::ObjectId_var quoter_Factory_oid = - PortableServer::string_to_ObjectId ("Quoter_Factory"); - - root_poa->activate_object_with_id (quoter_Factory_oid.in (), - quoter_Factory_i_ptr_, - env); - - // Get Object reference for first_foo_impl object. - Stock::Quoter_Factory_var quoter_Factory_var = quoter_Factory_i_ptr_->_this (env); - if (env.exception () != 0) - { - env.print_exception ("Quoter_Factory::_this"); - return -1; - } - - // Stringyfy the object reference and print it out. - CORBA::String_var quoter_Factory_ior = - this->orb_manager_.orb()->object_to_string (quoter_Factory_var.in (), env); - - if (env.exception () != 0) - { - env.print_exception ("CORBA::ORB::object_to_string"); - return -1; - } - - poa_manager->activate (env); - if (env.exception () != 0) - { - env.print_exception ("PortableServer::POAManager::activate"); - return -1; - } - - - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", - quoter_Factory_ior.in ())); - - return this->init_naming_service (env); -} - -// Initialization of Naming Service and register IDL_Quoter Context -// and Quoter_factory object. - -int -Quoter_Server::init_naming_service (CORBA::Environment& env) -{ - TAO_TRY - { - CORBA::ORB_ptr orb_ptr = TAO_ORB_Core_instance()->orb(); - TAO_CHECK_ENV; - - CORBA::Object_var naming_obj = - orb_ptr->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to resolve the Name Service.\n"), - -1); - - namingContext_var_ = - CosNaming::NamingContext::_narrow (naming_obj.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; - - - CosNaming::Name quoterContextName (1); - quoterContextName.length (1); - quoterContextName[0].id = CORBA::string_dup ("IDL_Quoter"); - CosNaming::NamingContext_var quoterNameContext = - namingContext_var_->bind_new_context (quoterContextName, env); - TAO_CHECK_ENV_RETURN (env, -1); - - //Register the quoter_factory name with the IDL_quoter Naming - //Context... - CosNaming::Name quoterFactoryContextName (1); - quoterFactoryContextName.length (1); - quoterFactoryContextName[0].id = CORBA::string_dup ("Quoter_Factory"); - quoterNameContext->bind (quoterFactoryContextName, - quoter_Factory_i_ptr_->_this(env), - env); - TAO_CHECK_ENV_RETURN (env, -1); - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Quoter::init_naming_service"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - -int -Quoter_Server::run (CORBA::Environment& env) -{ - if (orb_manager_.orb()->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "run"), - -1); - return 0; -} - -Quoter_Server::~Quoter_Server (void) -{ - TAO_TRY - { - // Unbind quoter factory context and name. - CosNaming::Name factory_name (2); - factory_name.length (2); - factory_name[0].id = CORBA::string_dup ("IDL_Quoter"); - factory_name[1].id = CORBA::string_dup ("Quoter_Factory"); - this->namingContext_var_->unbind (factory_name,TAO_TRY_ENV); - TAO_CHECK_ENV; - factory_name.length (1); - this->namingContext_var_->unbind (factory_name,TAO_TRY_ENV); - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - } - TAO_ENDTRY; -} - -int -main (int argc, char *argv[]) -{ - Quoter_Server quoter_server; - - ACE_DEBUG ((LM_DEBUG, - "\n\tQuoter:SERVER \n \n")); - TAO_TRY - { - if (quoter_server.init (argc, argv, TAO_TRY_ENV) == -1) - return 1; - else - { - quoter_server.run (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; - return 0; -} diff --git a/TAO/examples/Quoter/server.dsp b/TAO/examples/Quoter/server.dsp deleted file mode 100644 index 222e15f2ac7..00000000000 --- a/TAO/examples/Quoter/server.dsp +++ /dev/null @@ -1,228 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Quoter Server" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=Quoter 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="Quoter Server - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "Quoter Server - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "Quoter 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)" == "Quoter 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /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 orbsvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" - -!ELSEIF "$(CFG)" == "Quoter 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 "..\..\\" /I "..\..\orbsvcs" /I "..\..\orbsvcs\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c -# SUBTRACT CPP /YX -# 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 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\tao" /libpath:"..\..\orbsvcs\orbsvcs" -# SUBTRACT LINK32 /nodefaultlib - -!ENDIF - -# Begin Target - -# Name "Quoter Server - Win32 Release" -# Name "Quoter Server - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp" -# Begin Source File - -SOURCE=.\Quoter_i.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.cpp -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.cpp -# End Source File -# Begin Source File - -SOURCE=.\server.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h" -# Begin Source File - -SOURCE=.\Quoter_i.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterC.h -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.h -# End Source File -# Begin Source File - -SOURCE=.\server.h -# End Source File -# End Group -# Begin Group "Inline Files" - -# PROP Default_Filter "i" -# Begin Source File - -SOURCE=.\QuoterC.i -# End Source File -# Begin Source File - -SOURCE=.\QuoterS.i -# End Source File -# End Group -# Begin Group "IDL Files" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\Quoter.idl - -!IF "$(CFG)" == "Quoter Server - Win32 Release" - -USERDEP__QUOTE="..\..\..\bin\Release\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ELSEIF "$(CFG)" == "Quoter Server - Win32 Debug" - -USERDEP__QUOTE="..\..\..\bin\tao_idl.exe" -# Begin Custom Build - Invoking TAO_IDL compiler -InputPath=.\Quoter.idl -InputName=Quoter - -BuildCmds= \ - tao_idl $(InputName).idl -I../../orbsvcs/orbsvcs - -"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) - -"$(InputName)S_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" - $(BuildCmds) -# End Custom Build - -!ENDIF - -# End Source File -# End Group -# End Target -# End Project diff --git a/TAO/examples/Quoter/server.h b/TAO/examples/Quoter/server.h deleted file mode 100644 index 51af5cfa68a..00000000000 --- a/TAO/examples/Quoter/server.h +++ /dev/null @@ -1,83 +0,0 @@ -// $Id$ -// -*- C++ -*- - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Quoter -// -// = FILENAME -// quoter_server.h -// -// = DESCRIPTION -// Implements the Quoter_Server class which handles the initialization of -// the quoter implementations. -// -// = AUTHORS -// Darrell Brunsch (brunsch@cs.wustl.edu) -// -// ============================================================================ - -#if !defined (QUOTER_SERVER_H) -#define QUOTER_SERVER_H - -#include "ace/Get_Opt.h" -#include "ace/Log_Msg.h" -#include "orbsvcs/CosNamingC.h" -#include "orbsvcs/Naming/Naming_Utils.h" -#include "tao/TAO.h" -#include "Quoter_i.h" -#include "QuoterC.h" - -class Quoter_Server -{ - // =TITLE - // Defines a Quoter Server class that implements the functionality - // of a server process as an object. - // - // =DESCRIPTION - // The interface is quite simple. A server program has to call - // init to initialize the quoter_server's state and then call run - // to run the orb. -public: - - Quoter_Server (void); - // Default constructor - - ~Quoter_Server (void); - // Destructor - - int init (int argc, char *argv[], CORBA::Environment& env); - // Initialize the Quoter_Server state - parsing arguments and ... - - int run (CORBA::Environment& env); - // Run the orb - -private: - int parse_args (void); - // Parses the commandline arguments. - - int init_naming_service (CORBA::Environment &env); - // Initializes the name server and registers cubit factory with the - // name server. - - int num_of_objs_; - // Number of quoter objects we export. - - CosNaming::NamingContext_var namingContext_var_; - // Naming Service context - - Quoter_Factory_i *quoter_Factory_i_ptr_; - // Instantiate the Quoter Factory - - TAO_ORB_Manager orb_manager_; - // The ORB manager. - - int argc_; - // Number of commandline arguments. - - char **argv_; - // commandline arguments. -}; - -#endif /* QUOTER_SERVER_H */ diff --git a/TAO/examples/Quoter/svc.conf b/TAO/examples/Quoter/svc.conf deleted file mode 100644 index 43c6a486c92..00000000000 --- a/TAO/examples/Quoter/svc.conf +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ -# -# This file contains a sample ACE_Service_Config configuration -# file specifying the strategy factories utilized by an application -# using TAO. There are currently only two possible factories: -# Client_Strategy_Factory and Server_Strategy_Factory. These names -# must be used as the second argument to their corresponding line, -# because that's what the ORB uses to find the desired factory. -# -# Note that there are two unordinary characteristics of the way *this* -# file is set up: -# - both client and server strategies are specified in the same -# file, which would only make sense for co-located clients & servers -# - both of the factories are actually sourced out of libTAO.so -# (TAO.DLL on Win32), and they would normally be in a separate -# dll from the TAO ORB Core. -# -# The options which can be passed to the Resource Factory are: -# -# -ORBresources -# where can be 'global' to specify globally-held resources, -# or 'tss' to specify thread-specific resources. -# -# The options which can be passed to the Client are: -# -# -# The options which can be passed to the Server are: -# -# -ORBconcurrency -# where can be 'thread-per-connection' to specify -# use of the ACE_Threaded_Strategy concurrency strategy, -# or 'reactive' to specify use of the ACE_Reactive_Strategy -# concurrency strategy. -# -# -ORBthreadflags -# specifies the default thread flags to use, where is a -# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP, -# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid -# on every platform. -# -# -ORBdemuxstrategy -# where can be one of 'dynamic', 'linear', 'active', or 'user', -# and specifies the type of object lookup strategy used internally. -# -ORBtablesize -# specifies the size of the object table -# -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 -ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/Quoter/testall.pl b/TAO/examples/Quoter/testall.pl deleted file mode 100755 index 5f25258cae3..00000000000 --- a/TAO/examples/Quoter/testall.pl +++ /dev/null @@ -1,206 +0,0 @@ -# $Id$ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# This is a Perl script that runs the client and all the other servers that -# are needed - -$n = 1; -$leave = 0; -$ior = 0; -$done = ""; -$debug = ""; -$other = ""; -$runonce = 0; - -# configuration variables - -$resource = "global"; -$poalock = "thread"; -$poa = "global"; -$concurrency = "reactive"; -$mult = "no"; -$c_resource = "global"; -$c_mult = "no"; - -for ($i = 0; $i <= $#ARGV; $i++) -{ - SWITCH: - { - if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") - { - print "testall\n"; - print " -resource {global, tss}\n"; - print " -poalock {thread, null}\n"; - print " -poa {global, tss}\n"; - print " -concurrency {reactive, thread-per-connection}\n"; - print " -mult {yes, no}\n"; - print " -c_resource {global, tss}\n"; - print " -c_mult {yes, no}\n"; - exit; - } - if ($ARGV[$i] eq "-resource") - { - $runonce = 1; - $resource = $ARGV[$i + 1]; - $i++; - } - if ($ARGV[$i] eq "-poalock") - { - $runonce = 1; - $poalock = $ARGV[$i + 1]; - $i++; - } - if ($ARGV[$i] eq "-poa") - { - $runonce = 1; - $poa = $ARGV[$i + 1]; - $i++; - } - if ($ARGV[$i] eq "-concurrency") - { - $runonce = 1; - $concurrency = $ARGV[$i + 1]; - $i++; - } - if ($ARGV[$i] eq "-mult") - { - $runonce = 1; - $mult = $ARGV[$i + 1]; - $i++; - } - if ($ARGV[$i] eq "-c_resource") - { - $runonce = 1; - $c_resource = $ARGV[$i + 1]; - $i++; - } - if ($ARGV[$i] eq "-c_mult") - { - $runonce = 1; - $c_mult = $ARGV[$i + 1]; - $i++; - } - } -} - -if ($runonce > 0) -{ - do_work (); -} -else -{ - pick_resource (); -} - -sub pick_resource -{ - $resource = "global"; - pick_poalock (); - $resource = "tss"; - pick_poalock (); -} - -sub pick_poalock -{ - $poalock = "thread"; - pick_poa (); - $poalock = "null"; - pick_poa (); -} - -sub pick_poa -{ - $poa = "global"; - pick_concurrency (); - - if ($resource ne "global") - { - $poa = "tss"; - pick_concurrency (); - } -} - -sub pick_concurrency -{ - $concurrency = "reactive"; - pick_mult_orbs (); - $concurrency = "thread-per-connection"; - pick_mult_orbs (); -} - -sub pick_mult_orbs -{ - if ($resource ne "global") - { - $mult = "yes"; - pick_c_resource (); - } - $mult = "no"; - pick_c_resource (); -} - -sub pick_c_resource -{ - $c_resource = "global"; - pick_c_mult_orbs (); - $c_resource = "tss"; - pick_c_mult_orbs (); -} - -sub pick_c_mult_orbs -{ - if ($c_resource ne "global") - { - $c_mult = "yes"; - do_work (); - } - $c_mult = "no"; - do_work (); -} - -sub make_s_conf -{ - open (FH, ">s.conf"); - - select (FH); - - print "dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() \"-ORBresources ".$resource." -ORBpoa $poa\"\n"; - print "dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory()\n"; - print "dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() \"-ORBconcurrency $concurrency -ORBpoalock ".$poalock." -ORBdemuxstrategy dynamic -ORBtablesize 128\"\n"; - - select (STDOUT); - close (FH); -} - -sub make_c_conf -{ - open (FH, ">c.conf"); - - select (FH); - - print "dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() \"-ORBresources $c_resource\"\n"; - print "dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory()\n"; - print "dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() \"-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128\"\n"; - - select (STDOUT); - close (FH); -} - - -sub do_work -{ - make_s_conf (); - make_c_conf (); - - print "-------------------------------------------\n"; - print "Server: $resource $poalock $poa $concurrency $mult\n"; - print "Client: $c_resource $c_mult\n"; - - if ($mult eq "yes") { $mt = "-sm"; } else { $mt = ""; } - if ($c_mult eq "yes") { $cmt = "-cm"; } else { $cmt = ""; } - - system ("perl run_test.pl $other $mt $cmt -onewin -customconf"); -} - diff --git a/TAO/examples/README b/TAO/examples/README deleted file mode 100644 index 58f84522538..00000000000 --- a/TAO/examples/README +++ /dev/null @@ -1,22 +0,0 @@ -This directory contains a number of example applications that -illustrate how to program with standard CORBA using TAO. The -individual directories contain READMEs on how to run the following -examples: - - . POA - - Contains various small examples of POA features based on - the OMG POA specification. - - . Quoter - - Illustrates how to use the Global POA options with multiple - threads. This example also shows how to use the Lifecycle - service. - - . Simple - - Contains a number of very simple examples, which also - illustrate how to write canonical Orbix/VisiBroker/OmniORB - examples in TAO using standard CORBA features rather than - proprietary ORB features. diff --git a/TAO/examples/Simple/Makefile b/TAO/examples/Simple/Makefile deleted file mode 100644 index 1ad77b57aff..00000000000 --- a/TAO/examples/Simple/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -DIRS = bank \ - chat \ - echo \ - grid \ - time - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - diff --git a/TAO/examples/Simple/README b/TAO/examples/Simple/README deleted file mode 100644 index d753ece9ea5..00000000000 --- a/TAO/examples/Simple/README +++ /dev/null @@ -1,28 +0,0 @@ -$Id$ - -This directory contains a number of very simple tests, which also -illustrate how to write canonical Orbix/VisiBroker/OmniORB examples in -TAO using standard CORBA features rather than proprietary ORB -features. The individual directories contain READMEs on how to run -the following tests: - - . bank - - This directory implements the canonical VisiBroker - test. - - . chat - - This directory implements an ORBacus test. - - . echo - - This directory implements the canonical omniORB test. - - . grid - - This directory implements the canonical Orbix test. - - . time - - This directory implements a simple time/date test. diff --git a/TAO/examples/Simple/bank/AccountManager_i.cpp b/TAO/examples/Simple/bank/AccountManager_i.cpp deleted file mode 100644 index 6a28b463130..00000000000 --- a/TAO/examples/Simple/bank/AccountManager_i.cpp +++ /dev/null @@ -1,154 +0,0 @@ -// $Id$ - -#include "AccountManager_i.h" -#include "Account_i.h" - -ACE_RCSID(AccountManager, AccountManager_i, "$Id$") - -// Constructor - -AccountManager_i::AccountManager_i (void) -{ - // no-op -} - -// Destructor - -AccountManager_i::~AccountManager_i (void) -{ - // no-op -} - -// Set the ORB pointer - -void -AccountManager_i::orb (CORBA::ORB_ptr o) -{ - this->orb_ = CORBA::ORB::_duplicate (o); -} - -void -AccountManager_i::poa (PortableServer::POA_ptr poa) -{ - this->poa_ = poa; -} - -void -AccountManager_i::set_orb_manager (TAO_ORB_Manager *orb_manager) -{ - this->orb_manager_ = orb_manager; -} - -// Open an account for the given name. - -Bank::Account_ptr -AccountManager_i::open (const char *name, - CORBA::Float initial_balance, - CORBA::Environment &_env) -{ - Account_i *result = 0; - - // If name is already in the map, will assign to the - // appropriate value. - TAO_TRY - { - if (hash_map_.find (name, result) != 0) - { - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) Opening a new Account for %s with balance %f\n", - name, - initial_balance)); - - ACE_NEW_THROW_RETURN (result, - Account_i (name, - initial_balance), - CORBA::NO_MEMORY (CORBA::COMPLETED_NO), - Bank::Account::_nil ()); - - // Enter the new Account in the hash map. If the - // fails throw an UNKNOWN exception. may be valid - // but since it is not properly bound, it's behaviour may be - // off, so delete it to be safe. - - if (hash_map_.bind (name, result) == -1) - { - delete result; - TAO_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_NO), - Bank::Account::_nil ()); - } - } - else - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, - "\nAccount already exists for %s\n", - name)); - // Generate an IOR for the result object and register it with - // the POA. In case the object already exists then the - // previously generated IOR is returned. - - } - TAO_CATCHANY - { - _env.print_exception("Exception in OPen"); - } - TAO_ENDTRY; - - return result->_this (); -} - -// Shutdown. - -void -AccountManager_i::close (Bank::Account_ptr account, - CORBA::Environment &TAO_TRY_ENV) -{ - TAO_TRY - { - CORBA::String_var name = - CORBA::string_dup (account->name (TAO_TRY_ENV)); - - TAO_CHECK_ENV; - - if (hash_map_.unbind ((const char *) name) == -1) - { - if (TAO_debug_level > 0) - ACE_DEBUG((LM_DEBUG, - "Unable to close account\n")); - } - else if (TAO_debug_level > 0) - ACE_DEBUG((LM_DEBUG, - "Closing Account for %s\n", - (char *) name)); - - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Unable to close Account\n"); - } - TAO_ENDTRY; -} - -void -AccountManager_i::shutdown (CORBA::Environment &) -{ - ACE_DEBUG ((LM_DEBUG, - "%s\n", - "AccountManager_i is shutting down")); - - // Instruct the ORB to shutdown. - this->orb_->shutdown (); -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Manager ; -template class ACE_Hash_Map_Iterator ; -template class ACE_Hash_Map_Entry; -template class ACE_Hash_Map_Reverse_Iterator; -template class ACE_Hash_Map_Iterator_Base; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Hash_Map_Manager ; -#pragma instantiate ACE_Hash_Map_Iterator ; -#pragma instantiate ACE_Hash_Map_Entry; -#pragma instantiate ACE_Hash_Map_Reverse_Iterator; -#pragma instantiate ACE_Hash_Map_Iterator_Base; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/Simple/bank/AccountManager_i.h b/TAO/examples/Simple/bank/AccountManager_i.h deleted file mode 100644 index 93e23917cb0..00000000000 --- a/TAO/examples/Simple/bank/AccountManager_i.h +++ /dev/null @@ -1,89 +0,0 @@ -// -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Simple/Bank -// -// = FILENAME -// AccountManager_i.h -// -// = DESCRIPTION -// This class implements the Bank::AccountManager IDL interface. -// -// = AUTHOR -// Vishal Kachroo -// -// ============================================================================ - -#if !defined (ACCOUNTMANAGER_I_H) -#define ACCOUNTMANAGER_I_H - -#include "ace/ACE.h" -#include "ace/OS.h" -#include "tao/TAO.h" -#include "BankS.h" -#include "Account_i.h" - -class AccountManager_i : public POA_Bank::AccountManager -{ - // = TITLE - // Account Manager object implementation. - // - // = DESCRIPTION - // Implementation of a simple object that has two methods, one - // that returns an Account Interface and the other that shuts - // down the server. -public: - // = Initialization and termination methods. - AccountManager_i (void); - // Constructor. - - ~AccountManager_i (void); - // Destructor. - - virtual Bank::Account_ptr open (const char *name, - CORBA::Float initial_balance, - CORBA::Environment &_env); - // Return the Account interface with the given name from the server. - // Put the initial balance specified in the new account. - - virtual void close (Bank::Account_ptr, - CORBA::Environment &env); - // Close the given account. - - virtual void shutdown (CORBA::Environment &env); - // Shutdown the server. - - void orb (CORBA::ORB_ptr o); - // Set the ORB pointer. - - void poa (PortableServer::POA_ptr poa); - // Set the POA pointer. - - void set_orb_manager (TAO_ORB_Manager *orb_manager); - // Set the ORB Manager. - - TAO_ORB_Manager *orb_manager_; - // The ORB manager. - -private: - CORBA::ORB_var orb_; - // ORB pointer. - - PortableServer::POA_ptr poa_; - // POA pointer. - - //TAO_ORB_Manager orb_manager_; - // The ORB manager. - - ACE_Hash_Map_Manager hash_map_; - // Calls to will create a new instance of and - // bind into the hash map manager if is unique, else it will - // return a previously bound entry. -}; - -#endif /* ACCOUNTMANAGER_I_H */ diff --git a/TAO/examples/Simple/bank/Account_i.cpp b/TAO/examples/Simple/bank/Account_i.cpp deleted file mode 100644 index b35ed2ad370..00000000000 --- a/TAO/examples/Simple/bank/Account_i.cpp +++ /dev/null @@ -1,73 +0,0 @@ -// $Id$ - -#include "Account_i.h" - -ACE_RCSID(Bank, Account_i, "$Id$") - -// Constructor - -Account_i::Account_i (void) -{ - // no-op -} - -Account_i::Account_i (const char *name, - CORBA::Float balance) - - : name_ (CORBA::string_dup (name)), - balance_ (balance) -{ -} - -// Destructor - -Account_i::~Account_i (void) -{ - CORBA::string_free (name_); -} - -// Set the ORB pointer. - -void -Account_i::orb (CORBA::ORB_ptr o) -{ - this->orb_ = CORBA::ORB::_duplicate (o); -} - -// Return the current balance on the server. - -CORBA::Float -Account_i::balance (CORBA::Environment &) -{ - return balance_; -} - -void -Account_i::deposit (CORBA::Float deposit, - CORBA::Environment &env) -{ - balance_ += deposit; -} - -void -Account_i::withdraw (CORBA::Float withdrawl, - CORBA::Environment &env) -{ - if (balance_ >= withdrawl) - balance_ -= withdrawl; - else - env.exception (new Bank::Account::Overdraft("Exception from server::Overdraft")); -} - -char * -Account_i::name (CORBA::Environment &env) -{ - return CORBA::string_dup (name_); -} - -void -Account_i::name (const char *name, - CORBA::Environment &env) -{ - name_ = CORBA::string_dup (name); -} diff --git a/TAO/examples/Simple/bank/Account_i.h b/TAO/examples/Simple/bank/Account_i.h deleted file mode 100644 index e6b6049c6a7..00000000000 --- a/TAO/examples/Simple/bank/Account_i.h +++ /dev/null @@ -1,77 +0,0 @@ -// -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Simple/Bank -// -// = FILENAME -// Account_i.h -// -// = DESCRIPTION -// This class implements the Bank IDL interface. -// -// = AUTHOR -// Vishal Kachroo -// -// ============================================================================ - -#if !defined (ACCOUNT_I_H) -#define ACCOUNT_I_H - -#include "BankS.h" - -class Account_i : public POA_Bank::Account -{ - // = TITLE - // Bank object implementation. - // - // = DESCRIPTION - // Implementation of a simple object that has two methods, one - // that return the current balance on the server and the other - // that shuts down the server. -public: - // = Initialization and termination methods. - Account_i (void); - // Constructor. - - Account_i (const char *, CORBA::Float); - // Constructor. - - ~Account_i (void); - // Destructor. - - virtual CORBA::Float balance (CORBA::Environment &env); - // Get the current balance in the account. - - virtual char *name (CORBA::Environment &env); - // Get the name of the holder. - - virtual void name (const char *name, - CORBA::Environment &env); - // Set the name of the holder. - - virtual void deposit (CORBA::Float, - CORBA::Environment &env); - // Deposit money in the account. - - virtual void withdraw (CORBA::Float, - CORBA::Environment &env); - // Withdraw money in the account. - - void orb (CORBA::ORB_ptr o); - // Set the ORB pointer. - -private: - CORBA::ORB_var orb_; - // ORB pointer. - - CORBA::Float balance_; - // balance for this account - - CORBA::String_var name_; - // Name of the holder. -}; - -#endif /* ACCOUNT_I_H */ diff --git a/TAO/examples/Simple/bank/Bank.idl b/TAO/examples/Simple/bank/Bank.idl deleted file mode 100644 index 3cac2150a85..00000000000 --- a/TAO/examples/Simple/bank/Bank.idl +++ /dev/null @@ -1,59 +0,0 @@ -// -*- C++ -*- -// $Id$ - -module Bank -{ - // = TITLE - // This module has two interfaces. One represents a bank Account and - // the other is a factory to create the Account Objects. - - interface Account - { - // = TITLE - // This interface represents an account with operations to check - // balance, deposit and withdraw. - - exception Overdraft - { - // = TITLE - // This exception is raised if the client tries to - // withdraw more money than the current balance. - - string reason; - }; - - readonly attribute float balance; - // Attribute to obtain the current . - - void deposit (in float amount); - // Add to this account. - - void withdraw (in float amount) raises (Overdraft); - // Withdraw of this account. - }; - - interface AccountManager - { - // = TITLE - // This interface is a factory for the objects. It has - // operations to create s and to delete them. - - Account open (in string name, - in float initial_balance); - // Returns the associated with . If this is the - // first time has been seen, the server will create the - // account. Otherwise, the server will return back an object - // reference to a previously created account. - - void close (in Account account); - // Close down the account and release its resources if it's the - // last reference to the . Once this call is made it - // is no longer valid to access the . - - void shutdown (); - // This operation shuts down the server. - }; -}; diff --git a/TAO/examples/Simple/bank/Client_i.cpp b/TAO/examples/Simple/bank/Client_i.cpp deleted file mode 100644 index 355017ff26a..00000000000 --- a/TAO/examples/Simple/bank/Client_i.cpp +++ /dev/null @@ -1,378 +0,0 @@ -// $Id$ - -#include "ace/Get_Opt.h" -#include "ace/Read_Buffer.h" -#include "Client_i.h" - -ACE_RCSID(Bank, Client_i, "$Id$") - -// Constructor. - -Client_i::Client_i (void) - : ior_ (0), - loop_count_ (10), - shutdown_ (0), - server1_ (), - server2_ () -{ -} - -// Reads the Server factory ior from a file - -int -Client_i::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); - char *data = ior_buffer.read (); - - if (data == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Unable to read ior: %p\n"), - -1); - - this->ior_ = ACE_OS::strdup (data); - ior_buffer.alloc ()->free (data); - - ACE_OS::close (f_handle); - - return 0; -} - -// Parses the command line arguments and returns an error status. - -int -Client_i::parse_args (void) -{ - ACE_Get_Opt get_opts (argc_, argv_, "dn:b:y:z:f:xk:"); - int c; - int result; - - while ((c = get_opts ()) != -1) - // ACE_DEBUG((LM_DEBUG,"bal =1%c",c - // )); - switch (c) - { - case 'd': // debug flag - TAO_debug_level++; - break; - case 'n': // loop count - this->loop_count_ = (u_int) ACE_OS::atoi (get_opts.optarg); - break; - case 'b': // initial balance - this->initial_balance_ = (float) ACE_OS::atoi (get_opts.optarg); - ACE_DEBUG((LM_DEBUG,"bal = %f", - initial_balance_)); - break; - case 'y': // Name of one account holder. - this->account_holder_name1_ = ACE_OS::strdup (get_opts.optarg); - break; - case 'z': // Name of another account holder. - this->account_holder_name2_ = ACE_OS::strdup (get_opts.optarg); - break; - case 'k': // ior provide on command line - this->ior_ = ACE_OS::strdup (get_opts.optarg); - break; - case 'f': // read the IOR from the file. - 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 'x': - this->shutdown_ = 1; - break; - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - " [-d]" - " [-b Initial Balance]" - " [-y First Account Holder's Name]" - " [-z Second Account Holder's Name]" - " [-n loopcount]" - " [-f ior-file]" - " [-k ior]" - " [-x]" - "\n", - this->argv_ [0]), - -1); - } - - // Indicates successful parsing of command line. - return 0; -} - -void -Client_i::deposit (Bank::Account_ptr server, - CORBA::Float deposit_amount, - CORBA::Environment &env) -{ - server->deposit (deposit_amount, - this->env_); -} - -void -Client_i::withdraw (Bank::Account_ptr server, - CORBA::Float withdrawl_amount) -{ - TAO_TRY - { - server->withdraw (withdrawl_amount, - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - Bank::Account::Overdraft_ptr except = - Bank::Account::Overdraft::_narrow - (TAO_TRY_ENV.exception ()); - - ACE_DEBUG ((LM_DEBUG, - "Exception : %s", - (char *) except->reason)); - } - TAO_ENDTRY; -} - -Bank::Account_ptr -Client_i::open (const char *name, - CORBA::Float initial_balance, - CORBA::Environment &env) -{ - return this->accountmanager_server_->open (name, - initial_balance, - env); -} - -void -Client_i::close (Bank::Account_ptr account, - CORBA::Environment &env) -{ - this->accountmanager_server_->close (account, - env); -} - - -// This method tests if opening an account with the same name returns -// the same IOR. - -void -Client_i::test_for_same_name (CORBA::Environment &env) -{ - this->server1_ = this->open (this->account_holder_name1_, - this->initial_balance_, - this->env_); - this->server2_ = this->open (this->account_holder_name1_, - this->initial_balance_, - this->env_); - ACE_ASSERT (server1_->_is_equivalent ((CORBA::Object *) server2_.in ()) != 0); - - this->close (server1_.in (), - this->env_); - this->close (server2_.in (), - this->env_); -} - -// This method tests if opening an account with different names -// returns a different IOR. -void -Client_i::test_for_different_name (CORBA::Environment &env) -{ - this->server1_ = this->open (this->account_holder_name1_, - this->initial_balance_, - this->env_); - this->server2_ = this->open (this->account_holder_name2_, - this->initial_balance_, - this->env_); - - ACE_ASSERT (server1_->_is_equivalent ((CORBA::Object *)server2_.in ()) == 0); - - this->close (server1_.in (), - this->env_); - this->close (server2_.in (), - this->env_); -} - -// This method tests the Overdraft exception. - -void -Client_i::test_for_overdraft (CORBA::Environment &env) -{ - this->server1_ = this->open (this->account_holder_name1_, - this->initial_balance_, - this->env_); - this->deposit (server1_.in (), - 100.00, - this->env_); - this->withdraw (server1_.in (), - server1_->balance(this->env_) + 20); - this->close (server1_.in (), - this->env_); -} - - -CORBA::Float -Client_i::check_accounts (void) -{ - TAO_TRY - { - this->test_for_same_name (this->env_); - TAO_CHECK_ENV; - this->test_for_different_name (this->env_); - TAO_CHECK_ENV; - this->test_for_overdraft (this->env_); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - if (this->env_.exception () != 0) - this->env_.print_exception ("From Client_i::check_accounts()"); - } - TAO_ENDTRY; - - return 0; -} - -// Execute client example code. - -int -Client_i::run (void) -{ - u_int i; - - this->check_accounts (); - - TAO_TRY - { - if (this->shutdown_) - this->accountmanager_server_->shutdown (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - ACE_DEBUG ((LM_DEBUG, - "Unable to shut down the server\n")); - } - TAO_ENDTRY; - -return 0; - -} - -Client_i::~Client_i (void) -{ - ACE_OS::free (this->ior_); -} - -int -Client_i::obtain_initial_references (void) -{ - TAO_TRY - { - // Initialize the naming services. - if (my_name_client_.init (orb_.in ()) != 0) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize " - "the TAO_Naming_Client. \n"), - -1); - - CosNaming::Name account_manager_name (1); - account_manager_name.length (1); - account_manager_name[0].id = - CORBA::string_dup ("AccountManager"); - - CORBA::Object_var account_manager_obj = - my_name_client_->resolve (account_manager_name, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - this->accountmanager_server_ = - Bank::AccountManager::_narrow (account_manager_obj.in (), - TAO_TRY_ENV); - TAO_CHECK_ENV; - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Bank::obtain_initial_references"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - -// This method uses the IOR if specified on the command line or in a -// file, else it uses the Naming Service - -int -Client_i::init (int argc, char **argv) -{ - this->argc_ = argc; - this->argv_ = argv; - - TAO_TRY - { - // Retrieve the ORB. - this->orb_ = CORBA::ORB_init (this->argc_, - this->argv_, - 0, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - // Parse command line and verify parameters. - if (this->parse_args () == -1) - return -1; - - if (this->ior_) - { - // An ior is specified for the client through a commandline - // option or a file. - - CORBA::Object_var server_object = - this->orb_->string_to_object (this->ior_, - TAO_TRY_ENV); - TAO_CHECK_ENV; - - if (CORBA::is_nil (server_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - "invalid ior <%s>\n", - this->ior_), - -1); - - this->accountmanager_server_ = - Bank::AccountManager::_narrow (server_object.in (), - TAO_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, - "Using the IOR provided\n")); - TAO_CHECK_ENV; - } - else - { // No IOR specified. Use the Naming Service - ACE_DEBUG((LM_DEBUG, - "Using the Naming Service\n")); - - this->obtain_initial_references (); - TAO_CHECK_ENV; - } - } - TAO_CATCHANY - { - TAO_TRY_ENV.print_exception ("Client_i::init"); - return -1; - } - TAO_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simple/bank/Client_i.h b/TAO/examples/Simple/bank/Client_i.h deleted file mode 100644 index e06369f955f..00000000000 --- a/TAO/examples/Simple/bank/Client_i.h +++ /dev/null @@ -1,132 +0,0 @@ -// -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Simple -// -// = FILENAME -// Client_i.h -// -// = DESCRIPTION -// This class implements a simple CORBA client that accesses a Bank -// server. -// -// = AUTHORS -// Vishal Kachroo -// -// ============================================================================ - -#include "BankC.h" -#include "orbsvcs/Naming/Naming_Utils.h" - -class Client_i -{ - // = TITLE - // Simple Client implementation. - // - // = DESCRIPTION - // Class wrapper for a client that gets the server IOR and then - // makes several calls to the server before optionally shutting - // it down. -public: - // = Initialization and termination methods. - Client_i (void); - // Constructor. - - ~Client_i (void); - // Destructor. - - int run (void); - // Execute client example code. - - int init (int argc, char *argv[]); - // Initialize the client communication endpoint with server. - -private: - int read_ior (char *filename); - // Function to read the server IOR from a file. - - int parse_args (void); - // Parses the arguments passed on the command line. - - CORBA::Float check_accounts (void); - // Checks the various operations of the account. - - void deposit (Bank::Account_ptr server, - CORBA::Float deposit_amount, - CORBA::Environment &env); - // Deposit in the account. - - void withdraw (Bank::Account_ptr server, - CORBA::Float withdrawl_amount); - // Withdraw from the account. - - Bank::Account_ptr open (const char *name, - CORBA::Float initial_balance, - CORBA::Environment &env); - // Open a new account with the given name and initial balance. - - - void close (Bank::Account_ptr account, - CORBA::Environment &env); - // Close a given Account. - - void test_for_different_name (CORBA::Environment &env); - // Tests if accounts opened with different names return a different account reference. - - void test_for_same_name (CORBA::Environment &env); - // Tests if accounts opened with the same name return the same object reference. - - void test_for_overdraft (CORBA::Environment &env); - // Tests for the Overdraft Exception when the client tries to - // withdraw more money than the current balance. - - int obtain_initial_references (void); - // To initialize the naming service and get a ptr to server. - - int argc_; - // # of arguments on the command line. - - char **argv_; - // arguments from command line. - - char *ior_; - // IOR of the obj ref of the server. - - u_int loop_count_; - // Number of times to invoke the