diff options
Diffstat (limited to 'TAO/tao/TypeCodeFactory')
18 files changed, 4475 insertions, 0 deletions
diff --git a/TAO/tao/TypeCodeFactory/Makefile b/TAO/tao/TypeCodeFactory/Makefile new file mode 100644 index 00000000000..3b0bffb94f8 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/Makefile @@ -0,0 +1,1037 @@ +#---------------------------------------------------------------------------- +# +# $Id$ +# +#---------------------------------------------------------------------------- + +#---------------------------------------------------------------------------- +# Local macros +#---------------------------------------------------------------------------- + +ifndef TAO_ROOT + TAO_ROOT = $(ACE_ROOT)/TAO +endif # ! TAO_ROOT + +LDLIBS = -lTAO_IFR_Client -lTAO -lACE +ACE_SHLIBS += -lTAO_IFR_Client -lTAO -lACE + +LIBNAME = libTypeCodeFactory_DLL +LIB = $(LIBNAME).a +SHLIB = $(LIBNAME).$(SOEXT) + +LSRC = \ + TypeCodeFactoryC.cpp \ + TypeCodeFactory_i.cpp \ + TypeCodeFactory_Adapter_Impl.cpp \ + TypeCodeFactory_Loader.cpp + +#---------------------------------------------------------------------------- +# Include macros and targets +#---------------------------------------------------------------------------- + +include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU +include $(ACE_ROOT)/include/makeinclude/macros.GNU +include $(TAO_ROOT)/rules.tao.GNU +include $(TAO_ROOT)/taoconfig.mk +include $(ACE_ROOT)/include/makeinclude/rules.common.GNU +include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU +include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU +include $(ACE_ROOT)/include/makeinclude/rules.local.GNU + + +#---------------------------------------------------------------------------- +# Local targets +#---------------------------------------------------------------------------- + +LDFLAGS += -I$(TAO_ROOT)/tao + +realclean: clean + +# DO NOT DELETE THIS LINE -- g++dep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. + + +.obj/TypeCodeFactoryC.o .obj/TypeCodeFactoryC.so .shobj/TypeCodeFactoryC.o .shobj/TypeCodeFactoryC.so: TypeCodeFactoryC.cpp TCF_Loader.h \ + $(ACE_ROOT)/ace/pre.h \ + TCF_Export.h \ + $(ACE_ROOT)/ace/post.h \ + $(ACE_ROOT)/ace/ACE_export.h \ + $(ACE_ROOT)/ace/svc_export.h \ + $(ACE_ROOT)/ace/ace_wchar.h \ + $(ACE_ROOT)/ace/ace_wchar.inl \ + $(ACE_ROOT)/ace/OS_Errno.h \ + $(ACE_ROOT)/ace/OS_Export.h \ + $(ACE_ROOT)/ace/OS_Errno.inl \ + $(TAO_ROOT)/tao/Object_Loader.h \ + $(TAO_ROOT)/tao/corbafwd.h \ + $(ACE_ROOT)/ace/CDR_Base.h \ + $(ACE_ROOT)/ace/Basic_Types.h \ + $(ACE_ROOT)/ace/Basic_Types.i \ + $(ACE_ROOT)/ace/Message_Block.h \ + $(ACE_ROOT)/ace/ACE.h \ + $(ACE_ROOT)/ace/OS.h \ + $(ACE_ROOT)/ace/OS_Dirent.h \ + $(ACE_ROOT)/ace/OS_Dirent.inl \ + $(ACE_ROOT)/ace/OS_String.h \ + $(ACE_ROOT)/ace/OS_String.inl \ + $(ACE_ROOT)/ace/OS_Memory.h \ + $(ACE_ROOT)/ace/OS_Memory.inl \ + $(ACE_ROOT)/ace/OS_TLI.h \ + $(ACE_ROOT)/ace/OS_TLI.inl \ + $(ACE_ROOT)/ace/Min_Max.h \ + $(ACE_ROOT)/ace/streams.h \ + $(ACE_ROOT)/ace/Trace.h \ + $(ACE_ROOT)/ace/OS.i \ + $(ACE_ROOT)/ace/Flag_Manip.h \ + $(ACE_ROOT)/ace/Flag_Manip.i \ + $(ACE_ROOT)/ace/Handle_Ops.h \ + $(ACE_ROOT)/ace/Handle_Ops.i \ + $(ACE_ROOT)/ace/Lib_Find.h \ + $(ACE_ROOT)/ace/Lib_Find.i \ + $(ACE_ROOT)/ace/Init_ACE.h \ + $(ACE_ROOT)/ace/Init_ACE.i \ + $(ACE_ROOT)/ace/Sock_Connect.h \ + $(ACE_ROOT)/ace/Sock_Connect.i \ + $(ACE_ROOT)/ace/ACE.i \ + $(ACE_ROOT)/ace/Malloc.h \ + $(ACE_ROOT)/ace/Log_Msg.h \ + $(ACE_ROOT)/ace/Log_Record.h \ + $(ACE_ROOT)/ace/Log_Priority.h \ + $(ACE_ROOT)/ace/Log_Record.i \ + $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.h \ + $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.inl \ + $(ACE_ROOT)/ace/Malloc.i \ + $(ACE_ROOT)/ace/Malloc_T.h \ + $(ACE_ROOT)/ace/Synch.h \ + $(ACE_ROOT)/ace/Synch.i \ + $(ACE_ROOT)/ace/Synch_T.h \ + $(ACE_ROOT)/ace/Synch_T.i \ + $(ACE_ROOT)/ace/Thread.h \ + $(ACE_ROOT)/ace/Thread_Adapter.h \ + $(ACE_ROOT)/ace/Base_Thread_Adapter.h \ + $(ACE_ROOT)/ace/Base_Thread_Adapter.inl \ + $(ACE_ROOT)/ace/Thread_Adapter.inl \ + $(ACE_ROOT)/ace/Thread.i \ + $(ACE_ROOT)/ace/Atomic_Op.i \ + $(ACE_ROOT)/ace/Synch_T.cpp \ + $(ACE_ROOT)/ace/Malloc_Allocator.h \ + $(ACE_ROOT)/ace/Malloc_Base.h \ + $(ACE_ROOT)/ace/Malloc_Allocator.i \ + $(ACE_ROOT)/ace/Free_List.h \ + $(ACE_ROOT)/ace/Free_List.i \ + $(ACE_ROOT)/ace/Free_List.cpp \ + $(ACE_ROOT)/ace/Malloc_T.i \ + $(ACE_ROOT)/ace/Malloc_T.cpp \ + $(ACE_ROOT)/ace/Memory_Pool.h \ + $(ACE_ROOT)/ace/Event_Handler.h \ + $(ACE_ROOT)/ace/Event_Handler.i \ + $(ACE_ROOT)/ace/Signal.h \ + $(ACE_ROOT)/ace/Containers.h \ + $(ACE_ROOT)/ace/Containers.i \ + $(ACE_ROOT)/ace/Containers_T.h \ + $(ACE_ROOT)/ace/Containers_T.i \ + $(ACE_ROOT)/ace/Containers_T.cpp \ + $(ACE_ROOT)/ace/Signal.i \ + $(ACE_ROOT)/ace/Mem_Map.h \ + $(ACE_ROOT)/ace/Mem_Map.i \ + $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ + $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ + $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ + $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ + $(ACE_ROOT)/ace/Memory_Pool.i \ + $(ACE_ROOT)/ace/Message_Block.i \ + $(ACE_ROOT)/ace/Message_Block_T.h \ + $(ACE_ROOT)/ace/Message_Block_T.i \ + $(ACE_ROOT)/ace/Message_Block_T.cpp \ + $(ACE_ROOT)/ace/CDR_Base.inl \ + $(TAO_ROOT)/tao/try_macros.h \ + $(TAO_ROOT)/tao/orbconf.h \ + $(ACE_ROOT)/ace/CORBA_macros.h \ + $(TAO_ROOT)/tao/varbase.h \ + $(TAO_ROOT)/tao/TAO_Export.h \ + $(TAO_ROOT)/tao/corbafwd.i \ + $(ACE_ROOT)/ace/Service_Object.h \ + $(ACE_ROOT)/ace/Shared_Object.h \ + $(ACE_ROOT)/ace/Shared_Object.i \ + $(ACE_ROOT)/ace/Service_Object.i \ + $(TAO_ROOT)/tao/Object_Loader.i \ + $(ACE_ROOT)/ace/Service_Config.h \ + $(ACE_ROOT)/ace/SString.h \ + $(ACE_ROOT)/ace/SString.i \ + $(ACE_ROOT)/ace/Service_Config.i \ + $(ACE_ROOT)/ace/Reactor.h \ + $(ACE_ROOT)/ace/Handle_Set.h \ + $(ACE_ROOT)/ace/Handle_Set.i \ + $(ACE_ROOT)/ace/Timer_Queue.h \ + $(ACE_ROOT)/ace/Timer_Queue_T.h \ + $(ACE_ROOT)/ace/Test_and_Set.h \ + $(ACE_ROOT)/ace/Test_and_Set.i \ + $(ACE_ROOT)/ace/Test_and_Set.cpp \ + $(ACE_ROOT)/ace/Timer_Queue_T.i \ + $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ + $(ACE_ROOT)/ace/Reactor.i \ + $(ACE_ROOT)/ace/Reactor_Impl.h \ + $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ + TypeCodeFactoryC.h \ + $(TAO_ROOT)/tao/corba.h \ + $(TAO_ROOT)/tao/Environment.h \ + $(TAO_ROOT)/tao/Environment.i \ + $(TAO_ROOT)/tao/ORB.h \ + $(TAO_ROOT)/tao/Exception.h \ + $(TAO_ROOT)/tao/Exception.i \ + $(TAO_ROOT)/tao/Services.h \ + $(TAO_ROOT)/tao/Sequence.h \ + $(TAO_ROOT)/tao/Managed_Types.h \ + $(TAO_ROOT)/tao/Managed_Types.i \ + $(TAO_ROOT)/tao/Sequence.i \ + $(TAO_ROOT)/tao/Sequence_T.h \ + $(TAO_ROOT)/tao/Sequence_T.i \ + $(TAO_ROOT)/tao/Sequence_T.cpp \ + $(TAO_ROOT)/tao/Services.i \ + $(TAO_ROOT)/tao/CORBA_String.h \ + $(TAO_ROOT)/tao/CORBA_String.inl \ + $(TAO_ROOT)/tao/PolicyC.h \ + $(TAO_ROOT)/tao/CurrentC.h \ + $(TAO_ROOT)/tao/Object.h \ + $(TAO_ROOT)/tao/Abstract_Servant_Base.h \ + $(TAO_ROOT)/tao/Object_Proxy_Broker.h \ + $(TAO_ROOT)/tao/Object_Proxy_Impl.h \ + $(TAO_ROOT)/tao/Object.i \ + $(TAO_ROOT)/tao/CurrentC.i \ + $(TAO_ROOT)/tao/Encodable.h \ + $(TAO_ROOT)/tao/CDR.h \ + $(ACE_ROOT)/ace/CDR_Stream.h \ + $(ACE_ROOT)/ace/CDR_Stream.i \ + $(TAO_ROOT)/tao/CDR.i \ + $(TAO_ROOT)/tao/Typecode.h \ + $(TAO_ROOT)/tao/Typecode.i \ + $(TAO_ROOT)/tao/PolicyC.i \ + $(TAO_ROOT)/tao/ORB.i \ + $(TAO_ROOT)/tao/Any.h \ + $(TAO_ROOT)/tao/Any.i \ + $(TAO_ROOT)/tao/NVList.h \ + $(TAO_ROOT)/tao/NVList.i \ + $(TAO_ROOT)/tao/Principal.h \ + $(TAO_ROOT)/tao/OctetSeqC.h \ + $(TAO_ROOT)/tao/OctetSeqC.i \ + $(TAO_ROOT)/tao/Principal.i \ + $(TAO_ROOT)/tao/TAO_Server_Request.h \ + $(TAO_ROOT)/tao/Tagged_Profile.h \ + $(TAO_ROOT)/tao/IOPC.h \ + $(TAO_ROOT)/tao/IOPC.i \ + $(TAO_ROOT)/tao/GIOPC.h \ + $(TAO_ROOT)/tao/Object_KeyC.h \ + $(TAO_ROOT)/tao/Object_KeyC.i \ + $(TAO_ROOT)/tao/GIOPC.i \ + $(TAO_ROOT)/tao/Tagged_Profile.i \ + $(TAO_ROOT)/tao/Service_Context.h \ + $(TAO_ROOT)/tao/Service_Context.inl \ + $(TAO_ROOT)/tao/TAO_Server_Request.i \ + $(TAO_ROOT)/tao/Remote_Object_Proxy_Impl.h \ + $(TAO_ROOT)/tao/LocalObject.h \ + $(TAO_ROOT)/tao/LocalObject.i \ + $(TAO_ROOT)/tao/Stub.h \ + $(TAO_ROOT)/tao/Pluggable.h \ + $(TAO_ROOT)/tao/Pluggable.i \ + $(TAO_ROOT)/tao/MProfile.h \ + $(TAO_ROOT)/tao/Profile.h \ + $(TAO_ROOT)/tao/Tagged_Components.h \ + $(TAO_ROOT)/tao/CONV_FRAMEC.h \ + $(TAO_ROOT)/tao/CONV_FRAMEC.i \ + $(TAO_ROOT)/tao/Tagged_Components.i \ + $(TAO_ROOT)/tao/GIOP_Message_State.h \ + $(TAO_ROOT)/tao/GIOP_Message_State.i \ + $(TAO_ROOT)/tao/Profile.i \ + $(TAO_ROOT)/tao/MProfile.i \ + $(TAO_ROOT)/tao/ORB_Core.h \ + $(TAO_ROOT)/tao/Policy_Manager.h \ + $(TAO_ROOT)/tao/Policy_Manager.i \ + $(TAO_ROOT)/tao/Resource_Factory.h \ + $(TAO_ROOT)/tao/Protocol_Factory.h \ + $(TAO_ROOT)/tao/params.h \ + $(TAO_ROOT)/tao/params.i \ + $(TAO_ROOT)/tao/TAO_Singleton_Manager.h \ + $(TAO_ROOT)/tao/TAO_Singleton_Manager.inl \ + $(TAO_ROOT)/tao/TAO_Singleton.h \ + $(TAO_ROOT)/tao/TAO_Singleton.inl \ + $(TAO_ROOT)/tao/TAO_Singleton.cpp \ + $(ACE_ROOT)/ace/Object_Manager.h \ + $(ACE_ROOT)/ace/Object_Manager.i \ + $(ACE_ROOT)/ace/Managed_Object.h \ + $(ACE_ROOT)/ace/Managed_Object.i \ + $(ACE_ROOT)/ace/Managed_Object.cpp \ + $(TAO_ROOT)/tao/Adapter.h \ + $(TAO_ROOT)/tao/Adapter.i \ + $(TAO_ROOT)/tao/PolicyFactory_Registry.h \ + $(TAO_ROOT)/tao/PortableInterceptorC.h \ + $(TAO_ROOT)/tao/DynamicC.h \ + $(TAO_ROOT)/tao/DynamicC.i \ + $(TAO_ROOT)/tao/MessagingC.h \ + $(TAO_ROOT)/tao/ValueBase.h \ + $(TAO_ROOT)/tao/ValueBase.i \ + $(TAO_ROOT)/tao/ValueFactory.h \ + $(TAO_ROOT)/tao/ValueFactory.i \ + $(TAO_ROOT)/tao/TimeBaseC.h \ + $(TAO_ROOT)/tao/TimeBaseC.i \ + $(TAO_ROOT)/tao/PollableC.h \ + $(TAO_ROOT)/tao/PollableC.i \ + $(TAO_ROOT)/tao/MessagingC.i \ + $(TAO_ROOT)/tao/PortableInterceptorC.i \ + $(ACE_ROOT)/ace/Map_Manager.h \ + $(ACE_ROOT)/ace/Map_Manager.i \ + $(ACE_ROOT)/ace/Map_Manager.cpp \ + $(TAO_ROOT)/tao/Parser_Registry.h \ + $(TAO_ROOT)/tao/Parser_Registry.i \ + $(TAO_ROOT)/tao/Service_Callbacks.h \ + $(TAO_ROOT)/tao/Service_Callbacks.i \ + $(TAO_ROOT)/tao/Fault_Tolerance_Service.h \ + $(TAO_ROOT)/tao/Fault_Tolerance_Service.i \ + $(TAO_ROOT)/tao/Connection_Cache_Manager.h \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ + $(ACE_ROOT)/ace/Functor.h \ + $(ACE_ROOT)/ace/Functor.i \ + $(ACE_ROOT)/ace/Functor_T.h \ + $(ACE_ROOT)/ace/Functor_T.i \ + $(ACE_ROOT)/ace/Functor_T.cpp \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ + $(TAO_ROOT)/tao/Cache_Entries.h \ + $(TAO_ROOT)/tao/Connection_Descriptor_Interface.h \ + $(TAO_ROOT)/tao/Endpoint.h \ + $(TAO_ROOT)/tao/Endpoint.i \ + $(TAO_ROOT)/tao/Connection_Descriptor_Interface.inl \ + $(TAO_ROOT)/tao/Cache_Entries.inl \ + $(TAO_ROOT)/tao/Connection_Cache_Manager.inl \ + $(TAO_ROOT)/tao/Cleanup_Func_Registry.h \ + $(TAO_ROOT)/tao/Cleanup_Func_Registry.inl \ + $(TAO_ROOT)/tao/Object_Ref_Table.h \ + $(TAO_ROOT)/tao/Interceptor_List.h \ + $(TAO_ROOT)/tao/Interceptor_List.inl \ + $(TAO_ROOT)/tao/RT_Policy_i.h \ + $(TAO_ROOT)/tao/RTCORBAS.h \ + $(TAO_ROOT)/tao/IOPS.h \ + $(TAO_ROOT)/tao/IOPS_T.h \ + $(TAO_ROOT)/tao/IOPS_T.i \ + $(TAO_ROOT)/tao/IOPS_T.cpp \ + $(TAO_ROOT)/tao/IOPS.i \ + $(TAO_ROOT)/tao/TimeBaseS.h \ + $(TAO_ROOT)/tao/TimeBaseS_T.h \ + $(TAO_ROOT)/tao/TimeBaseS_T.i \ + $(TAO_ROOT)/tao/TimeBaseS_T.cpp \ + $(TAO_ROOT)/tao/TimeBaseS.i \ + $(TAO_ROOT)/tao/RTCORBAC.h \ + $(TAO_ROOT)/tao/RTCORBAC.i \ + $(TAO_ROOT)/tao/RTCORBAS_T.h \ + $(TAO_ROOT)/tao/RTCORBAS_T.i \ + $(TAO_ROOT)/tao/RTCORBAS_T.cpp \ + $(TAO_ROOT)/tao/RTCORBAS.i \ + $(TAO_ROOT)/tao/RT_Policy_i.i \ + $(TAO_ROOT)/tao/Protocols_Hooks.h \ + $(ACE_ROOT)/ace/Hash_Map_Manager.h \ + $(ACE_ROOT)/ace/Thread_Manager.h \ + $(ACE_ROOT)/ace/Singleton.h \ + $(ACE_ROOT)/ace/Singleton.i \ + $(ACE_ROOT)/ace/Singleton.cpp \ + $(ACE_ROOT)/ace/Thread_Manager.i \ + $(TAO_ROOT)/tao/ORB_Core.i \ + $(TAO_ROOT)/tao/Stub.i \ + $(TAO_ROOT)/tao/debug.h \ + $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ + $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ + $(TAO_ROOT)/tao/Invocation.h \ + $(TAO_ROOT)/tao/Synch_Reply_Dispatcher.h \ + $(TAO_ROOT)/tao/Reply_Dispatcher.h \ + $(TAO_ROOT)/tao/Reply_Dispatcher.i \ + $(TAO_ROOT)/tao/TAOC.h \ + $(TAO_ROOT)/tao/Priority_Mapping_Manager.h \ + $(TAO_ROOT)/tao/Priority_Mapping.h \ + $(TAO_ROOT)/tao/Priority_Mapping.i \ + $(TAO_ROOT)/tao/Priority_Mapping_Manager.i \ + $(TAO_ROOT)/tao/TAOC.i \ + $(TAO_ROOT)/tao/operation_details.h \ + $(TAO_ROOT)/tao/target_specification.h \ + $(TAO_ROOT)/tao/target_specification.i \ + $(TAO_ROOT)/tao/operation_details.i \ + $(TAO_ROOT)/tao/Invocation_Endpoint_Selectors.h \ + $(TAO_ROOT)/tao/Invocation_Endpoint_Selectors.i \ + $(TAO_ROOT)/tao/Invocation.i \ + $(TAO_ROOT)/tao/ObjectIDList.h \ + $(TAO_ROOT)/tao/ObjectIDList.i \ + $(TAO_ROOT)/tao/DomainC.h \ + $(TAO_ROOT)/tao/ClientRequestInfo.h \ + $(TAO_ROOT)/tao/StringSeqC.h \ + $(TAO_ROOT)/tao/StringSeqC.i \ + $(TAO_ROOT)/tao/ClientRequestInfo.inl \ + $(TAO_ROOT)/tao/DomainC.i \ + $(TAO_ROOT)/tao/WrongTransactionC.h \ + $(TAO_ROOT)/tao/BoundsC.h \ + $(TAO_ROOT)/tao/BoundsC.i \ + $(TAO_ROOT)/tao/PortableInterceptor.h \ + $(TAO_ROOT)/tao/PortableInterceptor.i \ + $(TAO_ROOT)/tao/BiDirPolicyC.h \ + $(TAO_ROOT)/tao/BiDirPolicyC.i \ + $(TAO_ROOT)/tao/IFR_Client/InterfaceC.h \ + $(TAO_ROOT)/tao/IFR_Client/ifrfwd.h \ + $(TAO_ROOT)/tao/IFR_Client/ifr_client_export.h \ + $(TAO_ROOT)/tao/IFR_Client/IFR_Client_Adapter_Impl.h \ + $(TAO_ROOT)/tao/IFR_Client_Adapter.h \ + $(TAO_ROOT)/tao/IFR_Client/InterfaceC.i \ + TypeCodeFactoryC.inl + +.obj/TypeCodeFactory_i.o .obj/TypeCodeFactory_i.so .shobj/TypeCodeFactory_i.o .shobj/TypeCodeFactory_i.so: TypeCodeFactory_i.cpp TypeCodeFactory_i.h \ + $(ACE_ROOT)/ace/pre.h \ + TCF_Loader.h TCF_Export.h \ + $(ACE_ROOT)/ace/post.h \ + $(ACE_ROOT)/ace/ACE_export.h \ + $(ACE_ROOT)/ace/svc_export.h \ + $(ACE_ROOT)/ace/ace_wchar.h \ + $(ACE_ROOT)/ace/ace_wchar.inl \ + $(ACE_ROOT)/ace/OS_Errno.h \ + $(ACE_ROOT)/ace/OS_Export.h \ + $(ACE_ROOT)/ace/OS_Errno.inl \ + $(TAO_ROOT)/tao/Object_Loader.h \ + $(TAO_ROOT)/tao/corbafwd.h \ + $(ACE_ROOT)/ace/CDR_Base.h \ + $(ACE_ROOT)/ace/Basic_Types.h \ + $(ACE_ROOT)/ace/Basic_Types.i \ + $(ACE_ROOT)/ace/Message_Block.h \ + $(ACE_ROOT)/ace/ACE.h \ + $(ACE_ROOT)/ace/OS.h \ + $(ACE_ROOT)/ace/OS_Dirent.h \ + $(ACE_ROOT)/ace/OS_Dirent.inl \ + $(ACE_ROOT)/ace/OS_String.h \ + $(ACE_ROOT)/ace/OS_String.inl \ + $(ACE_ROOT)/ace/OS_Memory.h \ + $(ACE_ROOT)/ace/OS_Memory.inl \ + $(ACE_ROOT)/ace/OS_TLI.h \ + $(ACE_ROOT)/ace/OS_TLI.inl \ + $(ACE_ROOT)/ace/Min_Max.h \ + $(ACE_ROOT)/ace/streams.h \ + $(ACE_ROOT)/ace/Trace.h \ + $(ACE_ROOT)/ace/OS.i \ + $(ACE_ROOT)/ace/Flag_Manip.h \ + $(ACE_ROOT)/ace/Flag_Manip.i \ + $(ACE_ROOT)/ace/Handle_Ops.h \ + $(ACE_ROOT)/ace/Handle_Ops.i \ + $(ACE_ROOT)/ace/Lib_Find.h \ + $(ACE_ROOT)/ace/Lib_Find.i \ + $(ACE_ROOT)/ace/Init_ACE.h \ + $(ACE_ROOT)/ace/Init_ACE.i \ + $(ACE_ROOT)/ace/Sock_Connect.h \ + $(ACE_ROOT)/ace/Sock_Connect.i \ + $(ACE_ROOT)/ace/ACE.i \ + $(ACE_ROOT)/ace/Malloc.h \ + $(ACE_ROOT)/ace/Log_Msg.h \ + $(ACE_ROOT)/ace/Log_Record.h \ + $(ACE_ROOT)/ace/Log_Priority.h \ + $(ACE_ROOT)/ace/Log_Record.i \ + $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.h \ + $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.inl \ + $(ACE_ROOT)/ace/Malloc.i \ + $(ACE_ROOT)/ace/Malloc_T.h \ + $(ACE_ROOT)/ace/Synch.h \ + $(ACE_ROOT)/ace/Synch.i \ + $(ACE_ROOT)/ace/Synch_T.h \ + $(ACE_ROOT)/ace/Synch_T.i \ + $(ACE_ROOT)/ace/Thread.h \ + $(ACE_ROOT)/ace/Thread_Adapter.h \ + $(ACE_ROOT)/ace/Base_Thread_Adapter.h \ + $(ACE_ROOT)/ace/Base_Thread_Adapter.inl \ + $(ACE_ROOT)/ace/Thread_Adapter.inl \ + $(ACE_ROOT)/ace/Thread.i \ + $(ACE_ROOT)/ace/Atomic_Op.i \ + $(ACE_ROOT)/ace/Synch_T.cpp \ + $(ACE_ROOT)/ace/Malloc_Allocator.h \ + $(ACE_ROOT)/ace/Malloc_Base.h \ + $(ACE_ROOT)/ace/Malloc_Allocator.i \ + $(ACE_ROOT)/ace/Free_List.h \ + $(ACE_ROOT)/ace/Free_List.i \ + $(ACE_ROOT)/ace/Free_List.cpp \ + $(ACE_ROOT)/ace/Malloc_T.i \ + $(ACE_ROOT)/ace/Malloc_T.cpp \ + $(ACE_ROOT)/ace/Memory_Pool.h \ + $(ACE_ROOT)/ace/Event_Handler.h \ + $(ACE_ROOT)/ace/Event_Handler.i \ + $(ACE_ROOT)/ace/Signal.h \ + $(ACE_ROOT)/ace/Containers.h \ + $(ACE_ROOT)/ace/Containers.i \ + $(ACE_ROOT)/ace/Containers_T.h \ + $(ACE_ROOT)/ace/Containers_T.i \ + $(ACE_ROOT)/ace/Containers_T.cpp \ + $(ACE_ROOT)/ace/Signal.i \ + $(ACE_ROOT)/ace/Mem_Map.h \ + $(ACE_ROOT)/ace/Mem_Map.i \ + $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ + $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ + $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ + $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ + $(ACE_ROOT)/ace/Memory_Pool.i \ + $(ACE_ROOT)/ace/Message_Block.i \ + $(ACE_ROOT)/ace/Message_Block_T.h \ + $(ACE_ROOT)/ace/Message_Block_T.i \ + $(ACE_ROOT)/ace/Message_Block_T.cpp \ + $(ACE_ROOT)/ace/CDR_Base.inl \ + $(TAO_ROOT)/tao/try_macros.h \ + $(TAO_ROOT)/tao/orbconf.h \ + $(ACE_ROOT)/ace/CORBA_macros.h \ + $(TAO_ROOT)/tao/varbase.h \ + $(TAO_ROOT)/tao/TAO_Export.h \ + $(TAO_ROOT)/tao/corbafwd.i \ + $(ACE_ROOT)/ace/Service_Object.h \ + $(ACE_ROOT)/ace/Shared_Object.h \ + $(ACE_ROOT)/ace/Shared_Object.i \ + $(ACE_ROOT)/ace/Service_Object.i \ + $(TAO_ROOT)/tao/Object_Loader.i \ + $(ACE_ROOT)/ace/Service_Config.h \ + $(ACE_ROOT)/ace/SString.h \ + $(ACE_ROOT)/ace/SString.i \ + $(ACE_ROOT)/ace/Service_Config.i \ + $(ACE_ROOT)/ace/Reactor.h \ + $(ACE_ROOT)/ace/Handle_Set.h \ + $(ACE_ROOT)/ace/Handle_Set.i \ + $(ACE_ROOT)/ace/Timer_Queue.h \ + $(ACE_ROOT)/ace/Timer_Queue_T.h \ + $(ACE_ROOT)/ace/Test_and_Set.h \ + $(ACE_ROOT)/ace/Test_and_Set.i \ + $(ACE_ROOT)/ace/Test_and_Set.cpp \ + $(ACE_ROOT)/ace/Timer_Queue_T.i \ + $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ + $(ACE_ROOT)/ace/Reactor.i \ + $(ACE_ROOT)/ace/Reactor_Impl.h \ + $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ + TypeCodeFactoryC.h \ + $(TAO_ROOT)/tao/corba.h \ + $(TAO_ROOT)/tao/Environment.h \ + $(TAO_ROOT)/tao/Environment.i \ + $(TAO_ROOT)/tao/ORB.h \ + $(TAO_ROOT)/tao/Exception.h \ + $(TAO_ROOT)/tao/Exception.i \ + $(TAO_ROOT)/tao/Services.h \ + $(TAO_ROOT)/tao/Sequence.h \ + $(TAO_ROOT)/tao/Managed_Types.h \ + $(TAO_ROOT)/tao/Managed_Types.i \ + $(TAO_ROOT)/tao/Sequence.i \ + $(TAO_ROOT)/tao/Sequence_T.h \ + $(TAO_ROOT)/tao/Sequence_T.i \ + $(TAO_ROOT)/tao/Sequence_T.cpp \ + $(TAO_ROOT)/tao/Services.i \ + $(TAO_ROOT)/tao/CORBA_String.h \ + $(TAO_ROOT)/tao/CORBA_String.inl \ + $(TAO_ROOT)/tao/PolicyC.h \ + $(TAO_ROOT)/tao/CurrentC.h \ + $(TAO_ROOT)/tao/Object.h \ + $(TAO_ROOT)/tao/Abstract_Servant_Base.h \ + $(TAO_ROOT)/tao/Object_Proxy_Broker.h \ + $(TAO_ROOT)/tao/Object_Proxy_Impl.h \ + $(TAO_ROOT)/tao/Object.i \ + $(TAO_ROOT)/tao/CurrentC.i \ + $(TAO_ROOT)/tao/Encodable.h \ + $(TAO_ROOT)/tao/CDR.h \ + $(ACE_ROOT)/ace/CDR_Stream.h \ + $(ACE_ROOT)/ace/CDR_Stream.i \ + $(TAO_ROOT)/tao/CDR.i \ + $(TAO_ROOT)/tao/Typecode.h \ + $(TAO_ROOT)/tao/Typecode.i \ + $(TAO_ROOT)/tao/PolicyC.i \ + $(TAO_ROOT)/tao/ORB.i \ + $(TAO_ROOT)/tao/Any.h \ + $(TAO_ROOT)/tao/Any.i \ + $(TAO_ROOT)/tao/NVList.h \ + $(TAO_ROOT)/tao/NVList.i \ + $(TAO_ROOT)/tao/Principal.h \ + $(TAO_ROOT)/tao/OctetSeqC.h \ + $(TAO_ROOT)/tao/OctetSeqC.i \ + $(TAO_ROOT)/tao/Principal.i \ + $(TAO_ROOT)/tao/TAO_Server_Request.h \ + $(TAO_ROOT)/tao/Tagged_Profile.h \ + $(TAO_ROOT)/tao/IOPC.h \ + $(TAO_ROOT)/tao/IOPC.i \ + $(TAO_ROOT)/tao/GIOPC.h \ + $(TAO_ROOT)/tao/Object_KeyC.h \ + $(TAO_ROOT)/tao/Object_KeyC.i \ + $(TAO_ROOT)/tao/GIOPC.i \ + $(TAO_ROOT)/tao/Tagged_Profile.i \ + $(TAO_ROOT)/tao/Service_Context.h \ + $(TAO_ROOT)/tao/Service_Context.inl \ + $(TAO_ROOT)/tao/TAO_Server_Request.i \ + $(TAO_ROOT)/tao/Remote_Object_Proxy_Impl.h \ + $(TAO_ROOT)/tao/LocalObject.h \ + $(TAO_ROOT)/tao/LocalObject.i \ + $(TAO_ROOT)/tao/Stub.h \ + $(TAO_ROOT)/tao/Pluggable.h \ + $(TAO_ROOT)/tao/Pluggable.i \ + $(TAO_ROOT)/tao/MProfile.h \ + $(TAO_ROOT)/tao/Profile.h \ + $(TAO_ROOT)/tao/Tagged_Components.h \ + $(TAO_ROOT)/tao/CONV_FRAMEC.h \ + $(TAO_ROOT)/tao/CONV_FRAMEC.i \ + $(TAO_ROOT)/tao/Tagged_Components.i \ + $(TAO_ROOT)/tao/GIOP_Message_State.h \ + $(TAO_ROOT)/tao/GIOP_Message_State.i \ + $(TAO_ROOT)/tao/Profile.i \ + $(TAO_ROOT)/tao/MProfile.i \ + $(TAO_ROOT)/tao/ORB_Core.h \ + $(TAO_ROOT)/tao/Policy_Manager.h \ + $(TAO_ROOT)/tao/Policy_Manager.i \ + $(TAO_ROOT)/tao/Resource_Factory.h \ + $(TAO_ROOT)/tao/Protocol_Factory.h \ + $(TAO_ROOT)/tao/params.h \ + $(TAO_ROOT)/tao/params.i \ + $(TAO_ROOT)/tao/TAO_Singleton_Manager.h \ + $(TAO_ROOT)/tao/TAO_Singleton_Manager.inl \ + $(TAO_ROOT)/tao/TAO_Singleton.h \ + $(TAO_ROOT)/tao/TAO_Singleton.inl \ + $(TAO_ROOT)/tao/TAO_Singleton.cpp \ + $(ACE_ROOT)/ace/Object_Manager.h \ + $(ACE_ROOT)/ace/Object_Manager.i \ + $(ACE_ROOT)/ace/Managed_Object.h \ + $(ACE_ROOT)/ace/Managed_Object.i \ + $(ACE_ROOT)/ace/Managed_Object.cpp \ + $(TAO_ROOT)/tao/Adapter.h \ + $(TAO_ROOT)/tao/Adapter.i \ + $(TAO_ROOT)/tao/PolicyFactory_Registry.h \ + $(TAO_ROOT)/tao/PortableInterceptorC.h \ + $(TAO_ROOT)/tao/DynamicC.h \ + $(TAO_ROOT)/tao/DynamicC.i \ + $(TAO_ROOT)/tao/MessagingC.h \ + $(TAO_ROOT)/tao/ValueBase.h \ + $(TAO_ROOT)/tao/ValueBase.i \ + $(TAO_ROOT)/tao/ValueFactory.h \ + $(TAO_ROOT)/tao/ValueFactory.i \ + $(TAO_ROOT)/tao/TimeBaseC.h \ + $(TAO_ROOT)/tao/TimeBaseC.i \ + $(TAO_ROOT)/tao/PollableC.h \ + $(TAO_ROOT)/tao/PollableC.i \ + $(TAO_ROOT)/tao/MessagingC.i \ + $(TAO_ROOT)/tao/PortableInterceptorC.i \ + $(ACE_ROOT)/ace/Map_Manager.h \ + $(ACE_ROOT)/ace/Map_Manager.i \ + $(ACE_ROOT)/ace/Map_Manager.cpp \ + $(TAO_ROOT)/tao/Parser_Registry.h \ + $(TAO_ROOT)/tao/Parser_Registry.i \ + $(TAO_ROOT)/tao/Service_Callbacks.h \ + $(TAO_ROOT)/tao/Service_Callbacks.i \ + $(TAO_ROOT)/tao/Fault_Tolerance_Service.h \ + $(TAO_ROOT)/tao/Fault_Tolerance_Service.i \ + $(TAO_ROOT)/tao/Connection_Cache_Manager.h \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ + $(ACE_ROOT)/ace/Functor.h \ + $(ACE_ROOT)/ace/Functor.i \ + $(ACE_ROOT)/ace/Functor_T.h \ + $(ACE_ROOT)/ace/Functor_T.i \ + $(ACE_ROOT)/ace/Functor_T.cpp \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ + $(TAO_ROOT)/tao/Cache_Entries.h \ + $(TAO_ROOT)/tao/Connection_Descriptor_Interface.h \ + $(TAO_ROOT)/tao/Endpoint.h \ + $(TAO_ROOT)/tao/Endpoint.i \ + $(TAO_ROOT)/tao/Connection_Descriptor_Interface.inl \ + $(TAO_ROOT)/tao/Cache_Entries.inl \ + $(TAO_ROOT)/tao/Connection_Cache_Manager.inl \ + $(TAO_ROOT)/tao/Cleanup_Func_Registry.h \ + $(TAO_ROOT)/tao/Cleanup_Func_Registry.inl \ + $(TAO_ROOT)/tao/Object_Ref_Table.h \ + $(TAO_ROOT)/tao/Interceptor_List.h \ + $(TAO_ROOT)/tao/Interceptor_List.inl \ + $(TAO_ROOT)/tao/RT_Policy_i.h \ + $(TAO_ROOT)/tao/RTCORBAS.h \ + $(TAO_ROOT)/tao/IOPS.h \ + $(TAO_ROOT)/tao/IOPS_T.h \ + $(TAO_ROOT)/tao/IOPS_T.i \ + $(TAO_ROOT)/tao/IOPS_T.cpp \ + $(TAO_ROOT)/tao/IOPS.i \ + $(TAO_ROOT)/tao/TimeBaseS.h \ + $(TAO_ROOT)/tao/TimeBaseS_T.h \ + $(TAO_ROOT)/tao/TimeBaseS_T.i \ + $(TAO_ROOT)/tao/TimeBaseS_T.cpp \ + $(TAO_ROOT)/tao/TimeBaseS.i \ + $(TAO_ROOT)/tao/RTCORBAC.h \ + $(TAO_ROOT)/tao/RTCORBAC.i \ + $(TAO_ROOT)/tao/RTCORBAS_T.h \ + $(TAO_ROOT)/tao/RTCORBAS_T.i \ + $(TAO_ROOT)/tao/RTCORBAS_T.cpp \ + $(TAO_ROOT)/tao/RTCORBAS.i \ + $(TAO_ROOT)/tao/RT_Policy_i.i \ + $(TAO_ROOT)/tao/Protocols_Hooks.h \ + $(ACE_ROOT)/ace/Hash_Map_Manager.h \ + $(ACE_ROOT)/ace/Thread_Manager.h \ + $(ACE_ROOT)/ace/Singleton.h \ + $(ACE_ROOT)/ace/Singleton.i \ + $(ACE_ROOT)/ace/Singleton.cpp \ + $(ACE_ROOT)/ace/Thread_Manager.i \ + $(TAO_ROOT)/tao/ORB_Core.i \ + $(TAO_ROOT)/tao/Stub.i \ + $(TAO_ROOT)/tao/debug.h \ + $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ + $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ + $(TAO_ROOT)/tao/Invocation.h \ + $(TAO_ROOT)/tao/Synch_Reply_Dispatcher.h \ + $(TAO_ROOT)/tao/Reply_Dispatcher.h \ + $(TAO_ROOT)/tao/Reply_Dispatcher.i \ + $(TAO_ROOT)/tao/TAOC.h \ + $(TAO_ROOT)/tao/Priority_Mapping_Manager.h \ + $(TAO_ROOT)/tao/Priority_Mapping.h \ + $(TAO_ROOT)/tao/Priority_Mapping.i \ + $(TAO_ROOT)/tao/Priority_Mapping_Manager.i \ + $(TAO_ROOT)/tao/TAOC.i \ + $(TAO_ROOT)/tao/operation_details.h \ + $(TAO_ROOT)/tao/target_specification.h \ + $(TAO_ROOT)/tao/target_specification.i \ + $(TAO_ROOT)/tao/operation_details.i \ + $(TAO_ROOT)/tao/Invocation_Endpoint_Selectors.h \ + $(TAO_ROOT)/tao/Invocation_Endpoint_Selectors.i \ + $(TAO_ROOT)/tao/Invocation.i \ + $(TAO_ROOT)/tao/ObjectIDList.h \ + $(TAO_ROOT)/tao/ObjectIDList.i \ + $(TAO_ROOT)/tao/DomainC.h \ + $(TAO_ROOT)/tao/ClientRequestInfo.h \ + $(TAO_ROOT)/tao/StringSeqC.h \ + $(TAO_ROOT)/tao/StringSeqC.i \ + $(TAO_ROOT)/tao/ClientRequestInfo.inl \ + $(TAO_ROOT)/tao/DomainC.i \ + $(TAO_ROOT)/tao/WrongTransactionC.h \ + $(TAO_ROOT)/tao/BoundsC.h \ + $(TAO_ROOT)/tao/BoundsC.i \ + $(TAO_ROOT)/tao/PortableInterceptor.h \ + $(TAO_ROOT)/tao/PortableInterceptor.i \ + $(TAO_ROOT)/tao/BiDirPolicyC.h \ + $(TAO_ROOT)/tao/BiDirPolicyC.i \ + $(TAO_ROOT)/tao/IFR_Client/InterfaceC.h \ + $(TAO_ROOT)/tao/IFR_Client/ifrfwd.h \ + $(TAO_ROOT)/tao/IFR_Client/ifr_client_export.h \ + $(TAO_ROOT)/tao/IFR_Client/IFR_Client_Adapter_Impl.h \ + $(TAO_ROOT)/tao/IFR_Client_Adapter.h \ + $(TAO_ROOT)/tao/IFR_Client/InterfaceC.i \ + TypeCodeFactoryC.inl \ + $(TAO_ROOT)/tao/Marshal.h \ + $(TAO_ROOT)/tao/Marshal.i + +.obj/TCF_Loader.o .obj/TCF_Loader.so .shobj/TCF_Loader.o .shobj/TCF_Loader.so: TCF_Loader.cpp TCF_Loader.h \ + $(ACE_ROOT)/ace/pre.h \ + TCF_Export.h \ + $(ACE_ROOT)/ace/post.h \ + $(ACE_ROOT)/ace/ACE_export.h \ + $(ACE_ROOT)/ace/svc_export.h \ + $(ACE_ROOT)/ace/ace_wchar.h \ + $(ACE_ROOT)/ace/ace_wchar.inl \ + $(ACE_ROOT)/ace/OS_Errno.h \ + $(ACE_ROOT)/ace/OS_Export.h \ + $(ACE_ROOT)/ace/OS_Errno.inl \ + $(TAO_ROOT)/tao/Object_Loader.h \ + $(TAO_ROOT)/tao/corbafwd.h \ + $(ACE_ROOT)/ace/CDR_Base.h \ + $(ACE_ROOT)/ace/Basic_Types.h \ + $(ACE_ROOT)/ace/Basic_Types.i \ + $(ACE_ROOT)/ace/Message_Block.h \ + $(ACE_ROOT)/ace/ACE.h \ + $(ACE_ROOT)/ace/OS.h \ + $(ACE_ROOT)/ace/OS_Dirent.h \ + $(ACE_ROOT)/ace/OS_Dirent.inl \ + $(ACE_ROOT)/ace/OS_String.h \ + $(ACE_ROOT)/ace/OS_String.inl \ + $(ACE_ROOT)/ace/OS_Memory.h \ + $(ACE_ROOT)/ace/OS_Memory.inl \ + $(ACE_ROOT)/ace/OS_TLI.h \ + $(ACE_ROOT)/ace/OS_TLI.inl \ + $(ACE_ROOT)/ace/Min_Max.h \ + $(ACE_ROOT)/ace/streams.h \ + $(ACE_ROOT)/ace/Trace.h \ + $(ACE_ROOT)/ace/OS.i \ + $(ACE_ROOT)/ace/Flag_Manip.h \ + $(ACE_ROOT)/ace/Flag_Manip.i \ + $(ACE_ROOT)/ace/Handle_Ops.h \ + $(ACE_ROOT)/ace/Handle_Ops.i \ + $(ACE_ROOT)/ace/Lib_Find.h \ + $(ACE_ROOT)/ace/Lib_Find.i \ + $(ACE_ROOT)/ace/Init_ACE.h \ + $(ACE_ROOT)/ace/Init_ACE.i \ + $(ACE_ROOT)/ace/Sock_Connect.h \ + $(ACE_ROOT)/ace/Sock_Connect.i \ + $(ACE_ROOT)/ace/ACE.i \ + $(ACE_ROOT)/ace/Malloc.h \ + $(ACE_ROOT)/ace/Log_Msg.h \ + $(ACE_ROOT)/ace/Log_Record.h \ + $(ACE_ROOT)/ace/Log_Priority.h \ + $(ACE_ROOT)/ace/Log_Record.i \ + $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.h \ + $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.inl \ + $(ACE_ROOT)/ace/Malloc.i \ + $(ACE_ROOT)/ace/Malloc_T.h \ + $(ACE_ROOT)/ace/Synch.h \ + $(ACE_ROOT)/ace/Synch.i \ + $(ACE_ROOT)/ace/Synch_T.h \ + $(ACE_ROOT)/ace/Synch_T.i \ + $(ACE_ROOT)/ace/Thread.h \ + $(ACE_ROOT)/ace/Thread_Adapter.h \ + $(ACE_ROOT)/ace/Base_Thread_Adapter.h \ + $(ACE_ROOT)/ace/Base_Thread_Adapter.inl \ + $(ACE_ROOT)/ace/Thread_Adapter.inl \ + $(ACE_ROOT)/ace/Thread.i \ + $(ACE_ROOT)/ace/Atomic_Op.i \ + $(ACE_ROOT)/ace/Synch_T.cpp \ + $(ACE_ROOT)/ace/Malloc_Allocator.h \ + $(ACE_ROOT)/ace/Malloc_Base.h \ + $(ACE_ROOT)/ace/Malloc_Allocator.i \ + $(ACE_ROOT)/ace/Free_List.h \ + $(ACE_ROOT)/ace/Free_List.i \ + $(ACE_ROOT)/ace/Free_List.cpp \ + $(ACE_ROOT)/ace/Malloc_T.i \ + $(ACE_ROOT)/ace/Malloc_T.cpp \ + $(ACE_ROOT)/ace/Memory_Pool.h \ + $(ACE_ROOT)/ace/Event_Handler.h \ + $(ACE_ROOT)/ace/Event_Handler.i \ + $(ACE_ROOT)/ace/Signal.h \ + $(ACE_ROOT)/ace/Containers.h \ + $(ACE_ROOT)/ace/Containers.i \ + $(ACE_ROOT)/ace/Containers_T.h \ + $(ACE_ROOT)/ace/Containers_T.i \ + $(ACE_ROOT)/ace/Containers_T.cpp \ + $(ACE_ROOT)/ace/Signal.i \ + $(ACE_ROOT)/ace/Mem_Map.h \ + $(ACE_ROOT)/ace/Mem_Map.i \ + $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ + $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ + $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ + $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ + $(ACE_ROOT)/ace/Memory_Pool.i \ + $(ACE_ROOT)/ace/Message_Block.i \ + $(ACE_ROOT)/ace/Message_Block_T.h \ + $(ACE_ROOT)/ace/Message_Block_T.i \ + $(ACE_ROOT)/ace/Message_Block_T.cpp \ + $(ACE_ROOT)/ace/CDR_Base.inl \ + $(TAO_ROOT)/tao/try_macros.h \ + $(TAO_ROOT)/tao/orbconf.h \ + $(ACE_ROOT)/ace/CORBA_macros.h \ + $(TAO_ROOT)/tao/varbase.h \ + $(TAO_ROOT)/tao/TAO_Export.h \ + $(TAO_ROOT)/tao/corbafwd.i \ + $(ACE_ROOT)/ace/Service_Object.h \ + $(ACE_ROOT)/ace/Shared_Object.h \ + $(ACE_ROOT)/ace/Shared_Object.i \ + $(ACE_ROOT)/ace/Service_Object.i \ + $(TAO_ROOT)/tao/Object_Loader.i \ + $(ACE_ROOT)/ace/Service_Config.h \ + $(ACE_ROOT)/ace/SString.h \ + $(ACE_ROOT)/ace/SString.i \ + $(ACE_ROOT)/ace/Service_Config.i \ + $(ACE_ROOT)/ace/Reactor.h \ + $(ACE_ROOT)/ace/Handle_Set.h \ + $(ACE_ROOT)/ace/Handle_Set.i \ + $(ACE_ROOT)/ace/Timer_Queue.h \ + $(ACE_ROOT)/ace/Timer_Queue_T.h \ + $(ACE_ROOT)/ace/Test_and_Set.h \ + $(ACE_ROOT)/ace/Test_and_Set.i \ + $(ACE_ROOT)/ace/Test_and_Set.cpp \ + $(ACE_ROOT)/ace/Timer_Queue_T.i \ + $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ + $(ACE_ROOT)/ace/Reactor.i \ + $(ACE_ROOT)/ace/Reactor_Impl.h \ + $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ + TypeCodeFactoryC.h \ + $(TAO_ROOT)/tao/corba.h \ + $(TAO_ROOT)/tao/Environment.h \ + $(TAO_ROOT)/tao/Environment.i \ + $(TAO_ROOT)/tao/ORB.h \ + $(TAO_ROOT)/tao/Exception.h \ + $(TAO_ROOT)/tao/Exception.i \ + $(TAO_ROOT)/tao/Services.h \ + $(TAO_ROOT)/tao/Sequence.h \ + $(TAO_ROOT)/tao/Managed_Types.h \ + $(TAO_ROOT)/tao/Managed_Types.i \ + $(TAO_ROOT)/tao/Sequence.i \ + $(TAO_ROOT)/tao/Sequence_T.h \ + $(TAO_ROOT)/tao/Sequence_T.i \ + $(TAO_ROOT)/tao/Sequence_T.cpp \ + $(TAO_ROOT)/tao/Services.i \ + $(TAO_ROOT)/tao/CORBA_String.h \ + $(TAO_ROOT)/tao/CORBA_String.inl \ + $(TAO_ROOT)/tao/PolicyC.h \ + $(TAO_ROOT)/tao/CurrentC.h \ + $(TAO_ROOT)/tao/Object.h \ + $(TAO_ROOT)/tao/Abstract_Servant_Base.h \ + $(TAO_ROOT)/tao/Object_Proxy_Broker.h \ + $(TAO_ROOT)/tao/Object_Proxy_Impl.h \ + $(TAO_ROOT)/tao/Object.i \ + $(TAO_ROOT)/tao/CurrentC.i \ + $(TAO_ROOT)/tao/Encodable.h \ + $(TAO_ROOT)/tao/CDR.h \ + $(ACE_ROOT)/ace/CDR_Stream.h \ + $(ACE_ROOT)/ace/CDR_Stream.i \ + $(TAO_ROOT)/tao/CDR.i \ + $(TAO_ROOT)/tao/Typecode.h \ + $(TAO_ROOT)/tao/Typecode.i \ + $(TAO_ROOT)/tao/PolicyC.i \ + $(TAO_ROOT)/tao/ORB.i \ + $(TAO_ROOT)/tao/Any.h \ + $(TAO_ROOT)/tao/Any.i \ + $(TAO_ROOT)/tao/NVList.h \ + $(TAO_ROOT)/tao/NVList.i \ + $(TAO_ROOT)/tao/Principal.h \ + $(TAO_ROOT)/tao/OctetSeqC.h \ + $(TAO_ROOT)/tao/OctetSeqC.i \ + $(TAO_ROOT)/tao/Principal.i \ + $(TAO_ROOT)/tao/TAO_Server_Request.h \ + $(TAO_ROOT)/tao/Tagged_Profile.h \ + $(TAO_ROOT)/tao/IOPC.h \ + $(TAO_ROOT)/tao/IOPC.i \ + $(TAO_ROOT)/tao/GIOPC.h \ + $(TAO_ROOT)/tao/Object_KeyC.h \ + $(TAO_ROOT)/tao/Object_KeyC.i \ + $(TAO_ROOT)/tao/GIOPC.i \ + $(TAO_ROOT)/tao/Tagged_Profile.i \ + $(TAO_ROOT)/tao/Service_Context.h \ + $(TAO_ROOT)/tao/Service_Context.inl \ + $(TAO_ROOT)/tao/TAO_Server_Request.i \ + $(TAO_ROOT)/tao/Remote_Object_Proxy_Impl.h \ + $(TAO_ROOT)/tao/LocalObject.h \ + $(TAO_ROOT)/tao/LocalObject.i \ + $(TAO_ROOT)/tao/Stub.h \ + $(TAO_ROOT)/tao/Pluggable.h \ + $(TAO_ROOT)/tao/Pluggable.i \ + $(TAO_ROOT)/tao/MProfile.h \ + $(TAO_ROOT)/tao/Profile.h \ + $(TAO_ROOT)/tao/Tagged_Components.h \ + $(TAO_ROOT)/tao/CONV_FRAMEC.h \ + $(TAO_ROOT)/tao/CONV_FRAMEC.i \ + $(TAO_ROOT)/tao/Tagged_Components.i \ + $(TAO_ROOT)/tao/GIOP_Message_State.h \ + $(TAO_ROOT)/tao/GIOP_Message_State.i \ + $(TAO_ROOT)/tao/Profile.i \ + $(TAO_ROOT)/tao/MProfile.i \ + $(TAO_ROOT)/tao/ORB_Core.h \ + $(TAO_ROOT)/tao/Policy_Manager.h \ + $(TAO_ROOT)/tao/Policy_Manager.i \ + $(TAO_ROOT)/tao/Resource_Factory.h \ + $(TAO_ROOT)/tao/Protocol_Factory.h \ + $(TAO_ROOT)/tao/params.h \ + $(TAO_ROOT)/tao/params.i \ + $(TAO_ROOT)/tao/TAO_Singleton_Manager.h \ + $(TAO_ROOT)/tao/TAO_Singleton_Manager.inl \ + $(TAO_ROOT)/tao/TAO_Singleton.h \ + $(TAO_ROOT)/tao/TAO_Singleton.inl \ + $(TAO_ROOT)/tao/TAO_Singleton.cpp \ + $(ACE_ROOT)/ace/Object_Manager.h \ + $(ACE_ROOT)/ace/Object_Manager.i \ + $(ACE_ROOT)/ace/Managed_Object.h \ + $(ACE_ROOT)/ace/Managed_Object.i \ + $(ACE_ROOT)/ace/Managed_Object.cpp \ + $(TAO_ROOT)/tao/Adapter.h \ + $(TAO_ROOT)/tao/Adapter.i \ + $(TAO_ROOT)/tao/PolicyFactory_Registry.h \ + $(TAO_ROOT)/tao/PortableInterceptorC.h \ + $(TAO_ROOT)/tao/DynamicC.h \ + $(TAO_ROOT)/tao/DynamicC.i \ + $(TAO_ROOT)/tao/MessagingC.h \ + $(TAO_ROOT)/tao/ValueBase.h \ + $(TAO_ROOT)/tao/ValueBase.i \ + $(TAO_ROOT)/tao/ValueFactory.h \ + $(TAO_ROOT)/tao/ValueFactory.i \ + $(TAO_ROOT)/tao/TimeBaseC.h \ + $(TAO_ROOT)/tao/TimeBaseC.i \ + $(TAO_ROOT)/tao/PollableC.h \ + $(TAO_ROOT)/tao/PollableC.i \ + $(TAO_ROOT)/tao/MessagingC.i \ + $(TAO_ROOT)/tao/PortableInterceptorC.i \ + $(ACE_ROOT)/ace/Map_Manager.h \ + $(ACE_ROOT)/ace/Map_Manager.i \ + $(ACE_ROOT)/ace/Map_Manager.cpp \ + $(TAO_ROOT)/tao/Parser_Registry.h \ + $(TAO_ROOT)/tao/Parser_Registry.i \ + $(TAO_ROOT)/tao/Service_Callbacks.h \ + $(TAO_ROOT)/tao/Service_Callbacks.i \ + $(TAO_ROOT)/tao/Fault_Tolerance_Service.h \ + $(TAO_ROOT)/tao/Fault_Tolerance_Service.i \ + $(TAO_ROOT)/tao/Connection_Cache_Manager.h \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ + $(ACE_ROOT)/ace/Functor.h \ + $(ACE_ROOT)/ace/Functor.i \ + $(ACE_ROOT)/ace/Functor_T.h \ + $(ACE_ROOT)/ace/Functor_T.i \ + $(ACE_ROOT)/ace/Functor_T.cpp \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ + $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ + $(TAO_ROOT)/tao/Cache_Entries.h \ + $(TAO_ROOT)/tao/Connection_Descriptor_Interface.h \ + $(TAO_ROOT)/tao/Endpoint.h \ + $(TAO_ROOT)/tao/Endpoint.i \ + $(TAO_ROOT)/tao/Connection_Descriptor_Interface.inl \ + $(TAO_ROOT)/tao/Cache_Entries.inl \ + $(TAO_ROOT)/tao/Connection_Cache_Manager.inl \ + $(TAO_ROOT)/tao/Cleanup_Func_Registry.h \ + $(TAO_ROOT)/tao/Cleanup_Func_Registry.inl \ + $(TAO_ROOT)/tao/Object_Ref_Table.h \ + $(TAO_ROOT)/tao/Interceptor_List.h \ + $(TAO_ROOT)/tao/Interceptor_List.inl \ + $(TAO_ROOT)/tao/RT_Policy_i.h \ + $(TAO_ROOT)/tao/RTCORBAS.h \ + $(TAO_ROOT)/tao/IOPS.h \ + $(TAO_ROOT)/tao/IOPS_T.h \ + $(TAO_ROOT)/tao/IOPS_T.i \ + $(TAO_ROOT)/tao/IOPS_T.cpp \ + $(TAO_ROOT)/tao/IOPS.i \ + $(TAO_ROOT)/tao/TimeBaseS.h \ + $(TAO_ROOT)/tao/TimeBaseS_T.h \ + $(TAO_ROOT)/tao/TimeBaseS_T.i \ + $(TAO_ROOT)/tao/TimeBaseS_T.cpp \ + $(TAO_ROOT)/tao/TimeBaseS.i \ + $(TAO_ROOT)/tao/RTCORBAC.h \ + $(TAO_ROOT)/tao/RTCORBAC.i \ + $(TAO_ROOT)/tao/RTCORBAS_T.h \ + $(TAO_ROOT)/tao/RTCORBAS_T.i \ + $(TAO_ROOT)/tao/RTCORBAS_T.cpp \ + $(TAO_ROOT)/tao/RTCORBAS.i \ + $(TAO_ROOT)/tao/RT_Policy_i.i \ + $(TAO_ROOT)/tao/Protocols_Hooks.h \ + $(ACE_ROOT)/ace/Hash_Map_Manager.h \ + $(ACE_ROOT)/ace/Thread_Manager.h \ + $(ACE_ROOT)/ace/Singleton.h \ + $(ACE_ROOT)/ace/Singleton.i \ + $(ACE_ROOT)/ace/Singleton.cpp \ + $(ACE_ROOT)/ace/Thread_Manager.i \ + $(TAO_ROOT)/tao/ORB_Core.i \ + $(TAO_ROOT)/tao/Stub.i \ + $(TAO_ROOT)/tao/debug.h \ + $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ + $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ + $(TAO_ROOT)/tao/Invocation.h \ + $(TAO_ROOT)/tao/Synch_Reply_Dispatcher.h \ + $(TAO_ROOT)/tao/Reply_Dispatcher.h \ + $(TAO_ROOT)/tao/Reply_Dispatcher.i \ + $(TAO_ROOT)/tao/TAOC.h \ + $(TAO_ROOT)/tao/Priority_Mapping_Manager.h \ + $(TAO_ROOT)/tao/Priority_Mapping.h \ + $(TAO_ROOT)/tao/Priority_Mapping.i \ + $(TAO_ROOT)/tao/Priority_Mapping_Manager.i \ + $(TAO_ROOT)/tao/TAOC.i \ + $(TAO_ROOT)/tao/operation_details.h \ + $(TAO_ROOT)/tao/target_specification.h \ + $(TAO_ROOT)/tao/target_specification.i \ + $(TAO_ROOT)/tao/operation_details.i \ + $(TAO_ROOT)/tao/Invocation_Endpoint_Selectors.h \ + $(TAO_ROOT)/tao/Invocation_Endpoint_Selectors.i \ + $(TAO_ROOT)/tao/Invocation.i \ + $(TAO_ROOT)/tao/ObjectIDList.h \ + $(TAO_ROOT)/tao/ObjectIDList.i \ + $(TAO_ROOT)/tao/DomainC.h \ + $(TAO_ROOT)/tao/ClientRequestInfo.h \ + $(TAO_ROOT)/tao/StringSeqC.h \ + $(TAO_ROOT)/tao/StringSeqC.i \ + $(TAO_ROOT)/tao/ClientRequestInfo.inl \ + $(TAO_ROOT)/tao/DomainC.i \ + $(TAO_ROOT)/tao/WrongTransactionC.h \ + $(TAO_ROOT)/tao/BoundsC.h \ + $(TAO_ROOT)/tao/BoundsC.i \ + $(TAO_ROOT)/tao/PortableInterceptor.h \ + $(TAO_ROOT)/tao/PortableInterceptor.i \ + $(TAO_ROOT)/tao/BiDirPolicyC.h \ + $(TAO_ROOT)/tao/BiDirPolicyC.i \ + $(TAO_ROOT)/tao/IFR_Client/InterfaceC.h \ + $(TAO_ROOT)/tao/IFR_Client/ifrfwd.h \ + $(TAO_ROOT)/tao/IFR_Client/ifr_client_export.h \ + $(TAO_ROOT)/tao/IFR_Client/IFR_Client_Adapter_Impl.h \ + $(TAO_ROOT)/tao/IFR_Client_Adapter.h \ + $(TAO_ROOT)/tao/IFR_Client/InterfaceC.i \ + TypeCodeFactoryC.inl TypeCodeFactory_i.h + +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/tao/TypeCodeFactory/Makefile.bor b/TAO/tao/TypeCodeFactory/Makefile.bor new file mode 100644 index 00000000000..c0e02b9e520 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/Makefile.bor @@ -0,0 +1,35 @@ +# +# Makefile for building the TypeCodeFactory library +# + +NAME = TAO_TypeCodeFactory + +OBJFILES = \ + $(OBJDIR)\TypeCodeFactoryC.obj \ + $(OBJDIR)\TypeCodeFactory_i.obj \ + $(OBJDIR)\TypeCodeFactory_Loader.obj \ + $(OBJDIR)\TypeCodeFactory_Adapter_Impl.obj + +!ifdef STATIC +TCF_DLLFLAG=0 +!else +TCF_DLLFLAG=1 +!endif + +CFLAGS = \ + $(ACE_CFLAGS) \ + $(TAO_CFLAGS) \ + $(TAO_PORTABLESERVER_CFLAGS) \ + $(TAO_IFR_CLIENT_CFLAGS) \ + -DTCF_HAS_DLL=$(TCF_DLLFLAG) \ + -DTCF_BUILD_DLL + +CPPDIR = . + +LIBFILES = \ + $(ACE_LIB) \ + $(TAO_LIB) \ + $(TAO_PORTABLESERVER_LIB) \ + $(TAO_IFR_CLIENT_LIB) + +!include <$(ACE_ROOT)\include\makeinclude\build_core_library.bor> diff --git a/TAO/tao/TypeCodeFactory/README b/TAO/tao/TypeCodeFactory/README new file mode 100644 index 00000000000..ac1240283f0 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/README @@ -0,0 +1,27 @@ +$Id$ + +TypeCodeFactory ------- + +This library is used by the Interface Repository and +by CORBA::ORB to create typecodes. To minimize +dependencies and footprint, this library need not be +built or linked by an application. However, if an +application needs to call CORBA::ORB::create_*_tc(), +then it should #include the library's header file +TypeCodeFactory_Adapter_Impl.h and link the library. +This will automatically load the library, assuming +it has been compiled. If an application is using the +Interface Repository, nothing special need be done - +the IFR will link the TypeCodeFactory library in its +own build. + +Since the TypeCodeFactory must deal with Interface +Repository data types, it depends on the +TAO_IFR_Client library. + +Typecode creation methods for recursive structs and +unions, valuetypes, and CORBA components have not +yet been implemented. + +For more information about the TypeCodeFactory, see +ACE_ROOT/TAO/docs/releasenotes/index.html.
\ No newline at end of file diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory.dsp b/TAO/tao/TypeCodeFactory/TypeCodeFactory.dsp new file mode 100644 index 00000000000..a6cbc12cd86 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory.dsp @@ -0,0 +1,143 @@ +# Microsoft Developer Studio Project File - Name="TypeCodeFactory" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=TypeCodeFactory - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "TypeCodeFactory.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "TypeCodeFactory.mak" CFG="TypeCodeFactory - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "TypeCodeFactory - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "TypeCodeFactory - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "TypeCodeFactory - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir ""
+# PROP Intermediate_Dir "DLL\Release\TypeCodeFactory"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TYPECODEFACTORY_EXPORTS" /YX /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /O2 /I "..\.." /I "..\..\.." /D TAO_TYPECODEFACTORY_HAS_DLL=1 /D "TAO_TYPECODEFACTORY_BUILD_DLL" /D "_DEBUG" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
+# ADD LINK32 TAO_IFR_Client.lib TAO.lib ace.lib /nologo /dll /machine:I386 /out:"..\..\..\bin\TAO_TypeCodeFactory.dll" /libpath:"..\..\tao\IFR_Client" /libpath:"..\..\tao" /libpath:"..\..\..\ace"
+
+!ELSEIF "$(CFG)" == "TypeCodeFactory - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir ""
+# PROP Intermediate_Dir "DLL\Debug\TypeCodeFactory"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TYPECODEFACTORY_EXPORTS" /YX /FD /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\.." /I "..\..\.." /D TAO_TYPECODEFACTORY_HAS_DLL=1 /D "TAO_TYPECODEFACTORY_BUILD_DLL" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /YX /FD /c
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 TAO_IFR_Clientd.lib TAOd.lib aced.lib /nologo /dll /debug /machine:I386 /out:"..\..\..\bin\TAO_TypeCodeFactoryd.dll" /pdbtype:sept /libpath:"..\..\tao\IFR_Client" /libpath:"..\..\tao" /libpath:"..\..\..\ace"
+
+!ENDIF
+
+# Begin Target
+
+# Name "TypeCodeFactory - Win32 Release"
+# Name "TypeCodeFactory - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\TypeCodeFactory_Adapter_Impl.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\TypeCodeFactory_i.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\TypeCodeFactory_Loader.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\TypeCodeFactoryC.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\TypeCodeFactory_Adapter_Impl.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\typecodefactory_export.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\TypeCodeFactory_i.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\TypeCodeFactory_Loader.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\TypeCodeFactoryC.h
+# End Source File
+# End Group
+# Begin Group "Inline Files"
+
+# PROP Default_Filter ""
+# Begin Source File
+
+SOURCE=.\TypeCodeFactoryC.inl
+# End Source File
+# End Group
+# End Target
+# End Project
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory.pidl b/TAO/tao/TypeCodeFactory/TypeCodeFactory.pidl new file mode 100644 index 00000000000..c6fca988bc3 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory.pidl @@ -0,0 +1,171 @@ +// +// $Id$ +// +// ================================================================ +// +// = LIBRARY +// TAO/tao/TypeCodeFactory +// +// = FILENAME +// TypeCodeFactory.pidl +// +// = DESCRIPTION +// This file was used to generate the code in TypeCodeFactoryC.{h,i,cpp}. +// It was originally part of Interface.idl, but since the TypeCodeFactory +// has been made into a separate library, and the TypeCodeFactory interface +// has been made local, it is simpler to generate the necessary stub +// code in TypeCodeFactoryC.* by splitting Interface.idl into two +// parts. +// +// The command used to generate code from this file is: +// +// tao_idl -o orig -Ge 1 -ci "C.inl" \ +// -Wb,export_macro=TAO_TypeCodeFactory_Export \ +// -Wb,export_include=typecodefactory_export.h \ +// -Wb,pre_include="ace/pre.h" \ +// -Wb,post_include="ace/post.h" \ +// TypeCodeFactory.pidl +// +// after the file is generated a patch must be applied. The patch +// removes generated code for the typedefs appearing at the top of +// the IDL file below, since they are already included in the TAO +// library. Also the scoped names of the Interface Repository datatypes +// used in this file have been changed to their flat name counterparts +// (see the explanation in TAO/tao/IFR_Client/Interface.pidl). +// +// Apply patches using the following commands: +// +// patch < diffs/TypeCodeFactoryC.h.diff +// patch < diffs/TypeCodeFactoryC.inl.diff +// patch < diffs/TypeCodeFactoryC.cpp.diff +// +// These patches are used to automate the above changes when the +// code, which is part of the TAO library, must be regenerated because +// of modifications to the output of the TAO IDL compiler. +// +// Note: The diffs were generated with these commands: +// +// diff -wbu orig/TypeCodeFactoryC.h TypeCodeFactoryC.h > diffs/TypeCodeFactoryC.h.diff +// diff -wbu orig/TypeCodeFactoryC.inl TypeCodeFactoryC.inl > diffs/TypeCodeFactoryC.inl.diff +// diff -wbu orig/TypeCodeFactoryC.cpp TypeCodeFactoryC.cpp > diffs/TypeCodeFactoryC.cpp.diff +// +// ================================================================ + +#ifndef _TYPECODEFACTORY_IDL_ +#define _TYPECODEFACTORY_IDL_ + +#pragma prefix "omg.org" + +module CORBA +{ + typedef string Identifier; + typedef string RepositoryId; + typedef short ValueModifier; + + local interface TypeCodeFactory // PIDL + { + TypeCode create_struct_tc ( + in RepositoryId id, + in Identifier name, + in IR::StructMemberSeq members + ); + + TypeCode create_union_tc ( + in RepositoryId id, + in Identifier name, + in TypeCode discriminator_type, + in IR::UnionMemberSeq members + ); + + TypeCode create_enum_tc ( + in RepositoryId id, + in Identifier name, + in IR::EnumMemberSeq members + ); + + TypeCode create_alias_tc ( + in RepositoryId id, + in Identifier name, + in TypeCode original_type + ); + + TypeCode create_exception_tc ( + in RepositoryId id, + in Identifier name, + in IR::StructMemberSeq members + ); + + TypeCode create_interface_tc ( + in RepositoryId id, + in Identifier name + ); + + TypeCode create_string_tc ( + in unsigned long bound + ); + + TypeCode create_wstring_tc ( + in unsigned long bound + ); + + TypeCode create_fixed_tc ( + in unsigned short digits, + in unsigned short scale + ); + + TypeCode create_sequence_tc ( + in unsigned long bound, + in TypeCode element_type + ); + + TypeCode create_array_tc ( + in unsigned long length, + in TypeCode element_type + ); + + TypeCode create_value_tc ( + in RepositoryId id, + in Identifier name, + in ValueModifier type_modifier, + in TypeCode concrete_base, + in IR::ValueMemberSeq members + ); + + TypeCode create_value_box_tc ( + in RepositoryId id, + in Identifier name, + in TypeCode boxed_type + ); + + TypeCode create_native_tc ( + in RepositoryId id, + in Identifier name + ); + + TypeCode create_recursive_tc ( + in RepositoryId id + ); + + TypeCode create_abstract_interface_tc ( + in RepositoryId id, + in Identifier name + ); + + TypeCode create_local_interface_tc ( + in RepositoryId id, + in Identifier name + ); + TypeCode create_component_tc ( + in RepositoryId id, + in Identifier name + ); + + TypeCode create_home_tc ( + in RepositoryId id, + in Identifier name + ); + }; +}; + +#pragma prefix "" +#endif // _TYPECODEFACTORY_IDL_ diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp new file mode 100644 index 00000000000..8d0f3a26462 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp @@ -0,0 +1,112 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +#include "TypeCodeFactory_Loader.h" + +#if TAO_HAS_INTERCEPTORS == 1 +#include "tao/RequestInfo_Util.h" +#endif /* TAO_HAS_INTERCEPTORS == 1 */ + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "TypeCodeFactoryC.inl" +#endif /* !defined INLINE */ + +// Default constructor. +CORBA_TypeCodeFactory::CORBA_TypeCodeFactory (void) +{} + +// Destructor. +CORBA_TypeCodeFactory::~CORBA_TypeCodeFactory (void) +{} + +CORBA::TypeCodeFactory_ptr CORBA::TypeCodeFactory::_narrow ( + CORBA::Object_ptr obj, + CORBA::Environment &ACE_TRY_ENV + ) +{ + return CORBA::TypeCodeFactory::_unchecked_narrow (obj, ACE_TRY_ENV); +} + +CORBA::TypeCodeFactory_ptr CORBA::TypeCodeFactory::_unchecked_narrow ( + CORBA::Object_ptr obj, + CORBA::Environment & + ) +{ + if (CORBA::is_nil (obj)) + return CORBA::TypeCodeFactory::_nil (); + + return + ACE_reinterpret_cast + ( + CORBA_TypeCodeFactory_ptr, + obj->_tao_QueryInterface + ( + ACE_reinterpret_cast + ( + ptr_arith_t, + &CORBA_TypeCodeFactory::_narrow + ) + ) + ); +} + +CORBA::TypeCodeFactory_ptr +CORBA::TypeCodeFactory::_duplicate (CORBA::TypeCodeFactory_ptr obj) +{ + if (!CORBA::is_nil (obj)) + obj->_add_ref (); + return obj; +} + +void * +CORBA::TypeCodeFactory::_tao_QueryInterface (ptr_arith_t type) +{ + void *retv = 0; + if (type == ACE_reinterpret_cast + (ptr_arith_t, + &CORBA_TypeCodeFactory::_narrow)) + retv = ACE_reinterpret_cast (void*, this); + else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) + retv = ACE_reinterpret_cast (void *, + ACE_static_cast (CORBA::Object_ptr, this)); + + if (retv) + this->_add_ref (); + return retv; +} + +const char * +CORBA::TypeCodeFactory::_interface_repository_id (void) const +{ + return "IDL:omg.org/CORBA/TypeCodeFactory:1.0"; +} + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_GNU_REPO) + template class TAO_Object_Manager<CORBA::TypeCodeFactory,CORBA::TypeCodeFactory_var>; + #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + # pragma instantiate TAO_Object_Manager<CORBA::TypeCodeFactory,CORBA::TypeCodeFactory_var> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h new file mode 100644 index 00000000000..387a0439c92 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h @@ -0,0 +1,355 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +#ifndef TAO_TYPECODEFACTORYC_H +#define TAO_TYPECODEFACTORYC_H + +#ifndef TAO_TYPECODEFACTORY_SAFE_INCLUDE +#error "You should not include TypeCodeFactoryC.h directly, use TCF_Loader.h" +#endif /* !TAO_TYPECODEFACTORY_SAFE_INCLUDE */ + +#include "ace/pre.h" +#include "typecodefactory_export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Object.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_TypeCodeFactory_Export + +#if defined (TAO_EXPORT_NESTED_CLASSES) +# if defined (TAO_EXPORT_NESTED_MACRO) +# undef TAO_EXPORT_NESTED_MACRO +# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ +# define TAO_EXPORT_NESTED_MACRO TAO_TypeCodeFactory_Export +#endif /* TAO_EXPORT_NESTED_CLASSES */ + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option push -w-rvl -w-rch -w-ccc -w-inl +#endif /* __BORLANDC__ */ + +class TAO_TypeCodeFactory_Export CORBA_TypeCodeFactory_var + : public TAO_Base_var +{ +public: + CORBA_TypeCodeFactory_var (void); // default constructor + CORBA_TypeCodeFactory_var (CORBA_TypeCodeFactory_ptr p) : ptr_ (p) {} + CORBA_TypeCodeFactory_var (const CORBA_TypeCodeFactory_var &); // copy constructor + ~CORBA_TypeCodeFactory_var (void); // destructor + + CORBA_TypeCodeFactory_var &operator= (CORBA_TypeCodeFactory_ptr); + CORBA_TypeCodeFactory_var &operator= (const CORBA_TypeCodeFactory_var &); + CORBA_TypeCodeFactory_ptr operator-> (void) const; + + operator const CORBA_TypeCodeFactory_ptr &() const; + operator CORBA_TypeCodeFactory_ptr &(); + // in, inout, out, _retn + CORBA_TypeCodeFactory_ptr in (void) const; + CORBA_TypeCodeFactory_ptr &inout (void); + CORBA_TypeCodeFactory_ptr &out (void); + CORBA_TypeCodeFactory_ptr _retn (void); + CORBA_TypeCodeFactory_ptr ptr (void) const; + +private: + CORBA_TypeCodeFactory_ptr ptr_; + // Unimplemented - prevents widening assignment. + CORBA_TypeCodeFactory_var (const TAO_Base_var &rhs); + CORBA_TypeCodeFactory_var &operator= (const TAO_Base_var &rhs); +}; + +class TAO_TypeCodeFactory_Export CORBA_TypeCodeFactory_out +{ +public: + CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_ptr &); + CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_var &); + CORBA_TypeCodeFactory_out (const CORBA_TypeCodeFactory_out &); + CORBA_TypeCodeFactory_out &operator= (const CORBA_TypeCodeFactory_out &); + CORBA_TypeCodeFactory_out &operator= (const CORBA_TypeCodeFactory_var &); + CORBA_TypeCodeFactory_out &operator= (CORBA_TypeCodeFactory_ptr); + operator CORBA_TypeCodeFactory_ptr &(); + CORBA_TypeCodeFactory_ptr &ptr (void); + CORBA_TypeCodeFactory_ptr operator-> (void); + +private: + CORBA_TypeCodeFactory_ptr &ptr_; +}; + +class TAO_TypeCodeFactory_Export CORBA_TypeCodeFactory + : public virtual CORBA_Object + { + public: + #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) + typedef CORBA_TypeCodeFactory_ptr _ptr_type; + typedef CORBA_TypeCodeFactory_var _var_type; + #endif /* ! __GNUC__ || g++ >= 2.8 */ + + // the static operations + static CORBA_TypeCodeFactory_ptr _duplicate (CORBA_TypeCodeFactory_ptr obj); + static CORBA_TypeCodeFactory_ptr _narrow ( + CORBA::Object_ptr obj, + CORBA::Environment &env = + TAO_default_environment () + ); + static CORBA_TypeCodeFactory_ptr _unchecked_narrow ( + CORBA::Object_ptr obj, + CORBA::Environment &env = + TAO_default_environment () + ); + static CORBA_TypeCodeFactory_ptr _nil (void) + { + return (CORBA_TypeCodeFactory_ptr)0; + } + + virtual CORBA::TypeCode_ptr create_struct_tc ( + const char * id, + const char * name, + const CORBA_StructMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_union_tc ( + const char * id, + const char * name, + CORBA::TypeCode_ptr discriminator_type, + const CORBA_UnionMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_enum_tc ( + const char * id, + const char * name, + const CORBA_EnumMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_alias_tc ( + const char * id, + const char * name, + CORBA::TypeCode_ptr original_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_exception_tc ( + const char * id, + const char * name, + const CORBA_StructMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_interface_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_string_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_wstring_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_fixed_tc ( + CORBA::UShort digits, + CORBA::UShort scale, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_sequence_tc ( + CORBA::ULong bound, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_array_tc ( + CORBA::ULong length, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_value_tc ( + const char * id, + const char * name, + CORBA::ValueModifier type_modifier, + CORBA::TypeCode_ptr concrete_base, + const CORBA_ValueMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_value_box_tc ( + const char * id, + const char * name, + CORBA::TypeCode_ptr boxed_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_native_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_recursive_tc ( + const char * id, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_abstract_interface_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_local_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_component_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual CORBA::TypeCode_ptr create_home_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + virtual void *_tao_QueryInterface (ptr_arith_t type); + + virtual const char* _interface_repository_id (void) const; + + protected: + CORBA_TypeCodeFactory (void); + virtual ~CORBA_TypeCodeFactory (void); + private: + CORBA_TypeCodeFactory (const CORBA_TypeCodeFactory &); + void operator= (const CORBA_TypeCodeFactory &); +}; + +#if defined (__ACE_INLINE__) +#include "TypeCodeFactoryC.inl" +#endif /* defined INLINE */ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#if defined (__BORLANDC__) +#pragma option pop +#endif /* __BORLANDC__ */ + +#include "ace/post.h" +#endif /* TAO_TYPECODEFACTORYC_H */ diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.inl b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.inl new file mode 100644 index 00000000000..a82f282ba04 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.inl @@ -0,0 +1,172 @@ +/* -*- C++ -*- */ +//$Id$ + +#if !defined (_CORBA_TYPECODEFACTORY___VAR_CI_) +#define _CORBA_TYPECODEFACTORY___VAR_CI_ + +// ************************************************************* +// Inline operations for class CORBA_TypeCodeFactory_var +// ************************************************************* + +ACE_INLINE +CORBA_TypeCodeFactory_var::CORBA_TypeCodeFactory_var (void) // default constructor + : ptr_ (CORBA_TypeCodeFactory::_nil ()) +{} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr +CORBA_TypeCodeFactory_var::ptr (void) const +{ + return this->ptr_; +} + +ACE_INLINE +CORBA_TypeCodeFactory_var::CORBA_TypeCodeFactory_var (const ::CORBA_TypeCodeFactory_var &p) // copy constructor + : TAO_Base_var (), + ptr_ (CORBA_TypeCodeFactory::_duplicate (p.ptr ())) +{} + +ACE_INLINE +CORBA_TypeCodeFactory_var::~CORBA_TypeCodeFactory_var (void) // destructor +{ + CORBA::release (this->ptr_); +} + +ACE_INLINE CORBA_TypeCodeFactory_var & +CORBA_TypeCodeFactory_var::operator= (CORBA_TypeCodeFactory_ptr p) +{ + CORBA::release (this->ptr_); + this->ptr_ = p; + return *this; +} + +ACE_INLINE CORBA_TypeCodeFactory_var & +CORBA_TypeCodeFactory_var::operator= (const ::CORBA_TypeCodeFactory_var &p) +{ + if (this != &p) + { + CORBA::release (this->ptr_); + this->ptr_ = ::CORBA_TypeCodeFactory::_duplicate (p.ptr ()); + } + return *this; +} + +ACE_INLINE +CORBA_TypeCodeFactory_var::operator const ::CORBA_TypeCodeFactory_ptr &() const // cast +{ + return this->ptr_; +} + +ACE_INLINE +CORBA_TypeCodeFactory_var::operator ::CORBA_TypeCodeFactory_ptr &() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr +CORBA_TypeCodeFactory_var::operator-> (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr +CORBA_TypeCodeFactory_var::in (void) const +{ + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr & +CORBA_TypeCodeFactory_var::inout (void) +{ + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr & +CORBA_TypeCodeFactory_var::out (void) +{ + CORBA::release (this->ptr_); + this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr +CORBA_TypeCodeFactory_var::_retn (void) +{ + // yield ownership of managed obj reference + ::CORBA_TypeCodeFactory_ptr val = this->ptr_; + this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); + return val; +} + + +#endif /* end #if !defined */ + + +#if !defined (_CORBA_TYPECODEFACTORY___OUT_CI_) +#define _CORBA_TYPECODEFACTORY___OUT_CI_ + +// ************************************************************* +// Inline operations for class CORBA_TypeCodeFactory_out +// ************************************************************* + +ACE_INLINE +CORBA_TypeCodeFactory_out::CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_ptr &p) + : ptr_ (p) +{ + this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); +} + +ACE_INLINE +CORBA_TypeCodeFactory_out::CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_var &p) // constructor from _var + : ptr_ (p.out ()) +{ + CORBA::release (this->ptr_); + this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); +} + +ACE_INLINE +CORBA_TypeCodeFactory_out::CORBA_TypeCodeFactory_out (const ::CORBA_TypeCodeFactory_out &p) // copy constructor + : ptr_ (ACE_const_cast (CORBA_TypeCodeFactory_out &, p).ptr_) +{} + +ACE_INLINE ::CORBA_TypeCodeFactory_out & +CORBA_TypeCodeFactory_out::operator= (const ::CORBA_TypeCodeFactory_out &p) +{ + this->ptr_ = ACE_const_cast (CORBA_TypeCodeFactory_out&, p).ptr_; + return *this; +} + +ACE_INLINE CORBA_TypeCodeFactory_out & +CORBA_TypeCodeFactory_out::operator= (const ::CORBA_TypeCodeFactory_var &p) +{ + this->ptr_ = ::CORBA_TypeCodeFactory::_duplicate (p.ptr ()); + return *this; +} + +ACE_INLINE CORBA_TypeCodeFactory_out & +CORBA_TypeCodeFactory_out::operator= (CORBA_TypeCodeFactory_ptr p) +{ + this->ptr_ = p; + return *this; +} + +ACE_INLINE +CORBA_TypeCodeFactory_out::operator ::CORBA_TypeCodeFactory_ptr &() // cast +{ + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr & +CORBA_TypeCodeFactory_out::ptr (void) // ptr +{ + return this->ptr_; +} + +ACE_INLINE ::CORBA_TypeCodeFactory_ptr +CORBA_TypeCodeFactory_out::operator-> (void) +{ + return this->ptr_; +} + + +#endif /* end #if !defined */ + diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp new file mode 100644 index 00000000000..4f64ad31a96 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp @@ -0,0 +1,310 @@ +// $Id$ + +#include "TypeCodeFactory_Adapter_Impl.h" +#include "TypeCodeFactory_i.h" +#include "tao/ORB_Core.h" + +ACE_RCSID(IFR_Service, TypeCodeFactory_Adapter_Impl, "$Id$") + +TAO_TypeCodeFactory_Adapter_Impl::~TAO_TypeCodeFactory_Adapter_Impl (void) +{ +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_struct_tc ( + const char * id, + const char * name, + const CORBA_StructMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_struct_tc (id, + name, + members, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_union_tc ( + const char * id, + const char * name, + CORBA::TypeCode_ptr discriminator_type, + const CORBA_UnionMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_union_tc (id, + name, + discriminator_type, + members, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_enum_tc ( + const char * id, + const char * name, + const CORBA_EnumMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_enum_tc (id, + name, + members, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_alias_tc ( + const char * id, + const char * name, + CORBA::TypeCode_ptr original_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_alias_tc (id, + name, + original_type, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_exception_tc ( + const char * id, + const char * name, + const CORBA_StructMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_exception_tc (id, + name, + members, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_interface_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_interface_tc (id, + name, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_string_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_string_tc (bound, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_wstring_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_wstring_tc (bound, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_fixed_tc ( + CORBA::UShort digits, + CORBA::UShort scale, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_fixed_tc (digits, + scale, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_sequence_tc ( + CORBA::ULong bound, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_sequence_tc (bound, + element_type, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_array_tc ( + CORBA::ULong length, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_array_tc (length, + element_type, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_value_tc ( + const char * id, + const char * name, + CORBA::ValueModifier type_modifier, + CORBA::TypeCode_ptr concrete_base, + const CORBA_ValueMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_value_tc (id, + name, + type_modifier, + concrete_base, + members, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_value_box_tc ( + const char * id, + const char * name, + CORBA::TypeCode_ptr boxed_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_value_box_tc (id, + name, + boxed_type, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_native_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_native_tc (id, + name, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_recursive_tc ( + const char * id, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_recursive_tc (id, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_abstract_interface_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_abstract_interface_tc (id, + name, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_Adapter_Impl::create_local_interface_tc ( + const char * id, + const char * name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_TypeCodeFactory_i tcf; + + return tcf.create_local_interface_tc (id, + name, + ACE_TRY_ENV); +} + +// ********************************************************************* + +// Initialization and registration of dynamic service object. + +int +TAO_TypeCodeFactory_Adapter_Impl::Initializer (void) +{ + TAO_ORB_Core::typecodefactory_adapter_name ( + "Concrete_TypeCodeFactory_Adapter" + ); + + ACE_Service_Config::static_svcs ()->insert ( + &ace_svc_desc_TAO_TypeCodeFactory_Adapter_Impl + ); + + return 0; +} + +ACE_STATIC_SVC_DEFINE ( + TAO_TypeCodeFactory_Adapter_Impl, + ACE_TEXT ("Concrete_TypeCodeFactory_Adapter"), + ACE_SVC_OBJ_T, + &ACE_SVC_NAME (TAO_TypeCodeFactory_Adapter_Impl), + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, + 0 + ) + +ACE_FACTORY_DEFINE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Adapter_Impl) + diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h new file mode 100644 index 00000000000..c83bb32af7c --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h @@ -0,0 +1,209 @@ +// This may look like C, but it's really -*- C++ -*- + +//============================================================================= +/** + * @file TypeCodeFactory_Adapter_Impl.h + * + * $Id$ + * + * @author Jeff Parsons <parsons@cs.wustl.edu> + */ +//============================================================================= + + +#ifndef TAO_TYPECODEFACTORY_ADAPTER_IMPL_H +#define TAO_TYPECODEFACTORY_ADAPTER_IMPL_H +#include "ace/pre.h" + +#include "tao/TypeCodeFactory_Adapter.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "typecodefactory_export.h" +#include "ace/Service_Config.h" + +/** + * @class TAO_TypeCodeFactory_Adapter_Impl + * + * @brief TAO_TypeCodeFactory_Adapter_Impl. + * + * Class that adapts the CORBA::ORB create_*_tc functions + * to use the TypeCodeFactory. This is the derived class + * that contains the actual implementations. + */ +class TAO_TypeCodeFactory_Export TAO_TypeCodeFactory_Adapter_Impl + : public TAO_TypeCodeFactory_Adapter +{ +public: + virtual ~TAO_TypeCodeFactory_Adapter_Impl (void); + + virtual CORBA::TypeCode_ptr create_struct_tc ( + const char *id, + const char *name, + const CORBA_StructMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_union_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr discriminator_type, + const CORBA_UnionMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_enum_tc ( + const char *id, + const char *name, + const CORBA_EnumMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_alias_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr original_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_exception_tc ( + const char *id, + const char *name, + const CORBA_StructMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_string_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_wstring_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_fixed_tc ( + CORBA::UShort digits, + CORBA::UShort scale, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_sequence_tc ( + CORBA::ULong bound, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_array_tc ( + CORBA::ULong length, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_value_tc ( + const char *id, + const char *name, + CORBA::ValueModifier type_modifier, + CORBA::TypeCode_ptr concrete_base, + const CORBA_ValueMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_value_box_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr boxed_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_native_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_recursive_tc ( + const char *id, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_abstract_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_local_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + /// Used to force the initialization of the ORB code. + static int Initializer (void); +}; + +ACE_STATIC_SVC_DECLARE (TAO_TypeCodeFactory_Adapter_Impl) +ACE_FACTORY_DECLARE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Adapter_Impl) + +#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS) + +typedef int (*TAO_Module_Initializer) (void); + +static TAO_Module_Initializer +TAO_Requires_TypeCodeFactory_Initializer = + &TAO_TypeCodeFactory_Adapter_Impl::Initializer; + +#else + +static int +TAO_Requires_TypeCodeFactory_Initializer = + TAO_TypeCodeFactory_Adapter_Impl::Initializer (); + +#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */ + +#include "ace/post.h" +#endif /* TAO_TYPECODEFACTORY_ADAPTER_IMPL_H */ diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp new file mode 100644 index 00000000000..d4b9a94da70 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp @@ -0,0 +1,59 @@ +/* -*- C++ -*- */ +// $Id$ + +// ================================================================= +// +// = LIBRARY +// TAO/tao/TypeCodeFactory +// +// = FILENAME +// TypeCodeFactory_Loader.cpp +// +// = AUTHOR +// Jeff Parsons <parsons@cs.wustl.edu> +// +// ================================================================= + +#include "TypeCodeFactory_Loader.h" +#include "TypeCodeFactory_i.h" + +ACE_RCSID(TypeCodeFactory, TypeCodeFactory_Loader, "$Id$") + +TAO_TypeCodeFactory_Loader::TAO_TypeCodeFactory_Loader (void) +{ +} + +CORBA::Object_ptr +TAO_TypeCodeFactory_Loader::create_object (CORBA::ORB_ptr, + int, + char * [], + CORBA::Environment &) + ACE_THROW_SPEC (()) +{ + CORBA::Object_ptr obj; + ACE_NEW_RETURN (obj, + TAO_TypeCodeFactory_i, + CORBA::Object::_nil ()); + return obj; +} + +int +TAO_TypeCodeFactory_Loader::Initializer (void) +{ + ACE_Service_Config::static_svcs ()-> insert ( + &ace_svc_desc_TAO_TypeCodeFactory_Loader + ); + + return 0; +} + +ACE_STATIC_SVC_DEFINE ( + TAO_TypeCodeFactory_Loader, + ACE_TEXT ("TypeCodeFactory_Loader"), + ACE_SVC_OBJ_T, + &ACE_SVC_NAME (TAO_TypeCodeFactory_Loader), + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, + 0 + ) + +ACE_FACTORY_DEFINE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Loader) diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h new file mode 100644 index 00000000000..13b6d9ce41c --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h @@ -0,0 +1,73 @@ +// This may look like C, but it's really -*- C++ -*- + +//============================================================================= +/** + * @file TypeCodeFactory_Loader.h + * + * $Id$ + * + * @author Jeff Parsons <parsons@cs.wustl.edu> + */ +//============================================================================= + +#ifndef TAO_TYPECODEFACTORY_LOADER_H +#define TAO_TYPECODEFACTORY_LOADER_H +#include "ace/pre.h" + +#include "typecodefactory_export.h" +#include "tao/Object_Loader.h" +#include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TAO_TypeCodeFactory_Export TAO_TypeCodeFactory_Loader + : public TAO_Object_Loader +{ + // = TITLE + // TAO_TypeCodeFactory_Loader + // + // = DESCRIPTION + // Create an instance of TypeCodeFactory and return + // it to the caller. + // +public: + TAO_TypeCodeFactory_Loader (void); + // Constructor. + + virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb, + int argc, + char *argv [], + CORBA::Environment &) + ACE_THROW_SPEC (()); + // Overload the base class method to create a new instance + // of a TypeCodeFactory object. + + static int Initializer (void); + // Used to force the initialization of the ORB code. +}; + +ACE_STATIC_SVC_DECLARE (TAO_TypeCodeFactory_Loader) +ACE_FACTORY_DECLARE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Loader) + +#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS) + +typedef int (*TAO_Module_Initializer) (void); + +static TAO_Module_Initializer +TAO_Requires_TCF_Initializer = &TAO_TypeCodeFactory_Loader::Initializer; + +#else + +static int +TAO_Requires_TCF_Initializer = TAO_TypeCodeFactory_Loader::Initializer (); + +#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */ + +#define TAO_TYPECODEFACTORY_SAFE_INCLUDE +#include "TypeCodeFactoryC.h" +#undef TAO_TYPECODEFACTORY_SAFE_INCLUDE + +#include "ace/post.h" +#endif /* TAO_TYPECODEFACTORY_LOADER_H */ diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp new file mode 100644 index 00000000000..8ec0b9937c5 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp @@ -0,0 +1,832 @@ +/* -*- C++ -*- */ +// $Id$ + +#include "TypeCodeFactory_i.h" +#include "tao/IFR_Client/IFR_BasicC.h" +#include "tao/Marshal.h" + +ACE_RCSID(IFR_Service, TypeCodeFactory_i, "$Id$") + +TAO_TypeCodeFactory_i::TAO_TypeCodeFactory_i (void) +{ +} + +TAO_TypeCodeFactory_i::~TAO_TypeCodeFactory_i (void) +{ +} + +TAO_TypeCodeFactory_i * +TAO_TypeCodeFactory_i::_narrow (CORBA::Object_ptr obj, + CORBA::Environment &) +{ + if (CORBA::is_nil (obj)) + { + return 0; + } + + return ACE_reinterpret_cast ( + TAO_TypeCodeFactory_i *, + obj->_tao_QueryInterface ( + ACE_reinterpret_cast ( + ptr_arith_t, + &TAO_TypeCodeFactory_i::_narrow + ) + ) + ); +} + +void * +TAO_TypeCodeFactory_i::_tao_QueryInterface (ptr_arith_t type) +{ + ptr_arith_t mytype = + ACE_reinterpret_cast (ptr_arith_t, + &TAO_TypeCodeFactory_i::_narrow); + if (type == mytype) + { + this->_add_ref (); + return this; + } + + return this->CORBA_TypeCodeFactory::_tao_QueryInterface (type); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_struct_tc ( + const char *id, + const char *name, + const CORBA_StructMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + // Number of members.. + CORBA::ULong len = members.length (); + cdr << len; + + for (CORBA::ULong index = 0; index < len; ++index) + { + cdr << members[index].name; + + cdr << members[index].type.in (); + } + + CORBA::TypeCode_ptr struct_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (struct_typecode, + CORBA_TypeCode (CORBA::tk_struct, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return struct_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_union_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr discriminator_type, + const CORBA_UnionMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + cdr << discriminator_type; + + CORBA::ULong len = members.length (); + CORBA::ULong dups = 0; + CORBA::Long default_index = -1; + CORBA::Long raw_default_index = -1; + CORBA::Octet value = ACE_OCTET_MAX; + + for (CORBA::ULong i = 0; i < len; ++i) + { + if (i > 0) + { + // Is this a duplicate case label? If so, we have to adjust + // the 'length' we encode - a member gets encoded only once. + if (ACE_OS::strcmp (members[i].name, + members[i - 1].name) + == 0) + { + ++dups; + } + } + + // Reset the default index, if we have a default case label. + if ((members[i].label >>= CORBA::Any::to_octet (value)) == 1) + { + if (value == 0) + { + raw_default_index = ACE_static_cast (CORBA::Long, i); + // Only the multiple labels that come before the + // default label affect its adjusted value. + default_index = ACE_static_cast (CORBA::Long, i - dups); + } + } + } + + cdr << default_index; + + cdr << len - dups; + + for (CORBA::ULong index = 0; index < len; index++) + { + if (index > 0) + { + // Is this a duplicate case label? If so, skip it - a member + // goes into the typecode only once. + if (ACE_OS::strcmp (members[index].name, + members[index - 1].name) + == 0) + { + continue; + } + } + + if (raw_default_index >= 0 + && index == ACE_static_cast (CORBA::ULong, raw_default_index)) + { + // This is the default label - we have to find a legal value. + CORBA::TCKind kind = discriminator_type->kind (ACE_TRY_ENV); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + this->compute_default_label (kind, + index, + members, + cdr); + } + else + { + // Interpretive marshaling refuses to die ;-). + TAO_InputCDR in (members[index].label._tao_get_cdr (), + members[index].label._tao_byte_order ()); + + CORBA::TypeCode_var tc = members[index].label.type (); + + (void) TAO_Marshal_Object::perform_append (tc.in (), + &in, + &cdr, + ACE_TRY_ENV); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + } + + cdr << members[index].name; + + cdr << members[index].type.in (); + } + + CORBA::TypeCode_ptr union_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (union_typecode, + CORBA_TypeCode (CORBA::tk_union, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return union_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_enum_tc ( + const char *id, + const char *name, + const CORBA_EnumMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + CORBA::ULong len = members.length (); + + cdr << len; + + for (CORBA::ULong index = 0; index < len; ++index) + { + cdr << members[index]; + } + + CORBA::TypeCode_ptr enum_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (enum_typecode, + CORBA_TypeCode (CORBA::tk_enum, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return enum_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_alias_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr original_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + cdr << original_type; + + CORBA::TypeCode_ptr alias_typecode = + CORBA::TypeCode::_nil (); + + ACE_NEW_THROW_EX (alias_typecode, + CORBA_TypeCode (CORBA::tk_alias, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return alias_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_exception_tc ( + const char *id, + const char *name, + const CORBA_StructMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + // Number of members.. + CORBA::ULong len = members.length (); + cdr << len; + + for (CORBA::ULong index = 0; index < len; ++index) + { + // Get the first member which is a string.. + CORBA_StructMember struct_member = members[index]; + + cdr << struct_member.name; + + cdr << struct_member.type.in (); + } + + CORBA::TypeCode_ptr exception_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (exception_typecode, + CORBA_TypeCode (CORBA::tk_except, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return exception_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->create_tc_common (id, + name, + CORBA::tk_objref, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_string_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << bound; + + CORBA::TypeCode_ptr string_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (string_typecode, + CORBA_TypeCode (CORBA::tk_string, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return string_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_wstring_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << bound; + + CORBA::TypeCode_ptr wstring_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (wstring_typecode, + CORBA_TypeCode (CORBA::tk_wstring, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return wstring_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_fixed_tc ( + CORBA::UShort /* digits */, + CORBA::UShort /* scale */, + CORBA::Environment & /* ACE_TRY_ENV */ + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + // TODO + return 0; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_sequence_tc ( + CORBA::ULong bound, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << element_type; + + cdr << bound; + + CORBA::TypeCode_ptr sequence_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (sequence_typecode, + CORBA_TypeCode (CORBA::tk_sequence, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return sequence_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_array_tc ( + CORBA::ULong length, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << element_type; + + cdr << length; + + CORBA::TypeCode_ptr array_typecode = + CORBA::TypeCode::_nil (); + ACE_NEW_THROW_EX (array_typecode, + CORBA_TypeCode (CORBA::tk_array, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return array_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_value_tc ( + const char * /* id */, + const char * /* name */, + CORBA::ValueModifier /* type_modifier */, + CORBA::TypeCode_ptr /* concrete_base */, + const CORBA_ValueMemberSeq & /* members */, + CORBA::Environment & /* ACE_TRY_ENV */ + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + // TODO + return 0; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_value_box_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr boxed_type, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + cdr << boxed_type; + + CORBA::TypeCode_ptr value_box_typecode = + CORBA::TypeCode::_nil (); + + ACE_NEW_THROW_EX (value_box_typecode, + CORBA_TypeCode (CORBA::tk_value_box, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return value_box_typecode; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_native_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->create_tc_common (id, + name, + CORBA::tk_native, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_recursive_tc ( + const char * /* id */, + CORBA::Environment & /* ACE_TRY_ENV */ + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + // TODO + return 0; +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_abstract_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->create_tc_common (id, + name, + CORBA::tk_abstract_interface, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_local_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->create_tc_common (id, + name, + CORBA::tk_local_interface, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_component_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->create_tc_common (id, + name, + CORBA::tk_component, + ACE_TRY_ENV); +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_home_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->create_tc_common (id, + name, + CORBA::tk_home, + ACE_TRY_ENV); +} + +void +TAO_TypeCodeFactory_i::compute_default_label ( + CORBA::TCKind kind, + CORBA::ULong skip_slot, + const CORBA_UnionMemberSeq &members, + TAO_OutputCDR &cdr + ) +{ + // One to hold the current default value, one to + // hold the curent label's extracted value. + union disc_types + { + CORBA::Char char_val; + CORBA::WChar wchar_val; + CORBA::Boolean bool_val; + CORBA::Short short_val; + CORBA::UShort ushort_val; + CORBA::Long long_val; + CORBA::ULong ulong_val; + CORBA::ULongLong ulonglong_val; + CORBA::ULong enum_val; + // TODO - handle (u)longlong types + } dv, u; + + // To prevent 'may be uninitialized' warnings. + dv.ulonglong_val = 0; + + // Set these to the minimum value they can have. + switch (kind) + { + case CORBA::tk_char: + dv.char_val = 0; + break; + case CORBA::tk_wchar: + dv.wchar_val = 0; + break; + case CORBA::tk_boolean: + dv.bool_val = 0; + break; + case CORBA::tk_short: + dv.short_val = ACE_INT16_MIN; + break; + case CORBA::tk_ushort: + dv.ushort_val = 0; + break; + case CORBA::tk_long: + dv.long_val = ACE_INT32_MIN; + break; + case CORBA::tk_ulong: + dv.ulong_val = 0; + break; + case CORBA::tk_ulonglong: + dv.ulonglong_val = 0; + break; + case CORBA::tk_enum: + dv.enum_val = 0; + break; + default: + break; + } + + CORBA::ULong len = members.length (); + int success = 0; + + // A collision forces us to start over, because the label + // values need not be in sorted order. + while (success == 0) + { + success = 1; + + for (CORBA::ULong i = 0; i < len; i++) + { + // This is the one we're trying to find a legal value for. + if (i == skip_slot) + continue; + + // If there's a collision, we increment the default value. + switch (kind) + { + case CORBA::tk_char: + members[i].label >>= CORBA::Any::to_char (u.char_val); + if (u.char_val == dv.char_val) + { + dv.char_val++; + success = 0; + } + break; + case CORBA::tk_wchar: + members[i].label >>= CORBA::Any::to_wchar (u.wchar_val); + if (u.wchar_val == dv.wchar_val) + { + dv.wchar_val++; + success = 0; + } + break; + case CORBA::tk_boolean: + members[i].label >>= CORBA::Any::to_boolean (u.bool_val); + if (u.bool_val == dv.bool_val) + { + dv.bool_val++; + success = 0; + } + break; + case CORBA::tk_short: + members[i].label >>= u.short_val; + if (u.short_val == dv.short_val) + { + dv.short_val++; + success = 0; + } + break; + case CORBA::tk_ushort: + members[i].label >>= u.ushort_val; + if (u.ushort_val == dv.ushort_val) + { + dv.ushort_val++; + success = 0; + } + break; + case CORBA::tk_long: + members[i].label >>= u.long_val; + if (u.long_val == dv.long_val) + { + dv.long_val++; + success = 0; + } + break; + case CORBA::tk_ulong: + members[i].label >>= u.ulong_val; + if (u.ulong_val == dv.ulong_val) + { + dv.ulong_val++; + success = 0; + } + break; + case CORBA::tk_ulonglong: + members[i].label >>= u.ulonglong_val; + if (u.ulonglong_val == dv.ulonglong_val) + { + dv.ulonglong_val++; + success = 0; + } + break; + case CORBA::tk_enum: + { + TAO_InputCDR cdr (members[i].label._tao_get_cdr (), + members[i].label._tao_byte_order ()); + cdr.read_ulong (u.enum_val); + if (u.enum_val == dv.enum_val) + { + dv.enum_val++; + success = 0; + } + break; + } + default: + break; + } + + // If there's been a collision, we should start over right away. + if (success == 0) + break; + } + } + + // Add the default value to the encapsulation. + switch (kind) + { + case CORBA::tk_char: + cdr << CORBA::Any::from_char (dv.char_val); + break; + case CORBA::tk_wchar: + cdr << CORBA::Any::from_wchar (dv.wchar_val); + break; + case CORBA::tk_boolean: + cdr << CORBA::Any::from_boolean (dv.bool_val); + break; + case CORBA::tk_short: + cdr << dv.short_val; + break; + case CORBA::tk_ushort: + cdr << dv.ushort_val; + break; + case CORBA::tk_long: + cdr << dv.long_val; + break; + case CORBA::tk_ulong: + cdr << dv.ulong_val; + break; + case CORBA::tk_ulonglong: + cdr << dv.ulonglong_val; + break; + case CORBA::tk_enum: + cdr << dv.enum_val; + break; + default: + break; + } +} + +CORBA::TypeCode_ptr +TAO_TypeCodeFactory_i::create_tc_common ( + const char *id, + const char *name, + CORBA::TCKind kind, + CORBA::Environment &ACE_TRY_ENV + ) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_OutputCDR cdr; + + cdr << TAO_ENCAP_BYTE_ORDER; + + cdr << id; + + cdr << name; + + CORBA::TypeCode_ptr result = + CORBA::TypeCode::_nil (); + + ACE_NEW_THROW_EX (result, + CORBA_TypeCode (kind, + cdr.total_length (), + cdr.buffer (), + 0, + 0), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (CORBA::TypeCode::_nil ()); + + return result; +} + diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h new file mode 100644 index 00000000000..f11fe316ac5 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h @@ -0,0 +1,244 @@ +// This may look like C, but it's really -*- C++ -*- + +//============================================================================= +/** + * @file TypeCodeFactory_i.h + * + * $Id$ + * + * @author Jeff Parsons <parsons@cs.wustl.edu> + */ +//============================================================================= + +#ifndef TAO_TYPECODEFACTORY_I_H +#define TAO_TYPECODEFACTORY_I_H + +#include "ace/pre.h" +#include "TypeCodeFactory_Loader.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/LocalObject.h" + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +class TAO_TypeCodeFactory_Export TAO_TypeCodeFactory_i + : public virtual CORBA_TypeCodeFactory, + public virtual TAO_Local_RefCounted_Object +{ +/** + * @class TAO_TypeCodeFactory_i + * + * @brief TAO_TypeCodeFactory_i. + * + * Implementation of the CORBA::TypeCodeFactory interface + */ +public: + TAO_TypeCodeFactory_i (void); + /// ctor + + ~TAO_TypeCodeFactory_i (void); + /// dtor + + /// = LocalObject methods + static TAO_TypeCodeFactory_i *_narrow ( + CORBA::Object_ptr obj, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ); + virtual void *_tao_QueryInterface (ptr_arith_t type); + + virtual CORBA::TypeCode_ptr create_struct_tc ( + const char *id, + const char *name, + const CORBA_StructMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_union_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr discriminator_type, + const CORBA_UnionMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_enum_tc ( + const char *id, + const char *name, + const CORBA_EnumMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_alias_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr original_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_exception_tc ( + const char *id, + const char *name, + const CORBA_StructMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_string_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_wstring_tc ( + CORBA::ULong bound, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_fixed_tc ( + CORBA::UShort digits, + CORBA::UShort scale, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_sequence_tc ( + CORBA::ULong bound, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_array_tc ( + CORBA::ULong length, + CORBA::TypeCode_ptr element_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_value_tc ( + const char *id, + const char *name, + CORBA::ValueModifier type_modifier, + CORBA::TypeCode_ptr concrete_base, + const CORBA_ValueMemberSeq &members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_value_box_tc ( + const char *id, + const char *name, + CORBA::TypeCode_ptr boxed_type, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_native_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_recursive_tc ( + const char *id, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_abstract_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_local_interface_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_component_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual CORBA::TypeCode_ptr create_home_tc ( + const char *id, + const char *name, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + +private: + /// Finds a legal default label value. + void compute_default_label (CORBA::TCKind kind, + CORBA::ULong skip_slot, + const CORBA_UnionMemberSeq &members, + TAO_OutputCDR &cdr); + + /// Called for all types that take just an id and a name. + CORBA::TypeCode_ptr create_tc_common ( + const char *id, + const char *name, + CORBA::TCKind kind, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) + ACE_THROW_SPEC ((CORBA::SystemException)); + + /// Prohibited + TAO_TypeCodeFactory_i (const TAO_TypeCodeFactory_i &src); + TAO_TypeCodeFactory_i &operator= (const TAO_TypeCodeFactory_i &src); +}; + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + +#include "ace/post.h" +#endif /* TAO_TYPECODEFACTORY_I_H */ diff --git a/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.cpp.diff b/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.cpp.diff new file mode 100644 index 00000000000..b00cba99963 --- /dev/null +++ b/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.cpp.diff @@ -0,0 +1,142 @@ +--- orig/TypeCodeFactoryC.cpp Mon Mar 12 22:17:35 2001 ++++ TypeCodeFactoryC.cpp Mon Mar 12 22:41:37 2001 +@@ -1,6 +1,6 @@ + // -*- C++ -*- + // +-// $Id$ ++// $Id$ + + // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** + // TAO and the TAO IDL Compiler have been developed by: +@@ -19,7 +19,7 @@ + // Information about TAO is available at: + // http://www.cs.wustl.edu/~schmidt/TAO.html + +-#include "TypeCodeFactoryC.h" ++#include "TypeCodeFactory_Loader.h" + + #if TAO_HAS_INTERCEPTORS == 1 + #include "tao/RequestInfo_Util.h" +@@ -33,53 +33,12 @@ + #include "TypeCodeFactoryC.inl" + #endif /* !defined INLINE */ + +-static const CORBA::Long _oc_CORBA_Identifier[] = +-{ +- TAO_ENCAP_BYTE_ORDER, // byte order +- 33, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f4964), ACE_NTOHL (0x656e7469), ACE_NTOHL (0x66696572), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Identifier:1.0 +- 11, ACE_NTOHL (0x4964656e), ACE_NTOHL (0x74696669), ACE_NTOHL (0x65720000), // name = Identifier +- CORBA::tk_string, +- 0U, // string length +-}; +-static CORBA::TypeCode _tc_TAO_tc_CORBA_Identifier (CORBA::tk_alias, sizeof (_oc_CORBA_Identifier), (char *) &_oc_CORBA_Identifier, 0, sizeof (CORBA::Identifier)); +-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) +-TAO_NAMESPACE_BEGIN (CORBA) +-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_Identifier, &_tc_TAO_tc_CORBA_Identifier) +-TAO_NAMESPACE_END +-static const CORBA::Long _oc_CORBA_RepositoryId[] = +-{ +- TAO_ENCAP_BYTE_ORDER, // byte order +- 35, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f5265), ACE_NTOHL (0x706f7369), ACE_NTOHL (0x746f7279), ACE_NTOHL (0x49643a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/CORBA/RepositoryId:1.0 +- 13, ACE_NTOHL (0x5265706f), ACE_NTOHL (0x7369746f), ACE_NTOHL (0x72794964), ACE_NTOHL (0x0), // name = RepositoryId +- CORBA::tk_string, +- 0U, // string length +-}; +-static CORBA::TypeCode _tc_TAO_tc_CORBA_RepositoryId (CORBA::tk_alias, sizeof (_oc_CORBA_RepositoryId), (char *) &_oc_CORBA_RepositoryId, 0, sizeof (CORBA::RepositoryId)); +-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) +-TAO_NAMESPACE_BEGIN (CORBA) +-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_RepositoryId, &_tc_TAO_tc_CORBA_RepositoryId) +-TAO_NAMESPACE_END +-static const CORBA::Long _oc_CORBA_ValueModifier[] = +-{ +- TAO_ENCAP_BYTE_ORDER, // byte order +- 36, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f5661), ACE_NTOHL (0x6c75654d), ACE_NTOHL (0x6f646966), ACE_NTOHL (0x6965723a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/ValueModifier:1.0 +- 14, ACE_NTOHL (0x56616c75), ACE_NTOHL (0x654d6f64), ACE_NTOHL (0x69666965), ACE_NTOHL (0x72000000), // name = ValueModifier +- CORBA::tk_short, +- +-}; +-static CORBA::TypeCode _tc_TAO_tc_CORBA_ValueModifier (CORBA::tk_alias, sizeof (_oc_CORBA_ValueModifier), (char *) &_oc_CORBA_ValueModifier, 0, sizeof (CORBA::ValueModifier)); +-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr) +-TAO_NAMESPACE_BEGIN (CORBA) +-TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ValueModifier, &_tc_TAO_tc_CORBA_ValueModifier) +-TAO_NAMESPACE_END +- +-// default constructor +-CORBA::TypeCodeFactory::TypeCodeFactory () +-{ +- } ++// Default constructor. ++CORBA_TypeCodeFactory::CORBA_TypeCodeFactory (void) ++{} + +-// destructor +-CORBA::TypeCodeFactory::~TypeCodeFactory (void) ++// Destructor. ++CORBA_TypeCodeFactory::~CORBA_TypeCodeFactory (void) + {} + + CORBA::TypeCodeFactory_ptr CORBA::TypeCodeFactory::_narrow ( +@@ -87,7 +46,7 @@ + CORBA::Environment &ACE_TRY_ENV + ) + { +- return TypeCodeFactory::_unchecked_narrow (obj, ACE_TRY_ENV); ++ return CORBA::TypeCodeFactory::_unchecked_narrow (obj, ACE_TRY_ENV); + } + + CORBA::TypeCodeFactory_ptr CORBA::TypeCodeFactory::_unchecked_narrow ( +@@ -96,36 +55,38 @@ + ) + { + if (CORBA::is_nil (obj)) +- return TypeCodeFactory::_nil (); ++ return CORBA::TypeCodeFactory::_nil (); ++ + return + ACE_reinterpret_cast + ( +- TypeCodeFactory_ptr, ++ CORBA::TypeCodeFactory_ptr, + obj->_tao_QueryInterface + ( + ACE_reinterpret_cast + ( + ptr_arith_t, +- &TypeCodeFactory::_narrow ++ &CORBA::TypeCodeFactory::_narrow + ) + ) + ); + } + + CORBA::TypeCodeFactory_ptr +-CORBA::TypeCodeFactory::_duplicate (TypeCodeFactory_ptr obj) ++CORBA::TypeCodeFactory::_duplicate (CORBA::TypeCodeFactory_ptr obj) + { + if (!CORBA::is_nil (obj)) + obj->_add_ref (); + return obj; + } + +-void *CORBA::TypeCodeFactory::_tao_QueryInterface (ptr_arith_t type) ++void * ++CORBA::TypeCodeFactory::_tao_QueryInterface (ptr_arith_t type) + { + void *retv = 0; + if (type == ACE_reinterpret_cast + (ptr_arith_t, +- &ACE_NESTED_CLASS (::CORBA, TypeCodeFactory)::_narrow)) ++ &CORBA_TypeCodeFactory::_narrow)) + retv = ACE_reinterpret_cast (void*, this); + else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) + retv = ACE_reinterpret_cast (void *, +@@ -136,7 +97,8 @@ + return retv; + } + +-const char* CORBA::TypeCodeFactory::_interface_repository_id (void) const ++const char * ++CORBA::TypeCodeFactory::_interface_repository_id (void) const + { + return "IDL:omg.org/CORBA/TypeCodeFactory:1.0"; + } diff --git a/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.h.diff b/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.h.diff new file mode 100644 index 00000000000..e88593e0b2c --- /dev/null +++ b/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.h.diff @@ -0,0 +1,278 @@ +--- orig/TypeCodeFactoryC.h Mon Mar 12 22:17:35 2001 ++++ TypeCodeFactoryC.h Mon Mar 12 22:49:58 2001 +@@ -1,6 +1,6 @@ + // -*- C++ -*- + // +-// $Id$ ++// $Id$ + + // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** + // TAO and the TAO IDL Compiler have been developed by: +@@ -19,8 +19,12 @@ + // Information about TAO is available at: + // http://www.cs.wustl.edu/~schmidt/TAO.html + +-#ifndef _TAO_IDL_ORIG_TYPECODEFACTORYC_H_ +-#define _TAO_IDL_ORIG_TYPECODEFACTORYC_H_ ++#ifndef TAO_TYPECODEFACTORYC_H ++#define TAO_TYPECODEFACTORYC_H ++ ++#ifndef TAO_TYPECODEFACTORY_SAFE_INCLUDE ++#error "You should not include TypeCodeFactoryC.h directly, use TCF_Loader.h" ++#endif /* !TAO_TYPECODEFACTORY_SAFE_INCLUDE */ + + #include "ace/pre.h" + #include "tao/corba.h" +@@ -30,7 +34,7 @@ + #endif /* ACE_LACKS_PRAGMA_ONCE */ + + #include "typecodefactory_export.h" +-#include "../IFR_Client/InterfaceC.h" ++#include "tao/IFR_Client/InterfaceC.h" + + #if defined (TAO_EXPORT_MACRO) + #undef TAO_EXPORT_MACRO +@@ -55,123 +59,82 @@ + #pragma option push -w-rvl -w-rch -w-ccc -w-inl + #endif /* __BORLANDC__ */ + +-TAO_NAMESPACE CORBA +-{ +- typedef char * Identifier; +- typedef CORBA::String_var Identifier_var; +- typedef CORBA::String_out Identifier_out; +- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_Identifier; +- +- typedef char * RepositoryId; +- typedef CORBA::String_var RepositoryId_var; +- typedef CORBA::String_out RepositoryId_out; +- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_RepositoryId; +- +- typedef CORBA::Short ValueModifier; +- typedef CORBA::Short_out ValueModifier_out; +- TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_ValueModifier; +- +- +-#if !defined (_CORBA_TYPECODEFACTORY___PTR_CH_) +-#define _CORBA_TYPECODEFACTORY___PTR_CH_ +- +- class TypeCodeFactory; +- typedef TypeCodeFactory *TypeCodeFactory_ptr; +- +-#endif /* end #if !defined */ +- +- +-#if !defined (_CORBA_TYPECODEFACTORY___VAR_CH_) +-#define _CORBA_TYPECODEFACTORY___VAR_CH_ +- +- class TAO_TypeCodeFactory_Export TypeCodeFactory_var : public TAO_Base_var ++class TAO_TypeCodeFactory_Export CORBA_TypeCodeFactory_var ++ : public TAO_Base_var + { + public: +- TypeCodeFactory_var (void); // default constructor +- TypeCodeFactory_var (TypeCodeFactory_ptr p) : ptr_ (p) {} +- TypeCodeFactory_var (const TypeCodeFactory_var &); // copy constructor +- ~TypeCodeFactory_var (void); // destructor +- +- TypeCodeFactory_var &operator= (TypeCodeFactory_ptr); +- TypeCodeFactory_var &operator= (const TypeCodeFactory_var &); +- TypeCodeFactory_ptr operator-> (void) const; ++ CORBA_TypeCodeFactory_var (void); // default constructor ++ CORBA_TypeCodeFactory_var (CORBA_TypeCodeFactory_ptr p) : ptr_ (p) {} ++ CORBA_TypeCodeFactory_var (const CORBA_TypeCodeFactory_var &); // copy constructor ++ ~CORBA_TypeCodeFactory_var (void); // destructor ++ ++ CORBA_TypeCodeFactory_var &operator= (CORBA_TypeCodeFactory_ptr); ++ CORBA_TypeCodeFactory_var &operator= (const CORBA_TypeCodeFactory_var &); ++ CORBA_TypeCodeFactory_ptr operator-> (void) const; + +- operator const TypeCodeFactory_ptr &() const; +- operator TypeCodeFactory_ptr &(); ++ operator const CORBA_TypeCodeFactory_ptr &() const; ++ operator CORBA_TypeCodeFactory_ptr &(); + // in, inout, out, _retn +- TypeCodeFactory_ptr in (void) const; +- TypeCodeFactory_ptr &inout (void); +- TypeCodeFactory_ptr &out (void); +- TypeCodeFactory_ptr _retn (void); +- TypeCodeFactory_ptr ptr (void) const; ++ CORBA_TypeCodeFactory_ptr in (void) const; ++ CORBA_TypeCodeFactory_ptr &inout (void); ++ CORBA_TypeCodeFactory_ptr &out (void); ++ CORBA_TypeCodeFactory_ptr _retn (void); ++ CORBA_TypeCodeFactory_ptr ptr (void) const; + + private: +- TypeCodeFactory_ptr ptr_; ++ CORBA_TypeCodeFactory_ptr ptr_; + // Unimplemented - prevents widening assignment. +- TypeCodeFactory_var (const TAO_Base_var &rhs); +- TypeCodeFactory_var &operator= (const TAO_Base_var &rhs); ++ CORBA_TypeCodeFactory_var (const TAO_Base_var &rhs); ++ CORBA_TypeCodeFactory_var &operator= (const TAO_Base_var &rhs); + }; + +- +-#endif /* end #if !defined */ +- +- +-#if !defined (_CORBA_TYPECODEFACTORY___OUT_CH_) +-#define _CORBA_TYPECODEFACTORY___OUT_CH_ +- +- class TAO_TypeCodeFactory_Export TypeCodeFactory_out ++class TAO_TypeCodeFactory_Export CORBA_TypeCodeFactory_out + { + public: +- TypeCodeFactory_out (TypeCodeFactory_ptr &); +- TypeCodeFactory_out (TypeCodeFactory_var &); +- TypeCodeFactory_out (const TypeCodeFactory_out &); +- TypeCodeFactory_out &operator= (const TypeCodeFactory_out &); +- TypeCodeFactory_out &operator= (const TypeCodeFactory_var &); +- TypeCodeFactory_out &operator= (TypeCodeFactory_ptr); +- operator TypeCodeFactory_ptr &(); +- TypeCodeFactory_ptr &ptr (void); +- TypeCodeFactory_ptr operator-> (void); ++ CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_ptr &); ++ CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_var &); ++ CORBA_TypeCodeFactory_out (const CORBA_TypeCodeFactory_out &); ++ CORBA_TypeCodeFactory_out &operator= (const CORBA_TypeCodeFactory_out &); ++ CORBA_TypeCodeFactory_out &operator= (const CORBA_TypeCodeFactory_var &); ++ CORBA_TypeCodeFactory_out &operator= (CORBA_TypeCodeFactory_ptr); ++ operator CORBA_TypeCodeFactory_ptr &(); ++ CORBA_TypeCodeFactory_ptr &ptr (void); ++ CORBA_TypeCodeFactory_ptr operator-> (void); + + private: +- TypeCodeFactory_ptr &ptr_; ++ CORBA_TypeCodeFactory_ptr &ptr_; + }; + +- +-#endif /* end #if !defined */ +- +- +-#if !defined (_CORBA_TYPECODEFACTORY_CH_) +-#define _CORBA_TYPECODEFACTORY_CH_ +- +-class TAO_TypeCodeFactory_Export TypeCodeFactory : public virtual CORBA_Object ++class TAO_TypeCodeFactory_Export CORBA_TypeCodeFactory ++ : public virtual CORBA_Object + { + public: + #if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8) +- typedef TypeCodeFactory_ptr _ptr_type; +- typedef TypeCodeFactory_var _var_type; ++ typedef CORBA_TypeCodeFactory_ptr _ptr_type; ++ typedef CORBA_TypeCodeFactory_var _var_type; + #endif /* ! __GNUC__ || g++ >= 2.8 */ + + // the static operations +- static TypeCodeFactory_ptr _duplicate (TypeCodeFactory_ptr obj); +- static TypeCodeFactory_ptr _narrow ( ++ static CORBA_TypeCodeFactory_ptr _duplicate (CORBA_TypeCodeFactory_ptr obj); ++ static CORBA_TypeCodeFactory_ptr _narrow ( + CORBA::Object_ptr obj, +- CORBA::Environment &ACE_TRY_ENV = ++ CORBA::Environment &env = + TAO_default_environment () + ); +- static TypeCodeFactory_ptr _unchecked_narrow ( ++ static CORBA_TypeCodeFactory_ptr _unchecked_narrow ( + CORBA::Object_ptr obj, +- CORBA::Environment &ACE_TRY_ENV = ++ CORBA::Environment &env = + TAO_default_environment () + ); +- static TypeCodeFactory_ptr _nil (void) ++ static CORBA_TypeCodeFactory_ptr _nil (void) + { +- return (TypeCodeFactory_ptr)0; ++ return (CORBA_TypeCodeFactory_ptr)0; + } + + virtual CORBA::TypeCode_ptr create_struct_tc ( + const char * id, + const char * name, +- const IR::StructMemberSeq & members, ++ const IR_StructMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) +@@ -183,7 +146,7 @@ + const char * id, + const char * name, + CORBA::TypeCode_ptr discriminator_type, +- const IR::UnionMemberSeq & members, ++ const IR_UnionMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) +@@ -194,7 +157,7 @@ + virtual CORBA::TypeCode_ptr create_enum_tc ( + const char * id, + const char * name, +- const IR::EnumMemberSeq & members, ++ const IR_EnumMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) +@@ -216,7 +179,7 @@ + virtual CORBA::TypeCode_ptr create_exception_tc ( + const char * id, + const char * name, +- const IR::StructMemberSeq & members, ++ const IR_StructMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) +@@ -287,7 +250,7 @@ + const char * name, + CORBA::ValueModifier type_modifier, + CORBA::TypeCode_ptr concrete_base, +- const IR::ValueMemberSeq & members, ++ const IR_ValueMemberSeq & members, + CORBA::Environment &ACE_TRY_ENV = + TAO_default_environment () + ) +@@ -370,30 +333,13 @@ + virtual const char* _interface_repository_id (void) const; + + protected: +- TypeCodeFactory (); +- +- virtual ~TypeCodeFactory (void); ++ CORBA_TypeCodeFactory (void); ++ virtual ~CORBA_TypeCodeFactory (void); + private: +- TypeCodeFactory (const TypeCodeFactory &); +- void operator= (const TypeCodeFactory &); ++ CORBA_TypeCodeFactory (const CORBA_TypeCodeFactory &); ++ void operator= (const CORBA_TypeCodeFactory &); + }; + +- +-#endif /* end #if !defined */ +- +- +-} +-TAO_NAMESPACE_CLOSE // module CORBA +- +-// Proxy Broker Factory function pointer declarations. +- +- +-#ifndef __ACE_INLINE__ +- +- +-#endif /* __ACE_INLINE__ */ +- +- + #if defined (__ACE_INLINE__) + #include "TypeCodeFactoryC.inl" + #endif /* defined INLINE */ +@@ -407,4 +353,4 @@ + #endif /* __BORLANDC__ */ + + #include "ace/post.h" +-#endif /* ifndef */ ++#endif /* TAO_TYPECODEFACTORYC_H */ diff --git a/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.inl.diff b/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.inl.diff new file mode 100644 index 00000000000..7cc48ce5c9f --- /dev/null +++ b/TAO/tao/TypeCodeFactory/diffs/TypeCodeFactoryC.inl.diff @@ -0,0 +1,236 @@ +--- orig/TypeCodeFactoryC.inl Mon Mar 12 22:17:35 2001 ++++ TypeCodeFactoryC.inl Mon Mar 12 22:32:17 2001 +@@ -1,118 +1,99 @@ +-// -*- C++ -*- +-// +-// $Id$ +- +-// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +-// TAO and the TAO IDL Compiler have been developed by: +-// Center for Distributed Object Computing +-// Washington University +-// St. Louis, MO +-// USA +-// http://www.cs.wustl.edu/~schmidt/doc-center.html +-// and +-// Distributed Object Computing Laboratory +-// University of California at Irvine +-// Irvine, CA +-// USA +-// http://doc.ece.uci.edu/ +-// +-// Information about TAO is available at: +-// http://www.cs.wustl.edu/~schmidt/TAO.html +- ++/* -*- C++ -*- */ ++//$Id$ + + #if !defined (_CORBA_TYPECODEFACTORY___VAR_CI_) + #define _CORBA_TYPECODEFACTORY___VAR_CI_ + + // ************************************************************* +-// Inline operations for class CORBA::TypeCodeFactory_var ++// Inline operations for class CORBA_TypeCodeFactory_var + // ************************************************************* + + ACE_INLINE +-CORBA::TypeCodeFactory_var::TypeCodeFactory_var (void) // default constructor +- : ptr_ (TypeCodeFactory::_nil ()) ++CORBA_TypeCodeFactory_var::CORBA_TypeCodeFactory_var (void) // default constructor ++ : ptr_ (CORBA_TypeCodeFactory::_nil ()) + {} + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr +-CORBA::TypeCodeFactory_var::ptr (void) const ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr ++CORBA_TypeCodeFactory_var::ptr (void) const + { + return this->ptr_; + } + + ACE_INLINE +-CORBA::TypeCodeFactory_var::TypeCodeFactory_var (const ::CORBA::TypeCodeFactory_var &p) // copy constructor ++CORBA_TypeCodeFactory_var::CORBA_TypeCodeFactory_var (const ::CORBA_TypeCodeFactory_var &p) // copy constructor + : TAO_Base_var (), +- ptr_ (TypeCodeFactory::_duplicate (p.ptr ())) ++ ptr_ (CORBA_TypeCodeFactory::_duplicate (p.ptr ())) + {} + + ACE_INLINE +-CORBA::TypeCodeFactory_var::~TypeCodeFactory_var (void) // destructor ++CORBA_TypeCodeFactory_var::~CORBA_TypeCodeFactory_var (void) // destructor + { + CORBA::release (this->ptr_); + } + +-ACE_INLINE CORBA::TypeCodeFactory_var & +-CORBA::TypeCodeFactory_var::operator= (TypeCodeFactory_ptr p) ++ACE_INLINE CORBA_TypeCodeFactory_var & ++CORBA_TypeCodeFactory_var::operator= (CORBA_TypeCodeFactory_ptr p) + { + CORBA::release (this->ptr_); + this->ptr_ = p; + return *this; + } + +-ACE_INLINE CORBA::TypeCodeFactory_var & +-CORBA::TypeCodeFactory_var::operator= (const ::CORBA::TypeCodeFactory_var &p) ++ACE_INLINE CORBA_TypeCodeFactory_var & ++CORBA_TypeCodeFactory_var::operator= (const ::CORBA_TypeCodeFactory_var &p) + { + if (this != &p) + { + CORBA::release (this->ptr_); +- this->ptr_ = ::CORBA::TypeCodeFactory::_duplicate (p.ptr ()); ++ this->ptr_ = ::CORBA_TypeCodeFactory::_duplicate (p.ptr ()); + } + return *this; + } + + ACE_INLINE +-CORBA::TypeCodeFactory_var::operator const ::CORBA::TypeCodeFactory_ptr &() const // cast ++CORBA_TypeCodeFactory_var::operator const ::CORBA_TypeCodeFactory_ptr &() const // cast + { + return this->ptr_; + } + + ACE_INLINE +-CORBA::TypeCodeFactory_var::operator ::CORBA::TypeCodeFactory_ptr &() // cast ++CORBA_TypeCodeFactory_var::operator ::CORBA_TypeCodeFactory_ptr &() // cast + { + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr +-CORBA::TypeCodeFactory_var::operator-> (void) const ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr ++CORBA_TypeCodeFactory_var::operator-> (void) const + { + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr +-CORBA::TypeCodeFactory_var::in (void) const ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr ++CORBA_TypeCodeFactory_var::in (void) const + { + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr & +-CORBA::TypeCodeFactory_var::inout (void) ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr & ++CORBA_TypeCodeFactory_var::inout (void) + { + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr & +-CORBA::TypeCodeFactory_var::out (void) ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr & ++CORBA_TypeCodeFactory_var::out (void) + { + CORBA::release (this->ptr_); +- this->ptr_ = ::CORBA::TypeCodeFactory::_nil (); ++ this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr +-CORBA::TypeCodeFactory_var::_retn (void) ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr ++CORBA_TypeCodeFactory_var::_retn (void) + { + // yield ownership of managed obj reference +- ::CORBA::TypeCodeFactory_ptr val = this->ptr_; +- this->ptr_ = ::CORBA::TypeCodeFactory::_nil (); ++ ::CORBA_TypeCodeFactory_ptr val = this->ptr_; ++ this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); + return val; + } + +@@ -124,64 +105,64 @@ + #define _CORBA_TYPECODEFACTORY___OUT_CI_ + + // ************************************************************* +-// Inline operations for class CORBA::TypeCodeFactory_out ++// Inline operations for class CORBA_TypeCodeFactory_out + // ************************************************************* + + ACE_INLINE +-CORBA::TypeCodeFactory_out::TypeCodeFactory_out (TypeCodeFactory_ptr &p) ++CORBA_TypeCodeFactory_out::CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_ptr &p) + : ptr_ (p) + { +- this->ptr_ = ::CORBA::TypeCodeFactory::_nil (); ++ this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); + } + + ACE_INLINE +-CORBA::TypeCodeFactory_out::TypeCodeFactory_out (TypeCodeFactory_var &p) // constructor from _var ++CORBA_TypeCodeFactory_out::CORBA_TypeCodeFactory_out (CORBA_TypeCodeFactory_var &p) // constructor from _var + : ptr_ (p.out ()) + { + CORBA::release (this->ptr_); +- this->ptr_ = ::CORBA::TypeCodeFactory::_nil (); ++ this->ptr_ = ::CORBA_TypeCodeFactory::_nil (); + } + + ACE_INLINE +-CORBA::TypeCodeFactory_out::TypeCodeFactory_out (const ::CORBA::TypeCodeFactory_out &p) // copy constructor +- : ptr_ (ACE_const_cast (TypeCodeFactory_out &, p).ptr_) ++CORBA_TypeCodeFactory_out::CORBA_TypeCodeFactory_out (const ::CORBA_TypeCodeFactory_out &p) // copy constructor ++ : ptr_ (ACE_const_cast (CORBA_TypeCodeFactory_out &, p).ptr_) + {} + +-ACE_INLINE ::CORBA::TypeCodeFactory_out & +-CORBA::TypeCodeFactory_out::operator= (const ::CORBA::TypeCodeFactory_out &p) ++ACE_INLINE ::CORBA_TypeCodeFactory_out & ++CORBA_TypeCodeFactory_out::operator= (const ::CORBA_TypeCodeFactory_out &p) + { +- this->ptr_ = ACE_const_cast (TypeCodeFactory_out&, p).ptr_; ++ this->ptr_ = ACE_const_cast (CORBA_TypeCodeFactory_out&, p).ptr_; + return *this; + } + +-ACE_INLINE CORBA::TypeCodeFactory_out & +-CORBA::TypeCodeFactory_out::operator= (const ::CORBA::TypeCodeFactory_var &p) ++ACE_INLINE CORBA_TypeCodeFactory_out & ++CORBA_TypeCodeFactory_out::operator= (const ::CORBA_TypeCodeFactory_var &p) + { +- this->ptr_ = ::CORBA::TypeCodeFactory::_duplicate (p.ptr ()); ++ this->ptr_ = ::CORBA_TypeCodeFactory::_duplicate (p.ptr ()); + return *this; + } + +-ACE_INLINE CORBA::TypeCodeFactory_out & +-CORBA::TypeCodeFactory_out::operator= (TypeCodeFactory_ptr p) ++ACE_INLINE CORBA_TypeCodeFactory_out & ++CORBA_TypeCodeFactory_out::operator= (CORBA_TypeCodeFactory_ptr p) + { + this->ptr_ = p; + return *this; + } + + ACE_INLINE +-CORBA::TypeCodeFactory_out::operator ::CORBA::TypeCodeFactory_ptr &() // cast ++CORBA_TypeCodeFactory_out::operator ::CORBA_TypeCodeFactory_ptr &() // cast + { + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr & +-CORBA::TypeCodeFactory_out::ptr (void) // ptr ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr & ++CORBA_TypeCodeFactory_out::ptr (void) // ptr + { + return this->ptr_; + } + +-ACE_INLINE ::CORBA::TypeCodeFactory_ptr +-CORBA::TypeCodeFactory_out::operator-> (void) ++ACE_INLINE ::CORBA_TypeCodeFactory_ptr ++CORBA_TypeCodeFactory_out::operator-> (void) + { + return this->ptr_; + } diff --git a/TAO/tao/TypeCodeFactory/typecodefactory_export.h b/TAO/tao/TypeCodeFactory/typecodefactory_export.h new file mode 100644 index 00000000000..03bfa7334ab --- /dev/null +++ b/TAO/tao/TypeCodeFactory/typecodefactory_export.h @@ -0,0 +1,40 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl +// ------------------------------ +#ifndef TAO_TYPECODEFACTORY_EXPORT_H +#define TAO_TYPECODEFACTORY_EXPORT_H + +#include "ace/config-all.h" + +#if defined (TAO_AS_STATIC_LIBS) +# if !defined (TAO_TYPECODEFACTORY_HAS_DLL) +# define TAO_TYPECODEFACTORY_HAS_DLL 0 +# endif /* ! TAO_TYPECODEFACTORY_HAS_DLL */ +#else +# if !defined (TAO_TYPECODEFACTORY_HAS_DLL) +# define TAO_TYPECODEFACTORY_HAS_DLL 1 +# endif /* ! TAO_TYPECODEFACTORY_HAS_DLL */ +#endif + +#if defined (TAO_TYPECODEFACTORY_HAS_DLL) && (TAO_TYPECODEFACTORY_HAS_DLL == 1) +# if defined (TAO_TYPECODEFACTORY_BUILD_DLL) +# define TAO_TypeCodeFactory_Export ACE_Proper_Export_Flag +# define TAO_TYPECODEFACTORY_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define TAO_TYPECODEFACTORY_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* TAO_TYPECODEFACTORY_BUILD_DLL */ +# define TAO_TypeCodeFactory_Export ACE_Proper_Import_Flag +# define TAO_TYPECODEFACTORY_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define TAO_TYPECODEFACTORY_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* TAO_TYPECODEFACTORY_BUILD_DLL */ +#else /* TAO_TYPECODEFACTORY_HAS_DLL == 1 */ +# define TAO_TypeCodeFactory_Export +# define TAO_TYPECODEFACTORY_SINGLETON_DECLARATION(T) +# define TAO_TYPECODEFACTORY_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* TAO_TYPECODEFACTORY_HAS_DLL == 1 */ + +#endif /* TAO_TYPECODEFACTORY_EXPORT_H */ + +// End of auto generated file. |