From 5c1001ce4f585836e1f83c28d1df89aee42fb743 Mon Sep 17 00:00:00 2001 From: levine Date: Tue, 20 Oct 1998 02:34:57 +0000 Subject: changed include protection from #if !defined to ifndef, and added #pragma once, if possible --- TAO/Benchmark/Marshal_Test/Orbix/marshal.h | 114 ++-- .../Marshal_Test/Orbix/orbix_marshal_client.h | 52 +- .../Marshal_Test/Orbix/orbix_marshal_impl.h | 140 ++--- .../Marshal_Test/Orbix/orbix_marshal_server.h | 8 +- TAO/Benchmark/Marshal_Test/TAO/marshalC.h | 108 ++-- TAO/Benchmark/Marshal_Test/TAO/marshalS.h | 96 ++-- .../Marshal_Test/TAO/tao_marshal_client.h | 52 +- TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h | 166 +++--- .../Marshal_Test/TAO/tao_marshal_server.h | 8 +- .../Marshal_Test/VisiBroker/visi_marshal_client.h | 54 +- .../Marshal_Test/VisiBroker/visi_marshal_impl.h | 116 ++-- .../Marshal_Test/VisiBroker/visi_marshal_server.h | 8 +- TAO/Benchmark/benchmark/driver.h | 10 +- TAO/Benchmark/benchmark/marshal_options.h | 29 +- TAO/Benchmark/benchmark/marshal_proxy.h | 6 +- TAO/Benchmark/benchmark/marshal_results.h | 10 +- TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h | 12 +- TAO/IIOP/test/Orbeline/client/Profile_Timer.h | 12 +- TAO/IIOP/test/Orbix/base_server/cubit.h | 97 ++-- TAO/IIOP/test/Orbix/base_server/cubitC.h | 588 ++++++++++----------- TAO/IIOP/test/Orbix/base_server/cubitS.h | 172 +++--- TAO/IIOP/test/Orbix/base_server/tpr.h | 7 +- TAO/IIOP/test/Orbix/client/cubit.h | 97 ++-- TAO/IIOP/test/Orbix/factory_client/cubit.h | 164 +++--- TAO/IIOP/test/Orbix/tpool/cubit.h | 97 ++-- TAO/IIOP/test/Orbix/tpool/tpool.h | 5 + TAO/IIOP/test/Orbix/tpr/cubit.h | 97 ++-- TAO/IIOP/test/Orbix/tpr/cubitC.h | 588 ++++++++++----------- TAO/IIOP/test/Orbix/tpr/cubitS.h | 172 +++--- TAO/IIOP/test/Orbix/tpr/tpr.h | 7 +- TAO/IIOP/test/Orbix/tps/cubit.h | 164 +++--- TAO/IIOP/test/Orbix/tps/cubit_impl.h | 4 + TAO/IIOP/test/Orbix/tps/tps.h | 5 + TAO/IIOP/test/cubit.h | 74 +-- TAO/IIOP/test/cubitC.h | 60 +-- TAO/IIOP/test/cubitS.h | 30 +- TAO/IIOP/test/cubit_i.h | 20 +- TAO/IIOP/test/test1.h | 100 ++-- TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h | 97 ++-- TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h | 588 ++++++++++----------- TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h | 172 +++--- TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h | 7 +- TAO/IIOP/tests/Cubit/Orbix/client/cubit.h | 97 ++-- TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h | 164 +++--- TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h | 97 ++-- TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h | 5 + TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h | 97 ++-- TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h | 588 ++++++++++----------- TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h | 172 +++--- TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h | 7 +- TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h | 164 +++--- TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h | 4 + TAO/IIOP/tests/Cubit/Orbix/tps/tps.h | 5 + TAO/IIOP/tests/Cubit/TAO/cubit.h | 74 +-- TAO/IIOP/tests/Cubit/TAO/cubitC.h | 60 +-- TAO/IIOP/tests/Cubit/TAO/cubitS.h | 30 +- TAO/IIOP/tests/Cubit/TAO/cubit_i.h | 20 +- TAO/IIOP/tests/Cubit/TAO/test1.h | 100 ++-- .../Cubit/VisiBroker/base_server/Profile_Timer.h | 12 +- .../tests/Cubit/VisiBroker/client/Profile_Timer.h | 12 +- TAO/IIOP/tests/Thruput_test/ttcpC.h | 48 +- TAO/IIOP/tests/Thruput_test/ttcpS.h | 38 +- TAO/IIOP/tests/Thruput_test/ttcp_i.h | 30 +- TAO/TAO_IDL/be_include/be.h | 49 +- TAO/TAO_IDL/be_include/be_argument.h | 2 +- TAO/TAO_IDL/be_include/be_array.h | 2 +- TAO/TAO_IDL/be_include/be_attribute.h | 2 +- TAO/TAO_IDL/be_include/be_codegen.h | 4 +- TAO/TAO_IDL/be_include/be_constant.h | 2 +- TAO/TAO_IDL/be_include/be_decl.h | 2 +- TAO/TAO_IDL/be_include/be_enum.h | 2 +- TAO/TAO_IDL/be_include/be_enum_val.h | 2 +- TAO/TAO_IDL/be_include/be_exception.h | 2 +- TAO/TAO_IDL/be_include/be_expression.h | 10 +- TAO/TAO_IDL/be_include/be_field.h | 2 +- TAO/TAO_IDL/be_include/be_generator.h | 136 ++--- TAO/TAO_IDL/be_include/be_helper.h | 2 +- TAO/TAO_IDL/be_include/be_interface.h | 26 +- TAO/TAO_IDL/be_include/be_interface_fwd.h | 2 +- TAO/TAO_IDL/be_include/be_module.h | 2 +- TAO/TAO_IDL/be_include/be_native.h | 2 +- TAO/TAO_IDL/be_include/be_operation.h | 2 +- TAO/TAO_IDL/be_include/be_predefined_type.h | 4 +- TAO/TAO_IDL/be_include/be_root.h | 2 +- TAO/TAO_IDL/be_include/be_scope.h | 2 +- TAO/TAO_IDL/be_include/be_sequence.h | 2 +- TAO/TAO_IDL/be_include/be_state.h | 6 +- TAO/TAO_IDL/be_include/be_stream_factory.h | 2 +- TAO/TAO_IDL/be_include/be_string.h | 2 +- TAO/TAO_IDL/be_include/be_structure.h | 2 +- TAO/TAO_IDL/be_include/be_sunsoft.h | 6 +- TAO/TAO_IDL/be_include/be_type.h | 2 +- TAO/TAO_IDL/be_include/be_typedef.h | 2 +- TAO/TAO_IDL/be_include/be_union.h | 2 +- TAO/TAO_IDL/be_include/be_union_branch.h | 2 +- TAO/TAO_IDL/be_include/be_union_label.h | 4 +- TAO/TAO_IDL/be_include/be_visitor.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_argument.h | 2 +- .../be_include/be_visitor_argument/arglist.h | 2 +- .../be_include/be_visitor_argument/argument.h | 2 +- .../be_visitor_argument/compiled_marshal_cs.h | 2 +- .../be_visitor_argument/compiled_marshal_ss.h | 2 +- .../be_include/be_visitor_argument/docall_cs.h | 2 +- .../be_include/be_visitor_argument/marshal_ss.h | 2 +- .../be_visitor_argument/post_docall_cs.h | 2 +- .../be_visitor_argument/post_marshal_ss.h | 2 +- .../be_visitor_argument/post_upcall_ss.h | 2 +- .../be_include/be_visitor_argument/pre_docall_cs.h | 2 +- .../be_include/be_visitor_argument/pre_invoke_cs.h | 2 +- .../be_include/be_visitor_argument/pre_upcall_ss.h | 2 +- .../be_include/be_visitor_argument/upcall_ss.h | 2 +- .../be_include/be_visitor_argument/vardecl_ss.h | 4 +- TAO/TAO_IDL/be_include/be_visitor_array.h | 2 +- .../be_include/be_visitor_array/any_op_ch.h | 2 +- .../be_include/be_visitor_array/any_op_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_array/array.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h | 2 +- .../be_include/be_visitor_array/cdr_op_ch.h | 2 +- .../be_include/be_visitor_array/cdr_op_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_attribute.h | 2 +- .../be_include/be_visitor_attribute/attribute.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_constant.h | 2 +- .../be_include/be_visitor_constant/constant_ch.h | 2 +- .../be_include/be_visitor_constant/constant_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_context.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_decl.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_exception.h | 2 +- .../be_include/be_visitor_exception/any_op_ch.h | 2 +- .../be_include/be_visitor_exception/any_op_cs.h | 2 +- .../be_include/be_visitor_exception/cdr_op_ch.h | 2 +- .../be_include/be_visitor_exception/cdr_op_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h | 2 +- .../be_include/be_visitor_exception/ctor_assign.h | 2 +- .../be_include/be_visitor_exception/exception.h | 2 +- .../be_include/be_visitor_exception/exception_ch.h | 2 +- .../be_include/be_visitor_exception/exception_ci.h | 2 +- .../be_include/be_visitor_exception/exception_cs.h | 2 +- .../be_visitor_exception/exception_ctor.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_factory.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_field.h | 2 +- .../be_include/be_visitor_field/cdr_op_ch.h | 2 +- .../be_include/be_visitor_field/cdr_op_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_interface.h | 2 +- .../be_include/be_visitor_interface/any_op_ch.h | 2 +- .../be_include/be_visitor_interface/any_op_cs.h | 2 +- .../be_include/be_visitor_interface/cdr_op_ch.h | 2 +- .../be_include/be_visitor_interface/cdr_op_cs.h | 2 +- .../be_visitor_interface/collocated_sh.h | 2 +- .../be_visitor_interface/collocated_ss.h | 2 +- .../be_include/be_visitor_interface/interface.h | 2 +- .../be_include/be_visitor_interface/interface_ch.h | 2 +- .../be_include/be_visitor_interface/interface_ci.h | 2 +- .../be_include/be_visitor_interface/interface_cs.h | 2 +- .../be_include/be_visitor_interface/interface_sh.h | 2 +- .../be_include/be_visitor_interface/interface_si.h | 2 +- .../be_include/be_visitor_interface/interface_ss.h | 2 +- .../be_include/be_visitor_interface/tie_sh.h | 6 +- .../be_include/be_visitor_interface/tie_si.h | 6 +- TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h | 2 +- .../be_visitor_interface_fwd/interface_fwd_ch.h | 2 +- .../be_visitor_interface_fwd/interface_fwd_ci.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_module.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_module/any_op.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_module/module.h | 2 +- .../be_include/be_visitor_module/module_ch.h | 2 +- .../be_include/be_visitor_module/module_sh.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_operation.h | 2 +- .../be_include/be_visitor_operation/arglist.h | 2 +- .../be_include/be_visitor_operation/argument.h | 2 +- .../be_visitor_operation/argument_invoke.h | 8 +- .../be_visitor_operation/argument_marshal.h | 8 +- .../be_visitor_operation/collocated_sh.h | 2 +- .../be_visitor_operation/collocated_ss.h | 2 +- .../be_visitor_operation/compiled_marshal.h | 2 +- .../be_visitor_operation/exceptlist_cs.h | 2 +- .../be_include/be_visitor_operation/operation.h | 2 +- .../be_include/be_visitor_operation/operation_ch.h | 2 +- .../be_include/be_visitor_operation/operation_cs.h | 4 +- .../be_include/be_visitor_operation/operation_sh.h | 2 +- .../be_include/be_visitor_operation/operation_ss.h | 4 +- .../be_include/be_visitor_operation/rettype.h | 2 +- .../be_visitor_operation/rettype_assign_ss.h | 2 +- .../be_visitor_operation/rettype_docall_cs.h | 2 +- .../be_visitor_operation/rettype_marshal_ss.h | 2 +- .../be_visitor_operation/rettype_post_docall_cs.h | 2 +- .../be_visitor_operation/rettype_post_upcall_ss.h | 2 +- .../be_visitor_operation/rettype_pre_docall_cs.h | 2 +- .../be_visitor_operation/rettype_pre_invoke_cs.h | 2 +- .../be_visitor_operation/rettype_return_cs.h | 2 +- .../be_visitor_operation/rettype_vardecl_cs.h | 2 +- .../be_visitor_operation/rettype_vardecl_ss.h | 6 +- .../be_include/be_visitor_operation/tie_sh.h | 2 +- .../be_include/be_visitor_operation/tie_si.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/any_op.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root_si.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_scope.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_sequence.h | 2 +- .../be_include/be_visitor_sequence/any_op_ch.h | 2 +- .../be_include/be_visitor_sequence/any_op_cs.h | 2 +- .../be_include/be_visitor_sequence/buffer_type.h | 2 +- .../be_include/be_visitor_sequence/cdr_op_ch.h | 2 +- .../be_include/be_visitor_sequence/cdr_op_cs.h | 2 +- .../be_include/be_visitor_sequence/elemtype.h | 2 +- .../be_include/be_visitor_sequence/sequence_base.h | 2 +- .../be_include/be_visitor_sequence/sequence_ch.h | 6 +- .../be_include/be_visitor_sequence/sequence_ci.h | 2 +- .../be_include/be_visitor_sequence/sequence_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_structure.h | 2 +- .../be_include/be_visitor_structure/any_op_ch.h | 2 +- .../be_include/be_visitor_structure/any_op_cs.h | 2 +- .../be_include/be_visitor_structure/cdr_op_ch.h | 2 +- .../be_include/be_visitor_structure/cdr_op_cs.h | 2 +- .../be_include/be_visitor_structure/structure.h | 2 +- .../be_include/be_visitor_structure/structure_ch.h | 2 +- .../be_include/be_visitor_structure/structure_ci.h | 2 +- .../be_include/be_visitor_structure/structure_cs.h | 4 +- TAO/TAO_IDL/be_include/be_visitor_typecode.h | 2 +- .../be_include/be_visitor_typecode/typecode_decl.h | 2 +- .../be_include/be_visitor_typecode/typecode_defn.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_typedef.h | 2 +- .../be_include/be_visitor_typedef/any_op_ch.h | 2 +- .../be_include/be_visitor_typedef/any_op_cs.h | 2 +- .../be_include/be_visitor_typedef/cdr_op_ch.h | 2 +- .../be_include/be_visitor_typedef/cdr_op_cs.h | 2 +- .../be_include/be_visitor_typedef/typedef.h | 2 +- .../be_include/be_visitor_typedef/typedef_ch.h | 2 +- .../be_include/be_visitor_typedef/typedef_ci.h | 2 +- .../be_include/be_visitor_typedef/typedef_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_union.h | 2 +- .../be_include/be_visitor_union/any_op_ch.h | 2 +- .../be_include/be_visitor_union/any_op_cs.h | 2 +- .../be_include/be_visitor_union/cdr_op_ch.h | 2 +- .../be_include/be_visitor_union/cdr_op_cs.h | 2 +- .../be_include/be_visitor_union/discriminant_ch.h | 2 +- .../be_include/be_visitor_union/discriminant_ci.h | 2 +- .../be_include/be_visitor_union/discriminant_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_union/union.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h | 2 +- TAO/TAO_IDL/be_include/be_visitor_union_branch.h | 2 +- .../be_include/be_visitor_union_branch/cdr_op_ch.h | 2 +- .../be_include/be_visitor_union_branch/cdr_op_cs.h | 2 +- .../be_visitor_union_branch/private_ch.h | 2 +- .../be_visitor_union_branch/public_access_cs.h | 2 +- .../be_visitor_union_branch/public_assign_cs.h | 2 +- .../be_include/be_visitor_union_branch/public_ch.h | 2 +- .../be_include/be_visitor_union_branch/public_ci.h | 2 +- .../be_include/be_visitor_union_branch/public_cs.h | 2 +- .../be_visitor_union_branch/public_reset_cs.h | 2 +- TAO/TAO_IDL/fe/y.tab.h | 48 +- TAO/TAO_IDL/include/ast.h | 70 +-- TAO/TAO_IDL/include/ast_argument.h | 18 +- TAO/TAO_IDL/include/ast_array.h | 26 +- TAO/TAO_IDL/include/ast_attribute.h | 14 +- TAO/TAO_IDL/include/ast_concrete_type.h | 6 +- TAO/TAO_IDL/include/ast_constant.h | 18 +- TAO/TAO_IDL/include/ast_decl.h | 80 +-- TAO/TAO_IDL/include/ast_enum.h | 20 +- TAO/TAO_IDL/include/ast_enum_val.h | 10 +- TAO/TAO_IDL/include/ast_exception.h | 18 +- TAO/TAO_IDL/include/ast_expression.h | 162 +++--- TAO/TAO_IDL/include/ast_extern.h | 10 +- TAO/TAO_IDL/include/ast_field.h | 20 +- TAO/TAO_IDL/include/ast_generator.h | 156 +++--- TAO/TAO_IDL/include/ast_interface.h | 48 +- TAO/TAO_IDL/include/ast_interface_fwd.h | 16 +- TAO/TAO_IDL/include/ast_module.h | 26 +- TAO/TAO_IDL/include/ast_native.h | 4 +- TAO/TAO_IDL/include/ast_operation.h | 54 +- TAO/TAO_IDL/include/ast_predefined_type.h | 48 +- TAO/TAO_IDL/include/ast_root.h | 14 +- TAO/TAO_IDL/include/ast_sequence.h | 14 +- TAO/TAO_IDL/include/ast_string.h | 14 +- TAO/TAO_IDL/include/ast_structure.h | 22 +- TAO/TAO_IDL/include/ast_type.h | 12 +- TAO/TAO_IDL/include/ast_typedef.h | 10 +- TAO/TAO_IDL/include/ast_union.h | 32 +- TAO/TAO_IDL/include/ast_union_branch.h | 18 +- TAO/TAO_IDL/include/ast_union_label.h | 16 +- TAO/TAO_IDL/include/be_extern.h | 14 +- TAO/TAO_IDL/include/drv_extern.h | 20 +- TAO/TAO_IDL/include/drv_link.h | 34 +- TAO/TAO_IDL/include/drv_private.h | 18 +- TAO/TAO_IDL/include/fe_declarator.h | 18 +- TAO/TAO_IDL/include/fe_extern.h | 18 +- TAO/TAO_IDL/include/fe_interface_header.h | 18 +- TAO/TAO_IDL/include/fe_private.h | 10 +- TAO/TAO_IDL/include/global_extern.h | 8 +- TAO/TAO_IDL/include/idl.h | 28 +- TAO/TAO_IDL/include/idl_bool.h | 14 +- TAO/TAO_IDL/include/idl_defines.h | 22 +- TAO/TAO_IDL/include/idl_extern.h | 16 +- TAO/TAO_IDL/include/idl_fwd.h | 100 ++-- TAO/TAO_IDL/include/idl_global.h | 486 ++++++++--------- TAO/TAO_IDL/include/idl_narrow.h | 56 +- TAO/TAO_IDL/include/intlmacros.h | 16 +- TAO/TAO_IDL/include/nr_extern.h | 10 +- TAO/TAO_IDL/include/util.h | 26 +- TAO/TAO_IDL/include/utl_decllist.h | 30 +- TAO/TAO_IDL/include/utl_err.h | 110 ++-- TAO/TAO_IDL/include/utl_error.h | 110 ++-- TAO/TAO_IDL/include/utl_exceptlist.h | 30 +- TAO/TAO_IDL/include/utl_exprlist.h | 30 +- TAO/TAO_IDL/include/utl_identifier.h | 18 +- TAO/TAO_IDL/include/utl_idlist.h | 34 +- TAO/TAO_IDL/include/utl_indenter.h | 16 +- TAO/TAO_IDL/include/utl_labellist.h | 30 +- TAO/TAO_IDL/include/utl_list.h | 50 +- TAO/TAO_IDL/include/utl_namelist.h | 30 +- TAO/TAO_IDL/include/utl_scope.h | 174 +++--- TAO/TAO_IDL/include/utl_scoped_name.h | 8 +- TAO/TAO_IDL/include/utl_stack.h | 44 +- TAO/TAO_IDL/include/utl_string.h | 22 +- TAO/TAO_IDL/include/utl_strlist.h | 38 +- TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h | 29 +- TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h | 45 +- TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h | 31 +- TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h | 35 +- TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h | 21 +- TAO/TAO_IDL/include/utl_tmpl/utl_list.h | 40 +- TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h | 27 +- TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h | 25 +- .../Callback_Quoter/Consumer_Input_Handler.h | 7 +- TAO/examples/Callback_Quoter/Consumer_i.h | 4 +- .../Callback_Quoter/Notifier_Input_Handler.h | 6 +- TAO/examples/Callback_Quoter/Notifier_i.h | 19 +- TAO/examples/Callback_Quoter/Supplier_i.h | 2 +- TAO/examples/Event_Comm/Consumer_Handler.h | 4 +- TAO/examples/Event_Comm/Consumer_Input_Handler.h | 10 +- TAO/examples/Event_Comm/Event_Comm_i.h | 23 +- TAO/examples/Event_Comm/Notifier_Handler.h | 7 +- TAO/examples/Event_Comm/Notifier_Server.h | 2 +- TAO/examples/Event_Comm/Supplier_Input_Handler.h | 8 +- TAO/examples/POA/DSI/Database_i.h | 20 +- TAO/examples/POA/Default_Servant/File_i.h | 22 +- .../Alt_Resources/Alt_Resource_Factory.h | 6 +- .../Alt_Resources/Resource_Factory.h | 2 +- TAO/examples/POA/Forwarding/MyFooServant.h | 14 +- TAO/examples/POA/Forwarding/Servant_Locator.h | 10 +- TAO/examples/POA/Generic_Servant/MyFooServant.h | 4 +- .../POA/Generic_Servant/generic_servant_export.h | 6 +- TAO/examples/POA/TIE/Foo_i.h | 4 +- TAO/examples/Quoter/Factory_Finder.h | 13 +- TAO/examples/Quoter/Factory_Finder_i.h | 4 +- TAO/examples/Quoter/Generic_Factory.h | 9 +- TAO/examples/Quoter/Generic_Factory_i.h | 4 +- TAO/examples/Quoter/Quoter_i.h | 26 +- TAO/examples/Quoter/client.h | 9 +- TAO/examples/Quoter/server.h | 11 +- TAO/examples/Simple/bank/AccountManager_i.h | 15 +- TAO/examples/Simple/bank/Account_i.h | 10 +- TAO/examples/Simple/bank/Client_i.h | 12 +- TAO/examples/Simple/bank/Server_i.h | 11 +- TAO/examples/Simple/chat/Broadcaster_i.h | 21 +- TAO/examples/Simple/chat/Client_i.h | 7 +- TAO/examples/Simple/chat/Receiver_i.h | 2 +- TAO/examples/Simple/chat/Server_i.h | 6 +- TAO/examples/Simple/echo/Echo_i.h | 4 +- TAO/examples/Simple/echo/Server_i.h | 2 +- TAO/examples/Simple/grid/Client_i.h | 8 +- TAO/examples/Simple/grid/Grid_i.h | 34 +- TAO/examples/Simple/grid/Server_i.h | 2 +- TAO/examples/Simple/time/Client_i.h | 2 +- TAO/examples/Simple/time/Server_i.h | 2 +- TAO/examples/Simple/time/Time_i.h | 12 +- TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h | 14 +- TAO/examples/Simulator/DOVEMIB/DOVEMIB.h | 8 +- TAO/examples/Simulator/DOVEMIB/Node.h | 61 ++- TAO/examples/Simulator/DOVEMIB/NodeVisitor.h | 6 +- TAO/examples/Simulator/DOVEMIB/PrintVisitor.h | 2 +- TAO/examples/Simulator/DOVEMIB/any_test_i.h | 8 +- TAO/examples/Simulator/DOVEMIB/clnt.h | 7 +- .../Simulator/Event_Supplier/DOVE_Supplier.h | 17 +- TAO/examples/Simulator/Event_Supplier/Event_Con.h | 13 +- TAO/examples/Simulator/Event_Supplier/Event_Sup.h | 2 +- .../Simulator/Event_Supplier/Logging_Sup.h | 2 +- .../Concurrency_Service/Concurrency_Service.h | 13 +- TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h | 12 +- TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h | 12 +- TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h | 9 +- .../LifeCycle_Service/Life_Cycle_Service_i.h | 14 +- TAO/orbsvcs/Logging_Service/Logging_Service_i.h | 19 +- TAO/orbsvcs/Naming_Service/Naming_Service.h | 2 +- TAO/orbsvcs/Trading_Service/Trading_Service.h | 41 +- TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h | 309 +++++------ TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h | 30 +- TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h | 20 +- TAO/orbsvcs/orbsvcs/Channel_Clients.h | 2 +- TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h | 7 +- TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h | 17 +- .../orbsvcs/Concurrency/CC_LockSetFactory.h | 2 +- .../orbsvcs/Concurrency/Concurrency_Utils.h | 4 +- TAO/orbsvcs/orbsvcs/Event/BCU.h | 9 +- TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h | 66 +-- TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h | 4 +- TAO/orbsvcs/orbsvcs/Event/EC_Gateway_UDP.h | 27 +- TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h | 6 +- TAO/orbsvcs/orbsvcs/Event/Event_Channel.h | 35 +- TAO/orbsvcs/orbsvcs/Event/Event_Manip.h | 10 +- TAO/orbsvcs/orbsvcs/Event/Fast_Reactor.h | 25 +- TAO/orbsvcs/orbsvcs/Event/GPlot_File.h | 9 +- TAO/orbsvcs/orbsvcs/Event/Local_ESTypes.h | 2 +- TAO/orbsvcs/orbsvcs/Event/Memory_Pools.h | 11 +- TAO/orbsvcs/orbsvcs/Event/Module_Factory.h | 6 +- TAO/orbsvcs/orbsvcs/Event/RT_Task.h | 7 +- TAO/orbsvcs/orbsvcs/Event/ReactorTask.h | 7 +- TAO/orbsvcs/orbsvcs/Event/Timer_Module.h | 23 +- TAO/orbsvcs/orbsvcs/Event_Service_Constants.h | 7 +- TAO/orbsvcs/orbsvcs/IOR_Multicast.h | 25 +- TAO/orbsvcs/orbsvcs/Log/Logger_i.h | 2 +- TAO/orbsvcs/orbsvcs/Naming/CosNaming_i.h | 2 +- TAO/orbsvcs/orbsvcs/Naming/Entries.h | 41 +- TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.h | 2 +- .../orbsvcs/Property/CosPropertyService_i.h | 9 +- TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h | 12 +- TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h | 18 +- TAO/orbsvcs/orbsvcs/Sched/DynSched.h | 13 +- TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h | 10 +- TAO/orbsvcs/orbsvcs/Sched/Scheduler.h | 19 +- TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h | 4 +- TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h | 22 +- TAO/orbsvcs/orbsvcs/Scheduler_Factory.h | 10 +- TAO/orbsvcs/orbsvcs/Scheduler_Utilities.h | 4 + TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h | 158 +++--- TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h | 98 ++-- TAO/orbsvcs/orbsvcs/Trader/Locking.h | 4 +- TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h | 84 +-- TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h | 4 +- TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h | 30 +- .../orbsvcs/Trader/Service_Type_Repository.h | 186 +++---- TAO/orbsvcs/orbsvcs/Trader/Trader.h | 5 + TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h | 570 ++++++++++---------- TAO/orbsvcs/orbsvcs/Trader/Trader_T.h | 88 +-- TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h | 268 +++++----- TAO/orbsvcs/orbsvcs/orbsvcs_export.h | 10 +- TAO/orbsvcs/tests/AVStreams/benchmark/child.h | 19 +- TAO/orbsvcs/tests/AVStreams/benchmark/client.h | 39 +- TAO/orbsvcs/tests/AVStreams/benchmark/server.h | 19 +- .../tests/AVStreams/mpeg/source/include/common.h | 248 ++++----- .../mpeg/source/mpeg_client/Command_Handler.h | 14 +- .../AVStreams/mpeg/source/mpeg_client/decoders.h | 370 ++++++------- .../AVStreams/mpeg/source/mpeg_client/dither.h | 6 +- .../tests/AVStreams/mpeg/source/mpeg_client/fs2.h | 10 +- .../tests/AVStreams/mpeg/source/mpeg_client/fs4.h | 14 +- .../AVStreams/mpeg/source/mpeg_client/global.h | 30 +- .../AVStreams/mpeg/source/mpeg_client/mibload.h | 86 +-- .../AVStreams/mpeg/source/mpeg_client/newproto.h | 30 +- .../AVStreams/mpeg/source/mpeg_client/proto.h | 10 +- .../tests/AVStreams/mpeg/source/mpeg_client/ui.h | 6 +- .../tests/AVStreams/mpeg/source/mpeg_client/util.h | 24 +- .../AVStreams/mpeg/source/mpeg_client/video.h | 38 +- .../tests/AVStreams/mpeg/source/mpeg_mib/mibload.h | 90 ++-- .../AVStreams/mpeg/source/mpeg_mib/mibwidgets.h | 68 +-- .../mpeg/source/mpeg_server/Audio_Control_State.h | 17 +- .../mpeg/source/mpeg_server/Audio_Control_i.h | 18 +- .../mpeg/source/mpeg_server/Audio_Server.h | 23 +- .../AVStreams/mpeg/source/mpeg_server/Globals.h | 145 ++--- .../mpeg/source/mpeg_server/Video_Control_State.h | 65 +-- .../mpeg/source/mpeg_server/Video_Control_i.h | 12 +- .../mpeg/source/mpeg_server/Video_Server.h | 57 +- .../mpeg/source/mpeg_server/server_proto.h | 40 +- .../tests/AVStreams/mpeg/source/mpeg_shared/com.h | 84 +-- .../AVStreams/mpeg/source/mpeg_shared/fileio.h | 32 +- .../AVStreams/mpeg/source/mpeg_shared/filters.h | 36 +- .../AVStreams/mpeg/source/mpeg_shared/routine.h | 32 +- .../AVStreams/mpeg/source/mpeg_shared/sendpt.h | 34 +- .../mpeg/source/server/Machine_Properties.h | 24 +- .../mpeg/source/server/Property_Exporter.h | 144 ++--- .../mpeg/source/server/Video_Repository.h | 33 +- .../tests/AVStreams/mpeg/source/server/as.h | 25 +- .../mpeg/source/server/augmented_server.h | 65 +-- .../tests/AVStreams/mpeg/source/server/server.h | 43 +- .../tests/AVStreams/mpeg/source/server/vs.h | 25 +- .../Server_0005fDiscovery_0005fUtil.h | 2 +- .../AVStreams/server_discovery/Trader_Client.h | 34 +- TAO/orbsvcs/tests/Concurrency/CC_client.h | 7 +- TAO/orbsvcs/tests/Concurrency/CC_naming_service.h | 4 +- TAO/orbsvcs/tests/Concurrency/CC_test_utils.h | 2 +- TAO/orbsvcs/tests/Concurrency/CC_tests.h | 2 +- TAO/orbsvcs/tests/Concurrency/NS_client.h | 13 +- TAO/orbsvcs/tests/EC_Basic/EC_Basic.h | 15 +- TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h | 27 +- TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Data.h | 7 +- TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h | 31 +- TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.h | 113 ++-- TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h | 75 +-- TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h | 21 +- TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h | 25 +- TAO/orbsvcs/tests/Event_Latency/Event_Latency.h | 21 +- TAO/orbsvcs/tests/ImplRepo/ir_implrepo_impl.h | 18 +- TAO/orbsvcs/tests/ImplRepo/ir_server_impl.h | 6 +- TAO/orbsvcs/tests/ImplRepo/ir_simple_object_impl.h | 10 +- TAO/orbsvcs/tests/ImplRepo/server_impl.h | 8 +- TAO/orbsvcs/tests/ImplRepo/simple_object_impl.h | 10 +- TAO/orbsvcs/tests/Logger/Logging_Test_i.h | 25 +- TAO/orbsvcs/tests/Logger/client.h | 27 +- TAO/orbsvcs/tests/Logger/client_i.h | 23 +- TAO/orbsvcs/tests/Logger/server_i.h | 13 +- TAO/orbsvcs/tests/Property/client.h | 9 +- TAO/orbsvcs/tests/Property/server.h | 2 +- TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.h | 2 +- TAO/orbsvcs/tests/Simple_Naming/client.h | 32 +- TAO/orbsvcs/tests/Trading/Offer_Exporter.h | 136 ++--- TAO/orbsvcs/tests/Trading/Offer_Importer.h | 85 +-- TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h | 108 ++-- TAO/orbsvcs/tests/Trading/Simple_Dynamic.h | 12 +- TAO/orbsvcs/tests/Trading/TT_Info.h | 60 +-- .../Cubit/COOL/IDL_Cubit/client.h | 9 +- .../Cubit/COOL/IDL_Cubit/cubit_i.h | 14 +- .../Cubit/COOL/MT_Cubit/Task_Client.h | 45 +- TAO/performance-tests/Cubit/COOL/MT_Cubit/client.h | 5 + .../Cubit/COOL/MT_Cubit/pccTimer.h | 6 +- .../Cubit/CORBAplus/IDL_Cubit/clnt.h | 19 +- .../Cubit/CORBAplus/IDL_Cubit/cubit_i.h | 23 +- .../Cubit/CORBAplus/MT_Cubit/client/Task_Client.h | 5 + .../Cubit/CORBAplus/MT_Cubit/server/cubit_i.h | 20 +- .../Cubit/Hardpack/IDL_Cubit/client_i.h | 9 +- .../Cubit/Hardpack/IDL_Cubit/server_i.h | 11 +- TAO/performance-tests/Cubit/Orbix/client/cubit.h | 97 ++-- .../Cubit/Orbix/factory_client/cubit.h | 164 +++--- TAO/performance-tests/Cubit/Orbix/tpool/cubit.h | 97 ++-- TAO/performance-tests/Cubit/Orbix/tpool/tpool.h | 5 + TAO/performance-tests/Cubit/Orbix/tpr/cubit.h | 97 ++-- TAO/performance-tests/Cubit/Orbix/tpr/cubitC.h | 588 ++++++++++----------- TAO/performance-tests/Cubit/Orbix/tpr/cubitS.h | 172 +++--- TAO/performance-tests/Cubit/Orbix/tpr/tpr.h | 7 +- TAO/performance-tests/Cubit/Orbix/tps/cubit.h | 164 +++--- TAO/performance-tests/Cubit/Orbix/tps/cubit_impl.h | 4 + TAO/performance-tests/Cubit/Orbix/tps/tps.h | 5 + .../Cubit/TAO/IDL_Cubit/Cubit_Client.h | 7 +- .../Cubit/TAO/IDL_Cubit/Cubit_Server.h | 13 +- .../Cubit/TAO/IDL_Cubit/Cubit_i.h | 22 +- TAO/performance-tests/Cubit/TAO/IDL_Cubit/RTI_IO.h | 6 +- .../Cubit/TAO/MT_Cubit/Cubit_Task.h | 11 +- TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h | 7 +- .../Cubit/TAO/MT_Cubit/Task_Client.h | 7 +- TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h | 13 +- .../Cubit/TAO/MT_Cubit/Util_Thread.h | 4 +- TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h | 9 +- TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.h | 10 +- TAO/performance-tests/Cubit/TAO/MT_Cubit/server.h | 13 +- .../Cubit/VisiBroker/base_server/Profile_Timer.h | 12 +- .../Cubit/VisiBroker/client/Profile_Timer.h | 12 +- TAO/performance-tests/Demux/CodeGen/tao.h | 5 + TAO/performance-tests/Thruput/COOL/ttcp_decl.h | 5 + TAO/performance-tests/Thruput/COOL/ttcp_i.h | 32 +- .../Thruput/CORBAplus/ttcp_decl.h | 5 + TAO/performance-tests/Thruput/CORBAplus/ttcp_i.h | 21 +- TAO/performance-tests/Thruput/Orbix/ttcp_i.h | 44 +- TAO/performance-tests/Thruput/TAO/ttcp_decl.h | 5 + TAO/performance-tests/Thruput/TAO/ttcp_i.h | 34 +- TAO/tao/Align.h | 6 +- TAO/tao/CDR.h | 154 +++--- TAO/tao/Client_Strategy_Factory.h | 8 +- TAO/tao/Connect.h | 17 +- TAO/tao/DynAnyC.h | 416 +++++++-------- TAO/tao/DynAny_i.h | 8 +- TAO/tao/DynArray_i.h | 6 +- TAO/tao/DynEnum_i.h | 6 +- TAO/tao/DynSequence_i.h | 6 +- TAO/tao/DynStruct_i.h | 8 +- TAO/tao/DynUnion_i.h | 8 +- TAO/tao/DynUnion_i_T.h | 10 +- TAO/tao/Environment.h | 4 +- TAO/tao/Exception.h | 4 +- TAO/tao/GIOP.h | 34 +- TAO/tao/IIOP_Interpreter.h | 12 +- TAO/tao/IIOP_Object.h | 30 +- TAO/tao/InconsistentTypeCodeC.h | 2 +- TAO/tao/Invocation.h | 6 +- TAO/tao/ORB.h | 14 +- TAO/tao/ORB_Strategies_T.h | 4 + TAO/tao/Object.h | 6 +- TAO/tao/Object_KeyC.h | 12 +- TAO/tao/Object_Table.h | 104 ++-- TAO/tao/Operation_Table.h | 24 +- TAO/tao/POA.h | 46 +- TAO/tao/POAC.h | 2 +- TAO/tao/POA_CORBA.h | 306 +++++------ TAO/tao/Principal.h | 4 +- TAO/tao/Sequence.h | 18 +- TAO/tao/Sequence_T.h | 56 +- TAO/tao/Servant_Base.h | 2 +- TAO/tao/Server_Request.h | 2 +- TAO/tao/TAO.h | 40 +- TAO/tao/TAO_Internal.h | 6 +- TAO/tao/Timeprobe.h | 4 + TAO/tao/Typecode.h | 2 +- TAO/tao/corba.h | 5 + TAO/tao/debug.h | 36 +- TAO/tao/default_server.h | 2 +- TAO/tao/orbconf.h | 4 + TAO/tao/singletons.h | 4 +- TAO/tao/try_macros.h | 2 +- TAO/tao/varout.h | 6 +- .../Multiple_Inheritance/Multiple_Inheritance_i.h | 4 +- .../NestedUpcall/MT_Client_Test/MT_Object_i.h | 4 +- TAO/tests/NestedUpcall/MT_Client_Test/client.h | 11 +- .../NestedUpcall/MT_Client_Test/local_server.h | 13 +- TAO/tests/NestedUpcall/MT_Client_Test/server.h | 9 +- TAO/tests/NestedUpcall/Reactor/NestedUpCalls_i.h | 2 +- TAO/tests/NestedUpcall/Reactor/client.h | 5 + TAO/tests/NestedUpcall/Reactor/eh_i.h | 2 +- TAO/tests/NestedUpcall/Reactor/reactor_i.h | 2 +- TAO/tests/NestedUpcall/Reactor/server.h | 7 +- TAO/tests/NestedUpcall/Triangle_Test/Initiator_i.h | 6 +- TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.h | 4 +- TAO/tests/NestedUpcall/Triangle_Test/Object_B_i.h | 4 +- TAO/tests/NestedUpcall/Triangle_Test/initiator.h | 9 +- TAO/tests/NestedUpcall/Triangle_Test/server_A.h | 9 +- TAO/tests/NestedUpcall/Triangle_Test/server_B.h | 9 +- TAO/tests/Param_Test/any.h | 2 +- TAO/tests/Param_Test/bd_long_seq.h | 2 +- TAO/tests/Param_Test/bd_short_seq.h | 2 +- TAO/tests/Param_Test/bd_str_seq.h | 2 +- TAO/tests/Param_Test/bd_string.h | 2 +- TAO/tests/Param_Test/bd_struct_seq.h | 2 +- TAO/tests/Param_Test/client.h | 2 +- TAO/tests/Param_Test/driver.h | 2 +- TAO/tests/Param_Test/except.h | 2 +- TAO/tests/Param_Test/fixed_array.h | 2 +- TAO/tests/Param_Test/fixed_struct.h | 2 +- TAO/tests/Param_Test/helper.h | 2 +- TAO/tests/Param_Test/nested_struct.h | 2 +- TAO/tests/Param_Test/objref.h | 6 +- TAO/tests/Param_Test/objref_struct.h | 2 +- TAO/tests/Param_Test/options.h | 7 +- TAO/tests/Param_Test/param_test_i.h | 8 +- TAO/tests/Param_Test/results.h | 6 +- TAO/tests/Param_Test/short.h | 2 +- TAO/tests/Param_Test/tests.h | 2 +- TAO/tests/Param_Test/typecode.h | 4 +- TAO/tests/Param_Test/ub_any_seq.h | 2 +- TAO/tests/Param_Test/ub_long_seq.h | 2 +- TAO/tests/Param_Test/ub_objref_seq.h | 4 +- TAO/tests/Param_Test/ub_short_seq.h | 2 +- TAO/tests/Param_Test/ub_str_seq.h | 2 +- TAO/tests/Param_Test/ub_string.h | 2 +- TAO/tests/Param_Test/ub_struct_seq.h | 2 +- TAO/tests/Param_Test/ulonglong.h | 2 +- TAO/tests/Param_Test/var_array.h | 2 +- TAO/tests/Param_Test/var_struct.h | 2 +- TAO/utils/IOR-parser/ior-handler.h | 53 +- 665 files changed, 10166 insertions(+), 9361 deletions(-) (limited to 'TAO') diff --git a/TAO/Benchmark/Marshal_Test/Orbix/marshal.h b/TAO/Benchmark/Marshal_Test/Orbix/marshal.h index 4e07d507a8b..497c872001f 100644 --- a/TAO/Benchmark/Marshal_Test/Orbix/marshal.h +++ b/TAO/Benchmark/Marshal_Test/Orbix/marshal.h @@ -134,7 +134,7 @@ class _IDL_SEQUENCE_any_var : public CORBA::_var class Marshal_dispatch : public virtual CORBA::PPTR { public: - Marshal_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -149,12 +149,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Marshal_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -213,12 +213,12 @@ protected: } public: static Marshal_ptr _duplicate( - Marshal_ptr, + 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 ()); + 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 ()); @@ -245,7 +245,7 @@ struct Marshal_Struct { 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&); + void *&, void*, const CORBA::Flags&); static const void *IT_fn; Marshal_Struct(const Marshal_Struct &); Marshal_Struct(); @@ -361,7 +361,7 @@ struct Marshal_Union { 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&); + void *&, void*, const CORBA::Flags&); static const void *IT_fn; private: @@ -704,7 +704,7 @@ struct Marshal_Recursive { 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&); + void *&, void*, const CORBA::Flags&); static const void *IT_fn; Marshal_Recursive(const Marshal_Recursive &); Marshal_Recursive(); @@ -993,7 +993,7 @@ class Marshal_SeqElem : public CORBA::_SeqElem } operator Marshal_ptr () const { - return _ptr ? (Marshal_ptr) (*_ptr) : Marshal_nil(); + return _ptr ? (Marshal_ptr) (*_ptr) : Marshal_nil(); } Marshal_ptr operator->() const { return *_ptr;} @@ -1009,108 +1009,108 @@ class Marshal_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -1121,19 +1121,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -1151,7 +1151,7 @@ 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); + (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; diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h index 9fce90ef265..c22f71f0d16 100644 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h +++ b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_client.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Marshal Orbix Benchmark -// +// // = FILENAME // orbix_marshal_client.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_ORBIX_MARSHAL_CLIENT_H_) +#ifndef _ORBIX_MARSHAL_CLIENT_H_ #define _ORBIX_MARSHAL_CLIENT_H_ // benchmark library includes @@ -38,78 +38,78 @@ public: // destructor virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // do the actual work virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // use the static invocation interface virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + 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); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // all the DII helpers int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); CORBA::ORB_ptr orb_; // handle to the underlying orb diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h index a74866173d8..2b62f4bb81b 100644 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h +++ b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_impl.h @@ -1,16 +1,20 @@ // $Id$ -#if !defined (ORBIX_MARSHAL_IMPL_H) +#ifndef ORBIX_MARSHAL_IMPL_H #define ORBIX_MARSHAL_IMPL_H // to include DSI related files #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "marshal.h" -class Marshal_SSI_Impl +class Marshal_SSI_Impl : public virtual MarshalBOAImpl { // =TITLE @@ -25,73 +29,73 @@ public: // destructor virtual void test_short (CORBA::Short s1, - CORBA::Short& s2, - CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); + 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 ()); + 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 ()); + 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 ()); + 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 ()); + 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 ()); + 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 ()); + 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 ()); + 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); - */ + 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 ()); + 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 ()); + Marshal::Marshal_Recursive *& mr2, + CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); // test struct - + }; class Marshal_DSI_Impl : public CORBA::DynamicImplementation @@ -109,50 +113,50 @@ public: private: virtual void invoke (CORBA::ServerRequest& req, CORBA::Environment_ptr, - CORBA::Environment&IT_env = - CORBA::IT_chooseDefaultEnv()); + CORBA::Environment&IT_env = + CORBA::IT_chooseDefaultEnv()); // This method is a must void test_short (CORBA::Short s1, - CORBA::Short& s2); + CORBA::Short& s2); // test short - + void test_long (CORBA::Long l1, - CORBA::Long& l2); + CORBA::Long& l2); // test long - + void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); + CORBA::Octet& o2); // test octet - + void test_char (CORBA::Char c1, - CORBA::Char& c2); + CORBA::Char& c2); // test char - + void test_double (CORBA::Double d1, - CORBA::Double& d2); + CORBA::Double& d2); // test double - + void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); + Marshal::Marshal_Struct& ms2); // test struct - + void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); + Marshal::Marshal_Union& u2); // test union - + void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); + CORBA::Any *& a2); // test any - + void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); + Marshal::AnySeq *& a2); // test sequence void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); + Marshal::Marshal_Recursive *& mr2); // test struct - + private: //= helper functions - they behave as if they were skeletons void test_short_skel (CORBA::ServerRequest& req); diff --git a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h index 09a64b4bbc8..3fb2fa83396 100644 --- a/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h +++ b/TAO/Benchmark/Marshal_Test/Orbix/orbix_marshal_server.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Marshal Orbix Benchmark -// +// // = FILENAME // orbix_marshal_server.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_ORBIX_MARSHAL_SERVER_H_) +#ifndef _ORBIX_MARSHAL_SERVER_H_ #define _ORBIX_MARSHAL_SERVER_H_ // benchmark library includes @@ -37,7 +37,7 @@ public: // destructor virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // do the actual work private: CORBA::ORB_ptr orb_; diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalC.h b/TAO/Benchmark/Marshal_Test/TAO/marshalC.h index 0831bd7f2b6..c2457cacc6e 100644 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalC.h +++ b/TAO/Benchmark/Marshal_Test/TAO/marshalC.h @@ -29,11 +29,11 @@ public: static Marshal_ptr _nil (); struct Marshal_Struct { - CORBA_Short s; - CORBA_Long l; - CORBA_Char c; - CORBA_Octet o; - CORBA_Double d; + CORBA_Short s; + CORBA_Long l; + CORBA_Char c; + CORBA_Octet o; + CORBA_Double d; }; static CORBA_TypeCode_ptr _tc_Marshal_Struct; @@ -52,61 +52,61 @@ public: 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; + 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 @@ -116,10 +116,10 @@ public: 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 - ); + CORBA_ULong length, + CORBA_Any *value, + CORBA_Boolean release = 0 + ); // AnySeq (const AnySeq&); ~AnySeq (); CORBA_ULong maximum () const; @@ -138,45 +138,45 @@ public: // now the methods virtual void test_short(CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); - + CORBA_Short& s2, + CORBA_Environment &env); + virtual void test_long(CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); - + CORBA_Long& l2, + CORBA_Environment &env); + virtual void test_octet(CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); - + CORBA_Octet& o2, + CORBA_Environment &env); + virtual void test_char(CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); - + CORBA_Char& c2, + CORBA_Environment &env); + virtual void test_double(CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); - + CORBA_Double& d2, + CORBA_Environment &env); + virtual void test_struct(const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); - + Marshal::Marshal_Struct& ms2, + CORBA_Environment &env); + virtual void test_union(const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); - + Marshal::Marshal_Union& u2, + CORBA_Environment &env); + virtual void test_any(const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); - + CORBA_Any *& a2, + CORBA_Environment &env); + virtual void test_sequence(const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env); - + Marshal::AnySeq *& as2, + CORBA_Environment &env); + #if 0 virtual void test_recursive(const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2, - CORBA_Environment &env); + Marshal::Marshal_Recursive *& mr2, + CORBA_Environment &env); #endif protected: diff --git a/TAO/Benchmark/Marshal_Test/TAO/marshalS.h b/TAO/Benchmark/Marshal_Test/TAO/marshalS.h index 4f34a11d0ab..6ac48cf5ce8 100644 --- a/TAO/Benchmark/Marshal_Test/TAO/marshalS.h +++ b/TAO/Benchmark/Marshal_Test/TAO/marshalS.h @@ -31,73 +31,73 @@ 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; - + CORBA_Short& s2, + CORBA_Environment &env) = 0; + virtual void test_long(CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env) = 0; - + CORBA_Long& l2, + CORBA_Environment &env) = 0; + virtual void test_octet(CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env) = 0; - + CORBA_Octet& o2, + CORBA_Environment &env) = 0; + virtual void test_char(CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env) = 0; - + CORBA_Char& c2, + CORBA_Environment &env) = 0; + virtual void test_double(CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env) = 0; - + CORBA_Double& d2, + CORBA_Environment &env) = 0; + virtual void test_struct(const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env) = 0; - + 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; - + Marshal::Marshal_Union& u2, + CORBA_Environment &env) = 0; + virtual void test_any(const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env) = 0; - + CORBA_Any *& a2, + CORBA_Environment &env) = 0; + virtual void test_sequence(const Marshal::AnySeq& as1, - Marshal::AnySeq *& as2, - CORBA_Environment &env) = 0; - + 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_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); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_char_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_double_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_any_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); protected: _skel_Marshal (const char *obj_name = 0); virtual ~_skel_Marshal () {} diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h index d7b8269b2c2..b55e3f309de 100644 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h +++ b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_client.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Marshal Tao Benchmark -// +// // = FILENAME // tao_marshal_client.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_TAO_MARSHAL_CLIENT_H_) +#ifndef _TAO_MARSHAL_CLIENT_H_ #define _TAO_MARSHAL_CLIENT_H_ // benchmark library includes @@ -39,78 +39,78 @@ public: // destructor virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // do the actual work virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // use the static invocation interface virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + 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); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // all the DII helpers int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); CORBA_ORB_ptr orb_; // handle to the underlying orb diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h index dab7e662d74..9c5d9047120 100644 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h +++ b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h @@ -1,16 +1,20 @@ // $Id$ -#if !defined (TAO_MARSHAL_IMPL_H) +#ifndef TAO_MARSHAL_IMPL_H #define TAO_MARSHAL_IMPL_H // to include DSI related files #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "marshalS.h" //#include "tao/dynimpl.h" -class Marshal_SSI_Impl +class Marshal_SSI_Impl : public virtual _skel_Marshal { // =TITLE @@ -25,57 +29,57 @@ public: // destructor virtual void test_short (CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); + CORBA_Short& s2, + CORBA_Environment &env); // test short - + virtual void test_long (CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); + CORBA_Long& l2, + CORBA_Environment &env); // test long - + virtual void test_octet (CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); + CORBA_Octet& o2, + CORBA_Environment &env); // test octet - + virtual void test_char (CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); + CORBA_Char& c2, + CORBA_Environment &env); // test char - + virtual void test_double (CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); + CORBA_Double& d2, + CORBA_Environment &env); // test double - + virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); + 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); + Marshal::Marshal_Union& u2, + CORBA_Environment &env); // test union - + virtual void test_any (const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); + CORBA_Any *& a2, + CORBA_Environment &env); // test any - + virtual void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA_Environment &env); + 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); + Marshal::Marshal_Recursive *& mr2, + CORBA_Environment &env); // test struct #endif - + }; class Marshal_DSI_Impl : public CORBA_Object //: public CORBA_DynamicImplementation @@ -98,89 +102,89 @@ public: // 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_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); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_long_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_octet_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_char_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_double_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_struct_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_union_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_any_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); private: void test_short (CORBA_Short s1, - CORBA_Short& s2, - CORBA_Environment &env); + CORBA_Short& s2, + CORBA_Environment &env); // test short - + void test_long (CORBA_Long l1, - CORBA_Long& l2, - CORBA_Environment &env); + CORBA_Long& l2, + CORBA_Environment &env); // test long - + void test_octet (CORBA_Octet o1, - CORBA_Octet& o2, - CORBA_Environment &env); + CORBA_Octet& o2, + CORBA_Environment &env); // test octet - + void test_char (CORBA_Char c1, - CORBA_Char& c2, - CORBA_Environment &env); + CORBA_Char& c2, + CORBA_Environment &env); // test char - + void test_double (CORBA_Double d1, - CORBA_Double& d2, - CORBA_Environment &env); + CORBA_Double& d2, + CORBA_Environment &env); // test double - + void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2, - CORBA_Environment &env); + Marshal::Marshal_Struct& ms2, + CORBA_Environment &env); // test struct - + void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2, - CORBA_Environment &env); + Marshal::Marshal_Union& u2, + CORBA_Environment &env); // test union - + void test_any (const CORBA_Any& a1, - CORBA_Any *& a2, - CORBA_Environment &env); + CORBA_Any *& a2, + CORBA_Environment &env); // test any - + void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2, - CORBA_Environment &env); + 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); + 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 }; diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h index 8bd965301ff..10442253e06 100644 --- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h +++ b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_server.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Marshal Tao Benchmark -// +// // = FILENAME // tao_marshal_server.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_TAO_MARSHAL_SERVER_H_) +#ifndef _TAO_MARSHAL_SERVER_H_ #define _TAO_MARSHAL_SERVER_H_ // benchmark library includes @@ -37,7 +37,7 @@ public: // destructor virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // do the actual work private: CORBA_ORB_ptr orb_; diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h index def1c6189c2..30e14db39a6 100644 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h +++ b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_client.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Marshal Visibroker Benchmark -// +// // = FILENAME // visi_marshal_client.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_VISI_MARSHAL_CLIENT_H_) +#ifndef _VISI_MARSHAL_CLIENT_H_ #define _VISI_MARSHAL_CLIENT_H_ // benchmark library includes @@ -36,7 +36,7 @@ class marshal_event_handler: public PMC_EXT::ClientEventHandler // flags public: void bind_succeeded(CORBA::Object_ptr obj, - const PMC_EXT::ConnectionInfo &); + const PMC_EXT::ConnectionInfo &); // on success from a bind call, set the desired quantities }; #endif @@ -55,78 +55,78 @@ public: // destructor virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // do the actual work virtual int use_sii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // use the static invocation interface virtual int use_dii (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + 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); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int sii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // all the DII helpers int dii_test_short (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_long (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_octet (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_char (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_double (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_struct (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_union (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_any (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_sequence (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); int dii_test_recursive (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); CORBA::ORB_ptr orb_; // handle to the underlying orb diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h index ec3b0ee0ef2..6599c5ae276 100644 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h +++ b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_impl.h @@ -1,16 +1,20 @@ // $Id$ -#if !defined (VISI_MARSHAL_IMPL_H) +#ifndef VISI_MARSHAL_IMPL_H #define VISI_MARSHAL_IMPL_H // to include DSI related files #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "marshalS.h" -class Marshal_SSI_Impl +class Marshal_SSI_Impl : public virtual _sk_Marshal { // =TITLE @@ -25,63 +29,63 @@ public: // destructor virtual void test_short (CORBA::Short s1, - CORBA::Short& s2); + CORBA::Short& s2); // test short - + virtual void test_long (CORBA::Long l1, - CORBA::Long& l2); + CORBA::Long& l2); // test long - + virtual void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); + CORBA::Octet& o2); // test octet - + virtual void test_char (CORBA::Char c1, - CORBA::Char& c2); + CORBA::Char& c2); // test char - + virtual void test_double (CORBA::Double d1, - CORBA::Double& d2); + CORBA::Double& d2); // test double - + virtual void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); + Marshal::Marshal_Struct& ms2); // test struct - + virtual void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); + Marshal::Marshal_Union& u2); // test union - + virtual void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); + 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); - */ + 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); + Marshal::AnySeq *& a2); // test sequence virtual void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); + Marshal::Marshal_Recursive *& mr2); // test struct - + }; class Marshal_DSI_Impl : public CORBA::DynamicImplementation @@ -102,45 +106,45 @@ public: private: void test_short (CORBA::Short s1, - CORBA::Short& s2); + CORBA::Short& s2); // test short - + void test_long (CORBA::Long l1, - CORBA::Long& l2); + CORBA::Long& l2); // test long - + void test_octet (CORBA::Octet o1, - CORBA::Octet& o2); + CORBA::Octet& o2); // test octet - + void test_char (CORBA::Char c1, - CORBA::Char& c2); + CORBA::Char& c2); // test char - + void test_double (CORBA::Double d1, - CORBA::Double& d2); + CORBA::Double& d2); // test double - + void test_struct (const Marshal::Marshal_Struct& ms1, - Marshal::Marshal_Struct& ms2); + Marshal::Marshal_Struct& ms2); // test struct - + void test_union (const Marshal::Marshal_Union& u1, - Marshal::Marshal_Union& u2); + Marshal::Marshal_Union& u2); // test union - + void test_any (const CORBA::Any& a1, - CORBA::Any *& a2); + CORBA::Any *& a2); // test any - + void test_sequence (const Marshal::AnySeq& a1, - Marshal::AnySeq *& a2); + Marshal::AnySeq *& a2); // test sequence void test_recursive (const Marshal::Marshal_Recursive& mr1, - Marshal::Marshal_Recursive *& mr2); + Marshal::Marshal_Recursive *& mr2); // test struct - + private: //= helper functions - they behave as if they were skeletons void test_short_skel (CORBA::ServerRequest_ptr req); diff --git a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h index 36076c8fe90..d18feb277ea 100644 --- a/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h +++ b/TAO/Benchmark/Marshal_Test/VisiBroker/visi_marshal_server.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Marshal Visibroker Benchmark -// +// // = FILENAME // visi_marshal_server.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_VISI_MARSHAL_SERVER_H_) +#ifndef _VISI_MARSHAL_SERVER_H_ #define _VISI_MARSHAL_SERVER_H_ // benchmark library includes @@ -38,7 +38,7 @@ public: // destructor virtual int run (CORBA_Marshal_Proxy::OPTIONS &options, - CORBA_Marshal_Proxy::RESULTS &results); + CORBA_Marshal_Proxy::RESULTS &results); // do the actual work private: CORBA::ORB_ptr orb_; diff --git a/TAO/Benchmark/benchmark/driver.h b/TAO/Benchmark/benchmark/driver.h index 690041eac73..cb69ea098ce 100644 --- a/TAO/Benchmark/benchmark/driver.h +++ b/TAO/Benchmark/benchmark/driver.h @@ -6,20 +6,24 @@ // // = LIBRARY // CORBA Benchmark -// +// // = FILENAME // driver.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined (_CORBA_BENCHMARK_DRIVER_H_) +#ifndef _CORBA_BENCHMARK_DRIVER_H_ #define _CORBA_BENCHMARK_DRIVER_H_ #include "ace/Log_Msg.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + template class CORBA_Benchmark_Driver { diff --git a/TAO/Benchmark/benchmark/marshal_options.h b/TAO/Benchmark/benchmark/marshal_options.h index 51a02a38ffa..654b87070e0 100644 --- a/TAO/Benchmark/benchmark/marshal_options.h +++ b/TAO/Benchmark/benchmark/marshal_options.h @@ -4,19 +4,24 @@ // // = LIBRARY // CORBA Benchmark/Marshal -// +// // = FILENAME // marshal_options.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined (_CORBA_MARSHAL_OPTIONS_H_) +#ifndef _CORBA_MARSHAL_OPTIONS_H_ #define _CORBA_MARSHAL_OPTIONS_H_ #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SString.h" class CORBA_Marshal_Options @@ -31,7 +36,7 @@ class CORBA_Marshal_Options // a "all-encompassing" class. public: // The following data types will be tested - enum DATATYPE + enum DATATYPE { NO_DATATYPE, SHORT, @@ -47,16 +52,16 @@ public: }; // The following CORBA implementations will be tested - enum PROXY_TYPE + enum PROXY_TYPE { NO_PROXY, - TAO, - ORBIX, + TAO, + ORBIX, VISIBROKER }; // Invocation policy - enum POLICY + enum POLICY { NO_POLICY, STATIC, // SII, SSI @@ -64,7 +69,7 @@ public: }; // what role do we play? - enum ROLE + enum ROLE { NO_ROLE, SENDER, @@ -107,7 +112,7 @@ public: //= 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 *); @@ -154,10 +159,10 @@ public: 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 diff --git a/TAO/Benchmark/benchmark/marshal_proxy.h b/TAO/Benchmark/benchmark/marshal_proxy.h index 7b3951f4e11..3152a62f17d 100644 --- a/TAO/Benchmark/benchmark/marshal_proxy.h +++ b/TAO/Benchmark/benchmark/marshal_proxy.h @@ -4,16 +4,16 @@ // // = LIBRARY // CORBA Benchmark -// +// // = FILENAME // marshal_proxy.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined(_CORBA_MARSHAL_PROXY_H_) +#ifndef _CORBA_MARSHAL_PROXY_H_ #define _CORBA_MARSHAL_PROXY_H_ #include "benchmark/marshal_options.h" diff --git a/TAO/Benchmark/benchmark/marshal_results.h b/TAO/Benchmark/benchmark/marshal_results.h index 5d635cf83d7..66de29e13bd 100644 --- a/TAO/Benchmark/benchmark/marshal_results.h +++ b/TAO/Benchmark/benchmark/marshal_results.h @@ -4,20 +4,24 @@ // // = LIBRARY // CORBA Benchmark -// +// // = FILENAME // marshal_results.h // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined (_CORBA_MARSHAL_RESULTS_H_) +#ifndef _CORBA_MARSHAL_RESULTS_H_ #define _CORBA_MARSHAL_RESULTS_H_ #include "ace/Profile_Timer.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + class CORBA_Marshal_Results { public: diff --git a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h b/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h index 4198fba9a10..8a4f73314ce 100644 --- a/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h +++ b/TAO/IIOP/test/Orbeline/base_server/Profile_Timer.h @@ -3,7 +3,7 @@ /* An interval timer class using C++. */ -#if !defined (ACE_PROFILE_TIMER_H) +#ifndef ACE_PROFILE_TIMER_H #define ACE_PROFILE_TIMER_H #include @@ -38,21 +38,21 @@ private: prusage_t begin_usage_; prusage_t end_usage_; prusage_t last_usage_; - int proc_fd_; + int proc_fd_; }; /* Start timing */ -inline int -Profile_Timer::start (void) +inline int +Profile_Timer::start (void) { return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); } /* Stop timing */ -inline int -Profile_Timer::stop (void) +inline int +Profile_Timer::stop (void) { this->last_usage_ = this->end_usage_; return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); diff --git a/TAO/IIOP/test/Orbeline/client/Profile_Timer.h b/TAO/IIOP/test/Orbeline/client/Profile_Timer.h index 4198fba9a10..8a4f73314ce 100644 --- a/TAO/IIOP/test/Orbeline/client/Profile_Timer.h +++ b/TAO/IIOP/test/Orbeline/client/Profile_Timer.h @@ -3,7 +3,7 @@ /* An interval timer class using C++. */ -#if !defined (ACE_PROFILE_TIMER_H) +#ifndef ACE_PROFILE_TIMER_H #define ACE_PROFILE_TIMER_H #include @@ -38,21 +38,21 @@ private: prusage_t begin_usage_; prusage_t end_usage_; prusage_t last_usage_; - int proc_fd_; + int proc_fd_; }; /* Start timing */ -inline int -Profile_Timer::start (void) +inline int +Profile_Timer::start (void) { return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); } /* Stop timing */ -inline int -Profile_Timer::stop (void) +inline int +Profile_Timer::stop (void) { this->last_usage_ = this->end_usage_; return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); diff --git a/TAO/IIOP/test/Orbix/base_server/cubit.h b/TAO/IIOP/test/Orbix/base_server/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/test/Orbix/base_server/cubit.h +++ b/TAO/IIOP/test/Orbix/base_server/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/test/Orbix/base_server/cubitC.h b/TAO/IIOP/test/Orbix/base_server/cubitC.h index 584efa67c8d..5c020bd0c4b 100644 --- a/TAO/IIOP/test/Orbix/base_server/cubitC.h +++ b/TAO/IIOP/test/Orbix/base_server/cubitC.h @@ -28,316 +28,316 @@ typedef Cubit_ptr CubitRef; 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; } + 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; } + operator Cubit *&() { return _ptr; } #else - operator Cubit_ptr&() { return _ptr; } + 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&); + 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&) {} + 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&){} + 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(); + 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() {} + 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)); + 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()); + return _narrow(obj_var.operator CORBA::Object_ptr()); #else - return _narrow(obj_var); + 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; - } + } + 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; + } }; diff --git a/TAO/IIOP/test/Orbix/base_server/cubitS.h b/TAO/IIOP/test/Orbix/base_server/cubitS.h index 3ca717e2b49..7132e9d229c 100644 --- a/TAO/IIOP/test/Orbix/base_server/cubitS.h +++ b/TAO/IIOP/test/Orbix/base_server/cubitS.h @@ -20,100 +20,100 @@ 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() {} + _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); - + 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(); - } + _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; + T& _ref; }; #endif diff --git a/TAO/IIOP/test/Orbix/base_server/tpr.h b/TAO/IIOP/test/Orbix/base_server/tpr.h index b5e8be94cf1..7912a2dc92c 100644 --- a/TAO/IIOP/test/Orbix/base_server/tpr.h +++ b/TAO/IIOP/test/Orbix/base_server/tpr.h @@ -2,11 +2,16 @@ #include "cubit.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #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&); + virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); }; diff --git a/TAO/IIOP/test/Orbix/client/cubit.h b/TAO/IIOP/test/Orbix/client/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/test/Orbix/client/cubit.h +++ b/TAO/IIOP/test/Orbix/client/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/test/Orbix/factory_client/cubit.h b/TAO/IIOP/test/Orbix/factory_client/cubit.h index 3a2dd546608..80e2c0590f5 100644 --- a/TAO/IIOP/test/Orbix/factory_client/cubit.h +++ b/TAO/IIOP/test/Orbix/factory_client/cubit.h @@ -14,7 +14,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -29,12 +29,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -93,12 +93,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -586,7 +586,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -602,76 +602,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -682,19 +682,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -712,7 +712,7 @@ 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); + (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; @@ -732,7 +732,7 @@ public: class Cubit_Factory_dispatch : public virtual CORBA::PPTR { public: - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -747,12 +747,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -811,12 +811,12 @@ protected: } public: static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, + 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 ()); + 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 ()); @@ -1014,7 +1014,7 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem } operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); + return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); } Cubit_Factory_ptr operator->() const { return *_ptr;} @@ -1030,36 +1030,36 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -1070,19 +1070,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -1100,7 +1100,7 @@ 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); + (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; diff --git a/TAO/IIOP/test/Orbix/tpool/cubit.h b/TAO/IIOP/test/Orbix/tpool/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/test/Orbix/tpool/cubit.h +++ b/TAO/IIOP/test/Orbix/tpool/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/test/Orbix/tpool/tpool.h b/TAO/IIOP/test/Orbix/tpool/tpool.h index 337a7f54e65..536aeedad22 100644 --- a/TAO/IIOP/test/Orbix/tpool/tpool.h +++ b/TAO/IIOP/test/Orbix/tpool/tpool.h @@ -2,6 +2,11 @@ #include "cubit.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Thread_Manager.h" #include "ace/Task.h" diff --git a/TAO/IIOP/test/Orbix/tpr/cubit.h b/TAO/IIOP/test/Orbix/tpr/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/test/Orbix/tpr/cubit.h +++ b/TAO/IIOP/test/Orbix/tpr/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/test/Orbix/tpr/cubitC.h b/TAO/IIOP/test/Orbix/tpr/cubitC.h index 584efa67c8d..5c020bd0c4b 100644 --- a/TAO/IIOP/test/Orbix/tpr/cubitC.h +++ b/TAO/IIOP/test/Orbix/tpr/cubitC.h @@ -28,316 +28,316 @@ typedef Cubit_ptr CubitRef; 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; } + 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; } + operator Cubit *&() { return _ptr; } #else - operator Cubit_ptr&() { return _ptr; } + 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&); + 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&) {} + 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&){} + 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(); + 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() {} + 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)); + 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()); + return _narrow(obj_var.operator CORBA::Object_ptr()); #else - return _narrow(obj_var); + 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; - } + } + 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; + } }; diff --git a/TAO/IIOP/test/Orbix/tpr/cubitS.h b/TAO/IIOP/test/Orbix/tpr/cubitS.h index 3ca717e2b49..7132e9d229c 100644 --- a/TAO/IIOP/test/Orbix/tpr/cubitS.h +++ b/TAO/IIOP/test/Orbix/tpr/cubitS.h @@ -20,100 +20,100 @@ 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() {} + _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); - + 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(); - } + _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; + T& _ref; }; #endif diff --git a/TAO/IIOP/test/Orbix/tpr/tpr.h b/TAO/IIOP/test/Orbix/tpr/tpr.h index b5e8be94cf1..7912a2dc92c 100644 --- a/TAO/IIOP/test/Orbix/tpr/tpr.h +++ b/TAO/IIOP/test/Orbix/tpr/tpr.h @@ -2,11 +2,16 @@ #include "cubit.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #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&); + virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); }; diff --git a/TAO/IIOP/test/Orbix/tps/cubit.h b/TAO/IIOP/test/Orbix/tps/cubit.h index 3a2dd546608..80e2c0590f5 100644 --- a/TAO/IIOP/test/Orbix/tps/cubit.h +++ b/TAO/IIOP/test/Orbix/tps/cubit.h @@ -14,7 +14,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -29,12 +29,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -93,12 +93,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -586,7 +586,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -602,76 +602,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -682,19 +682,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -712,7 +712,7 @@ 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); + (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; @@ -732,7 +732,7 @@ public: class Cubit_Factory_dispatch : public virtual CORBA::PPTR { public: - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -747,12 +747,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -811,12 +811,12 @@ protected: } public: static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, + 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 ()); + 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 ()); @@ -1014,7 +1014,7 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem } operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); + return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); } Cubit_Factory_ptr operator->() const { return *_ptr;} @@ -1030,36 +1030,36 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -1070,19 +1070,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -1100,7 +1100,7 @@ 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); + (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; diff --git a/TAO/IIOP/test/Orbix/tps/cubit_impl.h b/TAO/IIOP/test/Orbix/tps/cubit_impl.h index 0fea9857af3..13e65492916 100644 --- a/TAO/IIOP/test/Orbix/tps/cubit_impl.h +++ b/TAO/IIOP/test/Orbix/tps/cubit_impl.h @@ -7,6 +7,10 @@ #include "cubit.h" #include "ace/Task.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #ifdef Cubit_USE_BOA class Cubit_Impl : public virtual CubitBOAImpl { #else diff --git a/TAO/IIOP/test/Orbix/tps/tps.h b/TAO/IIOP/test/Orbix/tps/tps.h index 362c9ed4e91..169b44dfd62 100644 --- a/TAO/IIOP/test/Orbix/tps/tps.h +++ b/TAO/IIOP/test/Orbix/tps/tps.h @@ -3,6 +3,11 @@ #include "cubit.h" #include "cubit_impl.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Thread_Manager.h" #include "ace/Task.h" diff --git a/TAO/IIOP/test/cubit.h b/TAO/IIOP/test/cubit.h index 78d6b604052..12d99b4e403 100644 --- a/TAO/IIOP/test/cubit.h +++ b/TAO/IIOP/test/cubit.h @@ -1,6 +1,6 @@ // $Id$ -// @(#)cubit.hh 1.1 95/09/10 +// @(#)cubit.hh 1.1 95/09/10 // Copyright 1994-1995 by Sun Microsystems Inc. // All Rights Reserved // @@ -15,12 +15,12 @@ // mean lots of narrowing/widening/RTTI infrastructure. // -#ifndef _CUBIT_HH -#define _CUBIT_HH +#ifndef _CUBIT_HH +#define _CUBIT_HH -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (push, 1) // VC++, known padding rules +#endif // VC++ #include #include @@ -30,16 +30,16 @@ // C style binding // -typedef CORBA_Object Cubit; +typedef CORBA_Object Cubit; typedef Cubit *Cubit_ptr, *CubitRef; -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; +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; + CORBA_Octet o; + CORBA_Long l; + CORBA_Short s; }; enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, @@ -48,61 +48,61 @@ enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, struct Cubit_oneof { Cubit_discrim _disc; - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; + 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 + Cubit_ptr target, + CORBA_Octet o, + CORBA_Environment &env ); CORBA_Short Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Short s, + CORBA_Environment &env ); CORBA_Long Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Long l, + CORBA_Environment &env ); Cubit_Many * Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env + Cubit_ptr target, + Cubit_Many &values, + CORBA_Environment &env ); Cubit_oneof * Cubit_cube_union ( - Cubit_ptr target, + Cubit_ptr target, Cubit_oneof &values, - CORBA_Environment &env + CORBA_Environment &env ); void Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Environment &env ); -extern const CORBA_Char *Cubit__id; // type ID +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++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _CUBIT_HH +#endif // _CUBIT_HH diff --git a/TAO/IIOP/test/cubitC.h b/TAO/IIOP/test/cubitC.h index 98610b55116..e80a1378bdb 100644 --- a/TAO/IIOP/test/cubitC.h +++ b/TAO/IIOP/test/cubitC.h @@ -9,25 +9,25 @@ /************************************************************************** This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation +implementation ***************************************************************************/ -#ifndef _CUBIT_HH -#define _CUBIT_HH +#ifndef _CUBIT_HH +#define _CUBIT_HH -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#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; +extern CORBA_TypeCode_ptr TC_Cubit_Many; +extern CORBA_TypeCode_ptr TC_Cubit_oneof; -struct Cubit_Many +struct Cubit_Many { CORBA_Octet o; CORBA_Long l; @@ -38,12 +38,12 @@ enum Cubit_discrim { e_0th = 0, e_1st = 1, e_2nd = 2, e_3rd = 3, e_4th = 4, e_5th = 5 }; -struct Cubit_oneof +struct Cubit_oneof { Cubit_discrim _disc; - - union - { + + union + { CORBA_Octet o; CORBA_Short s; CORBA_Long l; @@ -58,32 +58,32 @@ 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 + virtual CORBA_Octet Cubit_cube_octet (CORBA_Octet o, CORBA_Environment &env); - virtual + virtual CORBA_Short Cubit_cube_short (CORBA_Short s, CORBA_Environment &env); - - virtual + + virtual CORBA_Long Cubit_cube_long (CORBA_Long l, CORBA_Environment &env); - - virtual + + virtual Cubit_Many* Cubit_cube_struct (Cubit_Many &values, CORBA_Environment &env); - - virtual + + virtual Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, CORBA_Environment &env); - - virtual + + virtual void Cubit_please_exit (CORBA_Environment &env); protected: @@ -92,13 +92,13 @@ protected: : CORBA_Object(objref) { } virtual ~Cubit() { } - + }; -extern const CORBA_Char *Cubit__id; // type ID +extern const CORBA_Char *Cubit__id; // type ID -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _CUBIT_HH +#endif // _CUBIT_HH diff --git a/TAO/IIOP/test/cubitS.h b/TAO/IIOP/test/cubitS.h index a4b4b853901..a35eeba4714 100644 --- a/TAO/IIOP/test/cubitS.h +++ b/TAO/IIOP/test/cubitS.h @@ -9,11 +9,11 @@ /************************************************************************** This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation +implementation ***************************************************************************/ -#ifndef _SKEL_CUBIT_HH -#define _SKEL_CUBIT_HH +#ifndef _SKEL_CUBIT_HH +#define _SKEL_CUBIT_HH #include "cubitC.h" @@ -27,7 +27,7 @@ public: virtual CORBA_Octet Cubit_cube_octet (CORBA_Octet o, CORBA_Environment &env) = 0; - static + static void _cube_octet_skel(CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); @@ -35,7 +35,7 @@ public: 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, @@ -44,8 +44,8 @@ public: virtual CORBA_Long Cubit_cube_long (CORBA_Long l, CORBA_Environment &env) = 0; - - static + + static void _cube_long_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); @@ -53,25 +53,25 @@ public: virtual Cubit_Many* Cubit_cube_struct (Cubit_Many &values, CORBA_Environment &env) = 0; - - static + + static void _cube_struct_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); - virtual + virtual Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, CORBA_Environment &env) = 0; - - static + + static void _cube_union_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); - virtual + virtual void Cubit_please_exit (CORBA_Environment &env) = 0; - static + static void _please_exit_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); @@ -81,4 +81,4 @@ protected: }; -#endif // _SKEL_CUBIT_HH +#endif // _SKEL_CUBIT_HH diff --git a/TAO/IIOP/test/cubit_i.h b/TAO/IIOP/test/cubit_i.h index 7ddf1947cd3..5ae7d565be1 100644 --- a/TAO/IIOP/test/cubit_i.h +++ b/TAO/IIOP/test/cubit_i.h @@ -4,18 +4,18 @@ // Copyright 1994-1995 by Sun Microsystems Inc. // All Rights Reserved // -// TEST: hand-written Cubit Implementation +// 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 +implementation ***************************************************************************/ -#ifndef _CUBIT_I_HH -#define _CUBIT_I_HH +#ifndef _CUBIT_I_HH +#define _CUBIT_I_HH #include "cubitS.h" @@ -28,7 +28,7 @@ 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); @@ -36,21 +36,21 @@ public: 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 +#endif // _CUBIT_I_HH diff --git a/TAO/IIOP/test/test1.h b/TAO/IIOP/test/test1.h index 63e409d36c3..513bffc82d7 100644 --- a/TAO/IIOP/test/test1.h +++ b/TAO/IIOP/test/test1.h @@ -1,41 +1,41 @@ // $Id$ -// @(#)test1.hh 1.2 95/09/12 +// @(#)test1.hh 1.2 95/09/12 // Copyright 1995 by Sun Microsystems, Inc. // All Rights Reserved // -// TEST interface for "test1" +// TEST interface for "test1" // -#ifndef _TEST1_HH -#define _TEST1_HH +#ifndef _TEST1_HH +#define _TEST1_HH #include #include -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#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_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_LongLong test1_longlong; +typedef CORBA_ULongLong test1_ulonglong; +typedef CORBA_LongDouble test1_longdouble; -typedef CORBA_Object test1; -typedef test1 *test1_ptr; +typedef CORBA_Object test1; +typedef test1 *test1_ptr; -#define DECL_TEST(typename, truetype) \ +#define DECL_TEST(typename, truetype) \ truetype \ test1_test_ ## typename ( \ - test1_ptr target, \ - truetype in_a1, \ - truetype &out_a2, \ - truetype &inout_a3, \ - CORBA_Environment &env \ + test1_ptr target, \ + truetype in_a1, \ + truetype &out_a2, \ + truetype &inout_a3, \ + CORBA_Environment &env \ ) void test_illegal (test1_ptr target, CORBA_Environment &env); @@ -53,11 +53,11 @@ 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 + 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); @@ -76,51 +76,51 @@ DECL_TEST (wstring, CORBA_WString); DECL_TEST (longdouble, CORBA_LongDouble); -#undef DECL_TEST +#undef DECL_TEST -extern CORBA_TypeCode_ptr _tc_test1_x1; +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) - { } + CORBA_Long case_num; + + test1_x1 (CORBA_Long n) + : CORBA_UserException (_tc_test1_x1), case_num (n) + { } }; -extern CORBA_TypeCode_ptr _tc_test1_x2; +extern CORBA_TypeCode_ptr _tc_test1_x2; class test1_x2 : public CORBA_UserException { public: - CORBA_Object_ptr obj; - CORBA_Long case_num; + 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_Object_ptr obj1, + CORBA_Long n) + : CORBA_UserException (_tc_test1_x2), + obj (obj1), case_num (n) { } - ~test1_x2 () - { CORBA_release (obj); } + ~test1_x2 () + { CORBA_release (obj); } }; void test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) + test1_ptr target, + CORBA_Long case_num, + CORBA_Environment &env // throw (x1, x2) ); void test1_please_exit ( - test1_ptr target, - CORBA_Environment &env + test1_ptr target, + CORBA_Environment &env ); -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _TEST1_HH +#endif // _TEST1_HH diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h +++ b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h index 584efa67c8d..5c020bd0c4b 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h +++ b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitC.h @@ -28,316 +28,316 @@ typedef Cubit_ptr CubitRef; 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; } + 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; } + operator Cubit *&() { return _ptr; } #else - operator Cubit_ptr&() { return _ptr; } + 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&); + 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&) {} + 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&){} + 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(); + 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() {} + 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)); + 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()); + return _narrow(obj_var.operator CORBA::Object_ptr()); #else - return _narrow(obj_var); + 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; - } + } + 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; + } }; diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h index 3ca717e2b49..7132e9d229c 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h +++ b/TAO/IIOP/tests/Cubit/Orbix/base_server/cubitS.h @@ -20,100 +20,100 @@ 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() {} + _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); - + 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(); - } + _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; + T& _ref; }; #endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h b/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h index b5e8be94cf1..7912a2dc92c 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h +++ b/TAO/IIOP/tests/Cubit/Orbix/base_server/tpr.h @@ -2,11 +2,16 @@ #include "cubit.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #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&); + virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); }; diff --git a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h +++ b/TAO/IIOP/tests/Cubit/Orbix/client/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h index 3a2dd546608..80e2c0590f5 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h +++ b/TAO/IIOP/tests/Cubit/Orbix/factory_client/cubit.h @@ -14,7 +14,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -29,12 +29,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -93,12 +93,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -586,7 +586,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -602,76 +602,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -682,19 +682,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -712,7 +712,7 @@ 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); + (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; @@ -732,7 +732,7 @@ public: class Cubit_Factory_dispatch : public virtual CORBA::PPTR { public: - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -747,12 +747,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -811,12 +811,12 @@ protected: } public: static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, + 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 ()); + 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 ()); @@ -1014,7 +1014,7 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem } operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); + return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); } Cubit_Factory_ptr operator->() const { return *_ptr;} @@ -1030,36 +1030,36 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -1070,19 +1070,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -1100,7 +1100,7 @@ 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); + (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; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tpool/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h b/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h index 337a7f54e65..536aeedad22 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tpool/tpool.h @@ -2,6 +2,11 @@ #include "cubit.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Thread_Manager.h" #include "ace/Task.h" diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h index 1fd0a2d3c7d..37fb9f317d4 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubit.h @@ -5,6 +5,11 @@ #define cubit_hh #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include @@ -13,7 +18,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -28,12 +33,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -92,12 +97,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -585,7 +590,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -601,76 +606,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -681,19 +686,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -711,7 +716,7 @@ 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); + (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; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h index 584efa67c8d..5c020bd0c4b 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitC.h @@ -28,316 +28,316 @@ typedef Cubit_ptr CubitRef; 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; } + 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; } + operator Cubit *&() { return _ptr; } #else - operator Cubit_ptr&() { return _ptr; } + 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&); + 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&) {} + 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&){} + 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(); + 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() {} + 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)); + 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()); + return _narrow(obj_var.operator CORBA::Object_ptr()); #else - return _narrow(obj_var); + 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; - } + } + 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; + } }; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h index 3ca717e2b49..7132e9d229c 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tpr/cubitS.h @@ -20,100 +20,100 @@ 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() {} + _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); - + 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(); - } + _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; + T& _ref; }; #endif diff --git a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h b/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h index b5e8be94cf1..7912a2dc92c 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tpr/tpr.h @@ -2,11 +2,16 @@ #include "cubit.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #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&); + virtual int inRequestPreMarshal(CORBA::Request &, CORBA::Environment&); }; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h index 3a2dd546608..80e2c0590f5 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit.h @@ -14,7 +14,7 @@ class Cubit_dispatch : public virtual CORBA::PPTR { public: - Cubit_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -29,12 +29,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -93,12 +93,12 @@ protected: } public: static Cubit_ptr _duplicate( - Cubit_ptr, + 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 ()); + 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 ()); @@ -586,7 +586,7 @@ class Cubit_SeqElem : public CORBA::_SeqElem } operator Cubit_ptr () const { - return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); + return _ptr ? (Cubit_ptr) (*_ptr) : Cubit_nil(); } Cubit_ptr operator->() const { return *_ptr;} @@ -602,76 +602,76 @@ class Cubit_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -682,19 +682,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -712,7 +712,7 @@ 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); + (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; @@ -732,7 +732,7 @@ public: class Cubit_Factory_dispatch : public virtual CORBA::PPTR { public: - Cubit_Factory_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, + 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) {} @@ -747,12 +747,12 @@ public: : PPTR (IT_OR,IT_p,IT_o) {} - Cubit_Factory_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, + 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, + virtual unsigned char dispatch (CORBA::Request &IT_r, unsigned char IT_isTarget, void* IT_pp=NULL); @@ -811,12 +811,12 @@ protected: } public: static Cubit_Factory_ptr _duplicate( - Cubit_Factory_ptr, + 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 ()); + 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 ()); @@ -1014,7 +1014,7 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem } operator Cubit_Factory_ptr () const { - return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); + return _ptr ? (Cubit_Factory_ptr) (*_ptr) : Cubit_Factory_nil(); } Cubit_Factory_ptr operator->() const { return *_ptr;} @@ -1030,36 +1030,36 @@ class Cubit_Factory_SeqElem : public CORBA::_SeqElem #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; } \ - \ + 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 \ +#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);\ }\ @@ -1070,19 +1070,19 @@ 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) {} + : 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 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 CORBA::Object* New2Object (); virtual void* IT_castUp (void *IT_p, char* IT_s, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()); @@ -1100,7 +1100,7 @@ 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); + (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; diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h index 0fea9857af3..13e65492916 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tps/cubit_impl.h @@ -7,6 +7,10 @@ #include "cubit.h" #include "ace/Task.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #ifdef Cubit_USE_BOA class Cubit_Impl : public virtual CubitBOAImpl { #else diff --git a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h b/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h index 362c9ed4e91..169b44dfd62 100644 --- a/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h +++ b/TAO/IIOP/tests/Cubit/Orbix/tps/tps.h @@ -3,6 +3,11 @@ #include "cubit.h" #include "cubit_impl.h" #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Thread_Manager.h" #include "ace/Task.h" diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit.h b/TAO/IIOP/tests/Cubit/TAO/cubit.h index 78d6b604052..12d99b4e403 100644 --- a/TAO/IIOP/tests/Cubit/TAO/cubit.h +++ b/TAO/IIOP/tests/Cubit/TAO/cubit.h @@ -1,6 +1,6 @@ // $Id$ -// @(#)cubit.hh 1.1 95/09/10 +// @(#)cubit.hh 1.1 95/09/10 // Copyright 1994-1995 by Sun Microsystems Inc. // All Rights Reserved // @@ -15,12 +15,12 @@ // mean lots of narrowing/widening/RTTI infrastructure. // -#ifndef _CUBIT_HH -#define _CUBIT_HH +#ifndef _CUBIT_HH +#define _CUBIT_HH -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (push, 1) // VC++, known padding rules +#endif // VC++ #include #include @@ -30,16 +30,16 @@ // C style binding // -typedef CORBA_Object Cubit; +typedef CORBA_Object Cubit; typedef Cubit *Cubit_ptr, *CubitRef; -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; +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; + CORBA_Octet o; + CORBA_Long l; + CORBA_Short s; }; enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, @@ -48,61 +48,61 @@ enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, struct Cubit_oneof { Cubit_discrim _disc; - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; + 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 + Cubit_ptr target, + CORBA_Octet o, + CORBA_Environment &env ); CORBA_Short Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Short s, + CORBA_Environment &env ); CORBA_Long Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Long l, + CORBA_Environment &env ); Cubit_Many * Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env + Cubit_ptr target, + Cubit_Many &values, + CORBA_Environment &env ); Cubit_oneof * Cubit_cube_union ( - Cubit_ptr target, + Cubit_ptr target, Cubit_oneof &values, - CORBA_Environment &env + CORBA_Environment &env ); void Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Environment &env ); -extern const CORBA_Char *Cubit__id; // type ID +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++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _CUBIT_HH +#endif // _CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitC.h b/TAO/IIOP/tests/Cubit/TAO/cubitC.h index 98610b55116..e80a1378bdb 100644 --- a/TAO/IIOP/tests/Cubit/TAO/cubitC.h +++ b/TAO/IIOP/tests/Cubit/TAO/cubitC.h @@ -9,25 +9,25 @@ /************************************************************************** This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation +implementation ***************************************************************************/ -#ifndef _CUBIT_HH -#define _CUBIT_HH +#ifndef _CUBIT_HH +#define _CUBIT_HH -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#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; +extern CORBA_TypeCode_ptr TC_Cubit_Many; +extern CORBA_TypeCode_ptr TC_Cubit_oneof; -struct Cubit_Many +struct Cubit_Many { CORBA_Octet o; CORBA_Long l; @@ -38,12 +38,12 @@ enum Cubit_discrim { e_0th = 0, e_1st = 1, e_2nd = 2, e_3rd = 3, e_4th = 4, e_5th = 5 }; -struct Cubit_oneof +struct Cubit_oneof { Cubit_discrim _disc; - - union - { + + union + { CORBA_Octet o; CORBA_Short s; CORBA_Long l; @@ -58,32 +58,32 @@ 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 + virtual CORBA_Octet Cubit_cube_octet (CORBA_Octet o, CORBA_Environment &env); - virtual + virtual CORBA_Short Cubit_cube_short (CORBA_Short s, CORBA_Environment &env); - - virtual + + virtual CORBA_Long Cubit_cube_long (CORBA_Long l, CORBA_Environment &env); - - virtual + + virtual Cubit_Many* Cubit_cube_struct (Cubit_Many &values, CORBA_Environment &env); - - virtual + + virtual Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, CORBA_Environment &env); - - virtual + + virtual void Cubit_please_exit (CORBA_Environment &env); protected: @@ -92,13 +92,13 @@ protected: : CORBA_Object(objref) { } virtual ~Cubit() { } - + }; -extern const CORBA_Char *Cubit__id; // type ID +extern const CORBA_Char *Cubit__id; // type ID -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _CUBIT_HH +#endif // _CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubitS.h b/TAO/IIOP/tests/Cubit/TAO/cubitS.h index a4b4b853901..a35eeba4714 100644 --- a/TAO/IIOP/tests/Cubit/TAO/cubitS.h +++ b/TAO/IIOP/tests/Cubit/TAO/cubitS.h @@ -9,11 +9,11 @@ /************************************************************************** This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation +implementation ***************************************************************************/ -#ifndef _SKEL_CUBIT_HH -#define _SKEL_CUBIT_HH +#ifndef _SKEL_CUBIT_HH +#define _SKEL_CUBIT_HH #include "cubitC.h" @@ -27,7 +27,7 @@ public: virtual CORBA_Octet Cubit_cube_octet (CORBA_Octet o, CORBA_Environment &env) = 0; - static + static void _cube_octet_skel(CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); @@ -35,7 +35,7 @@ public: 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, @@ -44,8 +44,8 @@ public: virtual CORBA_Long Cubit_cube_long (CORBA_Long l, CORBA_Environment &env) = 0; - - static + + static void _cube_long_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); @@ -53,25 +53,25 @@ public: virtual Cubit_Many* Cubit_cube_struct (Cubit_Many &values, CORBA_Environment &env) = 0; - - static + + static void _cube_struct_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); - virtual + virtual Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, CORBA_Environment &env) = 0; - - static + + static void _cube_union_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); - virtual + virtual void Cubit_please_exit (CORBA_Environment &env) = 0; - static + static void _please_exit_skel (CORBA_ServerRequest &req, CORBA_Object_ptr obj, CORBA_Environment &env); @@ -81,4 +81,4 @@ protected: }; -#endif // _SKEL_CUBIT_HH +#endif // _SKEL_CUBIT_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/cubit_i.h b/TAO/IIOP/tests/Cubit/TAO/cubit_i.h index 7ddf1947cd3..5ae7d565be1 100644 --- a/TAO/IIOP/tests/Cubit/TAO/cubit_i.h +++ b/TAO/IIOP/tests/Cubit/TAO/cubit_i.h @@ -4,18 +4,18 @@ // Copyright 1994-1995 by Sun Microsystems Inc. // All Rights Reserved // -// TEST: hand-written Cubit Implementation +// 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 +implementation ***************************************************************************/ -#ifndef _CUBIT_I_HH -#define _CUBIT_I_HH +#ifndef _CUBIT_I_HH +#define _CUBIT_I_HH #include "cubitS.h" @@ -28,7 +28,7 @@ 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); @@ -36,21 +36,21 @@ public: 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 +#endif // _CUBIT_I_HH diff --git a/TAO/IIOP/tests/Cubit/TAO/test1.h b/TAO/IIOP/tests/Cubit/TAO/test1.h index 63e409d36c3..513bffc82d7 100644 --- a/TAO/IIOP/tests/Cubit/TAO/test1.h +++ b/TAO/IIOP/tests/Cubit/TAO/test1.h @@ -1,41 +1,41 @@ // $Id$ -// @(#)test1.hh 1.2 95/09/12 +// @(#)test1.hh 1.2 95/09/12 // Copyright 1995 by Sun Microsystems, Inc. // All Rights Reserved // -// TEST interface for "test1" +// TEST interface for "test1" // -#ifndef _TEST1_HH -#define _TEST1_HH +#ifndef _TEST1_HH +#define _TEST1_HH #include #include -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#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_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_LongLong test1_longlong; +typedef CORBA_ULongLong test1_ulonglong; +typedef CORBA_LongDouble test1_longdouble; -typedef CORBA_Object test1; -typedef test1 *test1_ptr; +typedef CORBA_Object test1; +typedef test1 *test1_ptr; -#define DECL_TEST(typename, truetype) \ +#define DECL_TEST(typename, truetype) \ truetype \ test1_test_ ## typename ( \ - test1_ptr target, \ - truetype in_a1, \ - truetype &out_a2, \ - truetype &inout_a3, \ - CORBA_Environment &env \ + test1_ptr target, \ + truetype in_a1, \ + truetype &out_a2, \ + truetype &inout_a3, \ + CORBA_Environment &env \ ) void test_illegal (test1_ptr target, CORBA_Environment &env); @@ -53,11 +53,11 @@ 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 + 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); @@ -76,51 +76,51 @@ DECL_TEST (wstring, CORBA_WString); DECL_TEST (longdouble, CORBA_LongDouble); -#undef DECL_TEST +#undef DECL_TEST -extern CORBA_TypeCode_ptr _tc_test1_x1; +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) - { } + CORBA_Long case_num; + + test1_x1 (CORBA_Long n) + : CORBA_UserException (_tc_test1_x1), case_num (n) + { } }; -extern CORBA_TypeCode_ptr _tc_test1_x2; +extern CORBA_TypeCode_ptr _tc_test1_x2; class test1_x2 : public CORBA_UserException { public: - CORBA_Object_ptr obj; - CORBA_Long case_num; + 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_Object_ptr obj1, + CORBA_Long n) + : CORBA_UserException (_tc_test1_x2), + obj (obj1), case_num (n) { } - ~test1_x2 () - { CORBA_release (obj); } + ~test1_x2 () + { CORBA_release (obj); } }; void test1_test_throw ( - test1_ptr target, - CORBA_Long case_num, - CORBA_Environment &env // throw (x1, x2) + test1_ptr target, + CORBA_Long case_num, + CORBA_Environment &env // throw (x1, x2) ); void test1_please_exit ( - test1_ptr target, - CORBA_Environment &env + test1_ptr target, + CORBA_Environment &env ); -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _TEST1_HH +#endif // _TEST1_HH diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h index 4198fba9a10..8a4f73314ce 100644 --- a/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h +++ b/TAO/IIOP/tests/Cubit/VisiBroker/base_server/Profile_Timer.h @@ -3,7 +3,7 @@ /* An interval timer class using C++. */ -#if !defined (ACE_PROFILE_TIMER_H) +#ifndef ACE_PROFILE_TIMER_H #define ACE_PROFILE_TIMER_H #include @@ -38,21 +38,21 @@ private: prusage_t begin_usage_; prusage_t end_usage_; prusage_t last_usage_; - int proc_fd_; + int proc_fd_; }; /* Start timing */ -inline int -Profile_Timer::start (void) +inline int +Profile_Timer::start (void) { return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); } /* Stop timing */ -inline int -Profile_Timer::stop (void) +inline int +Profile_Timer::stop (void) { this->last_usage_ = this->end_usage_; return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); diff --git a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h b/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h index 4198fba9a10..8a4f73314ce 100644 --- a/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h +++ b/TAO/IIOP/tests/Cubit/VisiBroker/client/Profile_Timer.h @@ -3,7 +3,7 @@ /* An interval timer class using C++. */ -#if !defined (ACE_PROFILE_TIMER_H) +#ifndef ACE_PROFILE_TIMER_H #define ACE_PROFILE_TIMER_H #include @@ -38,21 +38,21 @@ private: prusage_t begin_usage_; prusage_t end_usage_; prusage_t last_usage_; - int proc_fd_; + int proc_fd_; }; /* Start timing */ -inline int -Profile_Timer::start (void) +inline int +Profile_Timer::start (void) { return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->begin_usage_); } /* Stop timing */ -inline int -Profile_Timer::stop (void) +inline int +Profile_Timer::stop (void) { this->last_usage_ = this->end_usage_; return ::ioctl (this->proc_fd_, PIOCUSAGE, &this->end_usage_); diff --git a/TAO/IIOP/tests/Thruput_test/ttcpC.h b/TAO/IIOP/tests/Thruput_test/ttcpC.h index b23be499c73..12767a52bfc 100644 --- a/TAO/IIOP/tests/Thruput_test/ttcpC.h +++ b/TAO/IIOP/tests/Thruput_test/ttcpC.h @@ -56,10 +56,10 @@ public: ShortSeq(); ShortSeq(CORBA_ULong max); ShortSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Short *value, - CORBA_Boolean release = 0 - ); + CORBA_ULong length, + CORBA_Short *value, + CORBA_Boolean release = 0 + ); // ShortSeq(const ShortSeq&); ~ShortSeq(); CORBA_ULong maximum() const; @@ -81,10 +81,10 @@ public: LongSeq(); LongSeq(CORBA_ULong max); LongSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Long *value, - CORBA_Boolean release = 0 - ); + CORBA_ULong length, + CORBA_Long *value, + CORBA_Boolean release = 0 + ); // LongSeq(const LongSeq&); ~LongSeq(); CORBA_ULong maximum() const; @@ -106,10 +106,10 @@ public: DoubleSeq(); DoubleSeq(CORBA_ULong max); DoubleSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Double *value, - CORBA_Boolean release = 0 - ); + CORBA_ULong length, + CORBA_Double *value, + CORBA_Boolean release = 0 + ); // DoubleSeq(const DoubleSeq&); ~DoubleSeq(); CORBA_ULong maximum() const; @@ -131,10 +131,10 @@ public: CharSeq(); CharSeq(CORBA_ULong max); CharSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Char *value, - CORBA_Boolean release = 0 - ); + CORBA_ULong length, + CORBA_Char *value, + CORBA_Boolean release = 0 + ); // CharSeq(const CharSeq&); ~CharSeq(); CORBA_ULong maximum() const; @@ -156,10 +156,10 @@ public: OctetSeq(); OctetSeq(CORBA_ULong max); OctetSeq(CORBA_ULong max, - CORBA_ULong length, - CORBA_Octet *value, - CORBA_Boolean release = 0 - ); + CORBA_ULong length, + CORBA_Octet *value, + CORBA_Boolean release = 0 + ); // OctetSeq(const OctetSeq&); ~OctetSeq(); CORBA_ULong maximum() const; @@ -181,10 +181,10 @@ public: StructSeq(); StructSeq(CORBA_ULong max); StructSeq(CORBA_ULong max, - CORBA_ULong length, - PerfStruct *value, - CORBA_Boolean release = 0 - ); + CORBA_ULong length, + PerfStruct *value, + CORBA_Boolean release = 0 + ); // StructSeq(const StructSeq&); ~StructSeq(); CORBA_ULong maximum() const; diff --git a/TAO/IIOP/tests/Thruput_test/ttcpS.h b/TAO/IIOP/tests/Thruput_test/ttcpS.h index 14ff95379e3..0b0ba100da0 100644 --- a/TAO/IIOP/tests/Thruput_test/ttcpS.h +++ b/TAO/IIOP/tests/Thruput_test/ttcpS.h @@ -31,33 +31,33 @@ public: 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_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); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_sendLongSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_sendDoubleSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_sendOctetSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_sendCharSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_sendStructSeq_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_start_timer_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); static void _ttcp_sequence_stop_timer_skel (CORBA_ServerRequest &req, - CORBA_Object_ptr obj, - CORBA_Environment &env); + CORBA_Object_ptr obj, + CORBA_Environment &env); protected: _skel_ttcp_sequence(const char *obj_name = 0); virtual ~_skel_ttcp_sequence() {} diff --git a/TAO/IIOP/tests/Thruput_test/ttcp_i.h b/TAO/IIOP/tests/Thruput_test/ttcp_i.h index 71d2266e334..758b616e4cd 100644 --- a/TAO/IIOP/tests/Thruput_test/ttcp_i.h +++ b/TAO/IIOP/tests/Thruput_test/ttcp_i.h @@ -3,11 +3,11 @@ // 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) +#ifndef TTCP_I_H #define TTCP_I_H #include "ttcp_decl.h" @@ -22,23 +22,23 @@ #define SEND_STRUCT ((unsigned long)(6)) -class ttcp_sequence_i: public _skel_ttcp_sequence +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); + 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); diff --git a/TAO/TAO_IDL/be_include/be.h b/TAO/TAO_IDL/be_include/be.h index b2922adee95..972dafa2e0d 100644 --- a/TAO/TAO_IDL/be_include/be.h +++ b/TAO/TAO_IDL/be_include/be.h @@ -77,6 +77,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // ACE includes #include "ace/ACE.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/OS.h" #include "ace/Singleton.h" #include "ace/Synch.h" @@ -90,29 +95,29 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #include "be_decl.h" // class BE_Decl #include "be_scope.h" // class BE_Scope -#include "be_generator.h" // BE generator class +#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_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_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 @@ -120,7 +125,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #include "be_codegen.h" // code generator #include "be_stream_factory.h" // output stream factory -#include "be_visitor.h" // abstract visitor +#include "be_visitor.h" // abstract visitor #include "be_visitor_factory.h" // visitor factory #include "be_visitor_context.h" // visitor context diff --git a/TAO/TAO_IDL/be_include/be_argument.h b/TAO/TAO_IDL/be_include/be_argument.h index cbf2e30f249..f22f4fe1b72 100644 --- a/TAO/TAO_IDL/be_include/be_argument.h +++ b/TAO/TAO_IDL/be_include/be_argument.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_ARGUMENT_H) +#ifndef BE_ARGUMENT_H #define BE_ARGUMENT_H /* diff --git a/TAO/TAO_IDL/be_include/be_array.h b/TAO/TAO_IDL/be_include/be_array.h index b2e9dec8d73..a6862d1c227 100644 --- a/TAO/TAO_IDL/be_include/be_array.h +++ b/TAO/TAO_IDL/be_include/be_array.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_ARRAY_H) +#ifndef BE_ARRAY_H #define BE_ARRAY_H class TAO_OutStream; diff --git a/TAO/TAO_IDL/be_include/be_attribute.h b/TAO/TAO_IDL/be_include/be_attribute.h index 93f7d111279..fd228720030 100644 --- a/TAO/TAO_IDL/be_include/be_attribute.h +++ b/TAO/TAO_IDL/be_include/be_attribute.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_ATTRIBUTE_H) +#ifndef BE_ATTRIBUTE_H #define BE_ATTRIBUTE_H /* diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h index 0b8d75d60eb..d220a89a749 100644 --- a/TAO/TAO_IDL/be_include/be_codegen.h +++ b/TAO/TAO_IDL/be_include/be_codegen.h @@ -16,7 +16,7 @@ // // ============================================================================ -#if !defined (TAO_BE_CODEGEN_H) +#ifndef TAO_BE_CODEGEN_H #define TAO_BE_CODEGEN_H #define NAMEBUFSIZE 1024 @@ -313,7 +313,7 @@ public: TAO_CDR_INPUT, TAO_CDR_OUTPUT, TAO_CDR_SCOPE, - + TAO_SUB_STATE_UNKNOWN }; diff --git a/TAO/TAO_IDL/be_include/be_constant.h b/TAO/TAO_IDL/be_include/be_constant.h index 75a503e3e19..0ac2e25c0b4 100644 --- a/TAO/TAO_IDL/be_include/be_constant.h +++ b/TAO/TAO_IDL/be_include/be_constant.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (BE_CONSTANT_H) +#ifndef BE_CONSTANT_H #define BE_CONSTANT_H /* diff --git a/TAO/TAO_IDL/be_include/be_decl.h b/TAO/TAO_IDL/be_include/be_decl.h index dd534af3940..181fbe6ad16 100644 --- a/TAO/TAO_IDL/be_include/be_decl.h +++ b/TAO/TAO_IDL/be_include/be_decl.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_DECL_H) +#ifndef TAO_BE_DECL_H #define TAO_BE_DECL_H class be_scope; diff --git a/TAO/TAO_IDL/be_include/be_enum.h b/TAO/TAO_IDL/be_include/be_enum.h index 345f99620c1..354d155e25e 100644 --- a/TAO/TAO_IDL/be_include/be_enum.h +++ b/TAO/TAO_IDL/be_include/be_enum.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (BE_ENUM_H) +#ifndef BE_ENUM_H #define BE_ENUM_H /* diff --git a/TAO/TAO_IDL/be_include/be_enum_val.h b/TAO/TAO_IDL/be_include/be_enum_val.h index 45815eef998..e04b9e139c9 100644 --- a/TAO/TAO_IDL/be_include/be_enum_val.h +++ b/TAO/TAO_IDL/be_include/be_enum_val.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (BE_ENUM_VAL_H) +#ifndef BE_ENUM_VAL_H #define BE_ENUM_VAL_H /* diff --git a/TAO/TAO_IDL/be_include/be_exception.h b/TAO/TAO_IDL/be_include/be_exception.h index 118272d4065..bd24a6bbaa5 100644 --- a/TAO/TAO_IDL/be_include/be_exception.h +++ b/TAO/TAO_IDL/be_include/be_exception.h @@ -1,6 +1,6 @@ // $Id$ -#if !defined (BE_EXCEPTION_H) +#ifndef BE_EXCEPTION_H #define BE_EXCEPTION_H /* diff --git a/TAO/TAO_IDL/be_include/be_expression.h b/TAO/TAO_IDL/be_include/be_expression.h index 01829d9b3bf..c3fcf04b5b9 100644 --- a/TAO/TAO_IDL/be_include/be_expression.h +++ b/TAO/TAO_IDL/be_include/be_expression.h @@ -4,7 +4,7 @@ // // = LIBRARY // TAO IDL -// +// // = FILENAME // be_expression.h // @@ -14,18 +14,18 @@ // // = AUTHOR // Copyright 1994-1995 by Sun Microsystems, Inc. -// and +// and // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined (BE_EXPRESSION_H) +#ifndef BE_EXPRESSION_H #define BE_EXPRESSION_H /* * BE_Expression */ -class be_expression : public virtual AST_Expression +class be_expression : public virtual AST_Expression { public: // Operations diff --git a/TAO/TAO_IDL/be_include/be_field.h b/TAO/TAO_IDL/be_include/be_field.h index b5802574bad..526cab7c19b 100644 --- a/TAO/TAO_IDL/be_include/be_field.h +++ b/TAO/TAO_IDL/be_include/be_field.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_FIELD_H) +#ifndef BE_FIELD_H #define BE_FIELD_H /* diff --git a/TAO/TAO_IDL/be_include/be_generator.h b/TAO/TAO_IDL/be_include/be_generator.h index a4d6d22f636..d28bf650f1d 100644 --- a/TAO/TAO_IDL/be_include/be_generator.h +++ b/TAO/TAO_IDL/be_include/be_generator.h @@ -80,85 +80,85 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from be.h */ -class be_generator : public AST_Generator { +class be_generator : public AST_Generator { public: - virtual AST_Root *create_root(UTL_ScopedName *n, - UTL_StrList *p); + 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); + 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); + 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); + 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); + 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, + virtual AST_Native *create_native (UTL_ScopedName *n, UTL_StrList *p); }; diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h index 1042e5d8ef6..f33c4711120 100644 --- a/TAO/TAO_IDL/be_include/be_helper.h +++ b/TAO/TAO_IDL/be_include/be_helper.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (TAO_BE_OUTSTRM_H) +#ifndef TAO_BE_OUTSTRM_H #define TAO_BE_OUTSTRM_H // a dummy structure to inform TAO_OutStream's << operator to put a newline diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h index c3004944b60..1def2b42ea5 100644 --- a/TAO/TAO_IDL/be_include/be_interface.h +++ b/TAO/TAO_IDL/be_include/be_interface.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (TAO_BE_INTERFACE_H) +#ifndef TAO_BE_INTERFACE_H #define TAO_BE_INTERFACE_H class TAO_OutStream; @@ -130,8 +130,8 @@ public: // is_a method static int downcast_helper (be_interface *, - be_interface *, - TAO_OutStream *os); + be_interface *, + TAO_OutStream *os); // helper method passed to the template method that generates code for the // downcast. @@ -154,8 +154,8 @@ public: // base classes. static int copy_ctor_helper (be_interface *, - be_interface *, - TAO_OutStream *os); + be_interface *, + TAO_OutStream *os); // helper method passed to the template method to invoke ctors of all the // base classes. @@ -172,7 +172,7 @@ public: // generate the operation table including entries for inherited interfaces static const char *relative_name (const char* our_name, - const char *other_class_name); + const char *other_class_name); // relative name for collocated class. int gen_optable_entries (be_interface *); @@ -189,16 +189,16 @@ private: int gen_gperf_things (void); // Run GPERF and get the correct lookup and other operations // depending on which strategy we are using. Returns 0 on sucess, -1 - // on error. + // 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. - + void gen_binary_search_class_definition (void); // Outputs the class definition for the binary search . This class // will inherit from the TAO_Binary_Search_OpTable. - + void gen_linear_search_class_definition (void); // Outputs the class defintion for the linear search. This class // will inherit from the TAO_Linear_Search. @@ -209,12 +209,12 @@ private: void gen_perfect_hash_instance (void); // Create an instance of this perfect hash table. - + void gen_binary_search_instance (void); - // Create an instance of the binary search optable. - + // Create an instance of the binary search optable. + void gen_linear_search_instance (void); - // Create an instance of the linear search optable. + // Create an instance of the linear search optable. char *full_skel_name_; // Fully scoped skeleton name. diff --git a/TAO/TAO_IDL/be_include/be_interface_fwd.h b/TAO/TAO_IDL/be_include/be_interface_fwd.h index db325a152bf..fa17cd7663f 100644 --- a/TAO/TAO_IDL/be_include/be_interface_fwd.h +++ b/TAO/TAO_IDL/be_include/be_interface_fwd.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (BE_INTERFACE_FWD_H) +#ifndef BE_INTERFACE_FWD_H #define BE_INTERFACE_FWD_H /* diff --git a/TAO/TAO_IDL/be_include/be_module.h b/TAO/TAO_IDL/be_include/be_module.h index 68190f9406b..944f85eb302 100644 --- a/TAO/TAO_IDL/be_include/be_module.h +++ b/TAO/TAO_IDL/be_include/be_module.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_MODULE_H) +#ifndef _BE_MODULE_H #define _BE_MODULE_H /* diff --git a/TAO/TAO_IDL/be_include/be_native.h b/TAO/TAO_IDL/be_include/be_native.h index e049c3d308c..63c043edf5e 100644 --- a/TAO/TAO_IDL/be_include/be_native.h +++ b/TAO/TAO_IDL/be_include/be_native.h @@ -18,7 +18,7 @@ // ============================================================================ -#if !defined (BE_NATIVE_H) +#ifndef BE_NATIVE_H #define BE_NATIVE_H // Representation of "native" IDL type added by the POA spec diff --git a/TAO/TAO_IDL/be_include/be_operation.h b/TAO/TAO_IDL/be_include/be_operation.h index 21859abdd96..93f2c2d665e 100644 --- a/TAO/TAO_IDL/be_include/be_operation.h +++ b/TAO/TAO_IDL/be_include/be_operation.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_OPERATION_H) +#ifndef BE_OPERATION_H #define BE_OPERATION_H class be_argument; diff --git a/TAO/TAO_IDL/be_include/be_predefined_type.h b/TAO/TAO_IDL/be_include/be_predefined_type.h index 76cc10680e2..c0b2014aead 100644 --- a/TAO/TAO_IDL/be_include/be_predefined_type.h +++ b/TAO/TAO_IDL/be_include/be_predefined_type.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_PREDEFINED_TYPE_H) +#ifndef _BE_PREDEFINED_TYPE_H #define _BE_PREDEFINED_TYPE_H // be_classes.hh @@ -40,7 +40,7 @@ public: // default constructor be_predefined_type (AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, + UTL_ScopedName *n, UTL_StrList *p); // constructor diff --git a/TAO/TAO_IDL/be_include/be_root.h b/TAO/TAO_IDL/be_include/be_root.h index d0d1221b7f2..c325419ee3d 100644 --- a/TAO/TAO_IDL/be_include/be_root.h +++ b/TAO/TAO_IDL/be_include/be_root.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_ROOT_H) +#ifndef TAO_BE_ROOT_H #define TAO_BE_ROOT_H class be_root : public virtual AST_Root, diff --git a/TAO/TAO_IDL/be_include/be_scope.h b/TAO/TAO_IDL/be_include/be_scope.h index 0378a5dec80..f8aa25516fd 100644 --- a/TAO/TAO_IDL/be_include/be_scope.h +++ b/TAO/TAO_IDL/be_include/be_scope.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_SCOPE_H) +#ifndef TAO_BE_SCOPE_H #define TAO_BE_SCOPE_H class be_decl; diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h index 3bd5ac71433..8edeeb6ba5b 100644 --- a/TAO/TAO_IDL/be_include/be_sequence.h +++ b/TAO/TAO_IDL/be_include/be_sequence.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_SEQUENCE_H) +#ifndef BE_SEQUENCE_H #define BE_SEQUENCE_H /* diff --git a/TAO/TAO_IDL/be_include/be_state.h b/TAO/TAO_IDL/be_include/be_state.h index 48284bd7813..2b0fc01ce57 100644 --- a/TAO/TAO_IDL/be_include/be_state.h +++ b/TAO/TAO_IDL/be_include/be_state.h @@ -17,7 +17,7 @@ // // ============================================================================ -#if !defined (TAO_BE_STATE_H) +#ifndef TAO_BE_STATE_H #define TAO_BE_STATE_H class be_state @@ -273,7 +273,7 @@ public: }; typedef ACE_Singleton - TAO_BE_STATE_ATTRIBUTE; + TAO_BE_STATE_ATTRIBUTE; class be_state_exception : public be_state { @@ -291,6 +291,6 @@ public: }; typedef ACE_Singleton - TAO_BE_STATE_EXCEPTION; + TAO_BE_STATE_EXCEPTION; #endif /* end of be_state */ diff --git a/TAO/TAO_IDL/be_include/be_stream_factory.h b/TAO/TAO_IDL/be_include/be_stream_factory.h index 7654afca4fc..4fc14bc1e13 100644 --- a/TAO/TAO_IDL/be_include/be_stream_factory.h +++ b/TAO/TAO_IDL/be_include/be_stream_factory.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_FACTORY_H) +#ifndef TAO_BE_FACTORY_H #define TAO_BE_FACTORY_H class TAO_OutStream_Factory diff --git a/TAO/TAO_IDL/be_include/be_string.h b/TAO/TAO_IDL/be_include/be_string.h index 7d1067d8d5c..771da6c5c35 100644 --- a/TAO/TAO_IDL/be_include/be_string.h +++ b/TAO/TAO_IDL/be_include/be_string.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_STRING_H) +#ifndef BE_STRING_H #define BE_STRING_H /* diff --git a/TAO/TAO_IDL/be_include/be_structure.h b/TAO/TAO_IDL/be_include/be_structure.h index 06d7ea5af1f..4d20ad82671 100644 --- a/TAO/TAO_IDL/be_include/be_structure.h +++ b/TAO/TAO_IDL/be_include/be_structure.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (BE_STRUCTURE_H) +#ifndef BE_STRUCTURE_H #define BE_STRUCTURE_H /* diff --git a/TAO/TAO_IDL/be_include/be_sunsoft.h b/TAO/TAO_IDL/be_include/be_sunsoft.h index 15b9b9a2568..4686c00750c 100644 --- a/TAO/TAO_IDL/be_include/be_sunsoft.h +++ b/TAO/TAO_IDL/be_include/be_sunsoft.h @@ -5,7 +5,7 @@ // // = LIBRARY // TAO IDL -// +// // = FILENAME // be_sunsoft.h // @@ -14,10 +14,10 @@ // // = AUTHOR // Aniruddha Gokhale -// +// // ============================================================================ -#if !defined (TAO_BE_HELPER_H) +#ifndef TAO_BE_HELPER_H #define TAO_BE_HELPER_H class TAO_SunSoft_OutStream : public TAO_OutStream diff --git a/TAO/TAO_IDL/be_include/be_type.h b/TAO/TAO_IDL/be_include/be_type.h index 20caba78b32..4abcf2e7037 100644 --- a/TAO/TAO_IDL/be_include/be_type.h +++ b/TAO/TAO_IDL/be_include/be_type.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_TYPE_H) +#ifndef BE_TYPE_H #define BE_TYPE_H class TAO_OutStream; diff --git a/TAO/TAO_IDL/be_include/be_typedef.h b/TAO/TAO_IDL/be_include/be_typedef.h index 83fcfd79160..a0b8dca12c9 100644 --- a/TAO/TAO_IDL/be_include/be_typedef.h +++ b/TAO/TAO_IDL/be_include/be_typedef.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_TYPEDEF_H) +#ifndef BE_TYPEDEF_H #define BE_TYPEDEF_H /* diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h index 332c92d44a0..ee92ff75fa6 100644 --- a/TAO/TAO_IDL/be_include/be_union.h +++ b/TAO/TAO_IDL/be_include/be_union.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_UNION_H) +#ifndef BE_UNION_H #define BE_UNION_H /* diff --git a/TAO/TAO_IDL/be_include/be_union_branch.h b/TAO/TAO_IDL/be_include/be_union_branch.h index 349db9ff58f..f31fb468ff6 100644 --- a/TAO/TAO_IDL/be_include/be_union_branch.h +++ b/TAO/TAO_IDL/be_include/be_union_branch.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (BE_UNION_BRANCH_H) +#ifndef BE_UNION_BRANCH_H #define BE_UNION_BRANCH_H /* diff --git a/TAO/TAO_IDL/be_include/be_union_label.h b/TAO/TAO_IDL/be_include/be_union_label.h index 311e6b94dc9..7f5629ab15b 100644 --- a/TAO/TAO_IDL/be_include/be_union_label.h +++ b/TAO/TAO_IDL/be_include/be_union_label.h @@ -1,12 +1,12 @@ // $Id$ -#if !defined(BE_UNION_LABEL_H) +#ifndef BE_UNION_LABEL_H #define BE_UNION_LABEL_H /* * BE_UnionLabel */ -class be_union_label : public virtual AST_UnionLabel { +class be_union_label : public virtual AST_UnionLabel { public: // Operations be_union_label(); diff --git a/TAO/TAO_IDL/be_include/be_visitor.h b/TAO/TAO_IDL/be_include/be_visitor.h index 4f8f6d9844b..c6d0b00d9fd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor.h +++ b/TAO/TAO_IDL/be_include/be_visitor.h @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_H) +#ifndef TAO_BE_VISITOR_H #define TAO_BE_VISITOR_H class be_decl; diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument.h index ca44eadd9ea..7528d8e9716 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_H) +#ifndef _BE_VISITOR_ARGUMENT_H #define _BE_VISITOR_ARGUMENT_H #include "be_visitor_decl.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 index 7042280a22e..fe811e1104c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_ARGLIST_H_) +#ifndef _BE_VISITOR_ARGUMENT_ARGLIST_H_ #define _BE_VISITOR_ARGUMENT_ARGLIST_H_ class be_visitor_args_arglist : public be_visitor_args diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h index 537811f8b94..882c8003b4a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_ARGUMENT_H_) +#ifndef _BE_VISITOR_ARGUMENT_ARGUMENT_H_ #define _BE_VISITOR_ARGUMENT_ARGUMENT_H_ class be_visitor_args : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h index 3c64dfa570a..e06bfc3baa8 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_CS_H_) +#ifndef _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_CS_H_ #define _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_CS_H_ // ************************************************************ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h index c588cdb2d52..db6f8da19dd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/compiled_marshal_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_SS_H_ #define _BE_VISITOR_ARGUMENT_COMPILED_MARSHAL_SS_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 index 0b876370660..03054f5ee01 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/docall_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_DOCALL_CS_H_) +#ifndef _BE_VISITOR_ARGUMENT_DOCALL_CS_H_ #define _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 index ea26a66fde3..e116238f598 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_MARSHAL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_MARSHAL_SS_H_ #define _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 index e292de4fa0a..b84459c3101 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_) +#ifndef _BE_VISITOR_ARGUMENT_POST_DOCALL_CS_H_ #define _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 index 4988ff66ad2..3b9aa9c8b63 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_POST_MARSHAL_SS_H_ #define _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 index 7b87ba9bf35..55805fb04f2 100644 --- 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 @@ -20,7 +20,7 @@ // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_POST_UPCALL_SS_H_ #define _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 index f5238423590..fb5acb67951 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_) +#ifndef _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ #define _BE_VISITOR_ARGUMENT_PRE_DOCALL_CS_H_ // ************************************************************ diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h index 6e938db5e6f..9edb4b60288 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_PRE_INVOKE_CS_H_) +#ifndef _BE_VISITOR_ARGUMENT_PRE_INVOKE_CS_H_ #define _BE_VISITOR_ARGUMENT_PRE_INVOKE_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 index 24bf3e88054..bb2b3430e79 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_PRE_UPCALL_SS_H_ #define _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 index 5bd504fcded..cd7707f74f3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_UPCALL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_UPCALL_SS_H_ #define _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 index 73e301441f5..a09695a383c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARGUMENT_VARDECL_SS_H_) +#ifndef _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ #define _BE_VISITOR_ARGUMENT_VARDECL_SS_H_ // ************************************************************ @@ -89,7 +89,7 @@ class be_compiled_visitor_args_vardecl_ss : public be_visitor_args_vardecl_ss // // = DESCRIPTION // Visitor for variable declaration for argument for compiled marshaling - // skeletons + // skeletons // public: be_compiled_visitor_args_vardecl_ss (be_visitor_context *ctx); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array.h b/TAO/TAO_IDL/be_include/be_visitor_array.h index 506bde6b54b..3e905175e85 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_ARRAY_H) +#ifndef TAO_BE_VISITOR_ARRAY_H #define TAO_BE_VISITOR_ARRAY_H #include "be_visitor_decl.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 index dffce321f77..8030e83f6cc 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_ANY_OP_CH_H_) +#ifndef _BE_VISITOR_ARRAY_ANY_OP_CH_H_ #define _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 index fc3c814c0d6..58b310587e2 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_ANY_OP_CS_H_) +#ifndef _BE_VISITOR_ARRAY_ANY_OP_CS_H_ #define _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 index 0a9510ce383..5fa6a4aab4c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_ARRAY_H_) +#ifndef _BE_VISITOR_ARRAY_ARRAY_H_ #define _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 index 7a859d85527..7882a381546 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_CH_H_) +#ifndef _BE_VISITOR_ARRAY_CH_H_ #define _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 index 3cb5f06cb6d..887540367e7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_CI_H_) +#ifndef _BE_VISITOR_ARRAY_CI_H_ #define _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 index 101ce40ce31..98c3e8f6c2c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_CS_H_) +#ifndef _BE_VISITOR_ARRAY_CS_H_ #define _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 index 53766d3be77..a45af118541 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_CDR_OP_CH_H_) +#ifndef _BE_VISITOR_ARRAY_CDR_OP_CH_H_ #define _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 index c02c51112f5..b68754ae0d3 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ARRAY_CDR_OP_CS_H_) +#ifndef _BE_VISITOR_ARRAY_CDR_OP_CS_H_ #define _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 index 0e9fb275ae6..9c5aa46988e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attribute.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_ATTRIBUTE_H) +#ifndef TAO_BE_VISITOR_ATTRIBUTE_H #define TAO_BE_VISITOR_ATTRIBUTE_H #include "be_visitor.h" diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h index c330de69537..1c2493722c0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H) +#ifndef _BE_VISITOR_ATTRIBUTE_ATTRIBUTE_H #define _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 index 4bd864c7aa3..acc6f65d31f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_constant.h +++ b/TAO/TAO_IDL/be_include/be_visitor_constant.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_CONSTANT_H) +#ifndef TAO_BE_VISITOR_CONSTANT_H #define TAO_BE_VISITOR_CONSTANT_H #include "be_visitor.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 index 3d6113ddbd6..c0e53447176 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_CONSTANT_CONSTANT_CH_H_) +#ifndef _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ #define _BE_VISITOR_CONSTANT_CONSTANT_CH_H_ class be_visitor_constant_ch : public be_visitor_decl 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 index 104614536a1..db2fccf96ca 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_CONSTANT_CONSTANT_CS_H_) +#ifndef _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ #define _BE_VISITOR_CONSTANT_CONSTANT_CS_H_ class be_visitor_constant_cs : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_context.h b/TAO/TAO_IDL/be_include/be_visitor_context.h index 02e07dda533..0487711615a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_context.h +++ b/TAO/TAO_IDL/be_include/be_visitor_context.h @@ -23,7 +23,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_CONTEXT_H) +#ifndef TAO_BE_VISITOR_CONTEXT_H #define TAO_BE_VISITOR_CONTEXT_H class be_visitor_context diff --git a/TAO/TAO_IDL/be_include/be_visitor_decl.h b/TAO/TAO_IDL/be_include/be_visitor_decl.h index 4c8f575cacd..34cf441e82f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_decl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_decl.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_DECL_H) +#ifndef TAO_BE_VISITOR_DECL_H #define TAO_BE_VISITOR_DECL_H #include "be_visitor.h" diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum.h b/TAO/TAO_IDL/be_include/be_visitor_enum.h index a195680786f..6b0ea40bce4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_ENUM_H) +#ifndef TAO_BE_VISITOR_ENUM_H #define TAO_BE_VISITOR_ENUM_H #include "be_visitor.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 index 469e661bb2c..f9d25ecf81c 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ENUM_ANY_OP_CH_H_) +#ifndef _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 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 index aab50eb6305..f3db76c2be4 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ENUM_ANY_OP_CS_H_) +#ifndef _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 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 index 883b226c9f1..c8ba0e49f81 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ENUM_CDR_OP_CH_H_) +#ifndef _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 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 index 5e995f7a117..41c89b9c605 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ENUM_CDR_OP_CS_H_) +#ifndef _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 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 index 29f05b68b68..8a3f922dce4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ENUM_ENUM_CH_H_) +#ifndef _BE_VISITOR_ENUM_ENUM_CH_H_ #define _BE_VISITOR_ENUM_ENUM_CH_H_ class be_visitor_enum_ch : public be_visitor_scope 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 index f1684ff1d01..a40455f2190 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ENUM_ENUM_CS_H_) +#ifndef _BE_VISITOR_ENUM_ENUM_CS_H_ #define _BE_VISITOR_ENUM_ENUM_CS_H_ class be_visitor_enum_cs : public be_visitor_scope diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception.h index 30ae6f06733..36e4e25a2a9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_EXCEPTION_H) +#ifndef TAO_BE_VISITOR_EXCEPTION_H #define TAO_BE_VISITOR_EXCEPTION_H #include "be_visitor.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 index 6ad35719449..ee3ff396dc1 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_ANY_OP_CH_H_) +#ifndef _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 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 index dc96479b918..45a82cb7e23 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_ANY_OP_CS_H_) +#ifndef _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 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 index e24b4299deb..dd5df6266e2 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_CDR_OP_CH_H_) +#ifndef _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 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 index b9d3b09df8f..a77f6c4bdf7 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_CDR_OP_CS_H_) +#ifndef _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 diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h index 00e55741db1..80529d2a203 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_CTOR_H_) +#ifndef _BE_VISITOR_EXCEPTION_CTOR_H_ #define _BE_VISITOR_EXCEPTION_CTOR_H_ class be_visitor_exception_ctor : public be_visitor_scope 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 index e40610ac2fb..52b6ab67dd7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_) +#ifndef _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ #define _BE_VISITOR_EXCEPTION_CTOR_ASSIGN_H_ class be_visitor_exception_ctor_assign : public be_visitor_scope diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h index f7e4bab2d26..c4be6b317dc 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_H_) +#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_H_ #define _BE_VISITOR_EXCEPTION_EXCEPTION_H_ class be_visitor_exception : public be_visitor_scope 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 index 9211782a96e..c664d166593 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_) +#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ #define _BE_VISITOR_EXCEPTION_EXCEPTION_CH_H_ class be_visitor_exception_ch : public be_visitor_exception 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 index 67ca3e1c449..ccd48fbb07b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_) +#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ #define _BE_VISITOR_EXCEPTION_EXCEPTION_CI_H_ class be_visitor_exception_ci : public be_visitor_exception 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 index 0b1edd4cc6c..a3d0c0e9c62 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_) +#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ #define _BE_VISITOR_EXCEPTION_EXCEPTION_CS_H_ class be_visitor_exception_cs : public be_visitor_exception 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 index 539d12efa79..fd0ddf8ff0c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ctor.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_) +#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ #define _BE_VISITOR_EXCEPTION_EXCEPTION_CTOR_H_ class be_visitor_exception_ctor : public be_visitor_scope diff --git a/TAO/TAO_IDL/be_include/be_visitor_factory.h b/TAO/TAO_IDL/be_include/be_visitor_factory.h index ad4c6e9a385..2061b51bb04 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_factory.h +++ b/TAO/TAO_IDL/be_include/be_visitor_factory.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_FACTORY_H) +#ifndef TAO_BE_VISITOR_FACTORY_H #define TAO_BE_VISITOR_FACTORY_H class TAO_Visitor_Factory diff --git a/TAO/TAO_IDL/be_include/be_visitor_field.h b/TAO/TAO_IDL/be_include/be_visitor_field.h index 2aac718e368..4add3db5af9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_FIELD_H) +#ifndef TAO_BE_VISITOR_FIELD_H #define TAO_BE_VISITOR_FIELD_H #include "be_visitor_decl.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 index e9fb3139e6a..0e3a9555fd6 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_FIELD_CDR_OP_CH_H_) +#ifndef _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 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 index 7b4ac51064d..a8f40964b3a 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_FIELD_CDR_OP_CS_H_) +#ifndef _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 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 index aa72105c520..a3fc7ce30db 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_FIELD_CH_H_) +#ifndef _BE_VISITOR_FIELD_CH_H_ #define _BE_VISITOR_FIELD_CH_H_ class be_visitor_field_ch : public be_visitor_decl 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 index 0e2c3797a5e..b2b71678b70 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_FIELD_CI_H_) +#ifndef _BE_VISITOR_FIELD_CI_H_ #define _BE_VISITOR_FIELD_CI_H_ class be_visitor_field_ci : public be_visitor_decl 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 index 7edaae3b4c2..c48a1fd5969 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_FIELD_CS_H_) +#ifndef _BE_VISITOR_FIELD_CS_H_ #define _BE_VISITOR_FIELD_CS_H_ class be_visitor_field_cs : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface.h index 622bda773c9..5b75ba2275f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_INTERFACE_H) +#ifndef TAO_BE_VISITOR_INTERFACE_H #define TAO_BE_VISITOR_INTERFACE_H #include "be_visitor_scope.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 index 4e635bfd8a3..0b25ff3f3be 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_ANY_OP_CH_H_) +#ifndef _BE_INTERFACE_ANY_OP_CH_H_ #define _BE_INTERFACE_ANY_OP_CH_H_ class be_visitor_interface_any_op_ch : public be_visitor_interface 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 index 012aca9d3f8..aa84f6fd2c9 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_ANY_OP_CS_H_) +#ifndef _BE_INTERFACE_ANY_OP_CS_H_ #define _BE_INTERFACE_ANY_OP_CS_H_ class be_visitor_interface_any_op_cs : public be_visitor_interface 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 index e8b3777cfe0..353659c3bcc 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_INTERFACE_CDR_OP_CH_H_) +#ifndef _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 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 index e83f6546892..05a062d594f 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_INTERFACE_CDR_OP_CS_H_) +#ifndef _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 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 index a96c5a6701d..a050c3fb47f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_sh.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_COLLOCATED_SH_H_) +#ifndef _BE_INTERFACE_COLLOCATED_SH_H_ #define _BE_INTERFACE_COLLOCATED_SH_H_ class be_visitor_interface_collocated_sh : public be_visitor_interface 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 index ad49cbb1448..a7ffeb3149e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/collocated_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_COLLOCATED_SS_H_) +#ifndef _BE_INTERFACE_COLLOCATED_SS_H_ #define _BE_INTERFACE_COLLOCATED_SS_H_ class be_visitor_interface_collocated_ss : public be_visitor_interface diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h index 086c8f1b56b..41dfd82b0a5 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_H_) +#ifndef _BE_INTERFACE_INTERFACE_H_ #define _BE_INTERFACE_INTERFACE_H_ // = DESCRIPTION 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 index 7dc997f7f15..34bea04cac1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_CH_H_) +#ifndef _BE_INTERFACE_INTERFACE_CH_H_ #define _BE_INTERFACE_INTERFACE_CH_H_ // we need derived interface visitors for the client and server header files. For 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 index 4eff86b2099..ad1a5b31063 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_CI_H_) +#ifndef _BE_INTERFACE_INTERFACE_CI_H_ #define _BE_INTERFACE_INTERFACE_CI_H_ class be_visitor_interface_ci : public be_visitor_interface 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 index 7acede89420..51e3f8a7a88 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_CS_H_) +#ifndef _BE_INTERFACE_INTERFACE_CS_H_ #define _BE_INTERFACE_INTERFACE_CS_H_ class be_visitor_interface_cs : public be_visitor_interface 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 index a2f09833147..526a92af825 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_SH_H_) +#ifndef _BE_INTERFACE_INTERFACE_SH_H_ #define _BE_INTERFACE_INTERFACE_SH_H_ class be_visitor_interface_sh : public be_visitor_interface 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 index e8c7bae245c..c46560a433d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_si.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_SI_H_) +#ifndef _BE_INTERFACE_INTERFACE_SI_H_ #define _BE_INTERFACE_INTERFACE_SI_H_ class be_visitor_interface_si : public be_visitor_interface 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 index 78c5d48cbab..e57a272a3be 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_SS_H_) +#ifndef _BE_INTERFACE_INTERFACE_SS_H_ #define _BE_INTERFACE_INTERFACE_SS_H_ class be_visitor_interface_ss : public be_visitor_interface 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 index 7516337310e..bd2fbfbae13 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_TIE_SH_H_) +#ifndef _BE_INTERFACE_TIE_SH_H_ #define _BE_INTERFACE_TIE_SH_H_ class be_visitor_interface_tie_sh : public be_visitor_interface @@ -43,8 +43,8 @@ public: // set the right context and make a visitor static int method_helper (be_interface *, - be_interface *, - TAO_OutStream *os); + be_interface *, + TAO_OutStream *os); // helper method to generate method declaration in the TIE classes. }; 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 index fe3fb0ac09b..f8a9f982946 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_si.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_TIE_SI_H_) +#ifndef _BE_INTERFACE_TIE_SI_H_ #define _BE_INTERFACE_TIE_SI_H_ class be_visitor_interface_tie_si : public be_visitor_interface @@ -44,8 +44,8 @@ public: // set the right context and make a visitor static int method_helper (be_interface *, - be_interface *, - TAO_OutStream *os); + be_interface *, + TAO_OutStream *os); // helper method to generate method declaration in the TIE classes. }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h index e139af36707..14104e4d229 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_INTERFACE_FWD_H) +#ifndef TAO_BE_VISITOR_INTERFACE_FWD_H #define TAO_BE_VISITOR_INTERFACE_FWD_H #include "be_visitor.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 index 788faa611db..02c788c071b 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_FWD_CH_H_) +#ifndef _BE_INTERFACE_INTERFACE_FWD_CH_H_ #define _BE_INTERFACE_INTERFACE_FWD_CH_H_ class be_visitor_interface_fwd_ch : public be_visitor_decl 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 index a53bd7d7a05..f8c765d986f 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_INTERFACE_INTERFACE_FWD_CI_H_) +#ifndef _BE_INTERFACE_INTERFACE_FWD_CI_H_ #define _BE_INTERFACE_INTERFACE_FWD_CI_H_ class be_visitor_interface_fwd_ci : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_module.h b/TAO/TAO_IDL/be_include/be_visitor_module.h index e118aa98a0a..3e1dd4c85f9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_MODULE_H) +#ifndef TAO_BE_VISITOR_MODULE_H #define TAO_BE_VISITOR_MODULE_H #include "be_visitor.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 index ab941bc345b..a41fec48195 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_MODULE_ANY_OP_H_) +#ifndef _BE_VISITOR_MODULE_ANY_OP_H_ #define _BE_VISITOR_MODULE_ANY_OP_H_ class be_visitor_module_any_op : public be_visitor_module 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 index 71aef9e34a4..78a56a082f9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_MODULE_CDR_OP_H_) +#ifndef _BE_VISITOR_MODULE_CDR_OP_H_ #define _BE_VISITOR_MODULE_CDR_OP_H_ class be_visitor_module_cdr_op : public be_visitor_module diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module.h b/TAO/TAO_IDL/be_include/be_visitor_module/module.h index 58c4f951cb8..1949e865ef7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_MODULE_MODULE_H_) +#ifndef _BE_VISITOR_MODULE_MODULE_H_ #define _BE_VISITOR_MODULE_MODULE_H_ class be_visitor_module : public be_visitor_scope 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 index f001d3e4900..5de940fa34f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_MODULE_MODULE_CH_H_) +#ifndef _BE_VISITOR_MODULE_MODULE_CH_H_ #define _BE_VISITOR_MODULE_MODULE_CH_H_ class be_visitor_module_ch : public be_visitor_module 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 index 0ee2c25379c..c0b6dfc5b37 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_MODULE_MODULE_SH_H_) +#ifndef _BE_VISITOR_MODULE_MODULE_SH_H_ #define _BE_VISITOR_MODULE_MODULE_SH_H_ class be_visitor_module_sh : public be_visitor_module diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation.h index 321b70b551f..50cc82bde56 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_OPERATION_H) +#ifndef TAO_BE_VISITOR_OPERATION_H #define TAO_BE_VISITOR_OPERATION_H #include "be_visitor.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 index 42f418a97ed..67de889815a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_ARGLIST_H_) +#ifndef _BE_VISITOR_OPERATION_ARGLIST_H_ #define _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 index d8c91145465..08e41106e3f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_ARGUMENT_H_) +#ifndef _BE_VISITOR_OPERATION_ARGUMENT_H_ #define _BE_VISITOR_OPERATION_ARGUMENT_H_ // ************************************************************ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h index ecbea2acdc6..06e47f6b16a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h @@ -13,21 +13,21 @@ // = DESCRIPTION // Visitor for generating code for IDL operations. This is a visitor for // passing arguments to the CDR operators in a compiled marshaling -// stub/skeleton +// stub/skeleton // // = AUTHOR // Aniruddha Gokhale // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_ARGUMENT_INVOKE_H_) +#ifndef _BE_VISITOR_OPERATION_ARGUMENT_INVOKE_H_ #define _BE_VISITOR_OPERATION_ARGUMENT_INVOKE_H_ // ************************************************************ // generic operation visitor for docall, upcall, pre/post // ************************************************************ -class be_compiled_visitor_operation_argument_invoke +class be_compiled_visitor_operation_argument_invoke : public be_visitor_operation_argument { // @@ -51,7 +51,7 @@ public: virtual int post_process (be_decl *bd); // stuff to o/p after each element of the scope is handled - enum LAST_ARG_PRINTED + enum LAST_ARG_PRINTED { TAO_ARG_NONE, TAO_ARG_IN, diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h index ef4d1551480..e483d001735 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h @@ -13,21 +13,21 @@ // = DESCRIPTION // Visitor for generating code for IDL operations. This is a visitor for // passing arguments to the CDR operators in a compiled marshaling -// stub/skeleton +// stub/skeleton // // = AUTHOR // Aniruddha Gokhale // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_ARGUMENT_MARSHAL_H_) +#ifndef _BE_VISITOR_OPERATION_ARGUMENT_MARSHAL_H_ #define _BE_VISITOR_OPERATION_ARGUMENT_MARSHAL_H_ // ************************************************************ // generic operation visitor for docall, upcall, pre/post // ************************************************************ -class be_compiled_visitor_operation_argument_marshal +class be_compiled_visitor_operation_argument_marshal : public be_visitor_operation_argument { // @@ -51,7 +51,7 @@ public: virtual int post_process (be_decl *bd); // stuff to o/p after each element of the scope is handled - enum LAST_ARG_PRINTED + enum LAST_ARG_PRINTED { TAO_ARG_NONE, TAO_ARG_IN, 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 index dc31959e345..805846419e4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_sh.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_COLLOCATED_SH_H_) +#ifndef _BE_VISITOR_OPERATION_COLLOCATED_SH_H_ #define _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 index 48b7966e9aa..e0aac140703 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/collocated_ss.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_COLLOCATED_SS_H_) +#ifndef _BE_VISITOR_OPERATION_COLLOCATED_SS_H_ #define _BE_VISITOR_OPERATION_COLLOCATED_SS_H_ // ***************************************************************** diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h b/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h index c6d1477c585..6ebfa0a3e80 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/compiled_marshal.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_COMPILED_MARSHAL_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_COMPILED_MARSHAL_H_ #define _BE_VISITOR_OPERATION_RETTYPE_COMPILED_MARSHAL_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 index 32c9e1c3d22..9e6d44f8848 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_) +#ifndef _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ #define _BE_VISITOR_OPERATION_EXCEPTIONLIST_CS_H_ // ****************************************************************************** diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h index e0b0be28792..79e63a0ba13 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_OPERATION_H_) +#ifndef _BE_VISITOR_OPERATION_OPERATION_H_ #define _BE_VISITOR_OPERATION_OPERATION_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 index 9ba8128f0c6..1567182e5d6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_OPERATION_CH_H_) +#ifndef _BE_VISITOR_OPERATION_OPERATION_CH_H_ #define _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 index e5f9ae92f07..e8d029f8a35 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_OPERATION_CS_H_) +#ifndef _BE_VISITOR_OPERATION_OPERATION_CS_H_ #define _BE_VISITOR_OPERATION_OPERATION_CS_H_ // ************************************************************ @@ -59,7 +59,7 @@ public: virtual int post_process (be_decl *); // stuff to output after every member of the scope is handled - virtual int gen_raise_exception (be_type *, + virtual int gen_raise_exception (be_type *, const char * excep, const char * status); // helper that generates code for raising an exception 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 index cf2e06f4b28..9f5b04a6997 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_OPERATION_SH_H_) +#ifndef _BE_VISITOR_OPERATION_OPERATION_SH_H_ #define _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 index 03124ef8b4b..aac5af2ed74 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_OPERATION_SS_H_) +#ifndef _BE_VISITOR_OPERATION_OPERATION_SS_H_ #define _BE_VISITOR_OPERATION_OPERATION_SS_H_ // ************************************************************ @@ -63,7 +63,7 @@ public: virtual int post_process (be_decl *); // stuff to output after every member of the scope is handled - virtual int gen_raise_exception (be_type *, + virtual int gen_raise_exception (be_type *, const char * excep, const char * status, const char * env); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h index 9a4fc0a8ac3..9a196b55d48 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_H_ #define _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 index ff35c744e62..c43e3094c57 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_ASSIGN_SS_H_ #define _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 index eb3b287ce9c..bb7de8fe3ad 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_DOCALL_CS_H_ #define _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 index b3f95579a6a..644f9d27fbd 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_MARSHAL_SS_H_ #define _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 index e2299617a35..5efdc22d2a2 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_POST_DOCALL_CS_H_ #define _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 index 6cfbd7566ed..1895cb7983d 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_POST_UPCALL_SS_H_ #define _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 index 5c6f3723448..2a11b2cd605 100644 --- 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 @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ #define _BE_VISITOR_OPERATION_RETTYPE_PRE_DOCALL_CS_H_ // ************************************************************ diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h index 1d5306ad9e1..2abe28ed76f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_PRE_INVOKE_CS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_PRE_INVOKE_CS_H_ #define _BE_VISITOR_OPERATION_RETTYPE_PRE_INVOKE_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 index ec9b8383342..05626351ea5 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_RETURN_CS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_RETURN_CS_H_ #define _BE_VISITOR_OPERATION_RETTYPE_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 index ca9b7ba99e7..f7bce1756ab 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_VARDECL_CS_H_ #define _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 index 4cef49b9bde..ba942a2bbfd 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_) +#ifndef _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ #define _BE_VISITOR_OPERATION_RETTYPE_VARDECL_SS_H_ // ************************************************************ @@ -79,10 +79,10 @@ public: // ************************************************************ // Operation visitor for return type variable declaration in the server // skeleton using compiled marshaling. This one overrides 2 methods of the base -// class +// class // ************************************************************ -class be_compiled_visitor_operation_rettype_vardecl_ss : +class be_compiled_visitor_operation_rettype_vardecl_ss : public be_visitor_operation_rettype_vardecl_ss { // 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 index f5329bfe963..14d0f2a4243 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_TIE_SH_H_) +#ifndef _BE_VISITOR_OPERATION_TIE_SH_H_ #define _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 index f6168878069..e38012009a7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_si.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_OPERATION_TIE_SI_H_) +#ifndef _BE_VISITOR_OPERATION_TIE_SI_H_ #define _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 index 0bc0434cfe8..5a006875e0d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_ROOT_H) +#ifndef TAO_BE_VISITOR_ROOT_H #define TAO_BE_VISITOR_ROOT_H #include "be_visitor.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 index 55bea266f7b..e7c0ea72c0c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ANY_OP_H_) +#ifndef _BE_VISITOR_ROOT_ANY_OP_H_ #define _BE_VISITOR_ROOT_ANY_OP_H_ class be_visitor_root_any_op : public be_visitor_root 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 index 2c6675c0206..2df86ebcdfe 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_CDR_OP_H_) +#ifndef _BE_VISITOR_ROOT_CDR_OP_H_ #define _BE_VISITOR_ROOT_CDR_OP_H_ class be_visitor_root_cdr_op : public be_visitor_root diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root.h b/TAO/TAO_IDL/be_include/be_visitor_root/root.h index 106bf26355d..79507d2254b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_H_ #define _BE_VISITOR_ROOT_ROOT_H_ class be_visitor_root : public be_visitor_scope 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 index 47dd1f09b56..c36cf7f5192 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_CH_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_CH_H_ #define _BE_VISITOR_ROOT_ROOT_CH_H_ class be_visitor_root_ch : public be_visitor_root 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 index 1362397511b..e39eab1ac4f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_CI_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_CI_H_ #define _BE_VISITOR_ROOT_ROOT_CI_H_ class be_visitor_root_ci : public be_visitor_root 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 index e8462a0df49..64b5df10792 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_CS_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_CS_H_ #define _BE_VISITOR_ROOT_ROOT_CS_H_ class be_visitor_root_cs : public be_visitor_root 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 index 45a15201de8..d1c42ca580e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_SH_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_SH_H_ #define _BE_VISITOR_ROOT_ROOT_SH_H_ class be_visitor_root_sh : public be_visitor_root 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 index 5ff6648ebb8..b615a08d69d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_si.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_SI_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_SI_H_ #define _BE_VISITOR_ROOT_ROOT_SI_H_ class be_visitor_root_si : public be_visitor_root 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 index 412f93df56b..0c75d137122 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_ROOT_ROOT_SS_H_) +#ifndef _BE_VISITOR_ROOT_ROOT_SS_H_ #define _BE_VISITOR_ROOT_ROOT_SS_H_ class be_visitor_root_ss : public be_visitor_root diff --git a/TAO/TAO_IDL/be_include/be_visitor_scope.h b/TAO/TAO_IDL/be_include/be_visitor_scope.h index 900dbc7a6f3..095dee0ae32 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_scope.h +++ b/TAO/TAO_IDL/be_include/be_visitor_scope.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_SCOPE_H) +#ifndef TAO_BE_VISITOR_SCOPE_H #define TAO_BE_VISITOR_SCOPE_H #include "be_visitor.h" diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence.h b/TAO/TAO_IDL/be_include/be_visitor_sequence.h index a2e1a502a14..e8ec94d7573 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence.h @@ -3,7 +3,7 @@ // $Id$ // -#if !defined (TAO_BE_VISITOR_SEQUENCE_H) +#ifndef TAO_BE_VISITOR_SEQUENCE_H #define TAO_BE_VISITOR_SEQUENCE_H #include "be_visitor_decl.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 index b0b1f8a666e..71cc3bf65c5 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_ANY_OP_CH_H_) +#ifndef _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 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 index 4252635baef..fdb3e422d14 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_ANY_OP_CS_H_) +#ifndef _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 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 index 449e5efd482..1fe1880f3dd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_) +#ifndef _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ #define _BE_VISITOR_SEQUENCE_BUFFER_TYPE_H_ class be_visitor_sequence_buffer_type : public be_visitor_decl 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 index 8503f16471f..ca3f1b85856 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_CDR_OP_CH_H_) +#ifndef _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 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 index 4015f388910..1a36b175013 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_CDR_OP_CS_H_) +#ifndef _BE_VISITOR_SEQUENCE_CDR_OP_CS_H_ #define _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 index 88212e3ac0e..c307db5fa6e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/elemtype.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_ELEMTYPE_H_) +#ifndef _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ #define _BE_VISITOR_SEQUENCE_ELEMTYPE_H_ class be_visitor_sequence_elemtype : public be_visitor_decl 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 index 71673e2c230..ef1ac6a4cd2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_) +#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ #define _BE_VISITOR_SEQUENCE_SEQUENCE_BASE_H_ class be_visitor_sequence_base : public be_visitor_decl 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 index 412b9c6ad57..5babfec9fd9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_) +#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ #define _BE_VISITOR_SEQUENCE_SEQUENCE_CH_H_ class be_visitor_sequence_ch : public be_visitor_decl @@ -57,10 +57,10 @@ public: // 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 + // generate a instance of the bounded string sequence virtual int instantiate_sequence (be_sequence *node); - // determine which sequence to instantiate + // determine which sequence to instantiate virtual int gen_object_manager (be_sequence *node); // generate a instance of the object manager 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 index fbe8890c7c8..c2b8508fe7a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ci.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_) +#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ #define _BE_VISITOR_SEQUENCE_SEQUENCE_CI_H_ class be_visitor_sequence_ci : public be_visitor_decl 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 index c159491108d..6751e0ca749 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_) +#ifndef _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ #define _BE_VISITOR_SEQUENCE_SEQUENCE_CS_H_ class be_visitor_sequence_cs : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure.h index c4c69c57013..b4e229b481c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_STRUCTURE_H) +#ifndef TAO_BE_VISITOR_STRUCTURE_H #define TAO_BE_VISITOR_STRUCTURE_H #include "be_visitor.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 index 1bd7384f191..935a74aedc8 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_ANY_OP_CH_H_) +#ifndef _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 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 index 1ee098a905a..65829b3ff15 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_ANY_OP_CS_H_) +#ifndef _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 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 index 029c6ef3a51..4c082357b19 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_CDR_OP_CH_H_) +#ifndef _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 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 index 9510c2d91be..3a7ca3d24a3 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_CDR_OP_CS_H_) +#ifndef _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 diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h index a10531ccf9c..01a64e3f342 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_H_) +#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_H_ #define _BE_VISITOR_STRUCTURE_STRUCTURE_H_ class be_visitor_structure : public be_visitor_scope 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 index f946d033288..1ec6f9d6ccb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_) +#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ #define _BE_VISITOR_STRUCTURE_STRUCTURE_CH_H_ class be_visitor_structure_ch : public be_visitor_structure 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 index ac47118f00d..8665832e078 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_) +#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ #define _BE_VISITOR_STRUCTURE_STRUCTURE_CI_H_ class be_visitor_structure_ci : public be_visitor_structure 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 index a2fb142c02e..bf4adfa0000 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_) +#ifndef _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ #define _BE_VISITOR_STRUCTURE_STRUCTURE_CS_H_ class be_visitor_structure_cs : public be_visitor_structure @@ -41,7 +41,7 @@ public: // destructor virtual int visit_structure (be_structure *node); - // visit structure. + // visit structure. }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode.h b/TAO/TAO_IDL/be_include/be_visitor_typecode.h index cbd083c4fb7..3f00ab6a94a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typecode.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_TYPECODE_H) +#ifndef TAO_BE_VISITOR_TYPECODE_H #define TAO_BE_VISITOR_TYPECODE_H #include "be_visitor_decl.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 index c6f67b4fc4a..85e3f6bcea4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPECODE_TYPECODE_DECL_H_) +#ifndef _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ #define _BE_VISITOR_TYPECODE_TYPECODE_DECL_H_ class be_visitor_typecode_decl : public be_visitor_decl 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 index b87b57dfa05..e3a1765d864 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_) +#ifndef _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ #define _BE_VISITOR_TYPECODE_TYPECODE_DEFN_H_ class be_visitor_typecode_defn : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef.h index 26a89412edd..e333e4d8e08 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_TYPEDEF_H) +#ifndef TAO_BE_VISITOR_TYPEDEF_H #define TAO_BE_VISITOR_TYPEDEF_H #include "be_visitor.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 index 915465ed1fb..a614a30f71a 100644 --- 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 @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_ANY_OP_CH_H_) +#ifndef _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 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 index 9014b277d1d..f99033d4f43 100644 --- 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 @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_ANY_OP_CS_H_) +#ifndef _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 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 index 82f72053396..87eb5834063 100644 --- 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 @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_CDR_OP_CH_H_) +#ifndef _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 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 index 2301ba617a5..09269214b96 100644 --- 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 @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_CDR_OP_CS_H_) +#ifndef _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 diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h index 4b9f9f48507..d0d1b297ae2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_H_) +#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_H_ #define _BE_VISITOR_TYPEDEF_TYPEDEF_H_ class be_visitor_typedef : public be_visitor_decl 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 index a18b580d489..eda0adf5441 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_) +#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ #define _BE_VISITOR_TYPEDEF_TYPEDEF_CH_H_ class be_visitor_typedef_ch : public be_visitor_typedef 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 index 38c0276c33a..9f308d33d52 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_) +#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_ #define _BE_VISITOR_TYPEDEF_TYPEDEF_CI_H_ class be_visitor_typedef_ci : public be_visitor_typedef 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 index 091ac01e22c..a546de4c38d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h @@ -22,7 +22,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_) +#ifndef _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_ #define _BE_VISITOR_TYPEDEF_TYPEDEF_CS_H_ class be_visitor_typedef_cs : public be_visitor_typedef diff --git a/TAO/TAO_IDL/be_include/be_visitor_union.h b/TAO/TAO_IDL/be_include/be_visitor_union.h index 6677a26284d..e235ec7cbff 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union.h @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_UNION_H) +#ifndef TAO_BE_VISITOR_UNION_H #define TAO_BE_VISITOR_UNION_H #include "be_visitor.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 index 2f045164396..20d7ed97b4f 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_ANY_OP_CH_H_) +#ifndef _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 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 index 95bf8baaa82..7f6ea89b519 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_ANY_OP_CS_H_) +#ifndef _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 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 index 3f92aefd860..972dacf1335 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_CDR_OP_CH_H_) +#ifndef _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 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 index da3d1ea6404..a57a7dfb859 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_CDR_OP_CS_H_) +#ifndef _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 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 index 5c46ba2cd58..950deb597cd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CH_H_) +#ifndef _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ #define _BE_VISITOR_UNION_DISCRIMINANT_CH_H_ class be_visitor_union_discriminant_ch : public be_visitor_decl 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 index bb44c2f12ee..3e7619a939e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CI_H_) +#ifndef _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ #define _BE_VISITOR_UNION_DISCRIMINANT_CI_H_ class be_visitor_union_discriminant_ci : public be_visitor_decl 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 index 23cbe129a22..af61beb8b4d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_DISCRIMINANT_CS_H_) +#ifndef _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ #define _BE_VISITOR_UNION_DISCRIMINANT_CS_H_ class be_visitor_union_discriminant_cs : public be_visitor_decl diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union.h b/TAO/TAO_IDL/be_include/be_visitor_union/union.h index 568f32b6d8b..5e669ac9327 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_UNION_H_) +#ifndef _BE_VISITOR_UNION_UNION_H_ #define _BE_VISITOR_UNION_UNION_H_ class be_visitor_union : public be_visitor_scope 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 index 5d2f389fb5e..86813169ff1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_UNION_CH_H_) +#ifndef _BE_VISITOR_UNION_UNION_CH_H_ #define _BE_VISITOR_UNION_UNION_CH_H_ class be_visitor_union_ch : public be_visitor_union 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 index b0a2c52afe5..d0d138f583d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_UNION_CI_H_) +#ifndef _BE_VISITOR_UNION_UNION_CI_H_ #define _BE_VISITOR_UNION_UNION_CI_H_ class be_visitor_union_ci : public be_visitor_union 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 index 3a6ef0322aa..04783afa7d9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_UNION_CS_H_) +#ifndef _BE_VISITOR_UNION_UNION_CS_H_ #define _BE_VISITOR_UNION_UNION_CS_H_ class be_visitor_union_cs : public be_visitor_union diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch.h index 970addf09a5..55d525a11a1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (TAO_BE_VISITOR_UNION_BRANCH_H) +#ifndef TAO_BE_VISITOR_UNION_BRANCH_H #define TAO_BE_VISITOR_UNION_BRANCH_H #include "be_visitor_decl.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 index 09ccb3bf744..e325b41f912 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_CDR_OP_CH_H_) +#ifndef _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 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 index c679327e1e0..2a912a3c138 100644 --- 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 @@ -19,7 +19,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_CDR_OP_CS_H_) +#ifndef _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 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 index 5037fb586ea..fdc7e9f2070 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_PRIVATE_CH_H_) +#ifndef _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 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 index 39a2085dd8b..b1d76206108 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_ACCESS_CS_H_) +#ifndef _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 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 index 8bf78d57eb1..fe324e600d0 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_ASSIGN_CS_H_) +#ifndef _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 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 index 43387f44cfa..d0deb7bc4f6 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_CH_H_) +#ifndef _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 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 index 7462bdfe3de..585d8f0453d 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCI_PUBLIC_CI_H_) +#ifndef _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 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 index f727b019644..c66e142c280 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCS_PUBLIC_CS_H_) +#ifndef _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 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 index 6e92074db2a..e7fa0b7733a 100644 --- 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 @@ -21,7 +21,7 @@ // // ============================================================================ -#if !defined (_BE_VISITOR_UNION_BRANCH_PUBLIC_RESET_CS_H_) +#ifndef _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 diff --git a/TAO/TAO_IDL/fe/y.tab.h b/TAO/TAO_IDL/fe/y.tab.h index 88a7834e196..4747b1ed899 100644 --- a/TAO/TAO_IDL/fe/y.tab.h +++ b/TAO/TAO_IDL/fe/y.tab.h @@ -1,33 +1,33 @@ // $Id$ typedef union #ifdef __cplusplus - TAO_YYSTYPE + 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 */ + 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 */ + 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 diff --git a/TAO/TAO_IDL/include/ast.h b/TAO/TAO_IDL/include/ast.h index fc05323e075..0f95cb271d0 100644 --- a/TAO/TAO_IDL/include/ast.h +++ b/TAO/TAO_IDL/include/ast.h @@ -78,43 +78,43 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** 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 "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 "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 +#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 index 1f65d0ca9ac..e2d2663362d 100644 --- a/TAO/TAO_IDL/include/ast_argument.h +++ b/TAO/TAO_IDL/include/ast_argument.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,14 +73,14 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_field.hh, utl_scoped_name.hh, ast_type.hh -** utl_strlist.hh, ast_decl.hh +** utl_strlist.hh, ast_decl.hh ** ** USE: Included from ast.hh */ -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_field.h" +#include "idl_fwd.h" +#include "idl_narrow.h" +#include "ast_field.h" class AST_Argument : public virtual AST_Field @@ -94,7 +94,7 @@ public: // Constructor(s) AST_Argument(); AST_Argument(Direction direction, AST_Type *ft, UTL_ScopedName *n, - UTL_StrList *p); + UTL_StrList *p); virtual ~AST_Argument() {} // Data Accessors @@ -105,11 +105,11 @@ public: DEF_NARROW_FROM_DECL(AST_Argument); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - const Direction pd_direction; // Argument direction + 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 index 86d2387000b..a8f0b7a5002 100644 --- a/TAO/TAO_IDL/include/ast_array.h +++ b/TAO/TAO_IDL/include/ast_array.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_concrete_type.hh, utl_exprlist.hh, ast_type.hh, -** ast_decl.hh +** ast_decl.hh ** ** USE: Included from ast.hh */ -class AST_Array : public virtual AST_ConcreteType { +class AST_Array : public virtual AST_ConcreteType { public: // Operations @@ -90,28 +90,28 @@ public: // 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); + 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); + 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 + 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); + 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 index 6abc58967d6..f9f5dd3f7cf 100644 --- a/TAO/TAO_IDL/include/ast_attribute.h +++ b/TAO/TAO_IDL/include/ast_attribute.h @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_field.hh, ast_type.hh, utl_scoped_name.hh, -** utl_strlist.hh, ast_decl.hh +** utl_strlist.hh, ast_decl.hh ** ** USE: Included from ast.h */ -class AST_Attribute : public virtual AST_Field +class AST_Attribute : public virtual AST_Field { public: // Operations @@ -86,9 +86,9 @@ public: // Constructor(s) AST_Attribute(); AST_Attribute(idl_bool readonly, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); + AST_Type *ft, + UTL_ScopedName *n, + UTL_StrList *p); virtual ~AST_Attribute() {} // Data Accessors @@ -99,11 +99,11 @@ public: DEF_NARROW_FROM_DECL(AST_Attribute); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - const idl_bool pd_readonly; // Is attribute read-only? + 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 index 410c2eabe16..660994ee572 100644 --- a/TAO/TAO_IDL/include/ast_concrete_type.h +++ b/TAO/TAO_IDL/include/ast_concrete_type.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -77,7 +77,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -class AST_ConcreteType : public virtual AST_Type +class AST_ConcreteType : public virtual AST_Type { public: // Operations diff --git a/TAO/TAO_IDL/include/ast_constant.h b/TAO/TAO_IDL/include/ast_constant.h index 2f663c60a1e..afb73edeb58 100644 --- a/TAO/TAO_IDL/include/ast_constant.h +++ b/TAO/TAO_IDL/include/ast_constant.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -79,12 +79,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_decl.hh, ast_expression.hh, utl_scoped_name.hh, -** utl_strlist.hh +** utl_strlist.hh ** ** USE: Included from ast.hh */ -class AST_Constant : public virtual AST_Decl +class AST_Constant : public virtual AST_Decl { public: // Operations @@ -92,9 +92,9 @@ public: // Constructor(s) AST_Constant(); AST_Constant(AST_Expression::ExprType et, AST_Decl::NodeType nt, - AST_Expression *ev, UTL_ScopedName *n, UTL_StrList *p); + AST_Expression *ev, UTL_ScopedName *n, UTL_StrList *p); AST_Constant(AST_Expression::ExprType et, AST_Expression *ev, - UTL_ScopedName *n, UTL_StrList *p); + UTL_ScopedName *n, UTL_StrList *p); virtual ~AST_Constant() {} // Data Accessors @@ -106,12 +106,12 @@ public: DEF_NARROW_FROM_DECL(AST_Constant); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - AST_Expression *pd_constant_value; // The value - AST_Expression::ExprType pd_et; // Its expr type + 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 index 1177756ce85..8b7dde9d031 100644 --- a/TAO/TAO_IDL/include/ast_decl.h +++ b/TAO/TAO_IDL/include/ast_decl.h @@ -80,11 +80,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** 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" +#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 @@ -92,38 +92,38 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // the hierarchy rooted in a single class, thereby eliminating the situation // that causes the bug to appear -class COMMON_Base +class COMMON_Base { public: // Narrowing DEF_NARROW_METHODS0(COMMON_Base); }; -class AST_Decl : public virtual 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_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 @@ -161,30 +161,30 @@ public: DEF_NARROW_FROM_DECL(AST_Decl); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); // Other operations // Return TRUE if "this" has "s" as an ancestor - idl_bool has_ancestor(AST_Decl *s); + 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 + 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); + 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 index 40189295737..550146537b7 100644 --- a/TAO/TAO_IDL/include/ast_enum.h +++ b/TAO/TAO_IDL/include/ast_enum.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -71,12 +71,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_enum_val.hh, -** utl_scoped_name.hh, utl_strlist.hh, ast_expression.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 +class AST_Enum : public virtual AST_ConcreteType, public virtual UTL_Scope { public: // Operations @@ -92,23 +92,23 @@ public: DEF_NARROW_FROM_SCOPE(AST_Enum); // AST Dumping - virtual void dump(ostream &); + virtual void dump(ostream &); // Other operations // Look up an AST_EnumVal by value - virtual AST_EnumVal *lookup_by_value(const AST_Expression *v); + virtual AST_EnumVal *lookup_by_value(const AST_Expression *v); // Get value to be assigned to next enumerator - virtual unsigned long next_enum_val(); + virtual unsigned long next_enum_val(); private: // Data - unsigned long pd_enum_counter; // Value for next - // enumerator + 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); + virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); }; diff --git a/TAO/TAO_IDL/include/ast_enum_val.h b/TAO/TAO_IDL/include/ast_enum_val.h index 6851474b641..83b5033fcf6 100644 --- a/TAO/TAO_IDL/include/ast_enum_val.h +++ b/TAO/TAO_IDL/include/ast_enum_val.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_constant.hh, utl_scoped_name.hh, utl_strlist.hh, -** ast_decl.hh +** ast_decl.hh ** ** USE: Included from ast.hh */ -class AST_EnumVal : public virtual AST_Constant +class AST_EnumVal : public virtual AST_Constant { public: // Operations @@ -93,7 +93,7 @@ public: DEF_NARROW_FROM_DECL(AST_EnumVal); // AST Dumping - virtual void dump(ostream &); + 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 index f3a667bd8b7..e7821e6d405 100644 --- a/TAO/TAO_IDL/include/ast_exception.h +++ b/TAO/TAO_IDL/include/ast_exception.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -85,7 +85,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -class AST_Exception : public virtual AST_Structure +class AST_Exception : public virtual AST_Structure { public: // Operations @@ -101,17 +101,17 @@ public: DEF_NARROW_FROM_SCOPE(AST_Exception); // AST Dumping - virtual void dump(ostream &o); + 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); + 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); }; diff --git a/TAO/TAO_IDL/include/ast_expression.h b/TAO/TAO_IDL/include/ast_expression.h index db3bd7abc41..5ac661d52df 100644 --- a/TAO/TAO_IDL/include/ast_expression.h +++ b/TAO/TAO_IDL/include/ast_expression.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -76,70 +76,70 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ // An expression (and maybe its value, if computed) -class AST_Expression { +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) + 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 + 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 + 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 + 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; }; @@ -151,17 +151,17 @@ public: 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); + 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 @@ -173,7 +173,7 @@ public: void set_file_name(String *f); ExprComb ec(); void set_ec(ExprComb new_ec); - AST_ExprValue *ev(); + AST_ExprValue *ev(); void set_ev(AST_ExprValue *new_ev); AST_Expression *v1(); void set_v1(AST_Expression *e); @@ -183,44 +183,44 @@ public: void set_n(UTL_ScopedName *new_n); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); // Other operations // Evaluation and value coercion - virtual AST_ExprValue *eval(EvalKind ek); - virtual AST_ExprValue *coerce(ExprType t); + 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); + virtual void evaluate(EvalKind ek); // Compare to AST_Expressions - virtual long operator==(AST_Expression *vc); - virtual long compare(AST_Expression *vc); + 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); + 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 + 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) + 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(); + void fill_definition_details(); // Internal evaluation virtual AST_ExprValue *eval_internal(EvalKind ek); diff --git a/TAO/TAO_IDL/include/ast_extern.h b/TAO/TAO_IDL/include/ast_extern.h index f344e371b83..493a12eaa0b 100644 --- a/TAO/TAO_IDL/include/ast_extern.h +++ b/TAO/TAO_IDL/include/ast_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -84,10 +84,10 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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 void AST_record_fwd_interface(AST_InterfaceFwd *i); +extern void AST_check_fwd_interface(); -extern idl_bool AST_illegal_recursive_type(AST_Decl *t); +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 index b3c6f04cd8c..20df9f68fe3 100644 --- a/TAO/TAO_IDL/include/ast_field.h +++ b/TAO/TAO_IDL/include/ast_field.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -82,12 +82,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" +#include "idl_fwd.h" +#include "idl_narrow.h" +#include "ast_decl.h" -class AST_Field : public virtual AST_Decl +class AST_Field : public virtual AST_Decl { public: // Operations @@ -95,9 +95,9 @@ public: // Constructor(s) AST_Field(); AST_Field(AST_Type *field_type, - UTL_ScopedName *n, UTL_StrList *p); + UTL_ScopedName *n, UTL_StrList *p); AST_Field(AST_Decl::NodeType nt, AST_Type *field_type, - UTL_ScopedName *n, UTL_StrList *p); + UTL_ScopedName *n, UTL_StrList *p); virtual ~AST_Field() {} // Data Accessors @@ -108,11 +108,11 @@ public: DEF_NARROW_FROM_DECL(AST_Field); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - AST_Type *pd_field_type; // Base type for field + AST_Type *pd_field_type; // Base type for field }; diff --git a/TAO/TAO_IDL/include/ast_generator.h b/TAO/TAO_IDL/include/ast_generator.h index 6733bbad3e8..b6a6686ffb8 100644 --- a/TAO/TAO_IDL/include/ast_generator.h +++ b/TAO/TAO_IDL/include/ast_generator.h @@ -73,18 +73,18 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** 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 +** 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 +class AST_Generator { public: // Operations @@ -92,126 +92,126 @@ public: // Create a node representing a predefined type virtual AST_PredefinedType *create_predefined_type(AST_PredefinedType::PredefinedType t, - UTL_ScopedName *n, - UTL_StrList *p); + UTL_ScopedName *n, + UTL_StrList *p); // Create a node representing a module - virtual AST_Module *create_module(UTL_ScopedName *n, - UTL_StrList *p); + 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); + 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); + 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); + UTL_StrList *p); // Create a node representing an exception - virtual AST_Exception *create_exception(UTL_ScopedName *n, - UTL_StrList *p); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + virtual AST_String *create_string(AST_Expression *v); // Create a node representing a wide string type - virtual AST_String *create_wstring(AST_Expression *v); + 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); + 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, + virtual AST_Native *create_native (UTL_ScopedName *n, UTL_StrList *p); }; diff --git a/TAO/TAO_IDL/include/ast_interface.h b/TAO/TAO_IDL/include/ast_interface.h index c41eaf858fd..317a181dcd0 100644 --- a/TAO/TAO_IDL/include/ast_interface.h +++ b/TAO/TAO_IDL/include/ast_interface.h @@ -79,14 +79,14 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** 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" +#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 +class AST_Interface : public virtual AST_Type, public virtual UTL_Scope { public: // Operations @@ -94,13 +94,13 @@ public: // Constructor(s) AST_Interface(); AST_Interface(UTL_ScopedName *n, - AST_Interface **ih, - long nih, - UTL_StrList *p); + AST_Interface **ih, + long nih, + UTL_StrList *p); virtual ~AST_Interface() {} // Data Accessors - AST_Interface **inherits(); + AST_Interface **inherits(); void set_inherits(AST_Interface **i); long n_inherits(); void set_n_inherits(long i); @@ -119,27 +119,27 @@ public: DEF_NARROW_FROM_SCOPE(AST_Interface); // AST Dumping - virtual void dump(ostream &o); + 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? + 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_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); }; diff --git a/TAO/TAO_IDL/include/ast_interface_fwd.h b/TAO/TAO_IDL/include/ast_interface_fwd.h index 72a8f8842aa..49153b9da59 100644 --- a/TAO/TAO_IDL/include/ast_interface_fwd.h +++ b/TAO/TAO_IDL/include/ast_interface_fwd.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -71,12 +71,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_decl.hh, ast_interface.hh, utl_scoped_name.hh, -** utl_strlist.hh +** utl_strlist.hh ** ** USE: Included from ast.hh */ -class AST_InterfaceFwd : public virtual AST_Type +class AST_InterfaceFwd : public virtual AST_Type { public: // Operations @@ -87,7 +87,7 @@ public: virtual ~AST_InterfaceFwd() {} // Data Accessors - AST_Interface *full_definition(); + AST_Interface *full_definition(); void set_full_definition(AST_Interface *nfd); // Narrowing @@ -95,12 +95,12 @@ public: DEF_NARROW_FROM_DECL(AST_InterfaceFwd); // AST Dumping - virtual void dump(ostream &); + virtual void dump(ostream &); private: // Data - AST_Interface *pd_full_definition; // The interface this is a - // forward declaration of + 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 index 073eb5baa2c..cae2cb03b3c 100644 --- a/TAO/TAO_IDL/include/ast_module.h +++ b/TAO/TAO_IDL/include/ast_module.h @@ -79,7 +79,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -class AST_Module : public virtual AST_Decl, public virtual UTL_Scope +class AST_Module : public virtual AST_Decl, public virtual UTL_Scope { public: // Operations @@ -95,7 +95,7 @@ public: DEF_NARROW_FROM_SCOPE(AST_Module); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: friend void fe_populate(AST_Module *m); @@ -103,17 +103,17 @@ private: // 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_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); }; diff --git a/TAO/TAO_IDL/include/ast_native.h b/TAO/TAO_IDL/include/ast_native.h index d170da542a9..4b3f40fa6b9 100644 --- a/TAO/TAO_IDL/include/ast_native.h +++ b/TAO/TAO_IDL/include/ast_native.h @@ -1,7 +1,7 @@ // This may look like C, but it's really -*- C++ -*- // $Id$ -#if !defined (_AST_NATIVE_H_) +#ifndef _AST_NATIVE_H_ #define _AST_NATIVE_H_ // Representation of "native" IDL type added by the POA spec @@ -32,7 +32,7 @@ public: DEF_NARROW_FROM_DECL(AST_Native); // AST Dumping - virtual void dump(ostream &o); + 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 index 3dcf8a252ef..50ef6b40796 100644 --- a/TAO/TAO_IDL/include/ast_operation.h +++ b/TAO/TAO_IDL/include/ast_operation.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -71,27 +71,27 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_decl.hh, utl_scope.hh, ast_type.hh, utl_strlist.hh, -** utl_exceptlist.hh, utl_scoped_name.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" +#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 +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 + OP_noflags // No flags present + , OP_oneway // Operation is oneway + , OP_idempotent // Operation is idempotent }; // Operations @@ -99,9 +99,9 @@ public: // Constructor(s) AST_Operation(); AST_Operation(AST_Type *return_type, - Flags flags, - UTL_ScopedName *n, - UTL_StrList *p); + Flags flags, + UTL_ScopedName *n, + UTL_StrList *p); virtual ~AST_Operation() {} // Data Accessors @@ -109,30 +109,30 @@ public: 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); + 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 + 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 + 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 }; diff --git a/TAO/TAO_IDL/include/ast_predefined_type.h b/TAO/TAO_IDL/include/ast_predefined_type.h index 7c7ebd953f4..ae4460ac8af 100644 --- a/TAO/TAO_IDL/include/ast_predefined_type.h +++ b/TAO/TAO_IDL/include/ast_predefined_type.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -74,32 +74,32 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_concrete_type.hh, utl_scoped_name.hh, utl_strlist.hh, -** ast_decl.hh +** ast_decl.hh ** ** USE: Included from ast.hh */ -class AST_PredefinedType : public virtual AST_ConcreteType +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 + 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 @@ -110,18 +110,18 @@ public: virtual ~AST_PredefinedType() {} // Data Accessors - PredefinedType pt(); + PredefinedType pt(); // Narrowing DEF_NARROW_METHODS1(AST_PredefinedType, AST_ConcreteType); DEF_NARROW_FROM_DECL(AST_PredefinedType); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - const PredefinedType pd_pt; // The specific predefined type -}; + 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 index e81c87f1fda..f85e5f9cbb3 100644 --- a/TAO/TAO_IDL/include/ast_root.h +++ b/TAO/TAO_IDL/include/ast_root.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -75,7 +75,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -class AST_Root : public virtual AST_Module +class AST_Root : public virtual AST_Module { public: // Operations @@ -91,16 +91,16 @@ public: DEF_NARROW_FROM_SCOPE(AST_Root); // AST Dumping - virtual void dump(ostream &o); + 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); + 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); }; diff --git a/TAO/TAO_IDL/include/ast_sequence.h b/TAO/TAO_IDL/include/ast_sequence.h index 73849d0f02b..38c869792af 100644 --- a/TAO/TAO_IDL/include/ast_sequence.h +++ b/TAO/TAO_IDL/include/ast_sequence.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_concrete_type.hh, ast_type.hh, ast_decl.hh, -** ast_expression.hh +** ast_expression.hh ** ** USE: Included from ast.hh */ -class AST_Sequence : public virtual AST_ConcreteType +class AST_Sequence : public virtual AST_ConcreteType { public: // Operations @@ -97,12 +97,12 @@ public: DEF_NARROW_FROM_DECL(AST_Sequence); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - AST_Expression *pd_max_size; // Maximum sequence size - AST_Type *pd_base_type; // Sequence base type + 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 index 9e5874c304c..b44577b975d 100644 --- a/TAO/TAO_IDL/include/ast_string.h +++ b/TAO/TAO_IDL/include/ast_string.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -77,7 +77,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -class AST_String : public virtual AST_ConcreteType +class AST_String : public virtual AST_ConcreteType { public: // Operations @@ -90,19 +90,19 @@ public: // Data Accessors AST_Expression *max_size(); - long width(); + long width(); // Narrowing DEF_NARROW_METHODS1(AST_String, AST_ConcreteType); DEF_NARROW_FROM_DECL(AST_String); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - AST_Expression *pd_max_size; // String maximum size - long pd_width; // Width of string + 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 index baa1944bbe6..b0f14cc45fe 100644 --- a/TAO/TAO_IDL/include/ast_structure.h +++ b/TAO/TAO_IDL/include/ast_structure.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -79,13 +79,13 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, utl_scoped_name.hh, -** utl_strlist.hh +** utl_strlist.hh ** ** USE: Included from ast.hh */ -class AST_Structure : public virtual AST_ConcreteType, - public virtual UTL_Scope +class AST_Structure : public virtual AST_ConcreteType, + public virtual UTL_Scope { public: // Operations @@ -102,17 +102,17 @@ public: DEF_NARROW_FROM_SCOPE(AST_Structure); // AST Dumping - virtual void dump(ostream &o); + 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); + 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 index 04a36d8235d..1b22dc98da5 100644 --- a/TAO/TAO_IDL/include/ast_type.h +++ b/TAO/TAO_IDL/include/ast_type.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -78,12 +78,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -#include "idl_fwd.h" -#include "idl_narrow.h" -#include "ast_decl.h" +#include "idl_fwd.h" +#include "idl_narrow.h" +#include "ast_decl.h" -class AST_Type : public virtual AST_Decl +class AST_Type : public virtual AST_Decl { public: // Operations diff --git a/TAO/TAO_IDL/include/ast_typedef.h b/TAO/TAO_IDL/include/ast_typedef.h index c2e13051b54..623c023b84a 100644 --- a/TAO/TAO_IDL/include/ast_typedef.h +++ b/TAO/TAO_IDL/include/ast_typedef.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -77,7 +77,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -class AST_Typedef : public virtual AST_Type +class AST_Typedef : public virtual AST_Type { public: // Operations @@ -95,11 +95,11 @@ public: DEF_NARROW_FROM_DECL(AST_Typedef); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - AST_Type *pd_base_type; // typedef base type + 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 index 062e540e9a8..84f73d481d5 100644 --- a/TAO/TAO_IDL/include/ast_union.h +++ b/TAO/TAO_IDL/include/ast_union.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -79,12 +79,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_union_branch.hh, -** ast_union_label.hh, utl_scoped_name.hh, utl_strlist.hh +** ast_union_label.hh, utl_scoped_name.hh, utl_strlist.hh ** ** USE: Included from ast.hh */ -class AST_Union : public virtual AST_Structure +class AST_Union : public virtual AST_Structure { public: // Operations @@ -104,39 +104,39 @@ public: DEF_NARROW_FROM_SCOPE(AST_Union); // AST Dumping - virtual void dump(ostream &); + virtual void dump(ostream &); private: // Data - AST_ConcreteType *pd_disc_type; // Discriminator type - AST_Expression::ExprType pd_udisc_type; // Its expression type + 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); + AST_UnionBranch *lookup_branch(AST_UnionBranch *branch); // Look up the branch with the "default" label - AST_UnionBranch *lookup_default(); + 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); + 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); + 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); + 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); }; diff --git a/TAO/TAO_IDL/include/ast_union_branch.h b/TAO/TAO_IDL/include/ast_union_branch.h index 2bfe414452e..e756a23e383 100644 --- a/TAO/TAO_IDL/include/ast_union_branch.h +++ b/TAO/TAO_IDL/include/ast_union_branch.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPEndencies: ast_field.hh, ast_union_label.hh, ast_type.hh, -** utl_scoped_name.hh, utl_strlist.h, ast_decl.h +** utl_scoped_name.hh, utl_strlist.h, ast_decl.h ** ** USE: Included from ast.hh */ -class AST_UnionBranch : public virtual AST_Field +class AST_UnionBranch : public virtual AST_Field { public: // Operations @@ -86,9 +86,9 @@ public: // Constructor(s) AST_UnionBranch(); AST_UnionBranch(AST_UnionLabel *label, - AST_Type *ft, - UTL_ScopedName *n, - UTL_StrList *p); + AST_Type *ft, + UTL_ScopedName *n, + UTL_StrList *p); virtual ~AST_UnionBranch() {} // Data Accessors @@ -99,11 +99,11 @@ public: DEF_NARROW_FROM_DECL(AST_UnionBranch); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - AST_UnionLabel *pd_label; // Label of this branch + 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 index 7dd124784a4..2a50603fcbf 100644 --- a/TAO/TAO_IDL/include/ast_union_label.h +++ b/TAO/TAO_IDL/include/ast_union_label.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -77,13 +77,13 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: included from ast.hh */ -class AST_UnionLabel +class AST_UnionLabel { public: // Define kind of label enum UnionLabel { - UL_default // Label is "default" - , UL_label // Regular label + UL_default // Label is "default" + , UL_label // Regular label }; // Operations @@ -98,12 +98,12 @@ public: AST_Expression *label_val(); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); private: // Data - UnionLabel pd_label_kind; // Label kind - AST_Expression *pd_label_val; // Label expression + UnionLabel pd_label_kind; // Label kind + AST_Expression *pd_label_val; // Label expression }; diff --git a/TAO/TAO_IDL/include/be_extern.h b/TAO/TAO_IDL/include/be_extern.h index 253599b76f1..ad43829cf88 100644 --- a/TAO/TAO_IDL/include/be_extern.h +++ b/TAO/TAO_IDL/include/be_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -71,12 +71,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // Functions: -extern "C" AST_Generator *BE_init(); +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_produce(); +extern "C" void BE_abort(); +extern "C" void BE_prep_arg(char *, idl_bool); -extern "C" void BE_version(); +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 index b5c3bb163d5..75e69a69546 100644 --- a/TAO/TAO_IDL/include/drv_extern.h +++ b/TAO/TAO_IDL/include/drv_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -71,17 +71,17 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // Functions -extern void DRV_init (); -extern void DRV_parse_args (long, char **); -extern void DRV_usage (); +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_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_cpp_init (); +extern void DRV_cpp_putarg (char *str); +extern void DRV_cpp_new_location (char *new_loc); -extern void DRV_fork(); +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 index fa154436c25..0eaec30233c 100644 --- a/TAO/TAO_IDL/include/drv_link.h +++ b/TAO/TAO_IDL/include/drv_link.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -67,8 +67,8 @@ 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 +// drv_link.hh - Define data and functions which are used to +// link in the back end functions /* * Front end interface @@ -87,16 +87,16 @@ 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_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_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; +extern DRV_PF_FE_new_UTL_String DRV_FE_new_UTL_String; -/* +/* * Back end interface */ @@ -107,11 +107,11 @@ 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; +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 @@ -121,4 +121,4 @@ extern void DRV_FE_close(); extern void DRV_BE_open(); extern void DRV_BE_close(); -#endif // _DRV_LINK_DRV_LINK_HH +#endif // _DRV_LINK_DRV_LINK_HH diff --git a/TAO/TAO_IDL/include/drv_private.h b/TAO/TAO_IDL/include/drv_private.h index 6b18ea8df74..04ea84024d3 100644 --- a/TAO/TAO_IDL/include/drv_private.h +++ b/TAO/TAO_IDL/include/drv_private.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -68,16 +68,16 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #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 +// 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? +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 +extern void DRV_drive(char *);// Compiler driver for single file -#endif // _DRV_PRIVATE_DRV_PRIVATE_HH +#endif // _DRV_PRIVATE_DRV_PRIVATE_HH diff --git a/TAO/TAO_IDL/include/fe_declarator.h b/TAO/TAO_IDL/include/fe_declarator.h index 00840836a90..39ea7e7e985 100644 --- a/TAO/TAO_IDL/include/fe_declarator.h +++ b/TAO/TAO_IDL/include/fe_declarator.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -77,13 +77,13 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from fe.hh */ -class FE_Declarator +class FE_Declarator { public: // Enum to denote types of declarators enum DeclaratorType { - FD_simple // Simple declarator - , FD_complex // Complex declarator (complex_part field used) + FD_simple // Simple declarator + , FD_complex // Complex declarator (complex_part field used) }; // Operations @@ -101,13 +101,13 @@ public: // Compose an FE_Declarator into an AST_Type once all the needed information // is available - AST_Type *compose(AST_Decl* tc); + 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 + 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 index 87ec38c5b55..d7a7bf6dd03 100644 --- a/TAO/TAO_IDL/include/fe_extern.h +++ b/TAO/TAO_IDL/include/fe_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -87,14 +87,14 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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 +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 +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 @@ -102,8 +102,8 @@ 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 *); +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 index f9b9d5bbf45..0fe78e3e227 100644 --- a/TAO/TAO_IDL/include/fe_interface_header.h +++ b/TAO/TAO_IDL/include/fe_interface_header.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. /* ** DEPENDENCIES: utl_scoped_name.hh, ast_interface.hh, utl_scope.hh, -** ast_decl.hh +** ast_decl.hh ** ** USE: Included from fe.hh */ -class FE_InterfaceHeader +class FE_InterfaceHeader { public: // Operations @@ -94,16 +94,16 @@ public: private: // Data - UTL_ScopedName *pd_interface_name; // Interface name - AST_Interface **pd_inherits; // Inherited interfaces - long pd_n_inherits; // How many + 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); + 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 index 1c496ce9843..1d1b28b2371 100644 --- a/TAO/TAO_IDL/include/fe_private.h +++ b/TAO/TAO_IDL/include/fe_private.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -68,7 +68,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #define _FE_FE_HH // fe_private.hh - Defines data which is private to the FE but -// which must be accessible throughout the FE +// which must be accessible throughout the FE /* ** DEPENDENCIES: NONE @@ -80,8 +80,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. * FE includes */ -#include "fe_interface_header.h"// class FE_InterfaceHeader -#include "fe_declarator.h" // class FE_Declarator +#include "fe_interface_header.h"// class FE_InterfaceHeader +#include "fe_declarator.h" // class FE_Declarator /* * FE Operations diff --git a/TAO/TAO_IDL/include/global_extern.h b/TAO/TAO_IDL/include/global_extern.h index c28a733f785..d67cd4be4e0 100644 --- a/TAO/TAO_IDL/include/global_extern.h +++ b/TAO/TAO_IDL/include/global_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -69,12 +69,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // global_extern.hh - Global data for the IDL compiler -extern IDL_GlobalData *idl_global; // Contains all "global" data +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 *); +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 index 5989365150e..0b9161c511b 100644 --- a/TAO/TAO_IDL/include/idl.h +++ b/TAO/TAO_IDL/include/idl.h @@ -75,23 +75,27 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #include "ace/ACE.h" // Most important ACE include file #include "ace/streams.h" // iostreams -#include "intlmacros.h" // Define macros for intl'ion +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ -#include // POSIX standard defns -#include // External functions +#include "intlmacros.h" // Define macros for intl'ion -#include // POSIX standard types +#include // POSIX standard defns +#include // External functions -#include "idl_narrow.h" // IDL Narrowing mechanism +#include // POSIX standard types -#include "idl_defines.h" // Constants for IDL compiler -#include "idl_fwd.h" // Forward decls of classes +#include "idl_narrow.h" // IDL Narrowing mechanism -#include "idl_bool.h" // Defines boolean for IDL +#include "idl_defines.h" // Constants for IDL compiler +#include "idl_fwd.h" // Forward decls of classes -#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 +#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 index c0741684896..838e7dbfcb8 100644 --- a/TAO/TAO_IDL/include/idl_bool.h +++ b/TAO/TAO_IDL/include/idl_bool.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -81,14 +81,14 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from idl.hh */ -#ifndef I_TRUE -#define I_TRUE 1 +#ifndef I_TRUE +#define I_TRUE 1 #endif -#ifndef I_FALSE -#define I_FALSE 0 +#ifndef I_FALSE +#define I_FALSE 0 #endif -typedef long idl_bool; +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 index 6cf062ee212..db7a7c6154d 100644 --- a/TAO/TAO_IDL/include/idl_defines.h +++ b/TAO/TAO_IDL/include/idl_defines.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,12 +73,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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 + +#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 index efbe0ccdeb5..7cf1fb14e02 100644 --- a/TAO/TAO_IDL/include/idl_extern.h +++ b/TAO/TAO_IDL/include/idl_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -71,11 +71,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // // 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 +#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 index 7b9761418b4..5198f1bcae8 100644 --- a/TAO/TAO_IDL/include/idl_fwd.h +++ b/TAO/TAO_IDL/include/idl_fwd.h @@ -79,70 +79,70 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // Class for global data representation: -class IDL_GlobalData; // Global data is stored in an - // instance of this +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 +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 +class FE_InterfaceHeader; // Interface header +class FE_Declarator; // Declarator // Generator class for the AST -class AST_Generator; // Generate nodes of various types +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_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 index 0f66796cb3e..8fe0d6e80b5 100644 --- a/TAO/TAO_IDL/include/idl_global.h +++ b/TAO/TAO_IDL/include/idl_global.h @@ -81,119 +81,119 @@ public: // 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_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 }; @@ -203,97 +203,97 @@ public: virtual ~IDL_GlobalData() {} // Operations - virtual UTL_ScopeStack *scopes(); // Scopes stack - virtual void set_scopes(UTL_ScopeStack *); - // Set it + 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_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 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 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 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 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 *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 *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 *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 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 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 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 *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 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 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 *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 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_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 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 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 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 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); + 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. + + // 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 + + 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 @@ -358,76 +358,76 @@ public: // macro definition. // = Set and get methods for different file name endings. - + virtual void client_hdr_ending (const char* s); - // Set the client_hdr_ending. - + // 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. - + // 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; + + 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. + // 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. + // is called. virtual void gperf_path (const char* s); // Set the path for the perfect hashing program (GPERF). virtual const char* gperf_path (void) const; - // Get the path for the perfect hashing program (GPERF). + // Get the path for the perfect hashing program (GPERF). virtual void any_support (idl_bool); // enable suppressing any support @@ -445,100 +445,100 @@ public: // enable compiled marshaling support virtual idl_bool compiled_marshaling (void); - // check if we use compiled marshaling + // check if we use compiled marshaling virtual void exception_support (idl_bool); // enable real C++ exceptions virtual idl_bool exception_support (void); - // check if real C++ exception support is to be enabled + // check if real C++ exception support is to be enabled virtual void opt_tc (idl_bool); // enable optimized typecodes virtual idl_bool opt_tc (void); // check if TypeCodes need be optimized - + 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. + 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. + + ParseState pd_parse_state; // Parse state we're in. // Operations - long seen_include_file_before(String *); - // Seen this include - // before? + 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_; - + 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_; - + 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". + // "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* gperf_path_; - + // 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. @@ -560,7 +560,7 @@ private: // do we generate optimized typecodes? }; -#endif //_IDL_IDL_GLOBAL_HH +#endif //_IDL_IDL_GLOBAL_HH diff --git a/TAO/TAO_IDL/include/idl_narrow.h b/TAO/TAO_IDL/include/idl_narrow.h index 7b770612682..f861a851277 100644 --- a/TAO/TAO_IDL/include/idl_narrow.h +++ b/TAO/TAO_IDL/include/idl_narrow.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -64,8 +64,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ -#ifndef _IDL_NARROW_IDL_NARROW_HH -#define _IDL_NARROW_IDL_NARROW_HH +#ifndef _IDL_NARROW_IDL_NARROW_HH +#define _IDL_NARROW_IDL_NARROW_HH // idl_narrow.hh // @@ -95,11 +95,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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); +extern char *type_id_to_string(long); #define DEF_NARROW_METHODS0(TYPE)\ -static int type_id(); \ -virtual void *narrow(long type_const) +static int type_id(); \ +virtual void *narrow(long type_const) #define IMPL_NARROW_METHODS0(TYPE)\ @@ -108,17 +108,17 @@ TYPE::type_id()\ {\ return 0;\ }\ -void * \ +void * \ TYPE::narrow(long type_const) {\ - void *rval = NULL; \ + 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) +static int type_id(); \ +virtual void *narrow(long type_const) #define IMPL_NARROW_METHODS1(TYPE,PARENT) \ @@ -127,9 +127,9 @@ TYPE::type_id() \ {\ return 0;\ }\ -void * \ +void * \ TYPE::narrow(long type_const) {\ - void *rval = NULL; \ + void *rval = NULL; \ if (type_const == (long)&TYPE::type_id) \ rval = this; \ if (rval == NULL) \ @@ -138,8 +138,8 @@ TYPE::narrow(long type_const) {\ } #define DEF_NARROW_METHODS2(TYPE,PARENT1,PARENT2) \ -static int type_id(); \ -virtual void *narrow(long type_const) +static int type_id(); \ +virtual void *narrow(long type_const) #define IMPL_NARROW_METHODS2(TYPE,PARENT1,PARENT2) \ @@ -148,7 +148,7 @@ TYPE::type_id() \ {\ return 0;\ }\ -void * \ +void * \ TYPE::narrow(long type_const) { \ void *rval = NULL; \ if (type_const == (long)&TYPE::type_id) \ @@ -161,8 +161,8 @@ TYPE::narrow(long type_const) { \ } #define DEF_NARROW_METHODS3(TYPE,PARENT1,PARENT2,PARENT3) \ -static int type_id(); \ -virtual void *narrow(long type_const) +static int type_id(); \ +virtual void *narrow(long type_const) #define IMPL_NARROW_METHODS3(TYPE,PARENT1,PARENT2,PARENT3) \ @@ -171,7 +171,7 @@ TYPE::type_id() \ {\ return 0;\ }\ -void * \ +void * \ TYPE::narrow(long type_const) {\ void *rval = NULL; \ if (type_const == (long)&TYPE::type_id) \ @@ -186,8 +186,8 @@ TYPE::narrow(long type_const) {\ } #define DEF_NARROW_METHODS4(TYPE,PARENT1,PARENT2,PARENT3,PARENT4) \ -static int type_id(); \ -virtual void *narrow(long type_const) +static int type_id(); \ +virtual void *narrow(long type_const) #define IMPL_NARROW_METHODS4(TYPE,PARENT1,PARENT2,PARENT3,PARENT4) \ @@ -196,7 +196,7 @@ TYPE::type_id() \ {\ return 0;\ }\ -void * \ +void * \ TYPE::narrow(long type_const) {\ void *rval = NULL; \ if (type_const == (long)&TYPE::type_id) \ @@ -213,8 +213,8 @@ TYPE::narrow(long type_const) {\ } #define DEF_NARROW_METHODS5(TYPE,PARENT1,PARENT2,PARENT3,PARENT4,PARENT5) \ -static int type_id(); \ -virtual void *narrow(long type_const) +static int type_id(); \ +virtual void *narrow(long type_const) #define IMPL_NARROW_METHODS5(TYPE,PARENT1,PARENT2,PARENT3,PARENT4,PARENT5) \ @@ -223,7 +223,7 @@ TYPE::type_id() \ {\ return 0;\ }\ -void * \ +void * \ TYPE::narrow(long type_const) {\ void *rval = NULL; \ if (type_const == (long)&TYPE::type_id) \ @@ -242,7 +242,7 @@ TYPE::narrow(long type_const) {\ } #define DEF_NARROW_FROM_DECL(TYPE)\ -static TYPE *narrow_from_decl(AST_Decl *t) +static TYPE *narrow_from_decl(AST_Decl *t) #define IMPL_NARROW_FROM_DECL(TYPE)\ @@ -252,7 +252,7 @@ TYPE::narrow_from_decl(AST_Decl *t) { \ } #define DEF_NARROW_FROM_SCOPE(TYPE)\ -static TYPE *narrow_from_scope(UTL_Scope *t) +static TYPE *narrow_from_scope(UTL_Scope *t) #define IMPL_NARROW_FROM_SCOPE(TYPE)\ @@ -261,4 +261,4 @@ TYPE::narrow_from_scope(UTL_Scope *t) { \ return (TYPE *)t->narrow((long)&TYPE::type_id);\ } -#endif // _IDL_NARROW_IDL_NARROW_HH +#endif // _IDL_NARROW_IDL_NARROW_HH diff --git a/TAO/TAO_IDL/include/intlmacros.h b/TAO/TAO_IDL/include/intlmacros.h index a3a8c8c5cf0..5b5fddd8723 100644 --- a/TAO/TAO_IDL/include/intlmacros.h +++ b/TAO/TAO_IDL/include/intlmacros.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -64,18 +64,18 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ -#ifndef _IDL_INTLMACROS_HH +#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 +#ifndef DOMF_TEXT_DEVEL_DOMAIN +#define DOMF_TEXT_DEVEL_DOMAIN "SUNW_DOE_DOMF_DEVEL" +#endif // DOMF_TEXT_DEVEL_DOMAIN -#define GTDEVEL(s) s +#define GTDEVEL(s) s #if defined(__STDC__) #define CONV(p) #p @@ -84,4 +84,4 @@ trademarks or registered trademarks of Sun Microsystems, Inc. #define MKSTR(p) "p" #endif -#endif // _IDL_INTLMACROS_HH +#endif // _IDL_INTLMACROS_HH diff --git a/TAO/TAO_IDL/include/nr_extern.h b/TAO/TAO_IDL/include/nr_extern.h index efa8be05209..27e01d58edb 100644 --- a/TAO/TAO_IDL/include/nr_extern.h +++ b/TAO/TAO_IDL/include/nr_extern.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -70,7 +70,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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); +extern AST_Decl *ScopeAsDecl(UTL_Scope *s); +extern UTL_Scope *DeclAsScope(AST_Decl *d); -#endif // _NR_EXTERN_NR_EXTERN_HH +#endif // _NR_EXTERN_NR_EXTERN_HH diff --git a/TAO/TAO_IDL/include/util.h b/TAO/TAO_IDL/include/util.h index fa8d871e721..b16d2e14bff 100644 --- a/TAO/TAO_IDL/include/util.h +++ b/TAO/TAO_IDL/include/util.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -69,19 +69,19 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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 "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 "idl_global.h" // Class IDL_GlobalData -#include "utl_error.h" // class UTL_Error +#include "utl_error.h" // class UTL_Error -#include "utl_indenter.h" // class UTL_Indenter +#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 index 4a33e154ac2..030cef94568 100644 --- a/TAO/TAO_IDL/include/utl_decllist.h +++ b/TAO/TAO_IDL/include/utl_decllist.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,7 +89,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_DeclList : public UTL_List +class UTL_DeclList : public UTL_List { public: // Operations @@ -98,15 +98,15 @@ public: UTL_DeclList(FE_Declarator *s, UTL_DeclList *cdr); // Get element - FE_Declarator *head(); + FE_Declarator *head(); private: // Data - FE_Declarator *pd_car_data; // The element this list stores + FE_Declarator *pd_car_data; // The element this list stores }; // Active iterator fooor UTL_DeclList -class UTL_DecllistActiveIterator : public UTL_ListActiveIterator +class UTL_DecllistActiveIterator : public UTL_ListActiveIterator { public: // Operations @@ -115,7 +115,7 @@ public: UTL_DecllistActiveIterator(UTL_DeclList *s); // Get current item - FE_Declarator *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 index 199e20d927f..f0d4bb86d2e 100644 --- a/TAO/TAO_IDL/include/utl_err.h +++ b/TAO/TAO_IDL/include/utl_err.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -78,103 +78,103 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_Error +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 + 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); + 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); + void syntax_error(IDL_GlobalData::ParseState ps); // Report a name being used with different spellings - void name_case_error(char *n, char *t); + void name_case_error(char *n, char *t); // Report an unsuccesful coercion attempt - void coercion_error(AST_Expression *v, AST_Expression::ExprType t); + void coercion_error(AST_Expression *v, AST_Expression::ExprType t); // Report a failed name lookup attempt - void lookup_error(UTL_ScopedName *n); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + void redefinition_in_scope(AST_Decl *t, AST_Decl *s); // Report not a type error - void not_a_type(AST_Decl *d); + void not_a_type(AST_Decl *d); // Report back-end error void back_end(long lineno, String *s); diff --git a/TAO/TAO_IDL/include/utl_error.h b/TAO/TAO_IDL/include/utl_error.h index 199e20d927f..f0d4bb86d2e 100644 --- a/TAO/TAO_IDL/include/utl_error.h +++ b/TAO/TAO_IDL/include/utl_error.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -78,103 +78,103 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_Error +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 + 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); + 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); + void syntax_error(IDL_GlobalData::ParseState ps); // Report a name being used with different spellings - void name_case_error(char *n, char *t); + void name_case_error(char *n, char *t); // Report an unsuccesful coercion attempt - void coercion_error(AST_Expression *v, AST_Expression::ExprType t); + void coercion_error(AST_Expression *v, AST_Expression::ExprType t); // Report a failed name lookup attempt - void lookup_error(UTL_ScopedName *n); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + void redefinition_in_scope(AST_Decl *t, AST_Decl *s); // Report not a type error - void not_a_type(AST_Decl *d); + void not_a_type(AST_Decl *d); // Report back-end error void back_end(long lineno, String *s); diff --git a/TAO/TAO_IDL/include/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_exceptlist.h index 821efe648d2..7d726039fb0 100644 --- a/TAO/TAO_IDL/include/utl_exceptlist.h +++ b/TAO/TAO_IDL/include/utl_exceptlist.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,7 +89,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_ExceptList : public UTL_List +class UTL_ExceptList : public UTL_List { public: // Operations @@ -98,15 +98,15 @@ public: UTL_ExceptList(AST_Exception *s, UTL_ExceptList *cdr); // Get list item - AST_Exception *head(); + AST_Exception *head(); private: // Data - AST_Exception *pd_car_data; // Item of this list + AST_Exception *pd_car_data; // Item of this list }; // Active iterator for UTL_ExceptList -class UTL_ExceptlistActiveIterator : public UTL_ListActiveIterator +class UTL_ExceptlistActiveIterator : public UTL_ListActiveIterator { public: // Operations @@ -115,7 +115,7 @@ public: UTL_ExceptlistActiveIterator(UTL_ExceptList *s); // Get current item - AST_Exception *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 index d113b23109e..934bdca15e1 100644 --- a/TAO/TAO_IDL/include/utl_exprlist.h +++ b/TAO/TAO_IDL/include/utl_exprlist.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,7 +89,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_ExprList : public UTL_List +class UTL_ExprList : public UTL_List { public: // Operations @@ -98,15 +98,15 @@ public: UTL_ExprList(AST_Expression *s, UTL_ExprList *cdr); // Get list item - AST_Expression *head(); + AST_Expression *head(); private: // Data - AST_Expression *pd_car_data; // List item + AST_Expression *pd_car_data; // List item }; // Active iterator for UTL_ExprList -class UTL_ExprlistActiveIterator : public UTL_ListActiveIterator +class UTL_ExprlistActiveIterator : public UTL_ListActiveIterator { public: // Operations @@ -115,7 +115,7 @@ public: UTL_ExprlistActiveIterator(UTL_ExprList *s); // Get current item - AST_Expression *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 index 392ee7e58e5..bf9739732f0 100644 --- a/TAO/TAO_IDL/include/utl_identifier.h +++ b/TAO/TAO_IDL/include/utl_identifier.h @@ -64,8 +64,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ -#ifndef _UTL_IDENTIFIER_UTL_IDENTIFIER_HH -#define _UTL_IDENTIFIER_UTL_IDENTIFIER_HH +#ifndef _UTL_IDENTIFIER_UTL_IDENTIFIER_HH +#define _UTL_IDENTIFIER_UTL_IDENTIFIER_HH // utl_identifier.hh // @@ -77,8 +77,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -#include "idl_fwd.h" -#include "utl_string.h" +#include "idl_fwd.h" +#include "utl_string.h" class Identifier { @@ -94,20 +94,20 @@ public: // =Operations - char *get_string (); + char *get_string (); // get the underlying string - long compare (Identifier *other); + long compare (Identifier *other); // compare with other Identifier // =Dumping - virtual void dump (ostream &o); + virtual void dump (ostream &o); // dump to an ostream private: // Storage for data - char *pv_string; + char *pv_string; }; -#endif // _UTL_IDENTIFIER_UTL_IDENTIFIER_HH +#endif // _UTL_IDENTIFIER_UTL_IDENTIFIER_HH diff --git a/TAO/TAO_IDL/include/utl_idlist.h b/TAO/TAO_IDL/include/utl_idlist.h index 211836af42e..dc0ed8c0c04 100644 --- a/TAO/TAO_IDL/include/utl_idlist.h +++ b/TAO/TAO_IDL/include/utl_idlist.h @@ -64,8 +64,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ -#ifndef _UTL_IDLIST_UTL_IDLIST_HH -#define _UTL_IDLIST_UTL_IDLIST_HH +#ifndef _UTL_IDLIST_UTL_IDLIST_HH +#define _UTL_IDLIST_UTL_IDLIST_HH // utl_idlist.hh // @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,10 +89,10 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_identifier.h" -#include "utl_string.h" +#include "idl_fwd.h" +#include "utl_list.h" +#include "utl_identifier.h" +#include "utl_string.h" class UTL_IdList : public UTL_List { @@ -129,8 +129,8 @@ private: // Active iterator for UTL_IdList -class UTL_IdListActiveIterator : - public UTL_ListActiveIterator +class UTL_IdListActiveIterator : + public UTL_ListActiveIterator { // =TITLE // UTL_IdListActiveIterator @@ -144,4 +144,4 @@ public: // retrieves the next item }; -#endif // _UTL_IDLIST_UTL_IDLIST_HH +#endif // _UTL_IDLIST_UTL_IDLIST_HH diff --git a/TAO/TAO_IDL/include/utl_indenter.h b/TAO/TAO_IDL/include/utl_indenter.h index 29c8c587f00..c72291eaf92 100644 --- a/TAO/TAO_IDL/include/utl_indenter.h +++ b/TAO/TAO_IDL/include/utl_indenter.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -88,22 +88,22 @@ class UTL_Indenter public: // Operations - UTL_Indenter(); // constructor + UTL_Indenter(); // constructor // Constructor(s) virtual ~UTL_Indenter() {} // destructor - void reset(); + void reset(); // Reset indentation level to 0 - void increase(); + void increase(); // Increase indentation level - void decrease(); + void decrease(); // Decrease indentation level - void skip_to (ostream &o); + void skip_to (ostream &o); // Skip to indentation level stop void skip_to (FILE *fp); @@ -111,7 +111,7 @@ public: private: // Data - long pd_indent_level; // How far to indent + 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 index e3410e34623..0ad12eef9d6 100644 --- a/TAO/TAO_IDL/include/utl_labellist.h +++ b/TAO/TAO_IDL/include/utl_labellist.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,7 +89,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_LabelList : public UTL_List +class UTL_LabelList : public UTL_List { public: // Operations @@ -98,15 +98,15 @@ public: UTL_LabelList(AST_UnionLabel *s, UTL_LabelList *cdr); // Get list item - AST_UnionLabel *head(); + AST_UnionLabel *head(); private: // Data - AST_UnionLabel *pd_car_data; // List item + AST_UnionLabel *pd_car_data; // List item }; // Active iterator for UTL_LabelList -class UTL_LabellistActiveIterator : public UTL_ListActiveIterator +class UTL_LabellistActiveIterator : public UTL_ListActiveIterator { public: // Operations @@ -115,7 +115,7 @@ public: UTL_LabellistActiveIterator(UTL_LabelList *source); // Get current item - AST_UnionLabel *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 index 0c113ab9fbc..fa657f70e77 100644 --- a/TAO/TAO_IDL/include/utl_list.h +++ b/TAO/TAO_IDL/include/utl_list.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -79,20 +79,20 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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_ListActiveIterator; -class UTL_List +class UTL_List { public: // Operations @@ -101,50 +101,50 @@ public: UTL_List(UTL_List *c); // Smash last cdr pointer in "this" with l - void nconc(UTL_List *l); + void nconc(UTL_List *l); // Copy the list starting at "this" - virtual UTL_List *copy(); + virtual UTL_List *copy(); // Get next list - UTL_List *tail(); + UTL_List *tail(); // Set next list - void set_tail(UTL_List *l); + void set_tail(UTL_List *l); // How long is this list? - long length(); + long length(); private: // Data - UTL_List *pd_cdr_data; // The next list + UTL_List *pd_cdr_data; // The next list // Operations - long list_length(long n); // How long is it? + long list_length(long n); // How long is it? // Friend class - friend class UTL_ListActiveIterator; // Friend class + friend class UTL_ListActiveIterator; // Friend class }; // Active iterator for lists -class UTL_ListActiveIterator +class UTL_ListActiveIterator { public: // Operations // Constructor(s) - UTL_ListActiveIterator(UTL_List *s); + UTL_ListActiveIterator(UTL_List *s); // Get next list - virtual void next(); + virtual void next(); // Are we at the end of this list? - virtual long is_done(); + virtual long is_done(); protected: // Data - UTL_List *source; // On what to iterate? + 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 index 3b9be0bc45a..f962882425f 100644 --- a/TAO/TAO_IDL/include/utl_namelist.h +++ b/TAO/TAO_IDL/include/utl_namelist.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,7 +89,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_NameList : public UTL_List +class UTL_NameList : public UTL_List { public: // Operations @@ -98,15 +98,15 @@ public: UTL_NameList(UTL_ScopedName *s, UTL_NameList *cdr); // Get list item - UTL_ScopedName *head(); + UTL_ScopedName *head(); private: // Data - UTL_ScopedName *pd_car_data; // List item + UTL_ScopedName *pd_car_data; // List item }; // Active iterator for UTL_NameList -class UTL_NamelistActiveIterator : public UTL_ListActiveIterator +class UTL_NamelistActiveIterator : public UTL_ListActiveIterator { public: // Operations @@ -115,7 +115,7 @@ public: UTL_NamelistActiveIterator(UTL_NameList *source); // Get current item - UTL_ScopedName *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 index ce94d12574f..e4102d5bb06 100644 --- a/TAO/TAO_IDL/include/utl_scope.h +++ b/TAO/TAO_IDL/include/utl_scope.h @@ -89,23 +89,23 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** 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" +#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 +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 + IK_both // Iterate through both decls and local types + , IK_decls // Iterate only through decls + , IK_localtypes // Iterate only through local types }; // Operations @@ -116,31 +116,31 @@ public: 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_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(); + virtual AST_Decl *call_add(); // Data Accessors AST_Decl::NodeType scope_node_type() @@ -153,24 +153,24 @@ public: DEF_NARROW_FROM_SCOPE(UTL_Scope); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); // Other Operations // Name Lookup Mechanism - virtual AST_Decl *lookup_by_name(UTL_ScopedName *, - idl_bool treat_as_ref); + 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); + 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(); + virtual unsigned long nmembers(); protected: // UTL_Scope protected addition protocol. This protocol is @@ -180,81 +180,81 @@ protected: // defined elsewhere were referenced in this scope // Add to decls. Node represents a local declaration - void add_to_scope(AST_Decl *e); + 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); + void add_to_local_types(AST_Decl *e); // Add to referenced nodes set. - void add_to_referenced(AST_Decl *e, - idl_bool recursive); + void add_to_referenced(AST_Decl *e, + idl_bool recursive); // Has this node been referenced here already? - idl_bool referenced(AST_Decl *e); + 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); + 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); + 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; + 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? + 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? + 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? + 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; + 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_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); }; @@ -267,26 +267,26 @@ public: UTL_ScopeActiveIterator(UTL_Scope *s, UTL_Scope::ScopeIterationKind ik); // Advance to next item - virtual void next(); + virtual void next(); // Get current item - virtual AST_Decl *item(); + virtual AST_Decl *item(); // Have we iterated over entire scope? - virtual idl_bool is_done(); + virtual idl_bool is_done(); // What kind of iterator is this? - virtual UTL_Scope::ScopeIterationKind iteration_kind(); + virtual UTL_Scope::ScopeIterationKind iteration_kind(); // What stage are we in with this iterator? - virtual UTL_Scope::ScopeIterationKind iteration_stage(); + 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 + 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 index 5a3145e669b..2cdc381bf2f 100644 --- a/TAO/TAO_IDL/include/utl_scoped_name.h +++ b/TAO/TAO_IDL/include/utl_scoped_name.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -75,8 +75,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from ast.hh */ -typedef UTL_IdList UTL_ScopedName; +typedef UTL_IdList UTL_ScopedName; -typedef UTL_IdListActiveIterator UTL_ScopedNameActiveIterator; +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 index 9d4224cde4c..eb8b2cf8b46 100644 --- a/TAO/TAO_IDL/include/utl_stack.h +++ b/TAO/TAO_IDL/include/utl_stack.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -78,9 +78,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ // Forward declaration of active iterator for UTL_ScopeStack -class UTL_ScopeStackActiveIterator; +class UTL_ScopeStackActiveIterator; -class UTL_ScopeStack +class UTL_ScopeStack { public: // Operations @@ -90,41 +90,41 @@ public: virtual ~UTL_ScopeStack(); // Return top element - virtual UTL_Scope *top(); + virtual UTL_Scope *top(); // Pop top element - virtual void pop(); + virtual void pop(); // Clear entire stack - virtual void clear(); + virtual void clear(); // Push an element on the stack and return stack - virtual UTL_ScopeStack *push(UTL_Scope *el); + virtual UTL_ScopeStack *push(UTL_Scope *el); // How deep is the stack now? - virtual unsigned long depth(); + virtual unsigned long depth(); // Return bottom element - virtual UTL_Scope *bottom(); + virtual UTL_Scope *bottom(); // Return (top - 1) element - virtual UTL_Scope *next_to_top(); + virtual UTL_Scope *next_to_top(); // return topmost non-NULL element - virtual UTL_Scope *top_non_null(); + 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? + 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; + friend class UTL_ScopeStackActiveIterator; }; // Active iterator for UTL_ScopeStack -class UTL_ScopeStackActiveIterator +class UTL_ScopeStackActiveIterator { public: // Operations @@ -133,18 +133,18 @@ public: UTL_ScopeStackActiveIterator(UTL_ScopeStack *s); // Advance to next element - virtual void next(); + virtual void next(); // Get current item - virtual UTL_Scope *item(); + virtual UTL_Scope *item(); // Is the iteration finished? - virtual long is_done(); + virtual long is_done(); private: // Data - UTL_ScopeStack *source; // On what to iterate? - long il; // Where are we in iteration? + 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 index 0db31bd2bf6..de6516b7849 100644 --- a/TAO/TAO_IDL/include/utl_string.h +++ b/TAO/TAO_IDL/include/utl_string.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -76,10 +76,10 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ #ifndef String -#define String UTL_String -#endif // String +#define String UTL_String +#endif // String -class UTL_String +class UTL_String { // =TITLE // UTL_String @@ -101,7 +101,7 @@ public: // construct using a pointer to UTL_String virtual ~UTL_String (void) {} - // destructor + // destructor // =AST Dumping @@ -122,21 +122,21 @@ public: private: // Data - char *p_str; + char *p_str; // Storage for characters - char *c_str; + char *c_str; // Canonicalized string - unsigned long len; + unsigned long len; // How long is string - unsigned long alloced; + unsigned long alloced; // How much allocated // =Private helper operations - void canonicalize (void); + void canonicalize (void); // Compute canonical representation }; diff --git a/TAO/TAO_IDL/include/utl_strlist.h b/TAO/TAO_IDL/include/utl_strlist.h index 5806cb57785..99213ed50e3 100644 --- a/TAO/TAO_IDL/include/utl_strlist.h +++ b/TAO/TAO_IDL/include/utl_strlist.h @@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. -SunSoft, Inc. -2550 Garcia Avenue +SunSoft, Inc. +2550 Garcia Avenue Mountain View, California 94043 NOTE: @@ -73,15 +73,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // 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. +// 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. +// 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 @@ -89,7 +89,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. ** USE: Included from util.hh */ -class UTL_StrList : public UTL_List +class UTL_StrList : public UTL_List { public: // Operations @@ -98,29 +98,29 @@ public: UTL_StrList(String *s, UTL_StrList *cdr); // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); // Other Operations // Copy a list of strings - virtual UTL_List *copy(); + virtual UTL_List *copy(); // Get list element - String *head(); + String *head(); // Set the list element - void set_head(String *); + void set_head(String *); // Get last element in this list - String *last_component(); + String *last_component(); private: // Data - String *pd_car_data; // The list item + String *pd_car_data; // The list item }; // Active iterator for UTL_StrList -class UTL_StrlistActiveIterator : public UTL_ListActiveIterator +class UTL_StrlistActiveIterator : public UTL_ListActiveIterator { public: // Operations @@ -129,7 +129,7 @@ public: UTL_StrlistActiveIterator(UTL_StrList *s); // Get current item - String *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 index 63247a10df2..8de08c85725 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_decllist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -65,17 +65,22 @@ ** 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" +#include "ace/stdcpp.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ -class UTL_DeclList : public UTL_List +#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 @@ -86,7 +91,7 @@ public: }; // Active iterator for UTL_DeclList -class UTL_DecllistActiveIterator : +class UTL_DecllistActiveIterator : public UTL_ListActiveIterator { public: diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h index a709776a875..8fee4504360 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -65,25 +65,30 @@ ** 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" +#include "ace/stdcpp.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ -class UTL_ExceptList : public UTL_List +#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 @@ -94,7 +99,7 @@ public: }; // Active iterator for UTL_ExceptList -class UTL_ExceptlistActiveIterator : +class UTL_ExceptlistActiveIterator : public UTL_ListActiveIterator { public: diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h index 5215ae18362..84fbcd3957c 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_exprlist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -65,18 +65,23 @@ ** 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 "ace/stdcpp.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ -class UTL_ExprList : public UTL_List +#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 @@ -87,7 +92,7 @@ public: }; // Active iterator for UTL_ExprList -class UTL_ExprlistActiveIterator : +class UTL_ExprlistActiveIterator : public UTL_ListActiveIterator { public: diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h index a08bac915b6..a9a1b77c26d 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -52,8 +52,8 @@ *====================================================================== */ -#ifndef _UTL_IDLIST_UTL_IDLIST_HH -#define _UTL_IDLIST_UTL_IDLIST_HH +#ifndef _UTL_IDLIST_UTL_IDLIST_HH +#define _UTL_IDLIST_UTL_IDLIST_HH // utl_idlist.hh // @@ -65,13 +65,18 @@ ** 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" +#include "ace/stdcpp.h" -class UTL_IdList : public UTL_List +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#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) @@ -79,22 +84,22 @@ class UTL_IdList : public UTL_List virtual ~UTL_IdList() {} // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); // Other operations // Get last element in this list - Identifier *last_component(); + Identifier *last_component(); }; // Active iterator for UTL_IdList -class UTL_IdListActiveIterator : - public UTL_ListActiveIterator +class UTL_IdListActiveIterator : + public UTL_ListActiveIterator { public: // Constructor(s) UTL_IdListActiveIterator(UTL_IdList *s); }; -#endif // _UTL_IDLIST_UTL_IDLIST_HH +#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 index e9c38823e31..b7ca1d38e43 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_labellist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -65,13 +65,18 @@ ** USE: Included from util.hh */ -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "ast_union_label.h" +#include "ace/stdcpp.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ -class UTL_LabelList : public UTL_List +#include "idl_fwd.h" +#include "utl_list.h" +#include "ast_union_label.h" + + +class UTL_LabelList : public UTL_List { public: // Operations @@ -82,7 +87,7 @@ public: }; // Active iterator for UTL_LabelList -class UTL_LabellistActiveIterator : +class UTL_LabellistActiveIterator : public UTL_ListActiveIterator { public: diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_list.h b/TAO/TAO_IDL/include/utl_tmpl/utl_list.h index 8bc8c4035a6..b300298b93d 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_list.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_list.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -69,7 +69,7 @@ template class UTL_ListActiveIterator; template -class UTL_List +class UTL_List { public: // Operations @@ -79,62 +79,62 @@ public: virtual ~UTL_List() {} // Smash last cdr pointer in "this" with l - void nconc(L *l); + void nconc(L *l); // Copy the list starting at "this" - L *copy(); + L *copy(); // Get list element - T *head(); + T *head(); // Get next list - L *tail(); + L *tail(); // Set the list element - void set_head(T *t); + void set_head(T *t); // Set next list - void set_tail(L *l); + void set_tail(L *l); // How long is this list? - long length(); + long length(); private: // Data - T *pd_car_data; // The next list - L *pd_cdr_data; // The next list + T *pd_car_data; // The next list + L *pd_cdr_data; // The next list // Operations - long list_length(long n); // How long is it? + long list_length(long n); // How long is it? // Friend class - friend class UTL_ListActiveIterator; // Friend class + friend class UTL_ListActiveIterator; // Friend class }; // Active iterator for lists template -class UTL_ListActiveIterator +class UTL_ListActiveIterator { public: // Operations // Constructor(s) - UTL_ListActiveIterator(UTL_List *s); + UTL_ListActiveIterator(UTL_List *s); virtual ~UTL_ListActiveIterator() {} // Get current item - T *item(); + T *item(); // Get next list - virtual void next(); + virtual void next(); // Are we at the end of this list? - virtual long is_done(); + virtual long is_done(); protected: // Data - UTL_List *source; // On what to iterate? + 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 index ff8f23ff45c..bd79687f222 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_namelist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -65,15 +65,20 @@ ** 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 "ace/stdcpp.h" -class UTL_NameList : public UTL_List +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#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 @@ -84,7 +89,7 @@ public: }; // Active iterator for UTL_NameList -class UTL_NamelistActiveIterator : +class UTL_NamelistActiveIterator : public UTL_ListActiveIterator { public: diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h index 2b6966d0b01..2bdfe06b847 100644 --- a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h +++ b/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h @@ -42,8 +42,8 @@ *INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE *POSSIBILITY OF SUCH DAMAGES. * - *SunSoft, Inc. - *2550 Garcia Avenue + *SunSoft, Inc. + *2550 Garcia Avenue *Mountain View, California 94043 * * @@ -65,13 +65,18 @@ ** USE: Included from util.hh */ -#include "ace/stdcpp.h" -#include "idl_fwd.h" -#include "utl_list.h" -#include "utl_string.h" +#include "ace/stdcpp.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ -class UTL_StrList : public UTL_List +#include "idl_fwd.h" +#include "utl_list.h" +#include "utl_string.h" + + +class UTL_StrList : public UTL_List { public: // Operations @@ -81,16 +86,16 @@ public: virtual ~UTL_StrList() {} // AST Dumping - virtual void dump(ostream &o); + virtual void dump(ostream &o); // Other Operations // Get last element in this list - String *last_component(); + String *last_component(); }; // Active iterator for UTL_StrList -class UTL_StrlistActiveIterator : +class UTL_StrlistActiveIterator : public UTL_ListActiveIterator { public: diff --git a/TAO/examples/Callback_Quoter/Consumer_Input_Handler.h b/TAO/examples/Callback_Quoter/Consumer_Input_Handler.h index bc45d738917..3d74636b0e9 100644 --- a/TAO/examples/Callback_Quoter/Consumer_Input_Handler.h +++ b/TAO/examples/Callback_Quoter/Consumer_Input_Handler.h @@ -18,13 +18,18 @@ // // =========================================================== -#if !defined (CONSUMER_INPUT_HANDLER_H) +#ifndef CONSUMER_INPUT_HANDLER_H #define CONSUMER_INPUT_HANDLER_H #include "ConsumerC.h" #include "NotifierC.h" #include "Consumer_i.h" #include "ace/Read_Buffer.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/TAO.h" #include "orbsvcs/Naming/Naming_Utils.h" #include "orbsvcs/CosNamingC.h" diff --git a/TAO/examples/Callback_Quoter/Consumer_i.h b/TAO/examples/Callback_Quoter/Consumer_i.h index c1c6f9adef4..dc00f6e919a 100644 --- a/TAO/examples/Callback_Quoter/Consumer_i.h +++ b/TAO/examples/Callback_Quoter/Consumer_i.h @@ -17,7 +17,7 @@ // // =========================================================== -#if !defined (CONSUMER_I_H) +#ifndef CONSUMER_I_H #define CONSUMER_I_H #include "ConsumerS.h" #include "ConsumerC.h" @@ -40,7 +40,7 @@ public: // Destructor. void push (const Callback_Quoter::Info & data, - CORBA_Environment& TAO_TRY_ENV); + CORBA_Environment& TAO_TRY_ENV); // Gets the stock information from the Notifier. virtual void shutdown (CORBA::Environment &TAO_TRY_ENV); diff --git a/TAO/examples/Callback_Quoter/Notifier_Input_Handler.h b/TAO/examples/Callback_Quoter/Notifier_Input_Handler.h index 9af7ea3e201..62e171ba3fe 100644 --- a/TAO/examples/Callback_Quoter/Notifier_Input_Handler.h +++ b/TAO/examples/Callback_Quoter/Notifier_Input_Handler.h @@ -16,7 +16,7 @@ // // =========================================================== -#if !defined (SUPPLIER_INPUT_HANDLER_H) +#ifndef SUPPLIER_INPUT_HANDLER_H #define SUPPLIER_INPUT_HANDLER_H #include "Notifier_i.h" @@ -40,8 +40,8 @@ public: // Destructor. int init (int argc, - char *argv[], - CORBA::Environment &env); + char *argv[], + CORBA::Environment &env); // Initialize the Notifier who plays the role of the server here. int run (CORBA::Environment &env); diff --git a/TAO/examples/Callback_Quoter/Notifier_i.h b/TAO/examples/Callback_Quoter/Notifier_i.h index e93431ceef1..72b772421f3 100644 --- a/TAO/examples/Callback_Quoter/Notifier_i.h +++ b/TAO/examples/Callback_Quoter/Notifier_i.h @@ -17,13 +17,18 @@ // // =========================================================== -#if !defined (NOTIFIER_I_H) +#ifndef NOTIFIER_I_H #define NOTIFIER_I_H #include "NotifierS.h" #include "ConsumerC.h" #include "tao/TAO.h" #include "ace/Containers.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SString.h" class Notifier_i : public POA_Notifier @@ -40,19 +45,19 @@ public: // Destructor. virtual void register_callback (const char *stock_name, - CORBA::Long threshold_value, - Callback_Quoter::Consumer_ptr consumer_handler, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Long threshold_value, + Callback_Quoter::Consumer_ptr consumer_handler, + CORBA::Environment &TAO_TRY_ENV); // Register a distributed callback handler that is invoked when the // given stock reaches the desired threshold value. virtual void unregister_callback (Callback_Quoter::Consumer_ptr consumer_handler, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Remove the consumer object. virtual void market_status (const char *stock_name, - CORBA::Long stock_value, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Long stock_value, + CORBA::Environment &TAO_TRY_ENV); // Get the market status. void orb (CORBA::ORB_ptr orb); diff --git a/TAO/examples/Callback_Quoter/Supplier_i.h b/TAO/examples/Callback_Quoter/Supplier_i.h index bf614646cbf..f60eb0fa2bb 100644 --- a/TAO/examples/Callback_Quoter/Supplier_i.h +++ b/TAO/examples/Callback_Quoter/Supplier_i.h @@ -56,7 +56,7 @@ private: // object with the POA. int send_market_status (const char *stock_name, - long value); + long value); // Sends the stock name and its value. int argc_; diff --git a/TAO/examples/Event_Comm/Consumer_Handler.h b/TAO/examples/Event_Comm/Consumer_Handler.h index 021da94cd51..56af579da2d 100644 --- a/TAO/examples/Event_Comm/Consumer_Handler.h +++ b/TAO/examples/Event_Comm/Consumer_Handler.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_CONSUMER_HANDLER_H) +#ifndef _CONSUMER_HANDLER_H #define _CONSUMER_HANDLER_H //#include "ace/CORBA_Handler.h" @@ -59,7 +59,7 @@ public: ACE_Reactor *reactor (void); virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE, - ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK); + ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK); // Close down the handler. private: diff --git a/TAO/examples/Event_Comm/Consumer_Input_Handler.h b/TAO/examples/Event_Comm/Consumer_Input_Handler.h index 1872f2aedec..1e427156ea8 100644 --- a/TAO/examples/Event_Comm/Consumer_Input_Handler.h +++ b/TAO/examples/Event_Comm/Consumer_Input_Handler.h @@ -14,11 +14,15 @@ // // ============================================================================ -#if !defined (CONSUMER_INPUT_HANDLER_H) +#ifndef CONSUMER_INPUT_HANDLER_H #define CONSUMER_INPUT_HANDLER_ #include "ace/Service_Config.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + // Forward declaration. class Consumer_Handler; @@ -38,13 +42,13 @@ public: ~Consumer_Input_Handler (void); int initialize (Consumer_Handler *, - ACE_HANDLE h = 0); + ACE_HANDLE h = 0); virtual int handle_input (ACE_HANDLE); // Dispatch the callback when events occur. virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE, - ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK); + ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK); // Close down the handler. int consumer_initiated_shutdown (void); diff --git a/TAO/examples/Event_Comm/Event_Comm_i.h b/TAO/examples/Event_Comm/Event_Comm_i.h index f5f37f15dfb..9c35c908de2 100644 --- a/TAO/examples/Event_Comm/Event_Comm_i.h +++ b/TAO/examples/Event_Comm/Event_Comm_i.h @@ -18,10 +18,15 @@ // // ============================================================================ -#if !defined (_EVENT_COMM_I_H) +#ifndef _EVENT_COMM_I_H #define _EVENT_COMM_I_H #include "ace/Map_Manager.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Synch.h" #include "ace/SString.h" #include "Event_CommS.h" @@ -39,11 +44,11 @@ public: // Destructor. virtual void push (const Event_Comm::Event & event, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Pass the to the . virtual void disconnect (const char * reason, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Disconnect the from the , giving it the // . }; @@ -66,23 +71,23 @@ public: // Initialize a Notifier_i object with the specified size hint. virtual void disconnect (const char *reason, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Disconnect all the receivers, giving them the . virtual void push (const Event_Comm::Event &event, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Send the to all the consumers who have subscribed and who // match the filtering criteria. virtual void subscribe (Event_Comm::Consumer_ptr Consumer, - const char * filtering_criteria, - CORBA::Environment &TAO_TRY_ENV); + const char * filtering_criteria, + CORBA::Environment &TAO_TRY_ENV); // Subscribe the to receive events that match // applied by the . void unsubscribe (Event_Comm::Consumer *consumer, - const char *filtering_criteria, - CORBA::Environment &TAO_TRY_ENV); + const char *filtering_criteria, + CORBA::Environment &TAO_TRY_ENV); // Unsubscribe the . private: diff --git a/TAO/examples/Event_Comm/Notifier_Handler.h b/TAO/examples/Event_Comm/Notifier_Handler.h index 7e2c7ad7952..a54d1b7cdc0 100644 --- a/TAO/examples/Event_Comm/Notifier_Handler.h +++ b/TAO/examples/Event_Comm/Notifier_Handler.h @@ -14,10 +14,15 @@ // // ============================================================================ -#if !defined (_NOTIFIER_HANDLER_H) +#ifndef _NOTIFIER_HANDLER_H #define _NOTIFIER_HANDLER_H #include "ace/CORBA_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "Event_Comm_i.h" #include "orbsvcs/Naming/Naming_Utils.h" #include "orbsvcs/CosNamingC.h" diff --git a/TAO/examples/Event_Comm/Notifier_Server.h b/TAO/examples/Event_Comm/Notifier_Server.h index 8f96c6565c3..ed9d75fbb92 100644 --- a/TAO/examples/Event_Comm/Notifier_Server.h +++ b/TAO/examples/Event_Comm/Notifier_Server.h @@ -14,7 +14,7 @@ // // ============================================================================ -#if !defined (_NOTIFIER_SERVER_H) +#ifndef _NOTIFIER_SERVER_H #define _NOTIFIER_SERVER_H #include "Event_Comm_i.h" diff --git a/TAO/examples/Event_Comm/Supplier_Input_Handler.h b/TAO/examples/Event_Comm/Supplier_Input_Handler.h index 041e3797a68..e9b034180c7 100644 --- a/TAO/examples/Event_Comm/Supplier_Input_Handler.h +++ b/TAO/examples/Event_Comm/Supplier_Input_Handler.h @@ -17,11 +17,15 @@ // // ============================================================================ -#if !defined (SUPPLIER_INPUT_HANDLER_H) +#ifndef SUPPLIER_INPUT_HANDLER_H #define SUPPLIER_INPUT_HANDLER_H #include "ace/Service_Config.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + // Forward declaration. class Notifier_Handler; @@ -49,7 +53,7 @@ public: // Frame input events and notify . virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE, - ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK); + ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK); // Close down the handler. protected: diff --git a/TAO/examples/POA/DSI/Database_i.h b/TAO/examples/POA/DSI/Database_i.h index c87bf9980ea..527ce752000 100644 --- a/TAO/examples/POA/DSI/Database_i.h +++ b/TAO/examples/POA/DSI/Database_i.h @@ -3,7 +3,11 @@ #include "DatabaseS.h" #include "ace/Malloc.h" -class DatabaseImpl +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class DatabaseImpl { public: @@ -64,7 +68,7 @@ public: 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); @@ -91,24 +95,24 @@ public: class Employee { public: - Employee (const char* name, + 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/Default_Servant/File_i.h b/TAO/examples/POA/Default_Servant/File_i.h index 4ebbccea87b..736789654cf 100644 --- a/TAO/examples/POA/Default_Servant/File_i.h +++ b/TAO/examples/POA/Default_Servant/File_i.h @@ -36,25 +36,25 @@ public: 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, + 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, + 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, + 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_; }; @@ -62,7 +62,7 @@ public: // File System implementation class { public: - // Constructor, Creates a single File Descriptor Servant and + // Constructor, Creates a single File Descriptor Servant and // registers it with the POA as the Default Servant System (PortableServer::POA_ptr poa); @@ -73,14 +73,14 @@ public: 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, + // 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/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h index 3cc3721c274..f0a316eee8e 100644 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h +++ b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h @@ -4,11 +4,15 @@ // This file is generated automatically by // ${ACE_ROOT}/GenExportH.BAT // ------------------------------ -#if !defined (Alt_Resource_Factory_EXPORT_H) +#ifndef Alt_Resource_Factory_EXPORT_H #define Alt_Resource_Factory_EXPORT_H #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #if defined (Alt_Resource_Factory_HAS_DLL) # if (Alt_Resource_Factory_HAS_DLL == 1) # if defined (Alt_Resource_Factory_BUILD_DLL) diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h index 2b20061d4db..b8ecc8ebf7f 100644 --- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h +++ b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Resource_Factory.h @@ -3,7 +3,7 @@ #include "tao/corba.h" #include "Alt_Resource_Factory.h" -class Alt_Resource_Factory_Export My_Resource_Factory : public TAO_Resource_Factory +class Alt_Resource_Factory_Export My_Resource_Factory : public TAO_Resource_Factory { public: virtual ACE_Reactor *get_reactor (void); diff --git a/TAO/examples/POA/Forwarding/MyFooServant.h b/TAO/examples/POA/Forwarding/MyFooServant.h index 49bde57fe28..7534f403a33 100644 --- a/TAO/examples/POA/Forwarding/MyFooServant.h +++ b/TAO/examples/POA/Forwarding/MyFooServant.h @@ -13,7 +13,7 @@ // //============================================================================= -#if !defined (MYFOOSERVANT_H) +#ifndef MYFOOSERVANT_H #define MYFOOSERVANT_H #include "FooS.h" @@ -29,16 +29,16 @@ public: 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); @@ -61,13 +61,13 @@ public: 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); diff --git a/TAO/examples/POA/Forwarding/Servant_Locator.h b/TAO/examples/POA/Forwarding/Servant_Locator.h index 256e4176b84..888b6805d33 100644 --- a/TAO/examples/POA/Forwarding/Servant_Locator.h +++ b/TAO/examples/POA/Forwarding/Servant_Locator.h @@ -17,7 +17,7 @@ // //================================================================================== -#if !defined (MYFOOSERVANTLOCATOR_H) +#ifndef MYFOOSERVANTLOCATOR_H #define MYFOOSERVANTLOCATOR_H #include "tao/corba.h" @@ -41,7 +41,7 @@ public: 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, @@ -52,17 +52,17 @@ public: // 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 diff --git a/TAO/examples/POA/Generic_Servant/MyFooServant.h b/TAO/examples/POA/Generic_Servant/MyFooServant.h index 6ab5e0b5ddf..af9afb37c43 100644 --- a/TAO/examples/POA/Generic_Servant/MyFooServant.h +++ b/TAO/examples/POA/Generic_Servant/MyFooServant.h @@ -13,7 +13,7 @@ // //============================================================================= -#if !defined (MYFOOSERVANT_H) +#ifndef MYFOOSERVANT_H #define MYFOOSERVANT_H #include "FooS.h" @@ -23,7 +23,7 @@ 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, + PortableServer::POA_ptr poa, CORBA::Long value); // Destructor diff --git a/TAO/examples/POA/Generic_Servant/generic_servant_export.h b/TAO/examples/POA/Generic_Servant/generic_servant_export.h index 6c7059c79a2..cabb41f48f7 100644 --- a/TAO/examples/POA/Generic_Servant/generic_servant_export.h +++ b/TAO/examples/POA/Generic_Servant/generic_servant_export.h @@ -4,11 +4,15 @@ // This file is generated automatically by // ${TAO_ROOT}/TAO_IDL/GenExportH.BAT // ------------------------------ -#if !defined (GENERIC_SERVANT_EXPORT_H) +#ifndef GENERIC_SERVANT_EXPORT_H #define GENERIC_SERVANT_EXPORT_H #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #if defined (GENERIC_SERVANT_HAS_DLL) # if (GENERIC_SERVANT_HAS_DLL == 1) # if defined (GENERIC_SERVANT_BUILD_DLL) diff --git a/TAO/examples/POA/TIE/Foo_i.h b/TAO/examples/POA/TIE/Foo_i.h index 75f4731e1f2..116e5384ca6 100644 --- a/TAO/examples/POA/TIE/Foo_i.h +++ b/TAO/examples/POA/TIE/Foo_i.h @@ -13,7 +13,7 @@ // //============================================================================= -#if !defined (FOO_I_H) +#ifndef FOO_I_H #define FOO_I_H #include "FooS.h" @@ -77,7 +77,7 @@ public: PortableServer::POA_var poa_; // Default poa associated with this servant }; - + class Inner_i { public: diff --git a/TAO/examples/Quoter/Factory_Finder.h b/TAO/examples/Quoter/Factory_Finder.h index 09cff9259f8..b2ec79f92f9 100644 --- a/TAO/examples/Quoter/Factory_Finder.h +++ b/TAO/examples/Quoter/Factory_Finder.h @@ -6,7 +6,7 @@ // FactoryFinder.h // // = DESCRIPTION -// Server for the Quoter Factory Finder +// Server for the Quoter Factory Finder // // = AUTHOR // Michael Kircher (mk1@cs.wustl.edu) @@ -14,10 +14,15 @@ // ============================================================================ #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/TAO.h" #include "Factory_Finder_i.h" -#if !defined (QUOTER_FACTORY_FINDER_H) +#ifndef QUOTER_FACTORY_FINDER_H #define QUOTER_FACTORY_FINDER_H class Quoter_Factory_Finder_Server @@ -36,7 +41,7 @@ public: // Initialize the Quoter_Server state - parsing arguments and ... int run (CORBA::Environment& env); - // Run the orb + // Run the orb u_int parse_args (void); // parse the passed parameters @@ -47,7 +52,7 @@ private: 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 diff --git a/TAO/examples/Quoter/Factory_Finder_i.h b/TAO/examples/Quoter/Factory_Finder_i.h index 4ce73d28a98..c85c7d226b1 100644 --- a/TAO/examples/Quoter/Factory_Finder_i.h +++ b/TAO/examples/Quoter/Factory_Finder_i.h @@ -15,10 +15,10 @@ #include "QuoterS.h" -#if !defined (QUOTER_FACTORY_FINDER_IMPL_H) +#ifndef QUOTER_FACTORY_FINDER_IMPL_H #define QUOTER_FACTORY_FINDER_IMPL_H -class Quoter_Factory_Finder_i : public POA_Stock::Quoter_Factory_Finder +class Quoter_Factory_Finder_i : public POA_Stock::Quoter_Factory_Finder { // = TILE // A CosLifeCycle conforming Factory Finder for the Quoter diff --git a/TAO/examples/Quoter/Generic_Factory.h b/TAO/examples/Quoter/Generic_Factory.h index bee301b10b9..0d614088019 100644 --- a/TAO/examples/Quoter/Generic_Factory.h +++ b/TAO/examples/Quoter/Generic_Factory.h @@ -14,10 +14,15 @@ // ============================================================================ #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/TAO.h" #include "Generic_Factory_i.h" -#if !defined (GENERIC_FACTORY_H) +#ifndef GENERIC_FACTORY_H #define GENERIC_FACTORY_H class Quoter_Generic_Factory_Server @@ -49,7 +54,7 @@ private: 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. diff --git a/TAO/examples/Quoter/Generic_Factory_i.h b/TAO/examples/Quoter/Generic_Factory_i.h index 100b1a6c22e..21265bda13c 100644 --- a/TAO/examples/Quoter/Generic_Factory_i.h +++ b/TAO/examples/Quoter/Generic_Factory_i.h @@ -16,7 +16,7 @@ #include "QuoterS.h" -#if !defined (QUOTER_GENERIC_FACTORY_IMPL_H) +#ifndef QUOTER_GENERIC_FACTORY_IMPL_H #define QUOTER_GENERIC_FACTORY_IMPL_H class Quoter_Generic_Factory_i : public POA_Stock::Quoter_Generic_Factory @@ -34,7 +34,7 @@ public: // 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, + 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 diff --git a/TAO/examples/Quoter/Quoter_i.h b/TAO/examples/Quoter/Quoter_i.h index aa835cad233..23573a1a648 100644 --- a/TAO/examples/Quoter/Quoter_i.h +++ b/TAO/examples/Quoter/Quoter_i.h @@ -4,17 +4,17 @@ // // = LIBRARY // TAO/tests/Quoter -// +// // = FILENAME // Quoter_i.h // // = AUTHOR -// Darrell Brunsch -// +// Darrell Brunsch +// // ============================================================================ -#if !defined (QUOTER_IMPL_H) -#define QUOTER_IMPL_H +#ifndef QUOTER_IMPL_H +#define QUOTER_IMPL_H #include "QuoterS.h" @@ -34,10 +34,10 @@ class Quoter_i: public POA_Stock::Quoter // 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 + 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); @@ -46,7 +46,7 @@ public: 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, @@ -62,9 +62,9 @@ public: virtual void remove (CORBA::Environment &_tao_environment); // Removes the object. -private: +private: unsigned char use_LifeCycle_Service_; - // This flag defines if a Generic Factory is used (0 by default) or + // This flag defines if a Generic Factory is used (0 by default) or // the more sophisticated LifeCycle Service (1) PortableServer::POA_var poa_var_; @@ -90,7 +90,7 @@ public: ~Quoter_Factory_i (void); // Destructor. - virtual Stock::Quoter_ptr create_quoter (const char *name, + virtual Stock::Quoter_ptr create_quoter (const char *name, CORBA::Environment &env); // Return the quoter by the id . diff --git a/TAO/examples/Quoter/client.h b/TAO/examples/Quoter/client.h index 1e37d188b79..a0bee1d9a05 100644 --- a/TAO/examples/Quoter/client.h +++ b/TAO/examples/Quoter/client.h @@ -17,10 +17,15 @@ // // ============================================================================ -#if !defined (QUOTER_CLIENT_H) +#ifndef QUOTER_CLIENT_H #define QUOTER_CLIENT_H #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Task.h" #include "ace/Thread_Manager.h" #include "tao/corba.h" @@ -68,7 +73,7 @@ private: // Flag to tell server to shutdown. Stock::Quoter_Factory_Finder_var factory_Finder_var_; - // Pointer to a factory finder + // Pointer to a factory finder Stock::Quoter_Factory_var factory_var_; // Pointer to a factory diff --git a/TAO/examples/Quoter/server.h b/TAO/examples/Quoter/server.h index 51af5cfa68a..522f775ed1d 100644 --- a/TAO/examples/Quoter/server.h +++ b/TAO/examples/Quoter/server.h @@ -18,10 +18,15 @@ // // ============================================================================ -#if !defined (QUOTER_SERVER_H) +#ifndef QUOTER_SERVER_H #define QUOTER_SERVER_H #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Log_Msg.h" #include "orbsvcs/CosNamingC.h" #include "orbsvcs/Naming/Naming_Utils.h" @@ -29,7 +34,7 @@ #include "Quoter_i.h" #include "QuoterC.h" -class Quoter_Server +class Quoter_Server { // =TITLE // Defines a Quoter Server class that implements the functionality @@ -51,7 +56,7 @@ public: // Initialize the Quoter_Server state - parsing arguments and ... int run (CORBA::Environment& env); - // Run the orb + // Run the orb private: int parse_args (void); diff --git a/TAO/examples/Simple/bank/AccountManager_i.h b/TAO/examples/Simple/bank/AccountManager_i.h index 93e23917cb0..c7333b19c5b 100644 --- a/TAO/examples/Simple/bank/AccountManager_i.h +++ b/TAO/examples/Simple/bank/AccountManager_i.h @@ -17,10 +17,15 @@ // // ============================================================================ -#if !defined (ACCOUNTMANAGER_I_H) -#define ACCOUNTMANAGER_I_H +#ifndef ACCOUNTMANAGER_I_H +#define ACCOUNTMANAGER_I_H #include "ace/ACE.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/OS.h" #include "tao/TAO.h" #include "BankS.h" @@ -44,13 +49,13 @@ public: // Destructor. virtual Bank::Account_ptr open (const char *name, - CORBA::Float initial_balance, - CORBA::Environment &_env); + 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); + CORBA::Environment &env); // Close the given account. virtual void shutdown (CORBA::Environment &env); diff --git a/TAO/examples/Simple/bank/Account_i.h b/TAO/examples/Simple/bank/Account_i.h index e6b6049c6a7..969d3cad1e2 100644 --- a/TAO/examples/Simple/bank/Account_i.h +++ b/TAO/examples/Simple/bank/Account_i.h @@ -17,8 +17,8 @@ // // ============================================================================ -#if !defined (ACCOUNT_I_H) -#define ACCOUNT_I_H +#ifndef ACCOUNT_I_H +#define ACCOUNT_I_H #include "BankS.h" @@ -49,15 +49,15 @@ public: // Get the name of the holder. virtual void name (const char *name, - CORBA::Environment &env); + CORBA::Environment &env); // Set the name of the holder. virtual void deposit (CORBA::Float, - CORBA::Environment &env); + CORBA::Environment &env); // Deposit money in the account. virtual void withdraw (CORBA::Float, - CORBA::Environment &env); + CORBA::Environment &env); // Withdraw money in the account. void orb (CORBA::ORB_ptr o); diff --git a/TAO/examples/Simple/bank/Client_i.h b/TAO/examples/Simple/bank/Client_i.h index e06369f955f..eb9bf8ce1ab 100644 --- a/TAO/examples/Simple/bank/Client_i.h +++ b/TAO/examples/Simple/bank/Client_i.h @@ -55,22 +55,22 @@ private: // Checks the various operations of the account. void deposit (Bank::Account_ptr server, - CORBA::Float deposit_amount, - CORBA::Environment &env); + CORBA::Float deposit_amount, + CORBA::Environment &env); // Deposit in the account. void withdraw (Bank::Account_ptr server, - CORBA::Float withdrawl_amount); + CORBA::Float withdrawl_amount); // Withdraw from the account. Bank::Account_ptr open (const char *name, - CORBA::Float initial_balance, - CORBA::Environment &env); + 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); + CORBA::Environment &env); // Close a given Account. void test_for_different_name (CORBA::Environment &env); diff --git a/TAO/examples/Simple/bank/Server_i.h b/TAO/examples/Simple/bank/Server_i.h index 3a86681c27b..e195f184c2c 100644 --- a/TAO/examples/Simple/bank/Server_i.h +++ b/TAO/examples/Simple/bank/Server_i.h @@ -18,10 +18,15 @@ // // ============================================================================ -#if !defined (SERVER_I_H) +#ifndef SERVER_I_H #define SERVER_I_H #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Log_Msg.h" #include "tao/TAO.h" #include "orbsvcs/CosNamingC.h" @@ -42,8 +47,8 @@ public: // Destructor. int init (int argc, - char *argv[], - CORBA::Environment &env); + char *argv[], + CORBA::Environment &env); // Initialize the Server state - parsing arguments and waiting. int run (CORBA::Environment &env); diff --git a/TAO/examples/Simple/chat/Broadcaster_i.h b/TAO/examples/Simple/chat/Broadcaster_i.h index 87e54162477..2b4958ef096 100644 --- a/TAO/examples/Simple/chat/Broadcaster_i.h +++ b/TAO/examples/Simple/chat/Broadcaster_i.h @@ -17,13 +17,18 @@ // // =========================================================== -#if !defined (BROADCASTER_I_H) +#ifndef BROADCASTER_I_H #define BROADCASTER_I_H #include "BroadcasterS.h" #include "ReceiverC.h" #include "tao/TAO.h" #include "ace/Containers.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SString.h" class Broadcaster_i : public POA_Broadcaster @@ -40,17 +45,17 @@ public: // Destructor. virtual void add (Receiver_ptr receiver, - const char *nickname, - CORBA::Environment &TAO_TRY_ENV); + const char *nickname, + CORBA::Environment &TAO_TRY_ENV); // Saves receiver references in a list. virtual void remove (Receiver_ptr receiver, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Removes receiver references from the list. virtual void say (Receiver_ptr receiver, - const char *text, - CORBA::Environment &TAO_TRY_ENV); + const char *text, + CORBA::Environment &TAO_TRY_ENV); // Called by Broadcaster clients to send messages. public: @@ -58,7 +63,7 @@ public: // The ORB manager. void broadcast (const char* text, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Broadcasts the text to all registered clients. class Receiver_Data @@ -82,7 +87,7 @@ public: typedef ACE_Unbounded_Set RECEIVER_SET; typedef ACE_Unbounded_Set_Iterator - RECEIVER_SET_ITERATOR; + RECEIVER_SET_ITERATOR; RECEIVER_SET receiver_set_; // Set of registered clients. diff --git a/TAO/examples/Simple/chat/Client_i.h b/TAO/examples/Simple/chat/Client_i.h index f62bf9a769e..bbbd82d289e 100644 --- a/TAO/examples/Simple/chat/Client_i.h +++ b/TAO/examples/Simple/chat/Client_i.h @@ -18,12 +18,17 @@ // // =========================================================== -#if !defined (CLIENT_I_H) +#ifndef CLIENT_I_H #define CLIENT_I_H #include "Receiver_i.h" #include "BroadcasterC.h" #include "ace/Read_Buffer.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/TAO.h" class Client_i : public ACE_Event_Handler diff --git a/TAO/examples/Simple/chat/Receiver_i.h b/TAO/examples/Simple/chat/Receiver_i.h index b0db0d1618e..c0ec2f98fc2 100644 --- a/TAO/examples/Simple/chat/Receiver_i.h +++ b/TAO/examples/Simple/chat/Receiver_i.h @@ -17,7 +17,7 @@ // // =========================================================== -#if !defined (RECEIVER_I_H) +#ifndef RECEIVER_I_H #define RECEIVER_I_H #include "ReceiverS.h" diff --git a/TAO/examples/Simple/chat/Server_i.h b/TAO/examples/Simple/chat/Server_i.h index 2622ee027c9..dca164d5ba6 100644 --- a/TAO/examples/Simple/chat/Server_i.h +++ b/TAO/examples/Simple/chat/Server_i.h @@ -18,7 +18,7 @@ // // =========================================================== -#if !defined (SERVER_I_H) +#ifndef SERVER_I_H #define SERVER_I_H #include "Broadcaster_i.h" @@ -39,8 +39,8 @@ public: // Destructor. int init (int argc, - char *argv[], - CORBA::Environment &env); + char *argv[], + CORBA::Environment &env); // Initialize the server. int run (CORBA::Environment &env); diff --git a/TAO/examples/Simple/echo/Echo_i.h b/TAO/examples/Simple/echo/Echo_i.h index c8214fefde9..d54b811fef8 100644 --- a/TAO/examples/Simple/echo/Echo_i.h +++ b/TAO/examples/Simple/echo/Echo_i.h @@ -17,7 +17,7 @@ // // ============================================================================ -#if !defined (ECHO_I_H) +#ifndef ECHO_I_H #define ECHO_I_H #include "EchoS.h" @@ -41,7 +41,7 @@ public: // Destructor. virtual char *echo (const char *mesg, - CORBA::Environment &env); + CORBA::Environment &env); // Return the mesg string back from the server. virtual void shutdown (CORBA::Environment &env); diff --git a/TAO/examples/Simple/echo/Server_i.h b/TAO/examples/Simple/echo/Server_i.h index 381acdf1cdd..43529e5b0a2 100644 --- a/TAO/examples/Simple/echo/Server_i.h +++ b/TAO/examples/Simple/echo/Server_i.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (SERVER_I_H) +#ifndef SERVER_I_H #define SERVER_I_H #include "Echo_i.h" diff --git a/TAO/examples/Simple/grid/Client_i.h b/TAO/examples/Simple/grid/Client_i.h index 4455c6c73b1..105dda085ae 100644 --- a/TAO/examples/Simple/grid/Client_i.h +++ b/TAO/examples/Simple/grid/Client_i.h @@ -18,7 +18,7 @@ # include "GridC.h" -class Client_i +class Client_i { // = TITLE // Simple Client implementation. @@ -41,9 +41,9 @@ public: int init (int argc, char *argv[]); // Initialize the client communication endpoint with server. - + void test_grid (void); - // Make the grid. + // Make the grid. private: int read_ior (char *filename); @@ -81,7 +81,7 @@ private: CORBA::Short setx_; // Cell identifier in which a value meeds to be stored. - + CORBA::Short sety_; // Cell identifier in which a value meeds to be stored. diff --git a/TAO/examples/Simple/grid/Grid_i.h b/TAO/examples/Simple/grid/Grid_i.h index cd0c34c26a5..516a10f6072 100644 --- a/TAO/examples/Simple/grid/Grid_i.h +++ b/TAO/examples/Simple/grid/Grid_i.h @@ -5,7 +5,7 @@ // // = LIBRARY // TAO/tests/Simple/grid -// +// // = FILENAME // Grid_i.h // @@ -13,11 +13,11 @@ // This class implements the Grid IDL interface. // // = AUTHOR -// +// // ============================================================================ -#if !defined (GRID_I_H) -#define GRID_I_H +#ifndef GRID_I_H +#define GRID_I_H #include "GridS.h" @@ -49,22 +49,22 @@ public: // Returns the height of the grid virtual void width (CORBA::Short, - CORBA_Environment &); + CORBA_Environment &); // Sets the width of the grid. virtual void height (CORBA::Short, CORBA_Environment &); // Sets the height of the grid. - virtual void set (CORBA::Short, - CORBA::Short, - CORBA::Long, - CORBA::Environment &); + virtual void set (CORBA::Short, + CORBA::Short, + CORBA::Long, + CORBA::Environment &); // Sets the grid value. - virtual CORBA::Long get (CORBA::Short, - CORBA::Short, - CORBA::Environment &); + virtual CORBA::Long get (CORBA::Short, + CORBA::Short, + CORBA::Environment &); // Gets the grid value. virtual void destroy (CORBA::Environment &); @@ -78,14 +78,14 @@ private: // Height of the grid. CORBA::Long **array_; - // Pointer to the matrix. This is organized as an "array of arrays." + // Pointer to the matrix. This is organized as an "array of arrays." }; class Grid_Factory_i : public POA_Grid_Factory { // =TITLE // Create a . -public: +public: // = Initialization and termination methods. Grid_Factory_i (void); // Constructor. @@ -94,13 +94,13 @@ public: // Destructor. virtual Grid_ptr make_grid (CORBA::Short, - CORBA::Short, - CORBA::Environment &_env); + CORBA::Short, + CORBA::Environment &_env); // This function creates and returns a . virtual void shutdown (CORBA::Environment &env); // Shutdown the server. - + void orb (CORBA::ORB_ptr o); // Set the ORB pointer. diff --git a/TAO/examples/Simple/grid/Server_i.h b/TAO/examples/Simple/grid/Server_i.h index 1cb5f88a2be..dbfd942a2f8 100644 --- a/TAO/examples/Simple/grid/Server_i.h +++ b/TAO/examples/Simple/grid/Server_i.h @@ -16,7 +16,7 @@ // // ============================================================================ -#if !defined (SERVER_I_H) +#ifndef SERVER_I_H #define SERVER_I_H #include "Grid_i.h" diff --git a/TAO/examples/Simple/time/Client_i.h b/TAO/examples/Simple/time/Client_i.h index ab4a3d5893d..84ff238619b 100644 --- a/TAO/examples/Simple/time/Client_i.h +++ b/TAO/examples/Simple/time/Client_i.h @@ -11,7 +11,7 @@ // // = DESCRIPTION // This class implements a simple CORBA client that access a Time -// server. +// server. // // = AUTHORS // Darrell Brunsch diff --git a/TAO/examples/Simple/time/Server_i.h b/TAO/examples/Simple/time/Server_i.h index 3f3a1814c3a..3ebb7c72b53 100644 --- a/TAO/examples/Simple/time/Server_i.h +++ b/TAO/examples/Simple/time/Server_i.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (SERVER_I_H) +#ifndef SERVER_I_H #define SERVER_I_H #include "Time_i.h" diff --git a/TAO/examples/Simple/time/Time_i.h b/TAO/examples/Simple/time/Time_i.h index a4d17a315dd..ec7d011aff3 100644 --- a/TAO/examples/Simple/time/Time_i.h +++ b/TAO/examples/Simple/time/Time_i.h @@ -5,7 +5,7 @@ // // = LIBRARY // TAO/tests/Simple/time -// +// // = FILENAME // Time_i.h // @@ -14,11 +14,11 @@ // // = AUTHOR // Darrell Brunsch -// +// // ============================================================================ -#if !defined (TIME_I_H) -#define TIME_I_H +#ifndef TIME_I_H +#define TIME_I_H #include "TimeS.h" @@ -28,9 +28,9 @@ class Time_i: public POA_Time // Time Object Implementation // // = DESCRIPTION - // Implementation of a simple object that has two methods, one that + // Implementation of a simple object that has two methods, one that // return the current time/date on the server and the other that - // shuts down the server. + // shuts down the server. public: // = Initialization and termination methods. Time_i (void); diff --git a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h index e5840bb289e..d3a9bb3ccf4 100644 --- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h +++ b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h @@ -7,7 +7,7 @@ // AnyAnalyser.h // // = AUTHOR -// Michael Kircher +// Michael Kircher // // = DESCRIPTION // Accepts an CORBA::Any, traverses it, copies it into a tree structure @@ -19,7 +19,7 @@ #include "PrintVisitor.h" #include "tao/corba.h" -#if !defined (ANYANALYSER_H) +#ifndef ANYANALYSER_H #define ANYANALYSER_H typedef enum {PARENT_IS_STRUCT, PARENT_IS_NO_STRUCT} KIND; @@ -36,24 +36,24 @@ class AnyAnalyser { public: AnyAnalyser (const char *filename); - + ~AnyAnalyser (); // cause the PrintViewer to be deleted to close the file void close (); - + // main starting point includes analysing and printing void printAny (CORBA::TypeCode_ptr any_type, const void *any_value); void printTimeStamp (ACE_hrtime_t creation, ACE_hrtime_t ec_recv, ACE_hrtime_t ec_send); - // Print the time stamp, which means forward this + // Print the time stamp, which means forward this // call to the PrintVisitor private: - Node *analyse (CORBA::TypeCode_ptr tc_ptr, - const unsigned char *&value_ptr, + Node *analyse (CORBA::TypeCode_ptr tc_ptr, + const unsigned char *&value_ptr, RecurseInfo recurseInfo); PrintVisitor *printVisitor_ptr_; diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h index 8730e2d56d0..90c6a1db6db 100644 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h +++ b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h @@ -1,6 +1,6 @@ // $Id$ // ============================================================================ -// +// // = FILENAME // DOVEMIB.h // @@ -9,7 +9,7 @@ // // ============================================================================ -#if !defined (DOVE_MIB_H) +#ifndef DOVE_MIB_H #define DOVE_MIB_H //#include "ace/SString.h" @@ -29,7 +29,7 @@ public: MIB_Consumer (void); int open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name); + const char *my_name); // Uses the name server to obtain a reference to the // and registers with channel to receive notifications from the // supplier. Also registers to receive shutdown messages from the @@ -41,7 +41,7 @@ public: // = (not protected to allow short-circuiting) protected: virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); + CORBA::Environment &); // If the [0] is a notification, prints out the data from // the supplier. If its a shutdown message, the consumer // disconnects from the channel. diff --git a/TAO/examples/Simulator/DOVEMIB/Node.h b/TAO/examples/Simulator/DOVEMIB/Node.h index d8029a4fa5e..90823bb26cc 100644 --- a/TAO/examples/Simulator/DOVEMIB/Node.h +++ b/TAO/examples/Simulator/DOVEMIB/Node.h @@ -7,10 +7,10 @@ // Node.h // // = AUTHOR -// Michael Kircher +// Michael Kircher // // = DESCRIPTION -// This file descibes the various node types for analysing +// This file descibes the various node types for analysing // an CORBA::Any. It is no memory allocated, that means // The values are not really contained by the nodes, but the // nodes refer to the values via pointers. @@ -19,15 +19,20 @@ #include "tao/corba.h" #include "ace/Containers.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "NodeVisitor.h" -#if !defined (NODE_H) +#ifndef NODE_H #define NODE_H // base class for nodes class Node { -public: +public: virtual ~Node () {} virtual void Accept (NodeVisitor *NodeVisitor) = 0; virtual unsigned int getRecursionLevel () = 0; @@ -41,8 +46,8 @@ protected: // Node to store information about a Struct class StructNode : public Node { public: - StructNode (const char *Name_ptr, - unsigned int recursion_level); + StructNode (const char *Name_ptr, + unsigned int recursion_level); ~StructNode (); // accpet a visitor @@ -56,15 +61,15 @@ public: // get the number of children unsigned int getChildNumber (); - + // get the name of the struct - const char *getName (); + const char *getName (); // get recursion level unsigned int getRecursionLevel (); - -private: + +private: ACE_Unbounded_Queue *queue_ptr_; ACE_Unbounded_Queue_Iterator *queue_iterator_ptr_; unsigned int queue_position_; @@ -76,9 +81,9 @@ private: // Node to store information about a Double class DoubleNode : public Node { public: - DoubleNode (CORBA::Double *Double_ptr, - const char *Name_ptr, - unsigned int recursion_level); + DoubleNode (CORBA::Double *Double_ptr, + const char *Name_ptr, + unsigned int recursion_level); ~DoubleNode () {} // accpet a visitor @@ -92,9 +97,9 @@ public: // get recursion level unsigned int getRecursionLevel (); - + private: - CORBA::Double *Double_ptr_; + CORBA::Double *Double_ptr_; const char *Name_ptr_; unsigned int recursion_level_; }; @@ -103,9 +108,9 @@ private: // Node to store information about a Long class LongNode : public Node { public: - LongNode (CORBA::Long *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level); + LongNode (CORBA::Long *Long_ptr, + const char *Name_ptr, + unsigned int recursion_level); ~LongNode () {} // accpet a visitor @@ -121,7 +126,7 @@ public: unsigned int getRecursionLevel (); private: - CORBA::Long *Long_ptr_; + CORBA::Long *Long_ptr_; const char *Name_ptr_; unsigned int recursion_level_; }; @@ -130,11 +135,11 @@ private: // Node to store information about a ULong class ULongNode : public Node { public: - ULongNode (CORBA::ULong *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~ULongNode () {} - + ULongNode (CORBA::ULong *Long_ptr, + const char *Name_ptr, + unsigned int recursion_level); + ~ULongNode () {} + // accpet a visitor void Accept (NodeVisitor *nodeVisitor); @@ -157,11 +162,11 @@ private: // Node to store information about a String class StringNode : public Node { public: - StringNode (CORBA::String_var String_var, - const char *Name_ptr, - unsigned int recursion_level); + StringNode (CORBA::String_var String_var, + const char *Name_ptr, + unsigned int recursion_level); ~StringNode () {} - + // accpet a visitor void Accept (NodeVisitor *nodeVisitor); diff --git a/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h b/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h index d19e065ae2c..f1a0d5d4050 100644 --- a/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h +++ b/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h @@ -7,14 +7,14 @@ // NodeVisitor.h // // = AUTHOR -// Michael Kircher +// Michael Kircher // // = DESCRIPTION // This file descibes the Visitor used by the any evaluator. // // ============================================================================ -#if !defined (NODE_VISITOR_H) +#ifndef NODE_VISITOR_H #define NODE_VISITOR_H class StructNode; @@ -30,7 +30,7 @@ public: virtual void visitStructNode (StructNode *structNode) = 0; virtual void visitDoubleNode (DoubleNode *doubleNode) = 0; virtual void visitLongNode (LongNode *longNode) = 0; - virtual void visitULongNode (ULongNode *uLongNode) = 0; + virtual void visitULongNode (ULongNode *uLongNode) = 0; virtual void visitStringNode (StringNode *stringNode) = 0; protected: NodeVisitor () {} diff --git a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h b/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h index 6c0f16a5f3d..b2b2a6f28a0 100644 --- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h +++ b/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h @@ -18,7 +18,7 @@ #include "NodeVisitor.h" #include "Node.h" -#if !defined (PRINT_VISITOR_H) +#ifndef PRINT_VISITOR_H #define PRINT_VISITOR_H diff --git a/TAO/examples/Simulator/DOVEMIB/any_test_i.h b/TAO/examples/Simulator/DOVEMIB/any_test_i.h index eb877ef23c5..673b892fb19 100644 --- a/TAO/examples/Simulator/DOVEMIB/any_test_i.h +++ b/TAO/examples/Simulator/DOVEMIB/any_test_i.h @@ -3,17 +3,17 @@ // ============================================================================ // // = LIBRARY -// +// // = FILENAME // any_test_i.h // // = AUTHOR // Michael Kircher -// +// // ============================================================================ -#if !defined (_ANY_TEST_I_HH) -#define _ANY_TEST_I_HH +#ifndef _ANY_TEST_I_HH +#define _ANY_TEST_I_HH #include "any_testS.h" diff --git a/TAO/examples/Simulator/DOVEMIB/clnt.h b/TAO/examples/Simulator/DOVEMIB/clnt.h index 67ed5c84d57..bec38868e21 100644 --- a/TAO/examples/Simulator/DOVEMIB/clnt.h +++ b/TAO/examples/Simulator/DOVEMIB/clnt.h @@ -16,6 +16,11 @@ // ============================================================================ #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/corba.h" #include "any_testC.h" #include "NavWeapC.h" @@ -42,7 +47,7 @@ private: Any_Test_ptr any_test_ptr_; // Reverse_ptr reverse_ptr_; - + int argc_; // # of arguments on the command line. diff --git a/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h b/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h index 2f7ac32beff..e3c0e1cd996 100644 --- a/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h +++ b/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h @@ -14,6 +14,11 @@ // ============================================================================ #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/corba.h" #include "orbsvcs/RtecEventChannelAdminC.h" #include "orbsvcs/RtecEventCommS.h" @@ -22,12 +27,12 @@ #include "orbsvcs/Scheduler_Factory.h" -#if !defined (DOVE_SUPPLIER_H) +#ifndef DOVE_SUPPLIER_H #define DOVE_SUPPLIER_H #define SOURCE_ID 123 -class DOVE_Supplier +class DOVE_Supplier { public: DOVE_Supplier (); @@ -44,11 +49,11 @@ public: // inherited from PushSupplier. private: - class Internal_DOVE_Supplier : public POA_RtecEventComm::PushSupplier + class Internal_DOVE_Supplier : public POA_RtecEventComm::PushSupplier { friend class DOVE_Supplier; public: - virtual void disconnect_push_supplier (CORBA::Environment &) + virtual void disconnect_push_supplier (CORBA::Environment &) { } @@ -61,7 +66,7 @@ private: private: int get_EventChannel (); // get a reference to the event channel - + int connect_Supplier (); // connect the the supplier with the event channel @@ -69,7 +74,7 @@ private: RtecEventChannelAdmin::EventChannel_var eventChannel_var_; RtecEventChannelAdmin::SupplierAdmin_var supplierAdmin_var_; RtecEventChannelAdmin::ProxyPushConsumer_var proxyPushConsumer_var_; - RtecScheduler::Scheduler_var scheduler_var_; + RtecScheduler::Scheduler_var scheduler_var_; Internal_DOVE_Supplier* internal_DOVE_Supplier_ptr_; diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.h b/TAO/examples/Simulator/Event_Supplier/Event_Con.h index c95efa7f473..e82cc75fd76 100644 --- a/TAO/examples/Simulator/Event_Supplier/Event_Con.h +++ b/TAO/examples/Simulator/Event_Supplier/Event_Con.h @@ -1,7 +1,7 @@ // $Id$ // ============================================================================ -// +// // = FILENAME // Event_Con.h // @@ -14,10 +14,15 @@ // // ============================================================================ -#if !defined (EVENT_CON_H) +#ifndef EVENT_CON_H #define EVENT_CON_H #include "ace/SString.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "orbsvcs/RtecEventChannelAdminC.h" #include "orbsvcs/RtecEventCommS.h" @@ -33,7 +38,7 @@ public: Demo_Consumer (void); int open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name); + const char *my_name); // Uses the name server to obtain a reference to the // and registers with channel to receive notifications from the // supplier. Also registers to receive shutdown messages from the @@ -45,7 +50,7 @@ public: // = (not protected to allow short-circuiting) protected: virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); + CORBA::Environment &); // If the [0] is a notification, prints out the data from // the supplier. If its a shutdown message, the consumer // disconnects from the channel. diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h b/TAO/examples/Simulator/Event_Supplier/Event_Sup.h index b3a9928da03..1b56d50d96a 100644 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h +++ b/TAO/examples/Simulator/Event_Supplier/Event_Sup.h @@ -13,7 +13,7 @@ // // ============================================================================ -#if !defined (EVENT_SUP_H) +#ifndef EVENT_SUP_H #define EVENT_SUP_H //#include diff --git a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h index 1f58fc223a4..80ec077b833 100644 --- a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h +++ b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h @@ -17,7 +17,7 @@ // // ============================================================================ -#if !defined (LOGGING_SUP_H) +#ifndef LOGGING_SUP_H #define LOGGING_SUP_H //#include diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h index 4154e64e5a7..a67b77541b7 100644 --- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h +++ b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h @@ -10,17 +10,22 @@ // // = DESCRIPTION // This class implements a subset of the functionality of the -// CORBA Concurrency Service. +// CORBA Concurrency Service. // // = AUTHORS // Torben Worm // // ============================================================================ -#if !defined (_CONCURRENCY_SERVICE_H) +#ifndef _CONCURRENCY_SERVICE_H #define _CONCURRENCY_SERVICE_H #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Log_Msg.h" #include "tao/TAO.h" #include "orbsvcs/Concurrency/Concurrency_Utils.h" @@ -41,13 +46,13 @@ public: // Default Constructor. Concurrency_Service (int argc, - char **argv, + char **argv, CORBA::Environment &env); // Constructor taking the command-line arguments. ~Concurrency_Service (void); // Destructor. - + int init (int argc, char **argv, CORBA::Environment &env); diff --git a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h b/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h index e66ac7b848d..5289711965d 100644 --- a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h +++ b/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.h @@ -17,35 +17,35 @@ #include "orbsvcs/CosLifeCycleC.h" #include "orbsvcs/LifeCycleServiceC.h" -#if !defined (CRITERIA_EVALUATOR_H_H) +#ifndef CRITERIA_EVALUATOR_H_H #define CRITERIA_EVALUATOR_H_H class Criteria_Evaluator// : public LifeCycleService::Criteria_Evaluator { // = TITLE - // + // public: Criteria_Evaluator (const CosLifeCycle::Criteria & criteria); ~Criteria_Evaluator (); - + LifeCycleService::Criteria_Evaluator::SeqNamedValuePair * getInitialization (CORBA::Environment &_tao_environment); char * getFilter (CORBA::Environment &_tao_environment); - LifeCycleService::Criteria_Evaluator::SeqNamedValuePair * getLogicalLocation (CORBA::Environment &_tao_environment) + LifeCycleService::Criteria_Evaluator::SeqNamedValuePair * getLogicalLocation (CORBA::Environment &_tao_environment) { return 0; } - char * getPreferences (CORBA::Environment &_tao_environment) + char * getPreferences (CORBA::Environment &_tao_environment) { return 0; } private: CORBA::Any *getCriteriaMember (const CORBA::String member_name); - + const CosLifeCycle::Criteria &criteria_; }; diff --git a/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h b/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h index 287f58d2e1e..6730e707e99 100644 --- a/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h +++ b/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h @@ -14,7 +14,7 @@ // // ============================================================================ -#if !defined (FACTORY_TRADER_H) +#ifndef FACTORY_TRADER_H #define FACTORY_TRADER_H #include "tao/corba.h" @@ -23,7 +23,7 @@ #include "orbsvcs/CosLifeCycleC.h" -class Factory_Trader +class Factory_Trader { public: Factory_Trader (); @@ -31,11 +31,11 @@ public: void add_type (); // Add a the Factory type to the repository - + void export (const char * name, - const char * location, - const char * description, - const CORBA::Object_ptr object_ptr); + const char * location, + const char * description, + const CORBA::Object_ptr object_ptr); // export a specific factory CORBA::Object_ptr query (const CORBA::String constraint); diff --git a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h index 065b10fcd24..ab24a98dc6f 100644 --- a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h +++ b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service.h @@ -14,10 +14,15 @@ // ============================================================================ #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "tao/TAO.h" #include "Life_Cycle_Service_i.h" -#if !defined (LIFE_CYCLE_SERVICE_H) +#ifndef LIFE_CYCLE_SERVICE_H #define IFE_CYCLE_SERVICE_H class Life_Cycle_Service_Server @@ -48,7 +53,7 @@ private: // instance of the ORB Manager Life_Cycle_Service_i *life_Cycle_Service_i_ptr_; - // Instance of the creation service + // Instance of the creation service CosNaming::NamingContext_var namingContext_var_; // reference to the naming service diff --git a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_i.h b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_i.h index 93730aa7887..7b4aa4d18ba 100644 --- a/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_i.h +++ b/TAO/orbsvcs/LifeCycle_Service/Life_Cycle_Service_i.h @@ -17,7 +17,7 @@ #include "Factory_Trader.h" #include "Criteria_Evaluator.h" -#if !defined (LIFE_CYCLE_SERVICE_IMPL_H) +#ifndef LIFE_CYCLE_SERVICE_IMPL_H #define LIFE_CYCLE_SERVICE_IMPL_H class Life_Cycle_Service_i : public POA_LifeCycleService::Life_Cycle_Service @@ -34,7 +34,7 @@ public: // 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, + 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 @@ -42,14 +42,14 @@ public: // request to a more concrete Factory. void register_factory (const char * name, - const char * location, - const char * description, - CORBA::Object_ptr object, - CORBA::Environment &_env_there); + const char * location, + const char * description, + CORBA::Object_ptr object, + CORBA::Environment &_env_there); // Registers a factory with specified properties private: - Factory_Trader *factory_trader_ptr_; + Factory_Trader *factory_trader_ptr_; }; #endif /* LIFE_CYCLE_SERVICE_IMPL_H */ diff --git a/TAO/orbsvcs/Logging_Service/Logging_Service_i.h b/TAO/orbsvcs/Logging_Service/Logging_Service_i.h index 653483fe6a9..e240453fcab 100644 --- a/TAO/orbsvcs/Logging_Service/Logging_Service_i.h +++ b/TAO/orbsvcs/Logging_Service/Logging_Service_i.h @@ -20,10 +20,15 @@ // // ============================================================================ -#if !defined (_LOG_SERVER_H) +#ifndef _LOG_SERVER_H #define _LOG_SERVER_H #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Log_Msg.h" #include "tao/TAO.h" #include "orbsvcs/CosNamingC.h" @@ -51,17 +56,17 @@ public: int init (int argc, char **argv, - CORBA::Environment& env); + CORBA::Environment& env); // Initialize the Logger_Server state - parsing arguments and ... int run (CORBA::Environment& env); - // Run the ORB. + // Run the ORB. Logger_ptr make_logger (const char *name, - CORBA::Environment &_env); + CORBA::Environment &_env); // This function creates and returns a logger with the given . // Currently, is unused. - + private: int parse_args (void); // Parses the commandline arguments. @@ -79,7 +84,7 @@ private: Logger_Factory_i factory_impl_; // Implementation object of the Logger_Factory. - + Logger_Factory_var factory_; // Factory_var to register with NamingService. @@ -91,7 +96,7 @@ private: char* service_name_; // The id to give the Logger_Factory instance (defaults to - // "LoggingService") + // "LoggingService") }; #endif /* _LOG_SERVER_H */ diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.h b/TAO/orbsvcs/Naming_Service/Naming_Service.h index ae7fe95ce48..819f496802f 100644 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.h +++ b/TAO/orbsvcs/Naming_Service/Naming_Service.h @@ -17,7 +17,7 @@ // // ============================================================================ -#if !defined (TAO_NAMING_SERVICE_H) +#ifndef TAO_NAMING_SERVICE_H #define TAO_NAMING_SERVICE_H #include "tao/TAO.h" diff --git a/TAO/orbsvcs/Trading_Service/Trading_Service.h b/TAO/orbsvcs/Trading_Service/Trading_Service.h index 55210166821..aefadda286c 100644 --- a/TAO/orbsvcs/Trading_Service/Trading_Service.h +++ b/TAO/orbsvcs/Trading_Service/Trading_Service.h @@ -4,20 +4,25 @@ // // = BINARY // trader -// -// = FILENAME +// +// = FILENAME // Trading_Service.h -// -// = AUTHOR -// Seth Widoff -// -// ======================================================================= +// +// = AUTHOR +// Seth Widoff +// +// ======================================================================= -#if !defined (_TRADING_SERVICE_H) +#ifndef _TRADING_SERVICE_H #define _TRADING_SERVICE_H #include "tao/TAO.h" #include "ace/Auto_Ptr.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "orbsvcs/IOR_Multicast.h" #include "orbsvcs/Trader/Trader.h" #include "orbsvcs/Trader/Service_Type_Repository.h" @@ -47,26 +52,26 @@ public: Trading_Service (void); // Default constructor. - + ~Trading_Service (void); // Destructor int init (int argc, char* argv[]); // Initialize the Trading Service with arguments. - + int run (void); // Run the Trading Service. int shutdown (void); - + private: int init_multicast_server (void); - // Enable the Trading Service to answer multicast requests for its IOR. + // Enable the Trading Service to answer multicast requests for its IOR. int bootstrap_to_federation (void); // Bootstrap to another trader, and attach to its trader network. - + int parse_args (int& argc, char *argv[]); // parses the arguments. @@ -81,16 +86,16 @@ private: CORBA::String_var name_; // Name of this trading service: "hostname:pid". - + CORBA::String_var ior_; - // IOR of the trader kept around for handiness purposes. - + // IOR of the trader kept around for handiness purposes. + CORBA::Boolean federate_; // Flag indicating whether this trader should join the federation. CORBA::Boolean bootstrapper_; - // Flag inidicating whether we're the trader others are bootstrapping to. - + // Flag inidicating whether we're the trader others are bootstrapping to. + TAO_IOR_Multicast ior_multicast_; // Event handler that responds to resolve_initial_references requests. }; diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h index 082b96ddbb6..5882da9dc92 100644 --- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h +++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h @@ -6,24 +6,29 @@ // // = LIBRARY // cos -// +// // = FILENAME // AVStreams_i.h // // = AUTHOR // Sumedh Mungee -// -// +// +// // ============================================================================ -#if !defined (AVSTREAMS_I_H) -#define AVSTREAMS_I_H +#ifndef AVSTREAMS_I_H +#define AVSTREAMS_I_H #include "orbsvcs/orbsvcs_export.h" #include "orbsvcs/CosPropertyServiceS.h" #include "orbsvcs/AVStreamsS.h" #include "orbsvcs/Property/CosPropertyService_i.h" #include "ace/Process.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "orbsvcs/CosNamingC.h" #include "orbsvcs/AV/Endpoint_Strategy.h" #include "orbsvcs/Null_MediaCtrlS.h" @@ -35,76 +40,76 @@ public: AV_Null_MediaCtrl (void); }; -class TAO_ORBSVCS_Export TAO_Basic_StreamCtrl +class TAO_ORBSVCS_Export TAO_Basic_StreamCtrl : public virtual POA_AVStreams::Basic_StreamCtrl // = DESCRIPTION // Base class for StreamCtrl, implements basic stream start -// and stop functionality +// and stop functionality { public: TAO_Basic_StreamCtrl (void); // Default Constructor - virtual void stop (const AVStreams::flowSpec &the_spec, + virtual void stop (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Stop the transfer of data of the stream // Empty the_spec means apply operation to all flows - virtual void start (const AVStreams::flowSpec &the_spec, + virtual void start (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); - // Start the transfer of data in the stream. - // Empty the_spec means apply operation to all flows + // Start the transfer of data in the stream. + // Empty the_spec means apply operation to all flows - virtual void destroy (const AVStreams::flowSpec &the_spec, + virtual void destroy (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); - // Tears down the stream. This will close the connection, and delete + // Tears down the stream. This will close the connection, and delete // the streamendpoint and vdev associated with this stream // Empty the_spec means apply operation to all flows - virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &new_qos, - const AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &new_qos, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Changes the QoS associated with the stream // Empty the_spec means apply operation to all flows - virtual void push_event (const char *the_event, + virtual void push_event (const char *the_event, CORBA::Environment &env); // Used by StreamEndPoint and VDev to inform StreamCtrl of events. // E.g., loss of flow, reestablishment of flow, etc.. - - virtual void set_FPStatus (const AVStreams::flowSpec &the_spec, - const char *fp_name, - const CORBA::Any &fp_settings, + + virtual void set_FPStatus (const AVStreams::flowSpec &the_spec, + const char *fp_name, + const CORBA::Any &fp_settings, CORBA::Environment &env); // Used to control the flow protocol parameters. - virtual CORBA::Object_ptr get_flow_connection (const char *flow_name, + virtual CORBA::Object_ptr get_flow_connection (const char *flow_name, CORBA::Environment &env); - // Not implemented in the light profile, will raise the notsupported - // exception - - virtual void set_flow_connection (const char *flow_name, - CORBA::Object_ptr flow_connection, + // Not implemented in the light profile, will raise the notsupported + // exception + + virtual void set_flow_connection (const char *flow_name, + CORBA::Object_ptr flow_connection, CORBA::Environment &env); // Not implemented in the light profile, will raise the notsupported // exception - + virtual ~TAO_Basic_StreamCtrl (void); // Destructor protected: - + AVStreams::VDev_var vdev_a_; AVStreams::VDev_var vdev_b_; // The Virtual Devices for this stream - + AVStreams::StreamEndPoint_A_var stream_endpoint_a_; AVStreams::StreamEndPoint_B_var stream_endpoint_b_; // The Endpoints for this stream }; -class TAO_ORBSVCS_Export TAO_StreamCtrl - : public virtual POA_AVStreams::StreamCtrl, +class TAO_ORBSVCS_Export TAO_StreamCtrl + : public virtual POA_AVStreams::StreamCtrl, public virtual TAO_Basic_StreamCtrl // = DESCRIPTION // Implementation the A/V StreamCtrl class. this class @@ -114,11 +119,11 @@ class TAO_ORBSVCS_Export TAO_StreamCtrl public: TAO_StreamCtrl (void); // Default Constructor - - virtual CORBA::Boolean bind_devs (AVStreams::MMDevice_ptr a_party, - AVStreams::MMDevice_ptr b_party, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, + + virtual CORBA::Boolean bind_devs (AVStreams::MMDevice_ptr a_party, + AVStreams::MMDevice_ptr b_party, + AVStreams::streamQoS &the_qos, + const AVStreams::flowSpec &the_flows, CORBA::Environment &env); // Establish a stream between a_party and b_party, // with qos the_qos, and for the flows in the_flows @@ -126,27 +131,27 @@ public: // Causes a connection to be established between the StreamEndpoints. // Returns success/failure - virtual CORBA::Boolean bind (AVStreams::StreamEndPoint_A_ptr a_party, - AVStreams::StreamEndPoint_B_ptr b_party, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, + virtual CORBA::Boolean bind (AVStreams::StreamEndPoint_A_ptr a_party, + AVStreams::StreamEndPoint_B_ptr b_party, + AVStreams::streamQoS &the_qos, + const AVStreams::flowSpec &the_flows, CORBA::Environment &env); // Establish a connection between two streamendpoints. This can // be used if the streamendpoints have been created independent of // a MMDevice - - virtual void unbind_party (AVStreams::StreamEndPoint_ptr the_ep, - const AVStreams::flowSpec &the_spec, + + virtual void unbind_party (AVStreams::StreamEndPoint_ptr the_ep, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); - // Unbind the_ep from the stream. Empty the_spec means apply to all flows. - + // Unbind the_ep from the stream. Empty the_spec means apply to all flows. + virtual void unbind (CORBA::Environment &env); // unbind the stream. Same effect as Basic_StreamCtrl::destroy () - + virtual ~TAO_StreamCtrl (void); // Destructor -}; +}; class TAO_ORBSVCS_Export TAO_Base_StreamEndPoint @@ -167,13 +172,13 @@ public: virtual int handle_stop (const AVStreams::flowSpec &the_spec, CORBA::Environment &env) = 0; // Application needs to define this - - virtual int handle_start (const AVStreams::flowSpec &the_spec, + + virtual int handle_start (const AVStreams::flowSpec &the_spec, CORBA::Environment &env) = 0; // Application needs to define this - - virtual int handle_destroy (const AVStreams::flowSpec &the_spec, + + virtual int handle_destroy (const AVStreams::flowSpec &the_spec, CORBA::Environment &env) = 0; // Application needs to define this }; @@ -193,12 +198,12 @@ class TAO_ORBSVCS_Export TAO_Server_Base_StreamEndPoint : public virtual TAO_Base_StreamEndPoint { public: - virtual CORBA::Boolean handle_connection_requested (AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean handle_connection_requested (AVStreams::flowSpec &the_spec, CORBA::Environment &env) = 0; // Application needs to define this }; -class TAO_ORBSVCS_Export TAO_StreamEndPoint +class TAO_ORBSVCS_Export TAO_StreamEndPoint : public virtual POA_AVStreams::StreamEndPoint, // The POA class public virtual TAO_Base_StreamEndPoint { @@ -209,84 +214,84 @@ public: TAO_StreamEndPoint (void); // Constructor - virtual void stop (const AVStreams::flowSpec &the_spec, + virtual void stop (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Stop the stream. Empty the_spec means, for all the flows - - virtual void start (const AVStreams::flowSpec &the_spec, + + virtual void start (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Start the stream, Empty the_spec means, for all the flows - virtual void destroy (const AVStreams::flowSpec &the_spec, + virtual void destroy (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Destroy the stream, Empty the_spec means, for all the flows - virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, + AVStreams::streamQoS &qos_spec, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env) = 0; // Called by StreamCtrl. responder is the peer to connect to - virtual CORBA::Boolean request_connection (AVStreams::StreamEndPoint_ptr initiator, - CORBA::Boolean is_mcast, - AVStreams::streamQoS &qos, - AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean request_connection (AVStreams::StreamEndPoint_ptr initiator, + CORBA::Boolean is_mcast, + AVStreams::streamQoS &qos, + AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called by the peer StreamEndPoint. The flow_spec indicates the // flows (which contain transport addresses etc.) - virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &new_qos, - const AVStreams::flowSpec &the_flows, + virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &new_qos, + const AVStreams::flowSpec &the_flows, CORBA::Environment &env); // Change the transport qos on a stream - - virtual CORBA::Boolean set_protocol_restriction (const AVStreams::protocolSpec &the_pspec, + + virtual CORBA::Boolean set_protocol_restriction (const AVStreams::protocolSpec &the_pspec, CORBA::Environment &env); // Used to restrict the set of protocols - - virtual void disconnect (const AVStreams::flowSpec &the_spec, + + virtual void disconnect (const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // disconnect the flows - - virtual void set_FPStatus (const AVStreams::flowSpec &the_spec, - const char *fp_name, - const CORBA::Any &fp_settings, + + virtual void set_FPStatus (const AVStreams::flowSpec &the_spec, + const char *fp_name, + const CORBA::Any &fp_settings, CORBA::Environment &env); // Used to control the flow - - virtual CORBA::Object_ptr get_fep (const char *flow_name, + + virtual CORBA::Object_ptr get_fep (const char *flow_name, CORBA::Environment &env); // Not implemented in the light profile, throws notsupported - virtual char * add_fep (CORBA::Object_ptr the_fep, + virtual char * add_fep (CORBA::Object_ptr the_fep, CORBA::Environment &env); // Not implemented in the light profile, throws notsupported - - virtual void remove_fep (const char *fep_name, + + virtual void remove_fep (const char *fep_name, CORBA::Environment &env); // Not implemented in the light profile, throws notsupported - - virtual void set_negotiator (AVStreams::Negotiator_ptr new_negotiator, + + virtual void set_negotiator (AVStreams::Negotiator_ptr new_negotiator, CORBA::Environment &env); // Used to "attach" a negotiator to the endpoint - - virtual void set_key (const char *flow_name, + + virtual void set_key (const char *flow_name, const AVStreams::encryption_key & the_key, CORBA::Environment &env); - // Used for public key encryption. - - virtual void set_source_id (CORBA::Long source_id, + // Used for public key encryption. + + virtual void set_source_id (CORBA::Long source_id, CORBA::Environment &env); // Used to set a unique id for packets sent by this streamendpoint virtual ~TAO_StreamEndPoint (void); // Destructor - + }; -class TAO_ORBSVCS_Export TAO_Client_StreamEndPoint : - public virtual POA_AVStreams::StreamEndPoint_A, +class TAO_ORBSVCS_Export TAO_Client_StreamEndPoint : + public virtual POA_AVStreams::StreamEndPoint_A, public virtual TAO_StreamEndPoint, public virtual TAO_Client_Base_StreamEndPoint { @@ -296,25 +301,25 @@ public: TAO_Client_StreamEndPoint (void); // Constructor - virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, + AVStreams::streamQoS &qos_spec, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called by StreamCtrl. responder is the peer to connect to - virtual CORBA::Boolean multiconnect (AVStreams::streamQoS &the_qos, - AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean multiconnect (AVStreams::streamQoS &the_qos, + AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Used for ATM-style multicast - - virtual CORBA::Boolean connect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_flows, + + virtual CORBA::Boolean connect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, + AVStreams::streamQoS &the_qos, + const AVStreams::flowSpec &the_flows, CORBA::Environment &env); // Used for ATM-style multicast - virtual void disconnect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, - const AVStreams::flowSpec &theSpec, + virtual void disconnect_leaf (AVStreams::StreamEndPoint_B_ptr the_ep, + const AVStreams::flowSpec &theSpec, CORBA::Environment &env); // Used to remove a multicast leaf @@ -323,8 +328,8 @@ public: }; -class TAO_ORBSVCS_Export TAO_Server_StreamEndPoint : - public virtual POA_AVStreams::StreamEndPoint_B, +class TAO_ORBSVCS_Export TAO_Server_StreamEndPoint : + public virtual POA_AVStreams::StreamEndPoint_B, public virtual TAO_StreamEndPoint, public virtual TAO_Server_Base_StreamEndPoint // Abstract interface { @@ -334,21 +339,21 @@ public: TAO_Server_StreamEndPoint (void); // Constructor - virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, - AVStreams::streamQoS &qos_spec, - const AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean connect (AVStreams::StreamEndPoint_ptr responder, + AVStreams::streamQoS &qos_spec, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); - virtual CORBA::Boolean request_connection (AVStreams::StreamEndPoint_ptr initiator, - CORBA::Boolean is_mcast, - AVStreams::streamQoS &qos, - AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean request_connection (AVStreams::StreamEndPoint_ptr initiator, + CORBA::Boolean is_mcast, + AVStreams::streamQoS &qos, + AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called by the peer StreamEndPoint. The flow_spec indicates the // flows (which contain transport addresses etc.) - virtual CORBA::Boolean multiconnect (AVStreams::streamQoS &the_qos, - AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean multiconnect (AVStreams::streamQoS &the_qos, + AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Used for internet-style multicast @@ -356,8 +361,8 @@ public: // Destructor }; -class TAO_ORBSVCS_Export TAO_VDev - :public virtual TAO_PropertySet, +class TAO_ORBSVCS_Export TAO_VDev + :public virtual TAO_PropertySet, public virtual POA_AVStreams::VDev // = DESCRIPTION // Implements the VDev interface. One of these is created per connection, @@ -367,36 +372,36 @@ class TAO_ORBSVCS_Export TAO_VDev TAO_VDev (void); // Default Constructor - virtual CORBA::Boolean set_peer (AVStreams::StreamCtrl_ptr the_ctrl, - AVStreams::VDev_ptr the_peer_dev, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean set_peer (AVStreams::StreamCtrl_ptr the_ctrl, + AVStreams::VDev_ptr the_peer_dev, + AVStreams::streamQoS &the_qos, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called to tell the vdev who the streamctrl, peer vdev is - virtual CORBA::Boolean set_Mcast_peer (AVStreams::StreamCtrl_ptr the_ctrl, - AVStreams::MCastConfigIf_ptr a_mcastconfigif, - AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, + virtual CORBA::Boolean set_Mcast_peer (AVStreams::StreamCtrl_ptr the_ctrl, + AVStreams::MCastConfigIf_ptr a_mcastconfigif, + AVStreams::streamQoS &the_qos, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Used to set the streamctrl and multicast device - - virtual void configure (const CosPropertyService::Property &the_config_mesg, + + virtual void configure (const CosPropertyService::Property &the_config_mesg, CORBA::Environment &env); // Called by the peer VDev to configure the device (catch all) - - virtual void set_format (const char *flowName, - const char *format_name, + + virtual void set_format (const char *flowName, + const char *format_name, CORBA::Environment &env); // Used to set a format on a flowname - - virtual void set_dev_params (const char *flowName, - const CosPropertyService::Properties &new_params, + + virtual void set_dev_params (const char *flowName, + const CosPropertyService::Properties &new_params, CORBA::Environment &env); // Used to set device parameters - - virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &the_qos, - const AVStreams::flowSpec &the_spec, + + virtual CORBA::Boolean modify_QoS (AVStreams::streamQoS &the_qos, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called to change QoS of the device @@ -410,21 +415,21 @@ class TAO_ORBSVCS_Export TAO_VDev private: AVStreams::StreamCtrl_var streamctrl_; // My stream controller - + AVStreams::VDev_var peer_; // My peer }; class TAO_AV_Endpoint_Strategy; -class TAO_ORBSVCS_Export TAO_MMDevice - : public virtual TAO_PropertySet, +class TAO_ORBSVCS_Export TAO_MMDevice + : public virtual TAO_PropertySet, public virtual POA_AVStreams::MMDevice // = DESCRIPTION // Implements a factory to create Endpoints and VDevs { protected: - + TAO_AV_Endpoint_Strategy *endpoint_strategy_; public: @@ -447,21 +452,21 @@ class TAO_ORBSVCS_Export TAO_MMDevice CORBA::Environment &env); // Multicast bind - virtual AVStreams::StreamEndPoint_A_ptr create_A (AVStreams::StreamCtrl_ptr the_requester, - AVStreams::VDev_out the_vdev, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out met_qos, - char *&named_vdev, - const AVStreams::flowSpec &the_spec, + virtual AVStreams::StreamEndPoint_A_ptr create_A (AVStreams::StreamCtrl_ptr the_requester, + AVStreams::VDev_out the_vdev, + AVStreams::streamQoS &the_qos, + CORBA::Boolean_out met_qos, + char *&named_vdev, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called by StreamCtrl to create a "A" type streamandpoint and vdev - - virtual AVStreams::StreamEndPoint_B_ptr create_B (AVStreams::StreamCtrl_ptr the_requester, - AVStreams::VDev_out the_vdev, - AVStreams::streamQoS &the_qos, - CORBA::Boolean_out met_qos, - char *&named_vdev, - const AVStreams::flowSpec &the_spec, + + virtual AVStreams::StreamEndPoint_B_ptr create_B (AVStreams::StreamCtrl_ptr the_requester, + AVStreams::VDev_out the_vdev, + AVStreams::streamQoS &the_qos, + CORBA::Boolean_out met_qos, + char *&named_vdev, + const AVStreams::flowSpec &the_spec, CORBA::Environment &env); // Called by StreamCtrl to create a "B" type streamandpoint and vdev @@ -474,14 +479,14 @@ class TAO_ORBSVCS_Export TAO_MMDevice CORBA::Environment &env); // Not supported in the light profile, raises notsupported - virtual CORBA::Object_ptr get_fdev (const char *flow_name, + virtual CORBA::Object_ptr get_fdev (const char *flow_name, CORBA::Environment &env); // Not supported in the light profile, raises notsupported - virtual void remove_fdev (const char *flow_name, + virtual void remove_fdev (const char *flow_name, CORBA::Environment &env); // Not supported in the light profile, raises notsupported - + virtual ~TAO_MMDevice (void); // Destructor }; diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h index 22b68d9a8ac..d964036148a 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h +++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h @@ -6,18 +6,18 @@ // // = LIBRARY // cos -// +// // = FILENAME // Endpoint_Strategy.h // // = AUTHOR // Sumedh Mungee -// -// +// +// // ============================================================================ -#if !defined (TAO_AV_ENDPOINT_STRATEGY_H) -#define TAO_AV_ENDPOINT_STRATEGY_H +#ifndef TAO_AV_ENDPOINT_STRATEGY_H +#define TAO_AV_ENDPOINT_STRATEGY_H #include "orbsvcs/AV/AVStreams_i.h" #include "tao/TAO.h" @@ -87,7 +87,7 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy virtual int get_vdev (CORBA::Environment &env); // Get the Vdev object reference for the newly created - // endpoint + // endpoint CosNaming::NamingContext_var naming_context_; // Naming context @@ -97,10 +97,10 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy char host_[MAXHOSTNAMELEN]; // name of this host used for resolving unique names. - + pid_t pid_; // My child's process id. -}; +}; // ---------------------------------------------------------------------- @@ -117,7 +117,7 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy_A virtual ~TAO_AV_Endpoint_Process_Strategy_A (void); // Destructor. - protected: + protected: virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev, CORBA::Environment &env); @@ -125,8 +125,8 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy_A virtual int get_stream_endpoint (CORBA::Environment &env); // Gets the "A" type stream endpoint from the child process - -}; + +}; // ---------------------------------------------------------------------- @@ -147,12 +147,12 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Process_Strategy_B AVStreams::VDev_ptr &vdev, CORBA::Environment &env); // Creates a "B" type stream endpoint, and a vdev - - + + virtual int get_stream_endpoint (CORBA::Environment &env); // Gets the object reference of the "B" type streamendpoint. - -}; + +}; // Include the templates here. #include "Endpoint_Strategy_T.h" diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h index da3ffcad393..8483ce20a34 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h +++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h @@ -1,6 +1,6 @@ // $Id$ -#if !defined (TAO_AV_ENDPOINT_STRATEGY_T_H) +#ifndef TAO_AV_ENDPOINT_STRATEGY_T_H #define TAO_AV_ENDPOINT_STRATEGY_T_H #include "Endpoint_Strategy.h" @@ -20,10 +20,10 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Reactive_Strategy virtual int activate (void); // creates and activates the streamendpoint, vdev, and mediacontrol - + virtual int activate_stream_endpoint (CORBA::Environment &env) = 0; // activates the stream_endpoint with the POA - + virtual int activate_vdev (CORBA::Environment &env); // activates the vdev with the POA @@ -70,7 +70,7 @@ class TAO_ORBSVCS_Export TAO_AV_Endpoint_Reactive_Strategy_A CORBA::Environment &env); // Called by the MMDevice, when it needs to create an A type endpoint - + }; // ---------------------------------------------------------------------- @@ -114,22 +114,22 @@ public: int init (int argc, char **argv); // Initializes the ORB, creates and activates the // T_StreamEndpoint, T_VDev, T_MediaCtrl in the POA - + int run (ACE_Time_Value *tv = 0); // runs the ORB event loop protected: - int activate_objects (int argc, + int activate_objects (int argc, char **argv, CORBA::Environment &env); // Creates the objects and inserts them into the Naming // Service, so the parent can pick the IOR's and // return them to the client - + int bind_to_naming_service (CORBA::Environment &env); // Binds to the naming service - + int register_vdev (CORBA::Environment &env); // Registers vdev with the naming service @@ -171,9 +171,9 @@ public: T_MediaCtrl *media_ctrl_; // Media controller - + pid_t pid_; - // pid of this process + // pid of this process char host_[MAXHOSTNAMELEN]; // Name of the host. diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients.h b/TAO/orbsvcs/orbsvcs/Channel_Clients.h index 487e688eb2c..ce4252418cb 100644 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients.h +++ b/TAO/orbsvcs/orbsvcs/Channel_Clients.h @@ -5,7 +5,7 @@ // // = LIBRARY // ace -// +// // = FILENAME // Channel_Clients // diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h index e384b935053..129022f97ae 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h @@ -18,10 +18,15 @@ // // ============================================================================ -#if !defined (_CC_LOCK_H) +#ifndef _CC_LOCK_H #define _CC_LOCK_H #include "ace/Synch.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "orbsvcs/CosConcurrencyControlC.h" #define NUMBER_OF_LOCK_MODES 5 diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h index f316ecfc6e1..5b6087189c5 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h @@ -32,10 +32,15 @@ // // ============================================================================ -#if !defined (_CC_LOCKSET_H) +#ifndef _CC_LOCKSET_H #define _CC_LOCKSET_H #include "ace/Synch.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Token.h" #include "orbsvcs/CosConcurrencyControlS.h" @@ -76,21 +81,21 @@ public: // = CosConcurrencyControl methods virtual void lock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &env); + CORBA::Environment &env); // Acquires this lock. Blocks until lock is obtained virtual CORBA::Boolean try_lock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &env); + CORBA::Environment &env); // Tries to acquire this lock. If it is not possible to acquire the // lock, false is returned virtual void unlock (CosConcurrencyControl::lock_mode mode, - CORBA::Environment &env); + CORBA::Environment &env); // Releases this lock. virtual void change_mode (CosConcurrencyControl::lock_mode held_mode, - CosConcurrencyControl::lock_mode new_mode, - CORBA::Environment &env); + CosConcurrencyControl::lock_mode new_mode, + CORBA::Environment &env); // Changes the mode of this lock. // = Debugging methods diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h index 5802cf81c3b..f0f12c6d214 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h @@ -18,7 +18,7 @@ // // ============================================================================ -#if !defined (_CC_LOCKSETFACTORY_H) +#ifndef _CC_LOCKSETFACTORY_H #define _CC_LOCKSETFACTORY_H // #include "tao/corba.h" diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h index 0958472b535..112b433a9c3 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h @@ -20,7 +20,7 @@ // // ============================================================================ -#if !defined (_CONCURRENCY_SERVER_H) +#ifndef _CONCURRENCY_SERVER_H #define _CONCURRENCY_SERVER_H #include "tao/corba.h" @@ -42,7 +42,7 @@ public: //Default constructor. TAO_Concurrency_Server (CORBA::ORB_var &orb, - PortableServer::POA_var &poa); + PortableServer::POA_var &poa); // Takes the POA under which to register the Concurrency Service // implementation object. diff --git a/TAO/orbsvcs/orbsvcs/Event/BCU.h b/TAO/orbsvcs/orbsvcs/Event/BCU.h index 07d64c46271..6e81c989e15 100644 --- a/TAO/orbsvcs/orbsvcs/Event/BCU.h +++ b/TAO/orbsvcs/orbsvcs/Event/BCU.h @@ -5,7 +5,7 @@ // // = LIBRARY // ace ORB -// +// // = FILENAME // Benchmark Computation Units // @@ -18,10 +18,15 @@ // numbers. // ============================================================================ -#if !defined (ACE_BCU_H) +#ifndef ACE_BCU_H #define ACE_BCU_H #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "orbsvcs/orbsvcs_export.h" diff --git a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h index a3c398030c8..ddf74892afb 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h +++ b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.h @@ -5,7 +5,7 @@ // // = LIBRARY // orbsvcs -// +// // = FILENAME // Dispatching_Module // @@ -58,15 +58,15 @@ public: // Default construction. virtual void open (ACE_ES_Consumer_Module *up, - ACE_ES_Correlation_Module *down); + ACE_ES_Correlation_Module *down); // Link to adjacent modules. virtual void connected (ACE_Push_Consumer_Proxy *consumer, - CORBA::Environment &); + CORBA::Environment &); // Forward down_. virtual void disconnecting (ACE_Push_Consumer_Proxy *consumer, - CORBA::Environment &); + CORBA::Environment &); // Forward down_. virtual void disconnected (ACE_Push_Consumer_Proxy *consumer); @@ -77,11 +77,11 @@ public: // void disconnecting (ACE_Push_Supplier_Proxy *supplier); virtual void push (ACE_ES_Dispatch_Request *request, - CORBA::Environment &) = 0; + CORBA::Environment &) = 0; // Forward up_. virtual int dispatch_event (ACE_ES_Dispatch_Request *request, - u_long &command_action); + u_long &command_action); // Called by ACE_ES_Dispatch_Requests when dequeued by RT_Tasks. virtual void dispatch_queue_closed (ACE_ES_Dispatch_Queue *q); @@ -132,32 +132,32 @@ class TAO_ORBSVCS_Export ACE_ES_Dispatch_Request : public ACE_RT_Task_Command public: ACE_ES_Dispatch_Request (void); // Default construction. - + virtual ~ACE_ES_Dispatch_Request (void); // Default destruction. - - ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, - RtecScheduler::handle_t rt_info); + + ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, + RtecScheduler::handle_t rt_info); // All the events must be added after construction to the // event_set. - ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, - const TAO_EC_Event_Array &event_set, - RtecScheduler::handle_t rt_info); + ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, + const TAO_EC_Event_Array &event_set, + RtecScheduler::handle_t rt_info); // Set consumer_ to and copy to event_set_. // describes the method receiving this dispatch. ACE_ES_Dispatch_Request (ACE_Push_Consumer_Proxy *consumer, - const RtecEventComm::Time &time, - RtecScheduler::handle_t rt_info); + const RtecEventComm::Time &time, + RtecScheduler::handle_t rt_info); // Set consumer_ to and sets // single_event_.header.creation_time to